@c4a/server-cli 0.4.11 → 0.4.12-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/index.js +795 -3402
  2. package/package.json +1 -1
  3. package/serve.js +3223 -4193
  4. package/web/assets/index--UyZtsHr.js +238 -0
  5. package/web/assets/index-15FuETM5.js +238 -0
  6. package/web/assets/index-1O90ZcBt.js +238 -0
  7. package/web/assets/index-2ZaXHlEm.js +12 -0
  8. package/web/assets/index-5SgaIe6K.js +238 -0
  9. package/web/assets/index-69TE-Dt9.js +238 -0
  10. package/web/assets/index-6qWMAJjW.js +12 -0
  11. package/web/assets/index-8bavzcKH.js +238 -0
  12. package/web/assets/index-B2JcVRax.js +238 -0
  13. package/web/assets/index-B3a1j3cz.js +238 -0
  14. package/web/assets/index-B6EqO_Cg.js +12 -0
  15. package/web/assets/index-B7OJ5sV_.js +238 -0
  16. package/web/assets/index-B9YWtkC-.js +12 -0
  17. package/web/assets/index-BD162a_1.js +238 -0
  18. package/web/assets/index-BF50bkqY.css +1 -0
  19. package/web/assets/index-BPMcNaXa.css +1 -0
  20. package/web/assets/index-BPlwhwPb.css +1 -0
  21. package/web/assets/index-BW9aouHt.js +238 -0
  22. package/web/assets/index-BbZvxZvZ.css +1 -0
  23. package/web/assets/index-BkYFml7g.css +1 -0
  24. package/web/assets/index-Bnn0CunM.js +238 -0
  25. package/web/assets/index-BosC7CbW.css +1 -0
  26. package/web/assets/index-BrJa-9jA.css +1 -0
  27. package/web/assets/index-C63Z-8cw.js +238 -0
  28. package/web/assets/index-C6ydhyiL.js +238 -0
  29. package/web/assets/index-CAXoXe3-.css +1 -0
  30. package/web/assets/index-CDG7D9Wo.css +1 -0
  31. package/web/assets/index-CNruo9jb.js +238 -0
  32. package/web/assets/index-CUGq5bZG.js +12 -0
  33. package/web/assets/index-CVB_F0xd.js +238 -0
  34. package/web/assets/index-CVct6UjO.css +1 -0
  35. package/web/assets/index-CX2QKHgP.js +12 -0
  36. package/web/assets/index-Cok56quU.css +1 -0
  37. package/web/assets/index-Ct-X2M8U.js +12 -0
  38. package/web/assets/index-CtnVCeI7.css +1 -0
  39. package/web/assets/index-Cu6ttPtz.js +12 -0
  40. package/web/assets/index-CvTLDILA.css +1 -0
  41. package/web/assets/index-D0x9zuj2.js +238 -0
  42. package/web/assets/index-D12WsS4E.js +238 -0
  43. package/web/assets/index-D3-qG0Hp.js +238 -0
  44. package/web/assets/index-D3UsEQTE.css +1 -0
  45. package/web/assets/index-D5WvCk3U.js +238 -0
  46. package/web/assets/index-D6QqUdMz.css +1 -0
  47. package/web/assets/index-D7EkgIsu.js +12 -0
  48. package/web/assets/index-DB_YWOXK.js +12 -0
  49. package/web/assets/index-DBaysFVi.css +1 -0
  50. package/web/assets/index-DGYdHfUt.js +238 -0
  51. package/web/assets/index-DIzfj2PR.css +1 -0
  52. package/web/assets/index-DJiYLRIW.css +1 -0
  53. package/web/assets/index-DQcztEye.js +238 -0
  54. package/web/assets/index-DSnxWXVs.css +1 -0
  55. package/web/assets/index-DX1UQEJF.css +1 -0
  56. package/web/assets/index-DgtV8nwc.js +238 -0
  57. package/web/assets/index-DqdyIshw.js +12 -0
  58. package/web/assets/index-DyF2kEj9.js +238 -0
  59. package/web/assets/index-H6Rs5Fbq.js +12 -0
  60. package/web/assets/index-O5LI2GNV.js +238 -0
  61. package/web/assets/index-SnFvyzm_.css +1 -0
  62. package/web/assets/index-bnfl0N-T.css +1 -0
  63. package/web/assets/index-cMgxghVE.css +1 -0
  64. package/web/assets/index-dDuVahj-.js +12 -0
  65. package/web/assets/index-fG23cf-l.js +238 -0
  66. package/web/assets/index-it-5oMch.css +1 -0
  67. package/web/assets/index-yq497d-W.js +12 -0
  68. package/web/index.html +2 -2
@@ -0,0 +1,238 @@
1
+ function WR(s,o){for(var l=0;l<o.length;l++){const c=o[l];if(typeof c!="string"&&!Array.isArray(c)){for(const u in c)if(u!=="default"&&!(u in s)){const d=Object.getOwnPropertyDescriptor(c,u);d&&Object.defineProperty(s,u,d.get?d:{enumerable:!0,get:()=>c[u]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))c(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function l(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(u){if(u.ep)return;u.ep=!0;const d=l(u);fetch(u.href,d)}})();function e_(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var _g={exports:{}},_f={},kg={exports:{}},Qc={exports:{}};Qc.exports;var $1;function t_(){return $1||($1=1,(function(s,o){(function(){function l(E,M){Object.defineProperty(d.prototype,E,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",M[0],M[1])}})}function c(E){return E===null||typeof E!="object"?null:(E=Yt&&E[Yt]||E["@@iterator"],typeof E=="function"?E:null)}function u(E,M){E=(E=E.constructor)&&(E.displayName||E.name)||"ReactClass";var ae=E+"."+M;pt[ae]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",M,E),pt[ae]=!0)}function d(E,M,ae){this.props=E,this.context=M,this.refs=ut,this.updater=ae||Ft}function h(){}function g(E,M,ae){this.props=E,this.context=M,this.refs=ut,this.updater=ae||Ft}function b(){}function y(E){return""+E}function D(E){try{y(E);var M=!1}catch{M=!0}if(M){M=console;var ae=M.error,le=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return ae.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",le),y(E)}}function x(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===wn?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case G:return"Fragment";case je:return"Profiler";case ve:return"StrictMode";case nt:return"Suspense";case $t:return"SuspenseList";case he:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case xe:return"Portal";case mt:return E.displayName||"Context";case _e:return(E._context.displayName||"Context")+".Consumer";case Rt:var M=E.render;return E=E.displayName,E||(E=M.displayName||M.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case Se:return M=E.displayName||null,M!==null?M:x(E.type)||"Memo";case Mt:M=E._payload,E=E._init;try{return x(E(M))}catch{}}return null}function N(E){if(E===G)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===Mt)return"<...>";try{var M=x(E);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function R(){var E=we.A;return E===null?null:E.getOwner()}function k(){return Error("react-stack-top-frame")}function B(E){if(En.call(E,"key")){var M=Object.getOwnPropertyDescriptor(E,"key").get;if(M&&M.isReactWarning)return!1}return E.key!==void 0}function L(E,M){function ae(){Xa||(Xa=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",M))}ae.isReactWarning=!0,Object.defineProperty(E,"key",{get:ae,configurable:!0})}function F(){var E=x(this.type);return Qa[E]||(Qa[E]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),E=this.props.ref,E!==void 0?E:null}function Q(E,M,ae,le,De,Be){var ke=ae.ref;return E={$$typeof:K,type:E,key:M,props:ae,_owner:le},(ke!==void 0?ke:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:F}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:De}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Be}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function ee(E,M){return M=Q(E.type,M,E.props,E._owner,E._debugStack,E._debugTask),E._store&&(M._store.validated=E._store.validated),M}function ue(E){re(E)?E._store&&(E._store.validated=1):typeof E=="object"&&E!==null&&E.$$typeof===Mt&&(E._payload.status==="fulfilled"?re(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function re(E){return typeof E=="object"&&E!==null&&E.$$typeof===K}function ne(E){var M={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(ae){return M[ae]})}function te(E,M){return typeof E=="object"&&E!==null&&E.key!=null?(D(E.key),ne(""+E.key)):M.toString(36)}function _(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(b,b):(E.status="pending",E.then(function(M){E.status==="pending"&&(E.status="fulfilled",E.value=M)},function(M){E.status==="pending"&&(E.status="rejected",E.reason=M)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function P(E,M,ae,le,De){var Be=typeof E;(Be==="undefined"||Be==="boolean")&&(E=null);var ke=!1;if(E===null)ke=!0;else switch(Be){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(E.$$typeof){case K:case xe:ke=!0;break;case Mt:return ke=E._init,P(ke(E._payload),M,ae,le,De)}}if(ke){ke=E,De=De(ke);var st=le===""?"."+te(ke,0):le;return oa(De)?(ae="",st!=null&&(ae=st.replace(Ra,"$&/")+"/"),P(De,M,ae,"",function(ca){return ca})):De!=null&&(re(De)&&(De.key!=null&&(ke&&ke.key===De.key||D(De.key)),ae=ee(De,ae+(De.key==null||ke&&ke.key===De.key?"":(""+De.key).replace(Ra,"$&/")+"/")+st),le!==""&&ke!=null&&re(ke)&&ke.key==null&&ke._store&&!ke._store.validated&&(ae._store.validated=2),De=ae),M.push(De)),1}if(ke=0,st=le===""?".":le+":",oa(E))for(var Ie=0;Ie<E.length;Ie++)le=E[Ie],Be=st+te(le,Ie),ke+=P(le,M,ae,Be,De);else if(Ie=c(E),typeof Ie=="function")for(Ie===E.entries&&(Za||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Za=!0),E=Ie.call(E),Ie=0;!(le=E.next()).done;)le=le.value,Be=st+te(le,Ie++),ke+=P(le,M,ae,Be,De);else if(Be==="object"){if(typeof E.then=="function")return P(_(E),M,ae,le,De);throw M=String(E),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return ke}function H(E,M,ae){if(E==null)return E;var le=[],De=0;return P(E,le,"","",function(Be){return M.call(ae,Be,De++)}),le}function me(E){if(E._status===-1){var M=E._ioInfo;M!=null&&(M.start=M.end=performance.now()),M=E._result;var ae=M();if(ae.then(function(De){if(E._status===0||E._status===-1){E._status=1,E._result=De;var Be=E._ioInfo;Be!=null&&(Be.end=performance.now()),ae.status===void 0&&(ae.status="fulfilled",ae.value=De)}},function(De){if(E._status===0||E._status===-1){E._status=2,E._result=De;var Be=E._ioInfo;Be!=null&&(Be.end=performance.now()),ae.status===void 0&&(ae.status="rejected",ae.reason=De)}}),M=E._ioInfo,M!=null){M.value=ae;var le=ae.displayName;typeof le=="string"&&(M.name=le)}E._status===-1&&(E._status=0,E._result=ae)}if(E._status===1)return M=E._result,M===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,M),"default"in M||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,M),M.default;throw E._result}function W(){var E=we.H;return E===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),E}function X(){we.asyncTransitions--}function ie(E){if(Fn===null)try{var M=("require"+Math.random()).slice(0,7);Fn=(s&&s[M]).call(s,"timers").setImmediate}catch{Fn=function(le){ds===!1&&(ds=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var De=new MessageChannel;De.port1.onmessage=le,De.port2.postMessage(void 0)}}return Fn(E)}function Ee(E){return 1<E.length&&typeof AggregateError=="function"?new AggregateError(E):E[0]}function J(E,M){M!==Pa-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Pa=M}function de(E,M,ae){var le=we.actQueue;if(le!==null)if(le.length!==0)try{ge(le),ie(function(){return de(E,M,ae)});return}catch(De){we.thrownErrors.push(De)}else we.actQueue=null;0<we.thrownErrors.length?(le=Ee(we.thrownErrors),we.thrownErrors.length=0,ae(le)):M(E)}function ge(E){if(!pe){pe=!0;var M=0;try{for(;M<E.length;M++){var ae=E[M];do{we.didUsePromise=!1;var le=ae(!1);if(le!==null){if(we.didUsePromise){E[M]=ae,E.splice(0,M);return}ae=le}else break}while(!0)}E.length=0}catch(De){E.splice(0,M+1),we.thrownErrors.push(De)}finally{pe=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var K=Symbol.for("react.transitional.element"),xe=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),je=Symbol.for("react.profiler"),_e=Symbol.for("react.consumer"),mt=Symbol.for("react.context"),Rt=Symbol.for("react.forward_ref"),nt=Symbol.for("react.suspense"),$t=Symbol.for("react.suspense_list"),Se=Symbol.for("react.memo"),Mt=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),Yt=Symbol.iterator,pt={},Ft={isMounted:function(){return!1},enqueueForceUpdate:function(E){u(E,"forceUpdate")},enqueueReplaceState:function(E){u(E,"replaceState")},enqueueSetState:function(E){u(E,"setState")}},ya=Object.assign,ut={};Object.freeze(ut),d.prototype.isReactComponent={},d.prototype.setState=function(E,M){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,M,"setState")},d.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};var St={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(gt in St)St.hasOwnProperty(gt)&&l(gt,St[gt]);h.prototype=d.prototype,St=g.prototype=new h,St.constructor=g,ya(St,d.prototype),St.isPureReactComponent=!0;var oa=Array.isArray,wn=Symbol.for("react.client.reference"),we={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},En=Object.prototype.hasOwnProperty,va=console.createTask?console.createTask:function(){return null};St={react_stack_bottom_frame:function(E){return E()}};var Xa,Dn,Qa={},on=St.react_stack_bottom_frame.bind(St,k)(),us=va(N(k)),Za=!1,Ra=/\/+/g,xa=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=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(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ds=!1,Fn=null,Pa=0,Xn=!1,pe=!1,He=typeof queueMicrotask=="function"?function(E){queueMicrotask(function(){return queueMicrotask(E)})}:ie;St=Object.freeze({__proto__:null,c:function(E){return W().useMemoCache(E)}});var gt={map:H,forEach:function(E,M,ae){H(E,function(){M.apply(this,arguments)},ae)},count:function(E){var M=0;return H(E,function(){M++}),M},toArray:function(E){return H(E,function(M){return M})||[]},only:function(E){if(!re(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};o.Activity=he,o.Children=gt,o.Component=d,o.Fragment=G,o.Profiler=je,o.PureComponent=g,o.StrictMode=ve,o.Suspense=nt,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=we,o.__COMPILER_RUNTIME=St,o.act=function(E){var M=we.actQueue,ae=Pa;Pa++;var le=we.actQueue=M!==null?M:[],De=!1;try{var Be=E()}catch(Ie){we.thrownErrors.push(Ie)}if(0<we.thrownErrors.length)throw J(M,ae),E=Ee(we.thrownErrors),we.thrownErrors.length=0,E;if(Be!==null&&typeof Be=="object"&&typeof Be.then=="function"){var ke=Be;return He(function(){De||Xn||(Xn=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ie,ca){De=!0,ke.then(function(Va){if(J(M,ae),ae===0){try{ge(le),ie(function(){return de(Va,Ie,ca)})}catch(Fs){we.thrownErrors.push(Fs)}if(0<we.thrownErrors.length){var Is=Ee(we.thrownErrors);we.thrownErrors.length=0,ca(Is)}}else Ie(Va)},function(Va){J(M,ae),0<we.thrownErrors.length&&(Va=Ee(we.thrownErrors),we.thrownErrors.length=0),ca(Va)})}}}var st=Be;if(J(M,ae),ae===0&&(ge(le),le.length!==0&&He(function(){De||Xn||(Xn=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),we.actQueue=null),0<we.thrownErrors.length)throw E=Ee(we.thrownErrors),we.thrownErrors.length=0,E;return{then:function(Ie,ca){De=!0,ae===0?(we.actQueue=le,ie(function(){return de(st,Ie,ca)})):Ie(st)}}},o.cache=function(E){return function(){return E.apply(null,arguments)}},o.cacheSignal=function(){return null},o.captureOwnerStack=function(){var E=we.getCurrentStack;return E===null?null:E()},o.cloneElement=function(E,M,ae){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var le=ya({},E.props),De=E.key,Be=E._owner;if(M!=null){var ke;e:{if(En.call(M,"ref")&&(ke=Object.getOwnPropertyDescriptor(M,"ref").get)&&ke.isReactWarning){ke=!1;break e}ke=M.ref!==void 0}ke&&(Be=R()),B(M)&&(D(M.key),De=""+M.key);for(st in M)!En.call(M,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&M.ref===void 0||(le[st]=M[st])}var st=arguments.length-2;if(st===1)le.children=ae;else if(1<st){ke=Array(st);for(var Ie=0;Ie<st;Ie++)ke[Ie]=arguments[Ie+2];le.children=ke}for(le=Q(E.type,De,le,Be,E._debugStack,E._debugTask),De=2;De<arguments.length;De++)ue(arguments[De]);return le},o.createContext=function(E){return E={$$typeof:mt,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:_e,_context:E},E._currentRenderer=null,E._currentRenderer2=null,E},o.createElement=function(E,M,ae){for(var le=2;le<arguments.length;le++)ue(arguments[le]);le={};var De=null;if(M!=null)for(Ie in Dn||!("__self"in M)||"key"in M||(Dn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),B(M)&&(D(M.key),De=""+M.key),M)En.call(M,Ie)&&Ie!=="key"&&Ie!=="__self"&&Ie!=="__source"&&(le[Ie]=M[Ie]);var Be=arguments.length-2;if(Be===1)le.children=ae;else if(1<Be){for(var ke=Array(Be),st=0;st<Be;st++)ke[st]=arguments[st+2];Object.freeze&&Object.freeze(ke),le.children=ke}if(E&&E.defaultProps)for(Ie in Be=E.defaultProps,Be)le[Ie]===void 0&&(le[Ie]=Be[Ie]);De&&L(le,typeof E=="function"?E.displayName||E.name||"Unknown":E);var Ie=1e4>we.recentlyCreatedOwnerStacks++;return Q(E,De,le,R(),Ie?Error("react-stack-top-frame"):on,Ie?va(N(E)):us)},o.createRef=function(){var E={current:null};return Object.seal(E),E},o.forwardRef=function(E){E!=null&&E.$$typeof===Se?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof E!="function"?console.error("forwardRef requires a render function but was given %s.",E===null?"null":typeof E):E.length!==0&&E.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",E.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),E!=null&&E.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var M={$$typeof:Rt,render:E},ae;return Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return ae},set:function(le){ae=le,E.name||E.displayName||(Object.defineProperty(E,"name",{value:le}),E.displayName=le)}}),M},o.isValidElement=re,o.lazy=function(E){E={_status:-1,_result:E};var M={$$typeof:Mt,_payload:E,_init:me},ae={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return E._ioInfo=ae,M._debugInfo=[{awaited:ae}],M},o.memo=function(E,M){E==null&&console.error("memo: The first argument must be a component. Instead received: %s",E===null?"null":typeof E),M={$$typeof:Se,type:E,compare:M===void 0?null:M};var ae;return Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return ae},set:function(le){ae=le,E.name||E.displayName||(Object.defineProperty(E,"name",{value:le}),E.displayName=le)}}),M},o.startTransition=function(E){var M=we.T,ae={};ae._updatedFibers=new Set,we.T=ae;try{var le=E(),De=we.S;De!==null&&De(ae,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&(we.asyncTransitions++,le.then(X,X),le.then(b,xa))}catch(Be){xa(Be)}finally{M===null&&ae._updatedFibers&&(E=ae._updatedFibers.size,ae._updatedFibers.clear(),10<E&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),M!==null&&ae.types!==null&&(M.types!==null&&M.types!==ae.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),M.types=ae.types),we.T=M}},o.unstable_useCacheRefresh=function(){return W().useCacheRefresh()},o.use=function(E){return W().use(E)},o.useActionState=function(E,M,ae){return W().useActionState(E,M,ae)},o.useCallback=function(E,M){return W().useCallback(E,M)},o.useContext=function(E){var M=W();return E.$$typeof===_e&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),M.useContext(E)},o.useDebugValue=function(E,M){return W().useDebugValue(E,M)},o.useDeferredValue=function(E,M){return W().useDeferredValue(E,M)},o.useEffect=function(E,M){return E==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),W().useEffect(E,M)},o.useEffectEvent=function(E){return W().useEffectEvent(E)},o.useId=function(){return W().useId()},o.useImperativeHandle=function(E,M,ae){return W().useImperativeHandle(E,M,ae)},o.useInsertionEffect=function(E,M){return E==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),W().useInsertionEffect(E,M)},o.useLayoutEffect=function(E,M){return E==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),W().useLayoutEffect(E,M)},o.useMemo=function(E,M){return W().useMemo(E,M)},o.useOptimistic=function(E,M){return W().useOptimistic(E,M)},o.useReducer=function(E,M,ae){return W().useReducer(E,M,ae)},o.useRef=function(E){return W().useRef(E)},o.useState=function(E){return W().useState(E)},o.useSyncExternalStore=function(E,M,ae){return W().useSyncExternalStore(E,M,ae)},o.useTransition=function(){return W().useTransition()},o.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Qc,Qc.exports)),Qc.exports}var Y1;function iu(){return Y1||(Y1=1,kg.exports=t_()),kg.exports}var q1;function a_(){if(q1)return _f;q1=1;return(function(){function s(G){if(G==null)return null;if(typeof G=="function")return G.$$typeof===me?null:G.displayName||G.name||null;if(typeof G=="string")return G;switch(G){case L:return"Fragment";case Q:return"Profiler";case F:return"StrictMode";case ne:return"Suspense";case te:return"SuspenseList";case H:return"Activity"}if(typeof G=="object")switch(typeof G.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),G.$$typeof){case B:return"Portal";case ue:return G.displayName||"Context";case ee:return(G._context.displayName||"Context")+".Consumer";case re:var ve=G.render;return G=G.displayName,G||(G=ve.displayName||ve.name||"",G=G!==""?"ForwardRef("+G+")":"ForwardRef"),G;case _:return ve=G.displayName||null,ve!==null?ve:s(G.type)||"Memo";case P:ve=G._payload,G=G._init;try{return s(G(ve))}catch{}}return null}function o(G){return""+G}function l(G){try{o(G);var ve=!1}catch{ve=!0}if(ve){ve=console;var je=ve.error,_e=typeof Symbol=="function"&&Symbol.toStringTag&&G[Symbol.toStringTag]||G.constructor.name||"Object";return je.call(ve,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_e),o(G)}}function c(G){if(G===L)return"<>";if(typeof G=="object"&&G!==null&&G.$$typeof===P)return"<...>";try{var ve=s(G);return ve?"<"+ve+">":"<...>"}catch{return"<...>"}}function u(){var G=W.A;return G===null?null:G.getOwner()}function d(){return Error("react-stack-top-frame")}function h(G){if(X.call(G,"key")){var ve=Object.getOwnPropertyDescriptor(G,"key").get;if(ve&&ve.isReactWarning)return!1}return G.key!==void 0}function g(G,ve){function je(){J||(J=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ve))}je.isReactWarning=!0,Object.defineProperty(G,"key",{get:je,configurable:!0})}function b(){var G=s(this.type);return de[G]||(de[G]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),G=this.props.ref,G!==void 0?G:null}function y(G,ve,je,_e,mt,Rt){var nt=je.ref;return G={$$typeof:k,type:G,key:ve,props:je,_owner:_e},(nt!==void 0?nt:null)!==null?Object.defineProperty(G,"ref",{enumerable:!1,get:b}):Object.defineProperty(G,"ref",{enumerable:!1,value:null}),G._store={},Object.defineProperty(G._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(G,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(G,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:mt}),Object.defineProperty(G,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Rt}),Object.freeze&&(Object.freeze(G.props),Object.freeze(G)),G}function D(G,ve,je,_e,mt,Rt){var nt=ve.children;if(nt!==void 0)if(_e)if(ie(nt)){for(_e=0;_e<nt.length;_e++)x(nt[_e]);Object.freeze&&Object.freeze(nt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(nt);if(X.call(ve,"key")){nt=s(G);var $t=Object.keys(ve).filter(function(Mt){return Mt!=="key"});_e=0<$t.length?"{key: someKey, "+$t.join(": ..., ")+": ...}":"{key: someKey}",xe[nt+_e]||($t=0<$t.length?"{"+$t.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
14
+ let props = %s;
15
+ <%s {...props} />
16
+ React keys must be passed directly to JSX without using spread:
17
+ let props = %s;
18
+ <%s key={someKey} {...props} />`,_e,nt,$t,nt),xe[nt+_e]=!0)}if(nt=null,je!==void 0&&(l(je),nt=""+je),h(ve)&&(l(ve.key),nt=""+ve.key),"key"in ve){je={};for(var Se in ve)Se!=="key"&&(je[Se]=ve[Se])}else je=ve;return nt&&g(je,typeof G=="function"?G.displayName||G.name||"Unknown":G),y(G,nt,je,u(),mt,Rt)}function x(G){N(G)?G._store&&(G._store.validated=1):typeof G=="object"&&G!==null&&G.$$typeof===P&&(G._payload.status==="fulfilled"?N(G._payload.value)&&G._payload.value._store&&(G._payload.value._store.validated=1):G._store&&(G._store.validated=1))}function N(G){return typeof G=="object"&&G!==null&&G.$$typeof===k}var R=iu(),k=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),ue=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),me=Symbol.for("react.client.reference"),W=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,ie=Array.isArray,Ee=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(G){return G()}};var J,de={},ge=R.react_stack_bottom_frame.bind(R,d)(),K=Ee(c(d)),xe={};_f.Fragment=L,_f.jsxDEV=function(G,ve,je,_e){var mt=1e4>W.recentlyCreatedOwnerStacks++;return D(G,ve,je,_e,mt?Error("react-stack-top-frame"):ge,mt?Ee(c(G)):K)}})(),_f}var G1;function n_(){return G1||(G1=1,_g.exports=a_()),_g.exports}var m=n_();const Fe=s=>typeof s=="string",Yc=()=>{let s,o;const l=new Promise((c,u)=>{s=c,o=u});return l.resolve=s,l.reject=o,l},I1=s=>s==null?"":""+s,s_=(s,o,l)=>{s.forEach(c=>{o[c]&&(l[c]=o[c])})},o_=/###/g,F1=s=>s&&s.indexOf("###")>-1?s.replace(o_,"."):s,X1=s=>!s||Fe(s),Kc=(s,o,l)=>{const c=Fe(o)?o.split("."):o;let u=0;for(;u<c.length-1;){if(X1(s))return{};const d=F1(c[u]);!s[d]&&l&&(s[d]=new l),Object.prototype.hasOwnProperty.call(s,d)?s=s[d]:s={},++u}return X1(s)?{}:{obj:s,k:F1(c[u])}},Q1=(s,o,l)=>{const{obj:c,k:u}=Kc(s,o,Object);if(c!==void 0||o.length===1){c[u]=l;return}let d=o[o.length-1],h=o.slice(0,o.length-1),g=Kc(s,h,Object);for(;g.obj===void 0&&h.length;)d=`${h[h.length-1]}.${d}`,h=h.slice(0,h.length-1),g=Kc(s,h,Object),g?.obj&&typeof g.obj[`${g.k}.${d}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${d}`]=l},r_=(s,o,l,c)=>{const{obj:u,k:d}=Kc(s,o,Object);u[d]=u[d]||[],u[d].push(l)},Lf=(s,o)=>{const{obj:l,k:c}=Kc(s,o);if(l&&Object.prototype.hasOwnProperty.call(l,c))return l[c]},i_=(s,o,l)=>{const c=Lf(s,l);return c!==void 0?c:Lf(o,l)},hw=(s,o,l)=>{for(const c in o)c!=="__proto__"&&c!=="constructor"&&(c in s?Fe(s[c])||s[c]instanceof String||Fe(o[c])||o[c]instanceof String?l&&(s[c]=o[c]):hw(s[c],o[c],l):s[c]=o[c]);return s},ei=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var l_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const c_=s=>Fe(s)?s.replace(/[&<>"'\/]/g,o=>l_[o]):s;class u_{constructor(o){this.capacity=o,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(o){const l=this.regExpMap.get(o);if(l!==void 0)return l;const c=new RegExp(o);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(o,c),this.regExpQueue.push(o),c}}const d_=[" ",",","?","!",";"],f_=new u_(20),m_=(s,o,l)=>{o=o||"",l=l||"";const c=d_.filter(h=>o.indexOf(h)<0&&l.indexOf(h)<0);if(c.length===0)return!0;const u=f_.getRegExp(`(${c.map(h=>h==="?"?"\\?":h).join("|")})`);let d=!u.test(s);if(!d){const h=s.indexOf(l);h>0&&!u.test(s.substring(0,h))&&(d=!0)}return d},Qg=(s,o,l=".")=>{if(!s)return;if(s[o])return Object.prototype.hasOwnProperty.call(s,o)?s[o]:void 0;const c=o.split(l);let u=s;for(let d=0;d<c.length;){if(!u||typeof u!="object")return;let h,g="";for(let b=d;b<c.length;++b)if(b!==d&&(g+=l),g+=c[b],h=u[g],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&b<c.length-1)continue;d+=b-d+1;break}u=h}return u},tu=s=>s?.replace("_","-"),p_={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,o){console?.[s]?.apply?.(console,o)}};class Hf{constructor(o,l={}){this.init(o,l)}init(o,l={}){this.prefix=l.prefix||"i18next:",this.logger=o||p_,this.options=l,this.debug=l.debug}log(...o){return this.forward(o,"log","",!0)}warn(...o){return this.forward(o,"warn","",!0)}error(...o){return this.forward(o,"error","")}deprecate(...o){return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(o,l,c,u){return u&&!this.debug?null:(Fe(o[0])&&(o[0]=`${c}${this.prefix} ${o[0]}`),this.logger[l](o))}create(o){return new Hf(this.logger,{prefix:`${this.prefix}:${o}:`,...this.options})}clone(o){return o=o||this.options,o.prefix=o.prefix||this.prefix,new Hf(this.logger,o)}}var Ys=new Hf;class qf{constructor(){this.observers={}}on(o,l){return o.split(" ").forEach(c=>{this.observers[c]||(this.observers[c]=new Map);const u=this.observers[c].get(l)||0;this.observers[c].set(l,u+1)}),this}off(o,l){if(this.observers[o]){if(!l){delete this.observers[o];return}this.observers[o].delete(l)}}emit(o,...l){this.observers[o]&&Array.from(this.observers[o].entries()).forEach(([u,d])=>{for(let h=0;h<d;h++)u(...l)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([u,d])=>{for(let h=0;h<d;h++)u.apply(u,[o,...l])})}}class Z1 extends qf{constructor(o,l={ns:["translation"],defaultNS:"translation"}){super(),this.data=o||{},this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}removeNamespaces(o){const l=this.options.ns.indexOf(o);l>-1&&this.options.ns.splice(l,1)}getResource(o,l,c,u={}){const d=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,h=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;o.indexOf(".")>-1?g=o.split("."):(g=[o,l],c&&(Array.isArray(c)?g.push(...c):Fe(c)&&d?g.push(...c.split(d)):g.push(c)));const b=Lf(this.data,g);return!b&&!l&&!c&&o.indexOf(".")>-1&&(o=g[0],l=g[1],c=g.slice(2).join(".")),b||!h||!Fe(c)?b:Qg(this.data?.[o]?.[l],c,d)}addResource(o,l,c,u,d={silent:!1}){const h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let g=[o,l];c&&(g=g.concat(h?c.split(h):c)),o.indexOf(".")>-1&&(g=o.split("."),u=l,l=g[1]),this.addNamespaces(l),Q1(this.data,g,u),d.silent||this.emit("added",o,l,c,u)}addResources(o,l,c,u={silent:!1}){for(const d in c)(Fe(c[d])||Array.isArray(c[d]))&&this.addResource(o,l,d,c[d],{silent:!0});u.silent||this.emit("added",o,l,c)}addResourceBundle(o,l,c,u,d,h={silent:!1,skipCopy:!1}){let g=[o,l];o.indexOf(".")>-1&&(g=o.split("."),u=c,c=l,l=g[1]),this.addNamespaces(l);let b=Lf(this.data,g)||{};h.skipCopy||(c=JSON.parse(JSON.stringify(c))),u?hw(b,c,d):b={...b,...c},Q1(this.data,g,b),h.silent||this.emit("added",o,l,c)}removeResourceBundle(o,l){this.hasResourceBundle(o,l)&&delete this.data[o][l],this.removeNamespaces(l),this.emit("removed",o,l)}hasResourceBundle(o,l){return this.getResource(o,l)!==void 0}getResourceBundle(o,l){return l||(l=this.options.defaultNS),this.getResource(o,l)}getDataByLanguage(o){return this.data[o]}hasLanguageSomeTranslations(o){const l=this.getDataByLanguage(o);return!!(l&&Object.keys(l)||[]).find(u=>l[u]&&Object.keys(l[u]).length>0)}toJSON(){return this.data}}var gw={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,o,l,c,u){return s.forEach(d=>{o=this.processors[d]?.process(o,l,c,u)??o}),o}};const bw=Symbol("i18next/PATH_KEY");function h_(){const s=[],o=Object.create(null);let l;return o.get=(c,u)=>(l?.revoke?.(),u===bw?s:(s.push(u),l=Proxy.revocable(c,o),l.proxy)),Proxy.revocable(Object.create(null),o).proxy}function Zg(s,o){const{[bw]:l}=s(h_());return l.join(o?.keySeparator??".")}const P1={},Ug=s=>!Fe(s)&&typeof s!="boolean"&&typeof s!="number";class Bf extends qf{constructor(o,l={}){super(),s_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ys.create("translator")}changeLanguage(o){o&&(this.language=o)}exists(o,l={interpolation:{}}){const c={...l};if(o==null)return!1;const u=this.resolve(o,c);if(u?.res===void 0)return!1;const d=Ug(u.res);return!(c.returnObjects===!1&&d)}extractFromKey(o,l){let c=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let d=l.ns||this.options.defaultNS||[];const h=c&&o.indexOf(c)>-1,g=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!m_(o,c,u);if(h&&!g){const b=o.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:o,namespaces:Fe(d)?[d]:d};const y=o.split(c);(c!==u||c===u&&this.options.ns.indexOf(y[0])>-1)&&(d=y.shift()),o=y.join(u)}return{key:o,namespaces:Fe(d)?[d]:d}}translate(o,l,c){let u=typeof l=="object"?{...l}:l;if(typeof u!="object"&&this.options.overloadTranslationOptionHandler&&(u=this.options.overloadTranslationOptionHandler(arguments)),typeof u=="object"&&(u={...u}),u||(u={}),o==null)return"";typeof o=="function"&&(o=Zg(o,{...this.options,...u})),Array.isArray(o)||(o=[String(o)]);const d=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,h=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:g,namespaces:b}=this.extractFromKey(o[o.length-1],u),y=b[b.length-1];let D=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;D===void 0&&(D=":");const x=u.lng||this.language,N=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(x?.toLowerCase()==="cimode")return N?d?{res:`${y}${D}${g}`,usedKey:g,exactUsedKey:g,usedLng:x,usedNS:y,usedParams:this.getUsedParamsDetails(u)}:`${y}${D}${g}`:d?{res:g,usedKey:g,exactUsedKey:g,usedLng:x,usedNS:y,usedParams:this.getUsedParamsDetails(u)}:g;const R=this.resolve(o,u);let k=R?.res;const B=R?.usedKey||g,L=R?.exactUsedKey||g,F=["[object Number]","[object Function]","[object RegExp]"],Q=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,ee=!this.i18nFormat||this.i18nFormat.handleAsObject,ue=u.count!==void 0&&!Fe(u.count),re=Bf.hasDefaultValue(u),ne=ue?this.pluralResolver.getSuffix(x,u.count,u):"",te=u.ordinal&&ue?this.pluralResolver.getSuffix(x,u.count,{ordinal:!1}):"",_=ue&&!u.ordinal&&u.count===0,P=_&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${ne}`]||u[`defaultValue${te}`]||u.defaultValue;let H=k;ee&&!k&&re&&(H=P);const me=Ug(H),W=Object.prototype.toString.apply(H);if(ee&&H&&me&&F.indexOf(W)<0&&!(Fe(Q)&&Array.isArray(H))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const X=this.options.returnedObjectHandler?this.options.returnedObjectHandler(B,H,{...u,ns:b}):`key '${g} (${this.language})' returned an object instead of string.`;return d?(R.res=X,R.usedParams=this.getUsedParamsDetails(u),R):X}if(h){const X=Array.isArray(H),ie=X?[]:{},Ee=X?L:B;for(const J in H)if(Object.prototype.hasOwnProperty.call(H,J)){const de=`${Ee}${h}${J}`;re&&!k?ie[J]=this.translate(de,{...u,defaultValue:Ug(P)?P[J]:void 0,joinArrays:!1,ns:b}):ie[J]=this.translate(de,{...u,joinArrays:!1,ns:b}),ie[J]===de&&(ie[J]=H[J])}k=ie}}else if(ee&&Fe(Q)&&Array.isArray(k))k=k.join(Q),k&&(k=this.extendTranslation(k,o,u,c));else{let X=!1,ie=!1;!this.isValidLookup(k)&&re&&(X=!0,k=P),this.isValidLookup(k)||(ie=!0,k=g);const J=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ie?void 0:k,de=re&&P!==k&&this.options.updateMissing;if(ie||X||de){if(this.logger.log(de?"updateKey":"missingKey",x,y,g,de?P:k),h){const G=this.resolve(g,{...u,keySeparator:!1});G&&G.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ge=[];const K=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&K&&K[0])for(let G=0;G<K.length;G++)ge.push(K[G]);else this.options.saveMissingTo==="all"?ge=this.languageUtils.toResolveHierarchy(u.lng||this.language):ge.push(u.lng||this.language);const xe=(G,ve,je)=>{const _e=re&&je!==k?je:J;this.options.missingKeyHandler?this.options.missingKeyHandler(G,y,ve,_e,de,u):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(G,y,ve,_e,de,u),this.emit("missingKey",G,y,ve,k)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ue?ge.forEach(G=>{const ve=this.pluralResolver.getSuffixes(G,u);_&&u[`defaultValue${this.options.pluralSeparator}zero`]&&ve.indexOf(`${this.options.pluralSeparator}zero`)<0&&ve.push(`${this.options.pluralSeparator}zero`),ve.forEach(je=>{xe([G],g+je,u[`defaultValue${je}`]||P)})}):xe(ge,g,P))}k=this.extendTranslation(k,o,u,R,c),ie&&k===g&&this.options.appendNamespaceToMissingKey&&(k=`${y}${D}${g}`),(ie||X)&&this.options.parseMissingKeyHandler&&(k=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${y}${D}${g}`:g,X?k:void 0,u))}return d?(R.res=k,R.usedParams=this.getUsedParamsDetails(u),R):k}extendTranslation(o,l,c,u,d){if(this.i18nFormat?.parse)o=this.i18nFormat.parse(o,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init({...c,interpolation:{...this.options.interpolation,...c.interpolation}});const b=Fe(o)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let y;if(b){const x=o.match(this.interpolator.nestingRegexp);y=x&&x.length}let D=c.replace&&!Fe(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(D={...this.options.interpolation.defaultVariables,...D}),o=this.interpolator.interpolate(o,D,c.lng||this.language||u.usedLng,c),b){const x=o.match(this.interpolator.nestingRegexp),N=x&&x.length;y<N&&(c.nest=!1)}!c.lng&&u&&u.res&&(c.lng=this.language||u.usedLng),c.nest!==!1&&(o=this.interpolator.nest(o,(...x)=>d?.[0]===x[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${l[0]}`),null):this.translate(...x,l),c)),c.interpolation&&this.interpolator.reset()}const h=c.postProcess||this.options.postProcess,g=Fe(h)?[h]:h;return o!=null&&g?.length&&c.applyPostProcessor!==!1&&(o=gw.handle(g,o,l,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),o}resolve(o,l={}){let c,u,d,h,g;return Fe(o)&&(o=[o]),o.forEach(b=>{if(this.isValidLookup(c))return;const y=this.extractFromKey(b,l),D=y.key;u=D;let x=y.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const N=l.count!==void 0&&!Fe(l.count),R=N&&!l.ordinal&&l.count===0,k=l.context!==void 0&&(Fe(l.context)||typeof l.context=="number")&&l.context!=="",B=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);x.forEach(L=>{this.isValidLookup(c)||(g=L,!P1[`${B[0]}-${L}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(g)&&(P1[`${B[0]}-${L}`]=!0,this.logger.warn(`key "${u}" for languages "${B.join(", ")}" won't get resolved as namespace "${g}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),B.forEach(F=>{if(this.isValidLookup(c))return;h=F;const Q=[D];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(Q,D,F,L,l);else{let ue;N&&(ue=this.pluralResolver.getSuffix(F,l.count,l));const re=`${this.options.pluralSeparator}zero`,ne=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(N&&(l.ordinal&&ue.indexOf(ne)===0&&Q.push(D+ue.replace(ne,this.options.pluralSeparator)),Q.push(D+ue),R&&Q.push(D+re)),k){const te=`${D}${this.options.contextSeparator||"_"}${l.context}`;Q.push(te),N&&(l.ordinal&&ue.indexOf(ne)===0&&Q.push(te+ue.replace(ne,this.options.pluralSeparator)),Q.push(te+ue),R&&Q.push(te+re))}}let ee;for(;ee=Q.pop();)this.isValidLookup(c)||(d=ee,c=this.getResource(F,L,ee,l))}))})}),{res:c,usedKey:u,exactUsedKey:d,usedLng:h,usedNS:g}}isValidLookup(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}getResource(o,l,c,u={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(o,l,c,u):this.resourceStore.getResource(o,l,c,u)}getUsedParamsDetails(o={}){const l=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=o.replace&&!Fe(o.replace);let u=c?o.replace:o;if(c&&typeof o.count<"u"&&(u.count=o.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!c){u={...u};for(const d of l)delete u[d]}return u}static hasDefaultValue(o){const l="defaultValue";for(const c in o)if(Object.prototype.hasOwnProperty.call(o,c)&&l===c.substring(0,l.length)&&o[c]!==void 0)return!0;return!1}}class J1{constructor(o){this.options=o,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ys.create("languageUtils")}getScriptPartFromCode(o){if(o=tu(o),!o||o.indexOf("-")<0)return null;const l=o.split("-");return l.length===2||(l.pop(),l[l.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(o){if(o=tu(o),!o||o.indexOf("-")<0)return o;const l=o.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(o){if(Fe(o)&&o.indexOf("-")>-1){let l;try{l=Intl.getCanonicalLocales(o)[0]}catch{}return l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l||(this.options.lowerCaseLng?o.toLowerCase():o)}return this.options.cleanCode||this.options.lowerCaseLng?o.toLowerCase():o}isSupportedCode(o){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(o=this.getLanguagePartFromCode(o)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(o)>-1}getBestMatchFromCodes(o){if(!o)return null;let l;return o.forEach(c=>{if(l)return;const u=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(u))&&(l=u)}),!l&&this.options.supportedLngs&&o.forEach(c=>{if(l)return;const u=this.getScriptPartFromCode(c);if(this.isSupportedCode(u))return l=u;const d=this.getLanguagePartFromCode(c);if(this.isSupportedCode(d))return l=d;l=this.options.supportedLngs.find(h=>{if(h===d)return h;if(!(h.indexOf("-")<0&&d.indexOf("-")<0)&&(h.indexOf("-")>0&&d.indexOf("-")<0&&h.substring(0,h.indexOf("-"))===d||h.indexOf(d)===0&&d.length>1))return h})}),l||(l=this.getFallbackCodes(this.options.fallbackLng)[0]),l}getFallbackCodes(o,l){if(!o)return[];if(typeof o=="function"&&(o=o(l)),Fe(o)&&(o=[o]),Array.isArray(o))return o;if(!l)return o.default||[];let c=o[l];return c||(c=o[this.getScriptPartFromCode(l)]),c||(c=o[this.formatLanguageCode(l)]),c||(c=o[this.getLanguagePartFromCode(l)]),c||(c=o.default),c||[]}toResolveHierarchy(o,l){const c=this.getFallbackCodes((l===!1?[]:l)||this.options.fallbackLng||[],o),u=[],d=h=>{h&&(this.isSupportedCode(h)?u.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return Fe(o)&&(o.indexOf("-")>-1||o.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(o)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(o)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(o))):Fe(o)&&d(this.formatLanguageCode(o)),c.forEach(h=>{u.indexOf(h)<0&&d(this.formatLanguageCode(h))}),u}}const K1={zero:0,one:1,two:2,few:3,many:4,other:5},W1={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class g_{constructor(o,l={}){this.languageUtils=o,this.options=l,this.logger=Ys.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(o,l={}){const c=tu(o==="dev"?"en":o),u=l.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:c,type:u});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let h;try{h=new Intl.PluralRules(c,{type:u})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),W1;if(!o.match(/-|_/))return W1;const b=this.languageUtils.getLanguagePartFromCode(o);h=this.getRule(b,l)}return this.pluralRulesCache[d]=h,h}needsPlural(o,l={}){let c=this.getRule(o,l);return c||(c=this.getRule("dev",l)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(o,l,c={}){return this.getSuffixes(o,c).map(u=>`${l}${u}`)}getSuffixes(o,l={}){let c=this.getRule(o,l);return c||(c=this.getRule("dev",l)),c?c.resolvedOptions().pluralCategories.sort((u,d)=>K1[u]-K1[d]).map(u=>`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(o,l,c={}){const u=this.getRule(o,c);return u?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${u.select(l)}`:(this.logger.warn(`no plural rule found for: ${o}`),this.getSuffix("dev",l,c))}}const eS=(s,o,l,c=".",u=!0)=>{let d=i_(s,o,l);return!d&&u&&Fe(l)&&(d=Qg(s,l,c),d===void 0&&(d=Qg(o,l,c))),d},Cg=s=>s.replace(/\$/g,"$$$$");class tS{constructor(o={}){this.logger=Ys.create("interpolator"),this.options=o,this.format=o?.interpolation?.format||(l=>l),this.init(o)}init(o={}){o.interpolation||(o.interpolation={escapeValue:!0});const{escape:l,escapeValue:c,useRawValueToEscape:u,prefix:d,prefixEscaped:h,suffix:g,suffixEscaped:b,formatSeparator:y,unescapeSuffix:D,unescapePrefix:x,nestingPrefix:N,nestingPrefixEscaped:R,nestingSuffix:k,nestingSuffixEscaped:B,nestingOptionsSeparator:L,maxReplaces:F,alwaysFormat:Q}=o.interpolation;this.escape=l!==void 0?l:c_,this.escapeValue=c!==void 0?c:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=d?ei(d):h||"{{",this.suffix=g?ei(g):b||"}}",this.formatSeparator=y||",",this.unescapePrefix=D?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":D||"",this.nestingPrefix=N?ei(N):R||ei("$t("),this.nestingSuffix=k?ei(k):B||ei(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=F||1e3,this.alwaysFormat=Q!==void 0?Q:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const o=(l,c)=>l?.source===c?(l.lastIndex=0,l):new RegExp(c,"g");this.regexp=o(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=o(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=o(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(o,l,c,u){let d,h,g;const b=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},y=R=>{if(R.indexOf(this.formatSeparator)<0){const F=eS(l,b,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(F,void 0,c,{...u,...l,interpolationkey:R}):F}const k=R.split(this.formatSeparator),B=k.shift().trim(),L=k.join(this.formatSeparator).trim();return this.format(eS(l,b,B,this.options.keySeparator,this.options.ignoreJSONStructure),L,c,{...u,...l,interpolationkey:B})};this.resetRegExp();const D=u?.missingInterpolationHandler||this.options.missingInterpolationHandler,x=u?.interpolation?.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>Cg(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?Cg(this.escape(R)):Cg(R)}].forEach(R=>{for(g=0;d=R.regex.exec(o);){const k=d[1].trim();if(h=y(k),h===void 0)if(typeof D=="function"){const L=D(o,d,u);h=Fe(L)?L:""}else if(u&&Object.prototype.hasOwnProperty.call(u,k))h="";else if(x){h=d[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${o}`),h="";else!Fe(h)&&!this.useRawValueToEscape&&(h=I1(h));const B=R.safeValue(h);if(o=o.replace(d[0],B),x?(R.regex.lastIndex+=h.length,R.regex.lastIndex-=d[0].length):R.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),o}nest(o,l,c={}){let u,d,h;const g=(b,y)=>{const D=this.nestingOptionsSeparator;if(b.indexOf(D)<0)return b;const x=b.split(new RegExp(`${ei(D)}[ ]*{`));let N=`{${x[1]}`;b=x[0],N=this.interpolate(N,h);const R=N.match(/'/g),k=N.match(/"/g);((R?.length??0)%2===0&&!k||(k?.length??0)%2!==0)&&(N=N.replace(/'/g,'"'));try{h=JSON.parse(N),y&&(h={...y,...h})}catch(B){return this.logger.warn(`failed parsing options string in nesting for key ${b}`,B),`${b}${D}${N}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,b};for(;u=this.nestingRegexp.exec(o);){let b=[];h={...c},h=h.replace&&!Fe(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const y=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(y!==-1&&(b=u[1].slice(y).split(this.formatSeparator).map(D=>D.trim()).filter(Boolean),u[1]=u[1].slice(0,y)),d=l(g.call(this,u[1].trim(),h),h),d&&u[0]===o&&!Fe(d))return d;Fe(d)||(d=I1(d)),d||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${o}`),d=""),b.length&&(d=b.reduce((D,x)=>this.format(D,x,c.lng,{...c,interpolationkey:u[1].trim()}),d.trim())),o=o.replace(u[0],d),this.regexp.lastIndex=0}return o}}const b_=s=>{let o=s.toLowerCase().trim();const l={};if(s.indexOf("(")>-1){const c=s.split("(");o=c[0].toLowerCase().trim();const u=c[1].substring(0,c[1].length-1);o==="currency"&&u.indexOf(":")<0?l.currency||(l.currency=u.trim()):o==="relativetime"&&u.indexOf(":")<0?l.range||(l.range=u.trim()):u.split(";").forEach(h=>{if(h){const[g,...b]=h.split(":"),y=b.join(":").trim().replace(/^'+|'+$/g,""),D=g.trim();l[D]||(l[D]=y),y==="false"&&(l[D]=!1),y==="true"&&(l[D]=!0),isNaN(y)||(l[D]=parseInt(y,10))}})}return{formatName:o,formatOptions:l}},aS=s=>{const o={};return(l,c,u)=>{let d=u;u&&u.interpolationkey&&u.formatParams&&u.formatParams[u.interpolationkey]&&u[u.interpolationkey]&&(d={...d,[u.interpolationkey]:void 0});const h=c+JSON.stringify(d);let g=o[h];return g||(g=s(tu(c),u),o[h]=g),g(l)}},y_=s=>(o,l,c)=>s(tu(l),c)(o);class v_{constructor(o={}){this.logger=Ys.create("formatter"),this.options=o,this.init(o)}init(o,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const c=l.cacheInBuiltFormats?aS:y_;this.formats={number:c((u,d)=>{const h=new Intl.NumberFormat(u,{...d});return g=>h.format(g)}),currency:c((u,d)=>{const h=new Intl.NumberFormat(u,{...d,style:"currency"});return g=>h.format(g)}),datetime:c((u,d)=>{const h=new Intl.DateTimeFormat(u,{...d});return g=>h.format(g)}),relativetime:c((u,d)=>{const h=new Intl.RelativeTimeFormat(u,{...d});return g=>h.format(g,d.range||"day")}),list:c((u,d)=>{const h=new Intl.ListFormat(u,{...d});return g=>h.format(g)})}}add(o,l){this.formats[o.toLowerCase().trim()]=l}addCached(o,l){this.formats[o.toLowerCase().trim()]=aS(l)}format(o,l,c,u={}){const d=l.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&d[0].indexOf(")")<0&&d.find(g=>g.indexOf(")")>-1)){const g=d.findIndex(b=>b.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,g)].join(this.formatSeparator)}return d.reduce((g,b)=>{const{formatName:y,formatOptions:D}=b_(b);if(this.formats[y]){let x=g;try{const N=u?.formatParams?.[u.interpolationkey]||{},R=N.locale||N.lng||u.locale||u.lng||c;x=this.formats[y](g,R,{...D,...u,...N})}catch(N){this.logger.warn(N)}return x}else this.logger.warn(`there was no format function for ${y}`);return g},o)}}const x_=(s,o)=>{s.pending[o]!==void 0&&(delete s.pending[o],s.pendingCount--)};class N_ extends qf{constructor(o,l,c,u={}){super(),this.backend=o,this.store=l,this.services=c,this.languageUtils=c.languageUtils,this.options=u,this.logger=Ys.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,u.backend,u)}queueLoad(o,l,c,u){const d={},h={},g={},b={};return o.forEach(y=>{let D=!0;l.forEach(x=>{const N=`${y}|${x}`;!c.reload&&this.store.hasResourceBundle(y,x)?this.state[N]=2:this.state[N]<0||(this.state[N]===1?h[N]===void 0&&(h[N]=!0):(this.state[N]=1,D=!1,h[N]===void 0&&(h[N]=!0),d[N]===void 0&&(d[N]=!0),b[x]===void 0&&(b[x]=!0)))}),D||(g[y]=!0)}),(Object.keys(d).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(d),pending:Object.keys(h),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(b)}}loaded(o,l,c){const u=o.split("|"),d=u[0],h=u[1];l&&this.emit("failedLoading",d,h,l),!l&&c&&this.store.addResourceBundle(d,h,c,void 0,void 0,{skipCopy:!0}),this.state[o]=l?-1:2,l&&c&&(this.state[o]=0);const g={};this.queue.forEach(b=>{r_(b.loaded,[d],h),x_(b,o),l&&b.errors.push(l),b.pendingCount===0&&!b.done&&(Object.keys(b.loaded).forEach(y=>{g[y]||(g[y]={});const D=b.loaded[y];D.length&&D.forEach(x=>{g[y][x]===void 0&&(g[y][x]=!0)})}),b.done=!0,b.errors.length?b.callback(b.errors):b.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(b=>!b.done)}read(o,l,c,u=0,d=this.retryTimeout,h){if(!o.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:l,fcName:c,tried:u,wait:d,callback:h});return}this.readingCalls++;const g=(y,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(y&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,o,l,c,u+1,d*2,h)},d);return}h(y,D)},b=this.backend[c].bind(this.backend);if(b.length===2){try{const y=b(o,l);y&&typeof y.then=="function"?y.then(D=>g(null,D)).catch(g):g(null,y)}catch(y){g(y)}return}return b(o,l,g)}prepareLoading(o,l,c={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();Fe(o)&&(o=this.languageUtils.toResolveHierarchy(o)),Fe(l)&&(l=[l]);const d=this.queueLoad(o,l,c,u);if(!d.toLoad.length)return d.pending.length||u(),null;d.toLoad.forEach(h=>{this.loadOne(h)})}load(o,l,c){this.prepareLoading(o,l,{},c)}reload(o,l,c){this.prepareLoading(o,l,{reload:!0},c)}loadOne(o,l=""){const c=o.split("|"),u=c[0],d=c[1];this.read(u,d,"read",void 0,void 0,(h,g)=>{h&&this.logger.warn(`${l}loading namespace ${d} for language ${u} failed`,h),!h&&g&&this.logger.log(`${l}loaded namespace ${d} for language ${u}`,g),this.loaded(o,h,g)})}saveMissing(o,l,c,u,d,h={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(l)){this.logger.warn(`did not save key "${c}" as the namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if(this.backend?.create){const b={...h,isUpdate:d},y=this.backend.create.bind(this.backend);if(y.length<6)try{let D;y.length===5?D=y(o,l,c,u,b):D=y(o,l,c,u),D&&typeof D.then=="function"?D.then(x=>g(null,x)).catch(g):g(null,D)}catch(D){g(D)}else y(o,l,c,u,g,b)}!o||!o[0]||this.store.addResource(o[0],l,c,u)}}}const Tg=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let o={};if(typeof s[1]=="object"&&(o=s[1]),Fe(s[1])&&(o.defaultValue=s[1]),Fe(s[2])&&(o.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const l=s[3]||s[2];Object.keys(l).forEach(c=>{o[c]=l[c]})}return o},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),nS=s=>(Fe(s.ns)&&(s.ns=[s.ns]),Fe(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),Fe(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs?.indexOf?.("cimode")<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),typeof s.initImmediate=="boolean"&&(s.initAsync=s.initImmediate),s),kf=()=>{},S_=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(l=>{typeof s[l]=="function"&&(s[l]=s[l].bind(s))})},yw="__i18next_supportNoticeShown",w_=()=>typeof globalThis<"u"&&!!globalThis[yw],E_=()=>{typeof globalThis<"u"&&(globalThis[yw]=!0)},D_=s=>!!(s?.modules?.backend?.name?.indexOf("Locize")>0||s?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||s?.options?.backend?.backends&&s.options.backend.backends.some(o=>o?.name?.indexOf("Locize")>0||o?.constructor?.name?.indexOf("Locize")>0)||s?.options?.backend?.projectId||s?.options?.backend?.backendOptions&&s.options.backend.backendOptions.some(o=>o?.projectId));class Wc extends qf{constructor(o={},l){if(super(),this.options=nS(o),this.services={},this.logger=Ys,this.modules={external:[]},S_(this),l&&!this.isInitialized&&!o.isClone){if(!this.options.initAsync)return this.init(o,l),this;setTimeout(()=>{this.init(o,l)},0)}}init(o={},l){this.isInitializing=!0,typeof o=="function"&&(l=o,o={}),o.defaultNS==null&&o.ns&&(Fe(o.ns)?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const c=Tg();this.options={...c,...this.options,...nS(o)},this.options.interpolation={...c.interpolation,...this.options.interpolation},o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!D_(this)&&!w_()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),E_());const u=y=>y?typeof y=="function"?new y:y:null;if(!this.options.isClone){this.modules.logger?Ys.init(u(this.modules.logger),this.options):Ys.init(null,this.options);let y;this.modules.formatter?y=this.modules.formatter:y=v_;const D=new J1(this.options);this.store=new Z1(this.options.resources,this.options);const x=this.services;x.logger=Ys,x.resourceStore=this.store,x.languageUtils=D,x.pluralResolver=new g_(D,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),y&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(x.formatter=u(y),x.formatter.init&&x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new tS(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new N_(u(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(R,...k)=>{this.emit(R,...k)}),this.modules.languageDetector&&(x.languageDetector=u(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=u(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new Bf(this.services,this.options),this.translator.on("*",(R,...k)=>{this.emit(R,...k)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,l||(l=kf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const y=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);y.length>0&&y[0]!=="dev"&&(this.options.lng=y[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(y=>{this[y]=(...D)=>this.store[y](...D)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(y=>{this[y]=(...D)=>(this.store[y](...D),this)});const g=Yc(),b=()=>{const y=(D,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(x),l(D,x)};if(this.languages&&!this.isInitialized)return y(null,this.t.bind(this));this.changeLanguage(this.options.lng,y)};return this.options.resources||!this.options.initAsync?b():setTimeout(b,0),g}loadResources(o,l=kf){let c=l;const u=Fe(o)?o:this.language;if(typeof o=="function"&&(c=o),!this.options.resources||this.options.partialBundledLanguages){if(u?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const d=[],h=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(y=>{y!=="cimode"&&d.indexOf(y)<0&&d.push(y)})};u?h(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>h(b)),this.options.preload?.forEach?.(g=>h(g)),this.services.backendConnector.load(d,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(g)})}else c(null)}reloadResources(o,l,c){const u=Yc();return typeof o=="function"&&(c=o,o=void 0),typeof l=="function"&&(c=l,l=void 0),o||(o=this.languages),l||(l=this.options.ns),c||(c=kf),this.services.backendConnector.reload(o,l,d=>{u.resolve(),c(d)}),u}use(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&gw.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}setResolvedLanguage(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1)){for(let l=0;l<this.languages.length;l++){const c=this.languages[l];if(!(["cimode","dev"].indexOf(c)>-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}!this.resolvedLanguage&&this.languages.indexOf(o)<0&&this.store.hasLanguageSomeTranslations(o)&&(this.resolvedLanguage=o,this.languages.unshift(o))}}changeLanguage(o,l){this.isLanguageChangingTo=o;const c=Yc();this.emit("languageChanging",o);const u=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},d=(g,b)=>{b?this.isLanguageChangingTo===o&&(u(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,c.resolve((...y)=>this.t(...y)),l&&l(g,(...y)=>this.t(...y))},h=g=>{!o&&!g&&this.services.languageDetector&&(g=[]);const b=Fe(g)?g:g&&g[0],y=this.store.hasLanguageSomeTranslations(b)?b:this.services.languageUtils.getBestMatchFromCodes(Fe(g)?[g]:g);y&&(this.language||u(y),this.translator.language||this.translator.changeLanguage(y),this.services.languageDetector?.cacheUserLanguage?.(y)),this.loadResources(y,D=>{d(D,y)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(o),c}getFixedT(o,l,c){const u=(d,h,...g)=>{let b;typeof h!="object"?b=this.options.overloadTranslationOptionHandler([d,h].concat(g)):b={...h},b.lng=b.lng||u.lng,b.lngs=b.lngs||u.lngs,b.ns=b.ns||u.ns,b.keyPrefix!==""&&(b.keyPrefix=b.keyPrefix||c||u.keyPrefix);const y=this.options.keySeparator||".";let D;return b.keyPrefix&&Array.isArray(d)?D=d.map(x=>(typeof x=="function"&&(x=Zg(x,{...this.options,...h})),`${b.keyPrefix}${y}${x}`)):(typeof d=="function"&&(d=Zg(d,{...this.options,...h})),D=b.keyPrefix?`${b.keyPrefix}${y}${d}`:d),this.t(D,b)};return Fe(o)?u.lng=o:u.lngs=o,u.ns=l,u.keyPrefix=c,u}t(...o){return this.translator?.translate(...o)}exists(...o){return this.translator?.exists(...o)}setDefaultNamespace(o){this.options.defaultNS=o}hasLoadedNamespace(o,l={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=l.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const h=(g,b)=>{const y=this.services.backendConnector.state[`${g}|${b}`];return y===-1||y===0||y===2};if(l.precheck){const g=l.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(c,o)&&(!u||h(d,o)))}loadNamespaces(o,l){const c=Yc();return this.options.ns?(Fe(o)&&(o=[o]),o.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{c.resolve(),l&&l(u)}),c):(l&&l(),Promise.resolve())}loadLanguages(o,l){const c=Yc();Fe(o)&&(o=[o]);const u=this.options.preload||[],d=o.filter(h=>u.indexOf(h)<0&&this.services.languageUtils.isSupportedCode(h));return d.length?(this.options.preload=u.concat(d),this.loadResources(h=>{c.resolve(),l&&l(h)}),c):(l&&l(),Promise.resolve())}dir(o){if(o||(o=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!o)return"rtl";try{const u=new Intl.Locale(o);if(u&&u.getTextInfo){const d=u.getTextInfo();if(d&&d.direction)return d.direction}}catch{}const l=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=this.services?.languageUtils||new J1(Tg());return o.toLowerCase().indexOf("-latn")>1?"ltr":l.indexOf(c.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(o={},l){const c=new Wc(o,l);return c.createInstance=Wc.createInstance,c}cloneInstance(o={},l=kf){const c=o.forkResourceStore;c&&delete o.forkResourceStore;const u={...this.options,...o,isClone:!0},d=new Wc(u);if((o.debug!==void 0||o.prefix!==void 0)&&(d.logger=d.logger.clone(o)),["store","services","language"].forEach(g=>{d[g]=this[g]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},c){const g=Object.keys(this.store.data).reduce((b,y)=>(b[y]={...this.store.data[y]},b[y]=Object.keys(b[y]).reduce((D,x)=>(D[x]={...b[y][x]},D),b[y]),b),{});d.store=new Z1(g,u),d.services.resourceStore=d.store}if(o.interpolation){const b={...Tg().interpolation,...this.options.interpolation,...o.interpolation},y={...u,interpolation:b};d.services.interpolator=new tS(y)}return d.translator=new Bf(d.services,u),d.translator.on("*",(g,...b)=>{d.emit(g,...b)}),d.init(u,l),d.translator.options=u,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Fa=Wc.createInstance();Fa.createInstance;Fa.dir;Fa.init;Fa.loadResources;Fa.reloadResources;Fa.use;Fa.changeLanguage;Fa.getFixedT;Fa.t;Fa.exists;Fa.setDefaultNamespace;Fa.hasLoadedNamespace;Fa.loadNamespaces;Fa.loadLanguages;var w=iu();const il=e_(w),R_=WR({__proto__:null,default:il},[w]),__=(s,o,l,c)=>{const u=[l,{code:o,...c||{}}];if(s?.services?.logger?.forward)return s.services.logger.forward(u,"warn","react-i18next::",!0);ai(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),s?.services?.logger?.warn?s.services.logger.warn(...u):console?.warn&&console.warn(...u)},sS={},vw=(s,o,l,c)=>{ai(l)&&sS[l]||(ai(l)&&(sS[l]=new Date),__(s,o,l,c))},xw=(s,o)=>()=>{if(s.isInitialized)o();else{const l=()=>{setTimeout(()=>{s.off("initialized",l)},0),o()};s.on("initialized",l)}},Pg=(s,o,l)=>{s.loadNamespaces(o,xw(s,l))},oS=(s,o,l,c)=>{if(ai(l)&&(l=[l]),s.options.preload&&s.options.preload.indexOf(o)>-1)return Pg(s,l,c);l.forEach(u=>{s.options.ns.indexOf(u)<0&&s.options.ns.push(u)}),s.loadLanguages(o,xw(s,c))},k_=(s,o,l={})=>!o.languages||!o.languages.length?(vw(o,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:o.languages}),!0):o.hasLoadedNamespace(s,{lng:l.lng,precheck:(c,u)=>{if(l.bindI18n&&l.bindI18n.indexOf("languageChanging")>-1&&c.services.backendConnector.backend&&c.isLanguageChangingTo&&!u(c.isLanguageChangingTo,s))return!1}}),ai=s=>typeof s=="string",U_=s=>typeof s=="object"&&s!==null,C_=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,T_={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},j_=s=>T_[s],O_=s=>s.replace(C_,j_);let Jg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:O_,transDefaultProps:void 0};const A_=(s={})=>{Jg={...Jg,...s}},V_=()=>Jg;let Nw;const M_=s=>{Nw=s},z_=()=>Nw,L_={type:"3rdParty",init(s){A_(s.options.react),M_(s)}},H_=w.createContext();class B_{constructor(){this.usedNamespaces={}}addUsedNamespaces(o){o.forEach(l=>{this.usedNamespaces[l]||(this.usedNamespaces[l]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var jg={exports:{}},Og={},rS;function $_(){if(rS)return Og;rS=1;return(function(){function s(R,k){return R===k&&(R!==0||1/R===1/k)||R!==R&&k!==k}function o(R,k){D||u.startTransition===void 0||(D=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var B=k();if(!x){var L=k();d(B,L)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),x=!0)}L=h({inst:{value:B,getSnapshot:k}});var F=L[0].inst,Q=L[1];return b(function(){F.value=B,F.getSnapshot=k,l(F)&&Q({inst:F})},[R,B,k]),g(function(){return l(F)&&Q({inst:F}),R(function(){l(F)&&Q({inst:F})})},[R]),y(B),B}function l(R){var k=R.getSnapshot;R=R.value;try{var B=k();return!d(R,B)}catch{return!0}}function c(R,k){return k()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=iu(),d=typeof Object.is=="function"?Object.is:s,h=u.useState,g=u.useEffect,b=u.useLayoutEffect,y=u.useDebugValue,D=!1,x=!1,N=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;Og.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:N,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Og}var iS;function Y_(){return iS||(iS=1,jg.exports=$_()),jg.exports}var q_=Y_();const G_=(s,o)=>ai(o)?o:U_(o)&&ai(o.defaultValue)?o.defaultValue:Array.isArray(s)?s[s.length-1]:s,I_={t:G_,ready:!1},F_=()=>()=>{},Ge=(s,o={})=>{const{i18n:l}=o,{i18n:c,defaultNS:u}=w.useContext(H_)||{},d=l||c||z_();d&&!d.reportNamespaces&&(d.reportNamespaces=new B_),d||vw(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=w.useMemo(()=>({...V_(),...d?.options?.react,...o}),[d,o]),{useSuspense:g,keyPrefix:b}=h,y=u||d?.options?.defaultNS,D=ai(y)?[y]:y||["translation"],x=w.useMemo(()=>D,D);d?.reportNamespaces?.addUsedNamespaces?.(x);const N=w.useRef(0),R=w.useCallback(P=>{if(!d)return F_;const{bindI18n:H,bindI18nStore:me}=h,W=()=>{N.current+=1,P()};return H&&d.on(H,W),me&&d.store.on(me,W),()=>{H&&H.split(" ").forEach(X=>d.off(X,W)),me&&me.split(" ").forEach(X=>d.store.off(X,W))}},[d,h]),k=w.useRef(),B=w.useCallback(()=>{if(!d)return I_;const P=!!(d.isInitialized||d.initializedStoreOnce)&&x.every(Ee=>k_(Ee,d,h)),H=o.lng||d.language,me=N.current,W=k.current;if(W&&W.ready===P&&W.lng===H&&W.keyPrefix===b&&W.revision===me)return W;const ie={t:d.getFixedT(H,h.nsMode==="fallback"?x:x[0],b),ready:P,lng:H,keyPrefix:b,revision:me};return k.current=ie,ie},[d,x,b,h,o.lng]),[L,F]=w.useState(0),{t:Q,ready:ee}=q_.useSyncExternalStore(R,B,B);w.useEffect(()=>{if(d&&!ee&&!g){const P=()=>F(H=>H+1);o.lng?oS(d,o.lng,x,P):Pg(d,x,P)}},[d,o.lng,x,ee,g,L]);const ue=d||{},re=w.useRef(null),ne=w.useRef(),te=P=>{const H=Object.getOwnPropertyDescriptors(P);H.__original&&delete H.__original;const me=Object.create(Object.getPrototypeOf(P),H);if(!Object.prototype.hasOwnProperty.call(me,"__original"))try{Object.defineProperty(me,"__original",{value:P,writable:!1,enumerable:!1,configurable:!1})}catch{}return me},_=w.useMemo(()=>{const P=ue,H=P?.language;let me=P;P&&(re.current&&re.current.__original===P?ne.current!==H?(me=te(P),re.current=me,ne.current=H):me=re.current:(me=te(P),re.current=me,ne.current=H));const W=[Q,me,ee];return W.t=Q,W.i18n=me,W.ready=ee,W},[Q,ue,ee,ue.resolvedLanguage,ue.language,ue.languages]);if(d&&g&&!ee)throw new Promise(P=>{const H=()=>P();o.lng?oS(d,o.lng,x,H):Pg(d,x,H)});return _},{slice:X_,forEach:Q_}=[];function Z_(s){return Q_.call(X_.call(arguments,1),o=>{if(o)for(const l in o)s[l]===void 0&&(s[l]=o[l])}),s}function P_(s){return typeof s!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(l=>l.test(s))}const lS=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,J_=function(s,o){const c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},u=encodeURIComponent(o);let d=`${s}=${u}`;if(c.maxAge>0){const h=c.maxAge-0;if(Number.isNaN(h))throw new Error("maxAge should be a Number");d+=`; Max-Age=${Math.floor(h)}`}if(c.domain){if(!lS.test(c.domain))throw new TypeError("option domain is invalid");d+=`; Domain=${c.domain}`}if(c.path){if(!lS.test(c.path))throw new TypeError("option path is invalid");d+=`; Path=${c.path}`}if(c.expires){if(typeof c.expires.toUTCString!="function")throw new TypeError("option expires is invalid");d+=`; Expires=${c.expires.toUTCString()}`}if(c.httpOnly&&(d+="; HttpOnly"),c.secure&&(d+="; Secure"),c.sameSite)switch(typeof c.sameSite=="string"?c.sameSite.toLowerCase():c.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return c.partitioned&&(d+="; Partitioned"),d},cS={create(s,o,l,c){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};l&&(u.expires=new Date,u.expires.setTime(u.expires.getTime()+l*60*1e3)),c&&(u.domain=c),document.cookie=J_(s,o,u)},read(s){const o=`${s}=`,l=document.cookie.split(";");for(let c=0;c<l.length;c++){let u=l[c];for(;u.charAt(0)===" ";)u=u.substring(1,u.length);if(u.indexOf(o)===0)return u.substring(o.length,u.length)}return null},remove(s,o){this.create(s,"",-1,o)}};var K_={name:"cookie",lookup(s){let{lookupCookie:o}=s;if(o&&typeof document<"u")return cS.read(o)||void 0},cacheUserLanguage(s,o){let{lookupCookie:l,cookieMinutes:c,cookieDomain:u,cookieOptions:d}=o;l&&typeof document<"u"&&cS.create(l,s,c,u,d)}},W_={name:"querystring",lookup(s){let{lookupQuerystring:o}=s,l;if(typeof window<"u"){let{search:c}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(c=window.location.hash.substring(window.location.hash.indexOf("?")));const d=c.substring(1).split("&");for(let h=0;h<d.length;h++){const g=d[h].indexOf("=");g>0&&d[h].substring(0,g)===o&&(l=d[h].substring(g+1))}}return l}},ek={name:"hash",lookup(s){let{lookupHash:o,lookupFromHashIndex:l}=s,c;if(typeof window<"u"){const{hash:u}=window.location;if(u&&u.length>2){const d=u.substring(1);if(o){const h=d.split("&");for(let g=0;g<h.length;g++){const b=h[g].indexOf("=");b>0&&h[g].substring(0,b)===o&&(c=h[g].substring(b+1))}}if(c)return c;if(!c&&l>-1){const h=u.match(/\/([a-zA-Z-]*)/g);return Array.isArray(h)?h[typeof l=="number"?l:0]?.replace("/",""):void 0}}}return c}};let sl=null;const uS=()=>{if(sl!==null)return sl;try{if(sl=typeof window<"u"&&window.localStorage!==null,!sl)return!1;const s="i18next.translate.boo";window.localStorage.setItem(s,"foo"),window.localStorage.removeItem(s)}catch{sl=!1}return sl};var tk={name:"localStorage",lookup(s){let{lookupLocalStorage:o}=s;if(o&&uS())return window.localStorage.getItem(o)||void 0},cacheUserLanguage(s,o){let{lookupLocalStorage:l}=o;l&&uS()&&window.localStorage.setItem(l,s)}};let ol=null;const dS=()=>{if(ol!==null)return ol;try{if(ol=typeof window<"u"&&window.sessionStorage!==null,!ol)return!1;const s="i18next.translate.boo";window.sessionStorage.setItem(s,"foo"),window.sessionStorage.removeItem(s)}catch{ol=!1}return ol};var ak={name:"sessionStorage",lookup(s){let{lookupSessionStorage:o}=s;if(o&&dS())return window.sessionStorage.getItem(o)||void 0},cacheUserLanguage(s,o){let{lookupSessionStorage:l}=o;l&&dS()&&window.sessionStorage.setItem(l,s)}},nk={name:"navigator",lookup(s){const o=[];if(typeof navigator<"u"){const{languages:l,userLanguage:c,language:u}=navigator;if(l)for(let d=0;d<l.length;d++)o.push(l[d]);c&&o.push(c),u&&o.push(u)}return o.length>0?o:void 0}},sk={name:"htmlTag",lookup(s){let{htmlTag:o}=s,l;const c=o||(typeof document<"u"?document.documentElement:null);return c&&typeof c.getAttribute=="function"&&(l=c.getAttribute("lang")),l}},ok={name:"path",lookup(s){let{lookupFromPathIndex:o}=s;if(typeof window>"u")return;const l=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof o=="number"?o:0]?.replace("/",""):void 0}},rk={name:"subdomain",lookup(s){let{lookupFromSubdomainIndex:o}=s;const l=typeof o=="number"?o+1:1,c=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(c)return c[l]}};let Sw=!1;try{document.cookie,Sw=!0}catch{}const ww=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Sw||ww.splice(1,1);const ik=()=>({order:ww,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:s=>s});class Ew{constructor(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(o,l)}init(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=o,this.options=Z_(l,this.options||{},ik()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=u=>u.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=c,this.addDetector(K_),this.addDetector(W_),this.addDetector(tk),this.addDetector(ak),this.addDetector(nk),this.addDetector(sk),this.addDetector(ok),this.addDetector(rk),this.addDetector(ek)}addDetector(o){return this.detectors[o.name]=o,this}detect(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,l=[];return o.forEach(c=>{if(this.detectors[c]){let u=this.detectors[c].lookup(this.options);u&&typeof u=="string"&&(u=[u]),u&&(l=l.concat(u))}}),l=l.filter(c=>c!=null&&!P_(c)).map(c=>this.options.convertDetectedLanguage(c)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null}cacheUserLanguage(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;l&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(o)>-1||l.forEach(c=>{this.detectors[c]&&this.detectors[c].cacheUserLanguage(o,this.options)}))}}Ew.type="languageDetector";const lk={"nav.home":"Home","nav.studio":"Studio","nav.docs":"Docs","nav.login":"Login","nav.logout":"Logout","header.status.connected":"Connected","header.status.disconnected":"Disconnected","header.status.reconnecting":"Reconnecting","footer.copyright":"GitHub · @Context4AI {{year}}. All rights reserved.","footer.copyright_compact":"@Context4AI {{year}}. All rights reserved.","footer.tagline":"Knowledge Factory","footer.theme.dark":"Dark","footer.theme.light":"Light","footer.theme.system":"System","studio.sidebar.sources":"Sources","studio.sidebar.modeling":"Modeling","studio.sidebar.brain":"Brain","studio.sidebar.discovery":"Discovery","studio.sidebar.sharing":"Sharing","studio.sidebar.collaboration":"Collaboration","studio.sidebar.settings":"Settings","placeholder.coming":"Coming in {{version}}","page.login.title":"Login","page.login.description":"Authentication and user management.","page.docs.title":"Docs","page.docs.description":"Public documentation portal.","page.sources.title":"Sources","page.sources.description":"Add code repositories, documents, and other input materials for your brain to index.","page.modeling.title":"Modeling","page.modeling.description":"Model indexed content with AI — only what stands up to scrutiny gets written to the knowledge graph.","page.brain.title":"Brain","page.brain.description":"All modeled knowledge lives here — browse, search, analyze, and use it anytime.","page.discovery.title":"Discovery","page.discovery.description":"Explore knowledge curated by others and add what's useful to your own brain.","page.sharing.title":"Sharing","page.sharing.description":"Package and export knowledge from your brain for others and AI to use directly.","page.collaboration.title":"Collaboration","page.collaboration.description":"Stay in sync with other brains — get notified on updates, no manual transfer needed.","page.settings.title":"Settings","page.settings.description":"Manage workspace members and configuration.","page.code_setup.title":"Code Setup","page.code_setup.description":"Repository selection and configuration for code modeling.","page.code_compile.title":"Code Compile","page.code_compile.description":"Compilation progress tracking for code modeling.","page.code_review.title":"Code Review","page.code_review.description":"Review and approve modeling results.","page.code_result.title":"Code Result","page.code_result.description":"View final modeling results and generated knowledge graph.","home.hero.title":"Context For AI","home.hero.description":"Transform code repositories and business documents into structured knowledge graphs.","home.hero.cta.studio":"Enter Studio","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"The page you're looking for doesn't exist.","notfound.back":"Back to Home","sources.menu.add_client":"Add Client","sources.menu.online":"online","sources.menu.offline":"offline","sources.library.default_cloud_name":"Personal Cloud","sources.library.rename":"Rename","sources.library.rename_placeholder":"Enter library name","sources.header.daemon_status":"{{online}}/{{total}} online","sources.header.all_offline":"All offline","sources.actions.new_folder":"New Folder","sources.folder.name_placeholder":"Enter folder name","sources.actions.import_repo":"Import Repository","sources.actions.rename":"Rename","sources.actions.move_to":"Move to...","sources.actions.delete":"Delete","sources.filter.all":"All","sources.filter.indexed":"Indexed","sources.filter.not_indexed":"Not Indexed","sources.status.none":"None","sources.status.indexed":"Indexed","sources.status.stale":"Stale","sources.status.go_index":"Index","sources.type.code":"Code","sources.type.doc":"Document","sources.empty.cloud.title":"Your personal knowledge input zone","sources.empty.cloud.description":"Create folders to organize your documents and materials. These are visible only to you and will serve as the foundation for building your digital brain.","sources.empty.daemon.title":"Connect your local code assets","sources.empty.daemon.description":"Import local code repositories. The system will automatically extract code structures and technical documents, transforming them into structured knowledge.","sources.empty.indexed.title":"Knowledge not yet indexed","sources.empty.indexed.description":"Select sources and complete indexing. They will be transformed into structured summaries, providing material for your future speculations.","sources.empty.folder.title":"This folder is empty","sources.empty.folder.daemon_description":"You can add or edit documents locally, and they will appear here after the next sync.","sources.safety.notice.repo":"In local mode, your code has absolute privacy. Source code never leaves your computer. The system only extracts structured summaries for knowledge modeling (function signatures, dependencies, etc.).","sources.safety.notice.dir":"The system extracts document content and summaries for knowledge modeling. Although unsafe text is filtered, please ensure sensitive data is not included in indexing or modeling.","sources.import.title":"Import Repository","sources.import.step.select":"Select Repository","sources.import.step.version":"Version Selection","sources.import.step.confirm":"Confirm Import","sources.import.daemon_offline":"Client {{name}} is not connected. Please start the local Daemon and connect to the server before importing.","sources.import.view_guide":"View Connection Guide","sources.import.select_root":"Select repository root directory","sources.import.current_path":"Current path","sources.import.not_git":"This directory is not a Git repository. Please select a directory containing .git.","sources.import.branch":"Branch","sources.import.commit":"Commit","sources.import.branch_warning":"Currently based on {{branch}} branch HEAD","sources.import.uncommitted_warning":"Uncommitted changes will not be collected","sources.import.recognized":"Recognized {{packages}} packages and {{docs}} documents","sources.import.no_packages":"No package structure detected. Will be imported as a single-package repository.","sources.import.confirm_heading":"About to import the following repository to {{name}}:","sources.import.packages":"Packages","sources.import.documents":"Documents","sources.import.loading_repo":"Loading repository info...","sources.import.loading_repo_slow":"Large repositories (>10 GB) may take 5–10 seconds...","sources.import.importing":"Importing...","sources.import.success":"Import complete","sources.add_client.title":"Connect Local Knowledge Source","sources.add_client.description":"Start a client (Daemon) on your local computer to mount local code repositories as input material into your digital brain.","sources.add_client.step1":"Install Daemon","sources.add_client.step2":"Start Daemon","sources.add_client.step3":"Wait for connection","sources.add_client.step3_desc":"This page will update automatically once connected.","sources.add_client.waiting":"Waiting for new client connection...","sources.add_client.detected":"New client detected","sources.add_client.machine_name":"Machine ID","sources.add_client.os":"Operating system","sources.add_client.daemon_version":"Daemon version","sources.add_client.client_name":"Client name","sources.add_client.confirm":"Confirm Add","sources.add_client.reconnected":"Client {{name}} has reconnected","sources.add_client.go_to":"Go to {{name}}","sources.detail.tab.original":"Original","sources.detail.tab.overview":"Overview","sources.detail.tab.digest":"Digest","sources.detail.tab.modeling":"Modeling Result","sources.detail.digest_placeholder":"Structured summary will be available here after indexing is complete.","sources.detail.modeling_placeholder":"Knowledge entities derived from this source will appear here after modeling in the speculation zone.","sources.detail.type":"Type","sources.detail.origin":"Origin","sources.detail.origin.upload":"Upload","sources.detail.origin.local":"Local file","sources.detail.path":"Path","sources.detail.status":"Status","sources.detail.repo":"Repository","sources.detail.branch":"Branch","sources.detail.commit":"Commit","sources.detail.tech_stack":"Tech stack","sources.detail.original_code_placeholder":"Package overview will be available after indexing.","sources.detail.original_doc_placeholder":"Document content will be available after upload.","sources.detail.dependencies":"Dependencies","sources.delete.confirm_title":"Confirm Delete","sources.delete.resource":"Are you sure you want to delete {{name}}?","sources.delete.resource_impact":"The following data will be permanently deleted: original content, structured digest (if any).","sources.delete.session_warning":"If your personal speculation zone is using this source, related candidate speculations will be affected.","sources.delete.entity_safe":"Formal knowledge already merged into the brain will not be affected.","sources.delete.folder":"Are you sure you want to delete folder {{name}}?","sources.delete.folder_impact":"All resources inside will be recursively deleted: {{folders}} sub-folders, {{sources}} sources.","sources.delete.folder_impact_generic":"All sub-folders and resources inside will be recursively deleted.","sources.delete.irreversible":"This action cannot be undone.","sources.delete.repo":"Are you sure you want to remove repository {{name}} from {{library}}?","sources.delete.repo_impact":"Will delete: {{packages}} package index records, {{docs}} document index records.","sources.delete.repo_impact_generic":"All package and document index records will be deleted.","sources.delete.local_safe":"Local files will not be affected.","sources.delete.client":"Are you sure you want to delete client {{name}}?","sources.delete.client_impact":"All imported repository records and related index data under this client will be deleted.","sources.delete.client_reregister":"This client will need to re-register on next connection.","sources.error.name_conflict":'An item named "{{name}}" already exists in this directory.',"sources.move.current":"Current","sources.move.target":"Move to","sources.breadcrumb.sources":"Sources","common.cancel":"Cancel","common.confirm":"Confirm","common.back":"Back","common.next":"Next","common.previous":"Previous","common.items":"{{count}} items","common.loading":"Loading...","sources.import.no_entries":"No entries found","sources.import.allowed_dirs":"Client authorized directories","sources.import.allowed_dirs_tooltip_restrict":"Restrict to specific directories:","sources.import.allowed_dirs_tooltip_all":"Or allow all directories (default):","sources.import.wildcard_home":"Home","sources.import.wildcard_path_placeholder":"Enter a directory path…","sources.import.wildcard_go":"Go","sources.import.wildcard_goto":"Go to","sources.import.wildcard_go_title":"Go to Directory","sources.import.wildcard_path_not_found":"Path does not exist on the remote machine","sources.import.already_imported":"Imported","sources.import.dir_title":"Import Directory","sources.import.dir_step.select":"Select Directory","sources.import.dir_step.scan":"Scan","sources.import.dir_step.confirm":"Confirm Import","sources.import.dir_confirm_heading":"About to import the following directory to {{name}}:","sources.import.dir_name":"Directory Name","sources.import.dir_path":"Directory Path","sources.import.dir_files":"Files","sources.import.dir_subdirs":"Subdirectories","sources.import.dir_git_repos":"Repositories (skipped)","sources.import.dir_git_hint":"Git repositories inside the directory will not be expanded for indexing. Import them separately if needed.","sources.import.dir_scanning":"Scanning directory contents...","sources.import.dir_scan_complete":"Scan complete","sources.import.dir_scan_error":"Failed to scan directory","sources.import.dir_scan_retry":"Retry","sources.import.dir_code_packages":"Code Packages","sources.import.dir_code_packages_tip":"Supported: package.json, pyproject.toml, setup.py, go.mod, Cargo.toml, pom.xml, build.gradle","sources.import.dir_doc_files":"Documents","sources.import.dir_doc_files_tip":"Supported: Markdown (.md)","sources.import.dir_total_files":"Total Files","sources.import.dir_total_dirs":"Directories","sources.import.dir_git_skip_hint":"Git repos are skipped. Use 'Import Repository' instead.","sources.actions.upload":"Upload","sources.actions.upload_md":"Markdown Document","sources.actions.upload_doc":"Document","sources.actions.add":"Add","sources.actions.add_folder":"Folder","sources.actions.add_web":"Web Page","sources.actions.add_feishu":"Feishu Document","sources.actions.import_dir":"Import Directory","sources.actions.import_repo_url":"Import Repository","sources.upgrade.title":"Feature Upgrading","sources.upgrade.description":"This feature will be available in version 0.5.x. Stay tuned.","sources.upload.title":"Upload Documents","sources.upload.drop_hint":"Click to select or drag files here","sources.upload.supported_formats":"Supported: .md, .doc, .docx, .pdf, .ppt, .pptx, .txt (max 5MB each, up to 10 files)","sources.upload.file_too_large":'"{{name}}" exceeds 5MB limit',"sources.upload.too_many_files":"Maximum 10 files allowed, please re-select","sources.upload.unsupported_type":'"{{name}}" is not a supported file type',"sources.upload.uploading":"Uploading...","sources.upload.success":"Uploaded {{count}} documents","sources.upload.selected":"{{count}} files selected","sources.upload.remove":"Remove"},ck={"nav.home":"首页","nav.studio":"工作台","nav.docs":"文档","nav.login":"登录","nav.logout":"退出登录","header.status.connected":"已连接","header.status.disconnected":"已断开","header.status.reconnecting":"重连中","footer.copyright":"GitHub · @Context4AI {{year}}. 版权所有","footer.copyright_compact":"@Context4AI {{year}}. 版权所有","footer.tagline":"知识工厂","footer.theme.dark":"暗色","footer.theme.light":"亮色","footer.theme.system":"跟随系统","studio.sidebar.sources":"知识索引","studio.sidebar.modeling":"知识建模","studio.sidebar.brain":"知识大脑","studio.sidebar.discovery":"发现知识","studio.sidebar.sharing":"分享知识","studio.sidebar.collaboration":"知识协同","studio.sidebar.settings":"设置","placeholder.coming":"计划在 {{version}} 版本实现","page.login.title":"登录","page.login.description":"身份验证与用户管理。","page.docs.title":"文档","page.docs.description":"公开文档门户。","page.sources.title":"知识索引","page.sources.description":"添加代码仓库、文档等输入材料,让大脑完成初步索引。","page.modeling.title":"知识建模","page.modeling.description":"和 AI 一起对索引内容建模,只有经得起推敲的才写入知识图谱。","page.brain.title":"知识大脑","page.brain.description":"建模完成的全部知识都在这里——浏览、搜索、分析,随时调用。","page.discovery.title":"发现知识","page.discovery.description":"看看别人整理好的知识,发现有用的一键补充到自己的大脑。","page.sharing.title":"分享知识","page.sharing.description":"把大脑中的知识打包输出,让别人和 AI 都能直接使用。","page.collaboration.title":"知识协同","page.collaboration.description":"和其他大脑保持同步,知识更新时自动通知,不用手动搬运。","page.settings.title":"设置","page.settings.description":"管理大脑的成员和配置。","page.code_setup.title":"代码设置","page.code_setup.description":"代码建模的仓库选择与配置。","page.code_compile.title":"代码编译","page.code_compile.description":"代码建模的编译进度追踪。","page.code_review.title":"代码审查","page.code_review.description":"审查并确认建模结果。","page.code_result.title":"代码结果","page.code_result.description":"查看最终建模结果与生成的知识图谱。","home.hero.title":"Context For AI","home.hero.description":"将代码仓库和业务文档转化为结构化知识图谱。","home.hero.cta.studio":"进入工作台","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"您访问的页面不存在。","notfound.back":"返回首页","sources.menu.add_client":"添加客户端","sources.menu.online":"在线","sources.menu.offline":"离线","sources.library.default_cloud_name":"个人云","sources.library.rename":"重命名","sources.library.rename_placeholder":"输入名称","sources.header.daemon_status":"{{online}}/{{total}} 在线","sources.header.all_offline":"全部离线","sources.actions.new_folder":"新文件夹","sources.folder.name_placeholder":"输入文件夹名称","sources.actions.import_repo":"导入仓库","sources.actions.rename":"重命名","sources.actions.move_to":"移动到...","sources.actions.delete":"删除","sources.filter.all":"全部","sources.filter.indexed":"已索引","sources.filter.not_indexed":"未索引","sources.status.none":"未索引","sources.status.indexed":"已索引","sources.status.stale":"索引过期","sources.status.go_index":"去索引","sources.type.code":"代码","sources.type.doc":"文档","sources.empty.cloud.title":"这里是你专属的知识输入区","sources.empty.cloud.description":"创建文件夹来整理你的文档和材料。这些内容仅你个人可见,将成为后续推演、构建数字大脑的基础。","sources.empty.daemon.title":"连接你的本地代码资产","sources.empty.daemon.description":"导入本地代码仓库,系统会自动提取代码结构与技术文档,将其转化为结构化知识。","sources.empty.indexed.title":"这些知识尚未被索引","sources.empty.indexed.description":"选择资源并完成索引后,它们将转化为结构化摘要,为你后续的推演提供素材。","sources.empty.folder.title":"当前文件夹还没有内容","sources.empty.folder.daemon_description":"你可以在本地进行文档新增、编辑后查看。","sources.safety.notice.repo":"在本地模式下,你的代码保有绝对隐私,源代码永远不会离开你的电脑,系统仅提取用于知识建模的结构化摘要(函数签名、依赖关系等)。","sources.safety.notice.dir":"系统会提取用于知识建模的文档内容及摘要,尽管会过滤不安全的文本内容,但请确保敏感数据不要参与索引及建模。","sources.import.title":"导入代码仓库","sources.import.step.select":"选择仓库","sources.import.step.version":"版本选择","sources.import.step.confirm":"确认导入","sources.import.daemon_offline":"客户端 {{name}} 未连接,请先启动本地 Daemon 并连接到服务器后再导入仓库。","sources.import.view_guide":"查看连接指引","sources.import.select_root":"选择仓库根目录","sources.import.current_path":"当前路径","sources.import.not_git":"该目录不是 Git 仓库,请选择包含 .git 的目录。","sources.import.branch":"分支","sources.import.commit":"提交","sources.import.branch_warning":"当前基于 {{branch}} 分支的 HEAD","sources.import.uncommitted_warning":"未提交的修改不会被采集","sources.import.recognized":"已识别 {{packages}} 个包和 {{docs}} 篇文档","sources.import.no_packages":"未识别到包结构,将作为单包仓库导入。","sources.import.confirm_heading":"即将导入以下仓库到 {{name}}:","sources.import.packages":"包数","sources.import.documents":"文档","sources.import.loading_repo":"正在加载仓库信息...","sources.import.loading_repo_slow":"大型仓库(>10 GB)可能需要 5~10 秒...","sources.import.importing":"导入中...","sources.import.success":"导入完成","sources.add_client.title":"接入本地知识源","sources.add_client.description":"在本地计算机上启动客户端 (Daemon),即可将本地代码仓库作为输入材料,挂载到你的数字大脑中。","sources.add_client.step1":"安装 Daemon","sources.add_client.step2":"启动 Daemon","sources.add_client.step3":"等待连接","sources.add_client.step3_desc":"连接成功后,本页面将自动更新。","sources.add_client.waiting":"等待新的客户端连接...","sources.add_client.detected":"检测到新的本地客户端","sources.add_client.machine_name":"机器标识","sources.add_client.os":"操作系统","sources.add_client.daemon_version":"Daemon 版本","sources.add_client.client_name":"客户端名称","sources.add_client.confirm":"确认添加","sources.add_client.reconnected":"客户端 {{name}} 已重新连接","sources.add_client.go_to":"前往 {{name}}","sources.detail.tab.original":"原文","sources.detail.tab.overview":"概览","sources.detail.tab.digest":"摘要","sources.detail.tab.modeling":"建模结果","sources.detail.digest_placeholder":"完成索引后,即可在此查看结构化摘要。","sources.detail.modeling_placeholder":"在推演区完成建模后,此处将展示由该源产生的知识实体。","sources.detail.type":"类型","sources.detail.origin":"来源","sources.detail.origin.upload":"直接上传","sources.detail.origin.local":"本地文件","sources.detail.path":"路径","sources.detail.status":"状态","sources.detail.repo":"仓库","sources.detail.branch":"分支","sources.detail.commit":"提交","sources.detail.tech_stack":"技术栈","sources.detail.original_code_placeholder":"完成索引后即可查看包概览。","sources.detail.original_doc_placeholder":"文档内容将在上传后展示。","sources.detail.dependencies":"依赖","sources.delete.confirm_title":"确认删除","sources.delete.resource":"确定要删除 {{name}}?","sources.delete.resource_impact":"以下数据将被永久删除:原文内容、结构化摘要(如有)。","sources.delete.session_warning":"如果你的个人推演区正在使用此知识源,相关的候选推演将受到影响。","sources.delete.entity_safe":"已汇入大脑的正式知识不受影响。","sources.delete.folder":"确定要删除文件夹 {{name}}?","sources.delete.folder_impact":"文件夹内的所有资源将被递归删除:{{folders}} 个子文件夹、{{sources}} 个知识源。","sources.delete.folder_impact_generic":"文件夹内的所有子文件夹和知识源将被递归删除。","sources.delete.irreversible":"此操作不可撤销。","sources.delete.repo":"确定要从 {{library}} 中移除仓库 {{name}}?","sources.delete.repo_impact":"将删除:{{packages}} 个包的索引记录、{{docs}} 篇文档的索引记录。","sources.delete.repo_impact_generic":"所有包和文档的索引记录将被删除。","sources.delete.local_safe":"本地文件不受影响。","sources.delete.client":"确定要删除客户端 {{name}}?","sources.delete.client_impact":"该客户端下的所有已导入仓库记录和相关索引数据将被删除。","sources.delete.client_reregister":"该客户端下次连接时将触发重新注册。","sources.error.name_conflict":'该目录下已存在同名项"{{name}}"。',"sources.move.current":"当前位置","sources.move.target":"移动到","sources.breadcrumb.sources":"知识索引","common.cancel":"取消","common.confirm":"确认","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.items":"{{count}} 项","common.loading":"加载中...","sources.import.no_entries":"未找到任何条目","sources.import.allowed_dirs":"客户端授权目录","sources.import.allowed_dirs_tooltip_restrict":"通过参数设定有权限的目录:","sources.import.allowed_dirs_tooltip_all":"或默认允许全部目录:","sources.import.wildcard_home":"主目录","sources.import.wildcard_path_placeholder":"输入目录路径…","sources.import.wildcard_go":"前往","sources.import.wildcard_goto":"前往","sources.import.wildcard_go_title":"前往目录","sources.import.wildcard_path_not_found":"该路径在远程机器上不存在","sources.import.already_imported":"已导入","sources.import.dir_title":"导入目录","sources.import.dir_step.select":"选择目录","sources.import.dir_step.scan":"扫描","sources.import.dir_step.confirm":"确认导入","sources.import.dir_confirm_heading":"即将导入以下目录到 {{name}}:","sources.import.dir_name":"目录名","sources.import.dir_path":"目录路径","sources.import.dir_files":"文件数","sources.import.dir_subdirs":"子目录数","sources.import.dir_git_repos":"仓库(已跳过)","sources.import.dir_git_hint":"目录内的 Git 仓库不会被展开索引,如需索引请单独导入仓库。","sources.import.dir_scanning":"正在扫描目录内容...","sources.import.dir_scan_complete":"扫描完成","sources.import.dir_scan_error":"目录扫描失败","sources.import.dir_scan_retry":"重试","sources.import.dir_code_packages":"代码包","sources.import.dir_code_packages_tip":"支持:package.json、pyproject.toml、setup.py、go.mod、Cargo.toml、pom.xml、build.gradle","sources.import.dir_doc_files":"文档","sources.import.dir_doc_files_tip":"支持:Markdown (.md)","sources.import.dir_total_files":"文件总数","sources.import.dir_total_dirs":"目录","sources.import.dir_git_skip_hint":"Git 仓库将被跳过,建议单独使用「导入仓库」。","sources.actions.upload":"上传","sources.actions.upload_md":"Markdown 文档","sources.actions.upload_doc":"文档","sources.actions.add":"新增","sources.actions.add_folder":"文件夹","sources.actions.add_web":"网页","sources.actions.add_feishu":"飞书文档","sources.actions.import_dir":"导入目录","sources.actions.import_repo_url":"导入仓库","sources.upgrade.title":"功能升级中","sources.upgrade.description":"此功能将在 0.5.x 版本中推出,敬请期待。","sources.upload.title":"上传文档","sources.upload.drop_hint":"点击选择文件或拖拽至此","sources.upload.supported_formats":"支持格式:.md, .doc, .docx, .pdf, .ppt, .pptx, .txt(每个最大 5MB,最多 10 个)","sources.upload.file_too_large":'"{{name}}" 超过 5MB 限制',"sources.upload.too_many_files":"最多上传 10 个文件,请重新选择","sources.upload.unsupported_type":'"{{name}}" 不是支持的文件类型',"sources.upload.uploading":"上传中...","sources.upload.success":"已上传 {{count}} 个文档","sources.upload.selected":"已选择 {{count}} 个文件","sources.upload.remove":"移除"};Fa.use(Ew).use(L_).init({resources:{en:{translation:lk},zh:{translation:ck}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage"],caches:["localStorage"],lookupLocalStorage:"lang"}});var Ag={exports:{}},qc={},Vg={exports:{}},Mg={},fS;function uk(){return fS||(fS=1,(function(s){(function(){function o(){if(re=!1,P){var J=s.unstable_now();W=J;var de=!0;try{e:{ee=!1,ue&&(ue=!1,te(H),H=-1),Q=!0;var ge=F;try{t:{for(h(J),L=c(R);L!==null&&!(L.expirationTime>J&&b());){var K=L.callback;if(typeof K=="function"){L.callback=null,F=L.priorityLevel;var xe=K(L.expirationTime<=J);if(J=s.unstable_now(),typeof xe=="function"){L.callback=xe,h(J),de=!0;break t}L===c(R)&&u(R),h(J)}else u(R);L=c(R)}if(L!==null)de=!0;else{var G=c(k);G!==null&&y(g,G.startTime-J),de=!1}}break e}finally{L=null,F=ge,Q=!1}de=void 0}}finally{de?X():P=!1}}}function l(J,de){var ge=J.length;J.push(de);e:for(;0<ge;){var K=ge-1>>>1,xe=J[K];if(0<d(xe,de))J[K]=de,J[ge]=xe,ge=K;else break e}}function c(J){return J.length===0?null:J[0]}function u(J){if(J.length===0)return null;var de=J[0],ge=J.pop();if(ge!==de){J[0]=ge;e:for(var K=0,xe=J.length,G=xe>>>1;K<G;){var ve=2*(K+1)-1,je=J[ve],_e=ve+1,mt=J[_e];if(0>d(je,ge))_e<xe&&0>d(mt,je)?(J[K]=mt,J[_e]=ge,K=_e):(J[K]=je,J[ve]=ge,K=ve);else if(_e<xe&&0>d(mt,ge))J[K]=mt,J[_e]=ge,K=_e;else break e}}return de}function d(J,de){var ge=J.sortIndex-de.sortIndex;return ge!==0?ge:J.id-de.id}function h(J){for(var de=c(k);de!==null;){if(de.callback===null)u(k);else if(de.startTime<=J)u(k),de.sortIndex=de.expirationTime,l(R,de);else break;de=c(k)}}function g(J){if(ue=!1,h(J),!ee)if(c(R)!==null)ee=!0,P||(P=!0,X());else{var de=c(k);de!==null&&y(g,de.startTime-J)}}function b(){return re?!0:!(s.unstable_now()-W<me)}function y(J,de){H=ne(function(){J(s.unstable_now())},de)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var D=performance;s.unstable_now=function(){return D.now()}}else{var x=Date,N=x.now();s.unstable_now=function(){return x.now()-N}}var R=[],k=[],B=1,L=null,F=3,Q=!1,ee=!1,ue=!1,re=!1,ne=typeof setTimeout=="function"?setTimeout:null,te=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null,P=!1,H=-1,me=5,W=-1;if(typeof _=="function")var X=function(){_(o)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,Ee=ie.port2;ie.port1.onmessage=o,X=function(){Ee.postMessage(null)}}else X=function(){ne(o,0)};s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(J){J.callback=null},s.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):me=0<J?Math.floor(1e3/J):5},s.unstable_getCurrentPriorityLevel=function(){return F},s.unstable_next=function(J){switch(F){case 1:case 2:case 3:var de=3;break;default:de=F}var ge=F;F=de;try{return J()}finally{F=ge}},s.unstable_requestPaint=function(){re=!0},s.unstable_runWithPriority=function(J,de){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var ge=F;F=J;try{return de()}finally{F=ge}},s.unstable_scheduleCallback=function(J,de,ge){var K=s.unstable_now();switch(typeof ge=="object"&&ge!==null?(ge=ge.delay,ge=typeof ge=="number"&&0<ge?K+ge:K):ge=K,J){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=ge+xe,J={id:B++,callback:de,priorityLevel:J,startTime:ge,expirationTime:xe,sortIndex:-1},ge>K?(J.sortIndex=ge,l(k,J),c(R)===null&&J===c(k)&&(ue?(te(H),H=-1):ue=!0,y(g,ge-K))):(J.sortIndex=xe,l(R,J),ee||Q||(ee=!0,P||(P=!0,X()))),J},s.unstable_shouldYield=b,s.unstable_wrapCallback=function(J){var de=F;return function(){var ge=F;F=de;try{return J.apply(this,arguments)}finally{F=ge}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Mg)),Mg}var mS;function dk(){return mS||(mS=1,Vg.exports=uk()),Vg.exports}var zg={exports:{}},Ta={},pS;function fk(){if(pS)return Ta;pS=1;return(function(){function s(){}function o(x){return""+x}function l(x,N,R){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{o(k);var B=!1}catch{B=!0}return B&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object"),o(k)),{$$typeof:y,key:k==null?null:""+k,children:x,containerInfo:N,implementation:R}}function c(x,N){if(x==="font")return"";if(typeof N=="string")return N==="use-credentials"?N:""}function u(x){return x===null?"`null`":x===void 0?"`undefined`":x===""?"an empty string":'something with type "'+typeof x+'"'}function d(x){return x===null?"`null`":x===void 0?"`undefined`":x===""?"an empty string":typeof x=="string"?JSON.stringify(x):typeof x=="number"?"`"+x+"`":'something with type "'+typeof x+'"'}function h(){var x=D.H;return x===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
19
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
20
+ 2. You might be breaking the Rules of Hooks
21
+ 3. You might have more than one copy of React in the same app
22
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),x}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g=iu(),b={d:{f:s,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},y=Symbol.for("react.portal"),D=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Ta.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,Ta.createPortal=function(x,N){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!N||N.nodeType!==1&&N.nodeType!==9&&N.nodeType!==11)throw Error("Target container is not a DOM element.");return l(x,N,null,R)},Ta.flushSync=function(x){var N=D.T,R=b.p;try{if(D.T=null,b.p=2,x)return x()}finally{D.T=N,b.p=R,b.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Ta.preconnect=function(x,N){typeof x=="string"&&x?N!=null&&typeof N!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",d(N)):N!=null&&typeof N.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",u(N.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(x)),typeof x=="string"&&(N?(N=N.crossOrigin,N=typeof N=="string"?N==="use-credentials"?N:"":void 0):N=null,b.d.C(x,N))},Ta.prefetchDNS=function(x){if(typeof x!="string"||!x)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(x));else if(1<arguments.length){var N=arguments[1];typeof N=="object"&&N.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",d(N)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",d(N))}typeof x=="string"&&b.d.D(x)},Ta.preinit=function(x,N){if(typeof x=="string"&&x?N==null||typeof N!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",d(N)):N.as!=="style"&&N.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',d(N.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(x)),typeof x=="string"&&N&&typeof N.as=="string"){var R=N.as,k=c(R,N.crossOrigin),B=typeof N.integrity=="string"?N.integrity:void 0,L=typeof N.fetchPriority=="string"?N.fetchPriority:void 0;R==="style"?b.d.S(x,typeof N.precedence=="string"?N.precedence:void 0,{crossOrigin:k,integrity:B,fetchPriority:L}):R==="script"&&b.d.X(x,{crossOrigin:k,integrity:B,fetchPriority:L,nonce:typeof N.nonce=="string"?N.nonce:void 0})}},Ta.preinitModule=function(x,N){var R="";typeof x=="string"&&x||(R+=" The `href` argument encountered was "+u(x)+"."),N!==void 0&&typeof N!="object"?R+=" The `options` argument encountered was "+u(N)+".":N&&"as"in N&&N.as!=="script"&&(R+=" The `as` option encountered was "+d(N.as)+"."),R?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",R):(R=N&&typeof N.as=="string"?N.as:"script",R)==="script"||(R=d(R),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',R,x)),typeof x=="string"&&(typeof N=="object"&&N!==null?(N.as==null||N.as==="script")&&(R=c(N.as,N.crossOrigin),b.d.M(x,{crossOrigin:R,integrity:typeof N.integrity=="string"?N.integrity:void 0,nonce:typeof N.nonce=="string"?N.nonce:void 0})):N==null&&b.d.M(x))},Ta.preload=function(x,N){var R="";if(typeof x=="string"&&x||(R+=" The `href` argument encountered was "+u(x)+"."),N==null||typeof N!="object"?R+=" The `options` argument encountered was "+u(N)+".":typeof N.as=="string"&&N.as||(R+=" The `as` option encountered was "+u(N.as)+"."),R&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',R),typeof x=="string"&&typeof N=="object"&&N!==null&&typeof N.as=="string"){R=N.as;var k=c(R,N.crossOrigin);b.d.L(x,R,{crossOrigin:k,integrity:typeof N.integrity=="string"?N.integrity:void 0,nonce:typeof N.nonce=="string"?N.nonce:void 0,type:typeof N.type=="string"?N.type:void 0,fetchPriority:typeof N.fetchPriority=="string"?N.fetchPriority:void 0,referrerPolicy:typeof N.referrerPolicy=="string"?N.referrerPolicy:void 0,imageSrcSet:typeof N.imageSrcSet=="string"?N.imageSrcSet:void 0,imageSizes:typeof N.imageSizes=="string"?N.imageSizes:void 0,media:typeof N.media=="string"?N.media:void 0})}},Ta.preloadModule=function(x,N){var R="";typeof x=="string"&&x||(R+=" The `href` argument encountered was "+u(x)+"."),N!==void 0&&typeof N!="object"?R+=" The `options` argument encountered was "+u(N)+".":N&&"as"in N&&typeof N.as!="string"&&(R+=" The `as` option encountered was "+u(N.as)+"."),R&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',R),typeof x=="string"&&(N?(R=c(N.as,N.crossOrigin),b.d.m(x,{as:typeof N.as=="string"&&N.as!=="script"?N.as:void 0,crossOrigin:R,integrity:typeof N.integrity=="string"?N.integrity:void 0})):b.d.m(x))},Ta.requestFormReset=function(x){b.d.r(x)},Ta.unstable_batchedUpdates=function(x,N){return x(N)},Ta.useFormState=function(x,N,R){return h().useFormState(x,N,R)},Ta.useFormStatus=function(){return h().useHostTransitionStatus()},Ta.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ta}var hS;function mk(){return hS||(hS=1,zg.exports=fk()),zg.exports}var gS;function pk(){if(gS)return qc;gS=1;return(function(){function s(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function o(e,t,a,n){if(a>=t.length)return n;var r=t[a],i=ra(e)?e.slice():et({},e);return i[r]=o(e[r],t,a+1,n),i}function l(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var n=0;n<a.length-1;n++)if(t[n]!==a[n]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,n){var r=t[n],i=ra(e)?e.slice():et({},e);return n+1===t.length?(i[a[n]]=i[r],ra(i)?i.splice(r,1):delete i[r]):i[r]=c(e[r],t,a,n+1),i}function u(e,t,a){var n=t[a],r=ra(e)?e.slice():et({},e);return a+1===t.length?(ra(r)?r.splice(n,1):delete r[n],r):(r[n]=u(e[n],t,a+1),r)}function d(){return!1}function h(){return null}function g(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function b(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function y(){}function D(){}function x(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function N(e,t,a,n){return new B4(e,t,a,n)}function R(e,t){e.context===Io&&(Fp(e.current,2,t,e,null,null),hi())}function k(e,t){if(Tn!==null){var a=t.staleFamilies;t=t.updatedFamilies,zl(),Xb(e.current,t,a),hi()}}function B(e){Tn=e}function L(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function F(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function Q(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 ee(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 ue(e){if(F(e)!==e)throw Error("Unable to find node on an unmounted component.")}function re(e){var t=e.alternate;if(!t){if(t=F(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var i=r.alternate;if(i===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===a)return ue(r),e;if(i===n)return ue(r),t;i=i.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==n.return)a=r,n=i;else{for(var f=!1,p=r.child;p;){if(p===a){f=!0,a=r,n=i;break}if(p===n){f=!0,n=r,a=i;break}p=p.sibling}if(!f){for(p=i.child;p;){if(p===a){f=!0,a=i,n=r;break}if(p===n){f=!0,n=i,a=r;break}p=p.sibling}if(!f)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==n)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function ne(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ne(e),t!==null)return t;e=e.sibling}return null}function te(e){return e===null||typeof e!="object"?null:(e=ex&&e[ex]||e["@@iterator"],typeof e=="function"?e:null)}function _(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===lD?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Si:return"Fragment";case Wp:return"Profiler";case xd:return"StrictMode";case th:return"Suspense";case ah:return"SuspenseList";case nh:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Ni:return"Portal";case js:return e.displayName||"Context";case eh:return(e._context.displayName||"Context")+".Consumer";case Xl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nd:return t=e.displayName||null,t!==null?t:_(e.type)||"Memo";case pn:t=e._payload,e=e._init;try{return _(e(t))}catch{}}return null}function P(e){return typeof e.tag=="number"?H(e):typeof e.name=="string"?e.name:null}function H(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _(t);case 8:return t===xd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return H(e.return)}return null}function me(e){return{current:e}}function W(e,t){0>ao?console.error("Unexpected pop."):(t!==oh[ao]&&console.error("Unexpected Fiber popped."),e.current=sh[ao],sh[ao]=null,oh[ao]=null,ao--)}function X(e,t,a){ao++,sh[ao]=e.current,oh[ao]=a,e.current=t}function ie(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Ee(e,t){X(Ho,t,e),X(Ql,e,e),X(Lo,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?E0(t):yo;break;default:if(a=t.tagName,t=t.namespaceURI)t=E0(t),t=D0(t,a);else switch(a){case"svg":t=al;break;case"math":t=xf;break;default:t=yo}}a=a.toLowerCase(),a=hu(null,a),a={context:t,ancestorInfo:a},W(Lo,e),X(Lo,a,e)}function J(e){W(Lo,e),W(Ql,e),W(Ho,e)}function de(){return ie(Lo.current)}function ge(e){e.memoizedState!==null&&X(Sd,e,e);var t=ie(Lo.current),a=e.type,n=D0(t.context,a);a=hu(t.ancestorInfo,a),n={context:n,ancestorInfo:a},t!==n&&(X(Ql,e,e),X(Lo,n,e))}function K(e){Ql.current===e&&(W(Lo,e),W(Ql,e)),Sd.current===e&&(W(Sd,e),Hc._currentValue=Wr)}function xe(){}function G(){if(Zl===0){tx=console.log,ax=console.info,nx=console.warn,sx=console.error,ox=console.group,rx=console.groupCollapsed,ix=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Zl++}function ve(){if(Zl--,Zl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:et({},e,{value:tx}),info:et({},e,{value:ax}),warn:et({},e,{value:nx}),error:et({},e,{value:sx}),group:et({},e,{value:ox}),groupCollapsed:et({},e,{value:rx}),groupEnd:et({},e,{value:ix})})}0>Zl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function je(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
23
+ `)&&(e=e.slice(29)),t=e.indexOf(`
24
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
25
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function _e(e){if(rh===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);rh=t&&t[1]||"",lx=-1<a.stack.indexOf(`
26
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
27
+ `+rh+e+lx}function mt(e,t){if(!e||ih)return"";var a=lh.get(e);if(a!==void 0)return a;ih=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=I.H,I.H=null,G();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(fe){var $=fe}Reflect.construct(e,[],T)}else{try{T.call()}catch(fe){$=fe}e.call(T.prototype)}}else{try{throw Error()}catch(fe){$=fe}(T=e())&&typeof T.catch=="function"&&T.catch(function(){})}}catch(fe){if(fe&&$&&typeof fe.stack=="string")return[fe.stack,$.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=r.DetermineComponentFrameRoot(),p=f[0],v=f[1];if(p&&v){var S=p.split(`
28
+ `),A=v.split(`
29
+ `);for(f=i=0;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;for(;f<A.length&&!A[f].includes("DetermineComponentFrameRoot");)f++;if(i===S.length||f===A.length)for(i=S.length-1,f=A.length-1;1<=i&&0<=f&&S[i]!==A[f];)f--;for(;1<=i&&0<=f;i--,f--)if(S[i]!==A[f]){if(i!==1||f!==1)do if(i--,f--,0>f||S[i]!==A[f]){var V=`
30
+ `+S[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),typeof e=="function"&&lh.set(e,V),V}while(1<=i&&0<=f);break}}}finally{ih=!1,I.H=n,ve(),Error.prepareStackTrace=a}return S=(S=e?e.displayName||e.name:"")?_e(S):"",typeof e=="function"&&lh.set(e,S),S}function Rt(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e("Lazy");case 13:return e.child!==t&&t!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return mt(e.type,!1);case 11:return mt(e.type.render,!1);case 1:return mt(e.type,!0);case 31:return _e("Activity");default:return""}}function nt(e){try{var t="",a=null;do{t+=Rt(e,a);var n=e._debugInfo;if(n)for(var r=n.length-1;0<=r;r--){var i=n[r];if(typeof i.name=="string"){var f=t;e:{var p=i.name,v=i.env,S=i.debugLocation;if(S!=null){var A=je(S),V=A.lastIndexOf(`
31
+ `),T=V===-1?A:A.slice(V+1);if(T.indexOf(p)!==-1){var $=`
32
+ `+T;break e}}$=_e(p+(v?" ["+v+"]":""))}t=f+$}}a=e,e=e.return}while(e);return t}catch(fe){return`
33
+ Error generating stack: `+fe.message+`
34
+ `+fe.stack}}function $t(e){return(e=e?e.displayName||e.name:"")?_e(e):""}function Se(){if(hn===null)return null;var e=hn._debugOwner;return e!=null?P(e):null}function Mt(){if(hn===null)return"";var e=hn;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=_e(e.type);break;case 13:t+=_e("Suspense");break;case 19:t+=_e("SuspenseList");break;case 31:t+=_e("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=$t(e.type));break;case 11:e._debugOwner||t!==""||(t+=$t(e.type.render))}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var n=a._debugStack;if(e&&n){var r=je(n);r!==""&&(t+=`
35
+ `+r)}}else if(e.debugStack!=null){var i=e.debugStack;(e=e.owner)&&i&&(t+=`
36
+ `+je(i))}else break;var f=t}catch(p){f=`
37
+ Error generating stack: `+p.message+`
38
+ `+p.stack}return f}function he(e,t,a,n,r,i,f){var p=hn;Yt(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,n,r,i,f)):t(a,n,r,i,f)}finally{Yt(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Yt(e){I.getCurrentStack=e===null?null:Mt,Os=!1,hn=e}function pt(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ft(e){try{return ya(e),!1}catch{return!0}}function ya(e){return""+e}function ut(e,t){if(Ft(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,pt(e)),ya(e)}function St(e,t){if(Ft(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,pt(e)),ya(e)}function oa(e){if(Ft(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",pt(e)),ya(e)}function wn(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Ei=t.inject(e),Ua=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function we(e){if(typeof hD=="function"&&gD(e),Ua&&typeof Ua.setStrictMode=="function")try{Ua.setStrictMode(Ei,e)}catch(t){As||(As=!0,console.error("React instrumentation encountered an error: %o",t))}}function En(e){return e>>>=0,e===0?32:31-(bD(e)/yD|0)|0}function va(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 console.error("Should have found matching lanes. This is a bug in React."),e}}function Xa(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=n&134217727;return p!==0?(n=p&~i,n!==0?r=va(n):(f&=p,f!==0?r=va(f):a||(a=p&~e,a!==0&&(r=va(a))))):(p=n&~i,p!==0?r=va(p):f!==0?r=va(f):a||(a=n&~e,a!==0&&(r=va(a)))),r===0?0:t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:r}function Dn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qa(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function on(){var e=Dd;return Dd<<=1,(Dd&62914560)===0&&(Dd=4194304),e}function us(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Za(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ra(e,t,a,n,r,i){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,v=e.expirationTimes,S=e.hiddenUpdates;for(a=f&~a;0<a;){var A=31-La(a),V=1<<A;p[A]=0,v[A]=-1;var T=S[A];if(T!==null)for(S[A]=null,A=0;A<T.length;A++){var $=T[A];$!==null&&($.lane&=-536870913)}a&=~V}n!==0&&xa(e,n,0),i!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=i&~(f&~t))}function xa(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-La(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function ds(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-La(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function Fn(e,t){var a=t&-t;return a=(a&42)!==0?1:Pa(a),(a&(e.suspendedLanes|t))!==0?0:a}function Pa(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 Xn(e,t,a){if(Vs)for(e=e.pendingUpdatersLaneMap;0<a;){var n=31-La(a),r=1<<n;e[n].add(t),a&=~r}}function pe(e,t){if(Vs)for(var a=e.pendingUpdatersLaneMap,n=e.memoizedUpdaters;0<t;){var r=31-La(t);e=1<<r,r=a[r],0<r.size&&(r.forEach(function(i){var f=i.alternate;f!==null&&n.has(f)||n.add(i)}),r.clear()),t&=~e}}function He(e){return e&=-e,kn<e?Ms<e?(e&134217727)!==0?no:Rd:Ms:kn}function gt(){var e=vt.p;return e!==0?e:(e=window.event,e===void 0?no:X0(e.type))}function E(e,t){var a=vt.p;try{return vt.p=e,t()}finally{vt.p=a}}function M(e){delete e[Ea],delete e[Ha],delete e[mh],delete e[vD],delete e[xD]}function ae(e){var t=e[Ea];if(t)return t;for(var a=e.parentNode;a;){if(t=a[$o]||a[Ea]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=O0(e);e!==null;){if(a=e[Ea])return a;e=O0(e)}return t}e=a,a=e.parentNode}return null}function le(e){if(e=e[Ea]||e[$o]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function De(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Be(e){var t=e[cx];return t||(t=e[cx]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ke(e){e[Pl]=!0}function st(e,t){Ie(e,t),Ie(e+"Capture",t)}function Ie(e,t){Cr[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Cr[e]=t;var a=e.toLowerCase();for(ph[a]=e,e==="onDoubleClick"&&(ph.ondblclick=e),e=0;e<t.length;e++)ux.add(t[e])}function ca(e,t){ND[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Va(e){return ts.call(fx,e)?!0:ts.call(dx,e)?!1:SD.test(e)?fx[e]=!0:(dx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Is(e,t,a){if(Va(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return e=e.getAttribute(t),e===""&&a===!0?!0:(ut(a,t),e===""+a?a:e)}}function Fs(e,t,a){if(Va(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}ut(a,t),e.setAttribute(t,""+a)}}function oi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}ut(a,t),e.setAttribute(t,""+a)}}function Qn(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}ut(n,a),e.setAttributeNS(t,a,""+n)}}function C(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return oa(e),e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(f){oa(f),a=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){oa(f),a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oe(e){if(!e._valueTracker){var t=z(e)?"checked":"value";e._valueTracker=q(e,t,""+e[t])}}function ce(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=z(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Ce(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}}function ye(e){return e.replace(wD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oe(e,t){t.checked===void 0||t.defaultChecked===void 0||px||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Se()||"A component",t.type),px=!0),t.value===void 0||t.defaultValue===void 0||mx||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Se()||"A component",t.type),mx=!0)}function Re(e,t,a,n,r,i,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?(ut(f,"type"),e.type=f):e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+C(t)):e.value!==""+C(t)&&(e.value=""+C(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Me(e,f,C(t)):a!=null?Me(e,f,C(a)):n!=null&&e.removeAttribute("value"),r==null&&i!=null&&(e.defaultChecked=!!i),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?(ut(p,"name"),e.name=""+C(p)):e.removeAttribute("name")}function ze(e,t,a,n,r,i,f,p){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(ut(i,"type"),e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){oe(e);return}a=a!=null?""+C(a):"",t=t!=null?""+C(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=p?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(ut(f,"name"),e.name=f),oe(e)}function Me(e,t,a){t==="number"&&Ce(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Te(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Kp.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||gx||(gx=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||bx||(bx=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||hx||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),hx=!0)}function ht(){var e=Se();return e?`
39
+
40
+ Check the render method of \``+e+"`.":""}function tt(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+C(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Ut(e,t){for(e=0;e<vx.length;e++){var a=vx[e];if(t[a]!=null){var n=ra(t[a]);t.multiple&&!n?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,ht()):!t.multiple&&n&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,ht())}}t.value===void 0||t.defaultValue===void 0||yx||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),yx=!0)}function Xt(e,t){t.value===void 0||t.defaultValue===void 0||xx||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Se()||"A component"),xx=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ua(e,t,a){if(t!=null&&(t=""+C(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+C(a):""}function bt(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ra(n)){if(1<n.length)throw Error("<textarea> can only have at most one child.");n=n[0]}a=n}a==null&&(a=""),t=a}a=C(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),oe(e)}function Ma(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ma(e.children[0],t):e}function Qt(e){return" "+" ".repeat(e)}function Rn(e){return"+ "+" ".repeat(e)}function _a(e){return"- "+" ".repeat(e)}function rn(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Xs(e,t){return Nx.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function fs(e,t,a){var n=120-2*a;if(t===null)return Rn(a)+Xs(e,n)+`
41
+ `;if(typeof t=="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>n-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),Rn(a)+Xs(e,n)+`
42
+ `+_a(a)+Xs(t,n)+`
43
+ `}return Qt(a)+Xs(e,n)+`
44
+ `}function Zn(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function ms(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(ra(e))return"[...]";if(e.$$typeof===Ts)return(t=_(e.type))?"<"+t+">":"<...>";var a=Zn(e);if(a==="Object"){a="",t-=2;for(var n in e)if(e.hasOwnProperty(n)){var r=JSON.stringify(n);if(r!=='"'+n+'"'&&(n=r),t-=n.length-2,r=ms(e[n],15>t?t:15),t-=r.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+n+":"+r}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Pn(e,t){return typeof e!="string"||Nx.test(e)?"{"+ms(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function rt(e,t,a){var n=120-a.length-e.length,r=[],i;for(i in t)if(t.hasOwnProperty(i)&&i!=="children"){var f=Pn(t[i],120-a.length-i.length-1);n-=i.length+f.length+2,r.push(i+"="+f)}return r.length===0?a+"<"+e+`>
45
+ `:0<n?a+"<"+e+" "+r.join(" ")+`>
46
+ `:a+"<"+e+`
47
+ `+a+" "+r.join(`
48
+ `+a+" ")+`
49
+ `+a+`>
50
+ `}function da(e,t,a){var n="",r=et({},t),i;for(i in e)if(e.hasOwnProperty(i)){delete r[i];var f=120-2*a-i.length-2,p=ms(e[i],f);t.hasOwnProperty(i)?(f=ms(t[i],f),n+=Rn(a)+i+": "+p+`
51
+ `,n+=_a(a)+i+": "+f+`
52
+ `):n+=Rn(a)+i+": "+p+`
53
+ `}for(var v in r)r.hasOwnProperty(v)&&(e=ms(r[v],120-2*a-v.length-2),n+=_a(a)+v+": "+e+`
54
+ `);return n}function Eo(e,t,a,n){var r="",i=new Map;for(S in a)a.hasOwnProperty(S)&&i.set(S.toLowerCase(),S);if(i.size===1&&i.has("children"))r+=rt(e,t,Qt(n));else{for(var f in t)if(t.hasOwnProperty(f)&&f!=="children"){var p=120-2*(n+1)-f.length-1,v=i.get(f.toLowerCase());if(v!==void 0){i.delete(f.toLowerCase());var S=t[f];v=a[v];var A=Pn(S,p);p=Pn(v,p),typeof S=="object"&&S!==null&&typeof v=="object"&&v!==null&&Zn(S)==="Object"&&Zn(v)==="Object"&&(2<Object.keys(S).length||2<Object.keys(v).length||-1<A.indexOf("...")||-1<p.indexOf("..."))?r+=Qt(n+1)+f+`={{
55
+ `+da(S,v,n+2)+Qt(n+1)+`}}
56
+ `:(r+=Rn(n+1)+f+"="+A+`
57
+ `,r+=_a(n+1)+f+"="+p+`
58
+ `)}else r+=Qt(n+1)+f+"="+Pn(t[f],p)+`
59
+ `}i.forEach(function(V){if(V!=="children"){var T=120-2*(n+1)-V.length-1;r+=_a(n+1)+V+"="+Pn(a[V],T)+`
60
+ `}}),r=r===""?Qt(n)+"<"+e+`>
61
+ `:Qt(n)+"<"+e+`
62
+ `+r+Qt(n)+`>
63
+ `}return e=a.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(i="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(i=""+t),r+=fs(i,""+e,n+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+fs(""+t,null,n+1):r+fs(""+t,void 0,n+1)),r}function ps(e,t){var a=rn(e);if(a===null){for(a="",e=e.child;e;)a+=ps(e,t),e=e.sibling;return a}return Qt(t)+"<"+a+`>
64
+ `}function Ct(e,t){var a=Ma(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Qt(t)+`...
65
+ `+Ct(a,t+1);a="";var n=e.fiber._debugInfo;if(n)for(var r=0;r<n.length;r++){var i=n[r].name;typeof i=="string"&&(a+=Qt(t)+"<"+i+`>
66
+ `,t++)}if(n="",r=e.fiber.pendingProps,e.fiber.tag===6)n=fs(r,e.serverProps,t),t++;else if(i=rn(e.fiber),i!==null)if(e.serverProps===void 0){n=t;var f=120-2*n-i.length-2,p="";for(S in r)if(r.hasOwnProperty(S)&&S!=="children"){var v=Pn(r[S],15);if(f-=S.length+v.length+2,0>f){p+=" ...";break}p+=" "+S+"="+v}n=Qt(n)+"<"+i+p+`>
67
+ `,t++}else e.serverProps===null?(n=rt(i,r,Rn(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(n=Eo(i,r,e.serverProps,t),t++);var S="";for(r=e.fiber.child,i=0;r&&i<e.children.length;)f=e.children[i],f.fiber===r?(S+=Ct(f,t),i++):S+=ps(r,t),r=r.sibling;for(r&&0<e.children.length&&(S+=Qt(t)+`...
68
+ `),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)i=r[e],S=typeof i=="string"?S+(_a(t)+Xs(i,120-2*t)+`
69
+ `):S+rt(i.type,i.props,_a(t));return a+n+S}function Do(e){try{return`
70
+
71
+ `+Ct(e,0)}catch{return""}}function pl(e,t,a){for(var n=t,r=null,i=0;n;)n===e&&(i=0),r={fiber:n,children:r!==null?[r]:[],serverProps:n===t?a:n===e?null:void 0,serverTail:[],distanceFromLeaf:i},i++,n=n.return;return r!==null?Do(r).replaceAll(/^[+-]/gm,">"):""}function hu(e,t){var a=et({},e||wx),n={tag:t};return Sx.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),DD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),ED.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=n,t==="form"&&(a.formTag=n),t==="a"&&(a.aTagInScope=n),t==="button"&&(a.buttonTagInScope=n),t==="nobr"&&(a.nobrTagInScope=n),t==="p"&&(a.pTagInButtonScope=n),t==="li"&&(a.listItemTagAutoclosing=n),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=n),t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=n),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function vb(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return RD.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function x4(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function xb(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Wf(e,t){t=t||wx;var a=t.current;if(t=(a=vb(e,a&&a.tag,t.implicitRootScope)?null:a)?null:x4(e,t),t=a||t,!t)return!0;var n=t.tag;if(t=String(!!a)+"|"+e+"|"+n,_d[t])return!1;_d[t]=!0;var r=(t=hn)?xb(t.return,n):null,i=t!==null&&r!==null?pl(r,t,null):"",f="<"+e+">";return a?(a="",n==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
72
+ This will cause a hydration error.%s`,f,n,a,i)):console.error(`In HTML, %s cannot be a descendant of <%s>.
73
+ This will cause a hydration error.%s`,f,n,i),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||he(r,function(){console.error(`<%s> cannot contain a nested %s.
74
+ See this log for the ancestor stack trace.`,n,f)})),!1}function gu(e,t,a){if(a||vb("#text",t,!1))return!0;if(a="#text|"+t,_d[a])return!1;_d[a]=!0;var n=(a=hn)?xb(a,t):null;return a=a!==null&&n!==null?pl(n,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
75
+ This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
76
+ This will cause a hydration error.%s`,t,a),!1}function hl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function N4(e){return e.replace(UD,function(t,a){return a.toUpperCase()})}function Nb(e,t,a){var n=t.indexOf("--")===0;n||(-1<t.indexOf("-")?Di.hasOwnProperty(t)&&Di[t]||(Di[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,N4(t.replace(kD,"ms-")))):_D.test(t)?Di.hasOwnProperty(t)&&Di[t]||(Di[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Rx.test(a)||gh.hasOwnProperty(a)&&gh[a]||(gh[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(Rx,""))),typeof a=="number"&&(isNaN(a)?_x||(_x=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||kx||(kx=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Ux.has(t)?t==="float"?e.cssFloat=a:(St(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function Sb(e,t,a){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var n={};if(a){for(var r in a)if(a.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var i=hh[r]||[r],f=0;f<i.length;f++)n[i[f]]=r}for(var p in t)if(t.hasOwnProperty(p)&&(!a||a[p]!==t[p]))for(r=hh[p]||[p],i=0;i<r.length;i++)n[r[i]]=p;p={};for(var v in t)for(r=hh[v]||[v],i=0;i<r.length;i++)p[r[i]]=v;v={};for(var S in n)if(r=n[S],(i=p[S])&&r!==i&&(f=r+","+i,!v[f])){v[f]=!0,f=console;var A=t[r];f.error.call(f,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",A==null||typeof A=="boolean"||A===""?"Removing":"Updating",r,i)}}for(var V in a)!a.hasOwnProperty(V)||t!=null&&t.hasOwnProperty(V)||(V.indexOf("--")===0?e.setProperty(V,""):V==="float"?e.cssFloat="":e[V]="");for(var T in t)S=t[T],t.hasOwnProperty(T)&&a[T]!==S&&Nb(e,T,S)}else for(n in t)t.hasOwnProperty(n)&&Nb(e,n,t[n])}function gl(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}}function wb(e){return CD.get(e)||e}function S4(e,t){if(ts.call(_i,t)&&_i[t])return!0;if(jD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=Cx.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),_i[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),_i[t]=!0}if(TD.test(t)){if(e=t.toLowerCase(),e=Cx.hasOwnProperty(e)?e:null,e==null)return _i[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),_i[t]=!0)}return!0}function w4(e,t){var a=[],n;for(n in t)S4(e,n)||a.push(n);t=a.map(function(r){return"`"+r+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function E4(e,t,a,n){if(ts.call(Ba,t)&&Ba[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ba[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(n!=null){if(e=n.possibleRegistrationNames,n.registrationNameDependencies.hasOwnProperty(t))return!0;if(n=e.hasOwnProperty(r)?e[r]:null,n!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,n),Ba[t]=!0;if(jx.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Ba[t]=!0}else if(jx.test(t))return OD.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Ba[t]=!0;if(AD.test(t)||VD.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ba[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ba[t]=!0;if(r==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Ba[t]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Ba[t]=!0;if(Ud.hasOwnProperty(r)){if(r=Ud[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),Ba[t]=!0}else if(t!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),Ba[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),Ba[t]=!0)}case"function":case"symbol":return Ba[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),Ba[t]=!0}}return!0}function D4(e,t,a){var n=[],r;for(r in t)E4(e,r,t[r],a)||n.push(r);t=n.map(function(i){return"`"+i+"`"}).join(", "),n.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<n.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function bl(e){return MD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qs(){}function em(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Eb(e){var t=le(e);if(t&&(e=t.stateNode)){var a=e[Ha]||null;e:switch(e=t.stateNode,t.type){case"input":if(Re(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(ut(t,"name"),a=a.querySelectorAll('input[name="'+ye(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[Ha]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Re(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&ce(n)}break e;case"textarea":ua(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&tt(e,!!a.multiple,t,!1)}}}function Db(e,t,a){if(bh)return e(t,a);bh=!0;try{var n=e(t);return n}finally{if(bh=!1,(ki!==null||Ui!==null)&&(hi(),ki&&(t=ki,e=Ui,Ui=ki=null,Eb(t),e)))for(t=0;t<e.length;t++)Eb(e[t])}}function yl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[Ha]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function Rb(){if(Cd)return Cd;var e,t=vh,a=t.length,n,r="value"in Yo?Yo.value:Yo.textContent,i=r.length;for(e=0;e<a&&t[e]===r[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===r[i-n];n++);return Cd=r.slice(e,1<n?1-n:void 0)}function bu(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 yu(){return!0}function _b(){return!1}function Ja(e){function t(a,n,r,i,f){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(i):i[p]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?yu:_b,this.isPropagationStopped=_b,this}return et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=yu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=yu)},persist:function(){},isPersistent:yu}),t}function R4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ZD[e])?!!t[e]:!1}function tm(){return R4}function kb(e,t){switch(e){case"keyup":return iR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Mx;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ub(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function _4(e,t){switch(e){case"compositionend":return Ub(t);case"keypress":return t.which!==Lx?null:(Bx=!0,Hx);case"textInput":return e=t.data,e===Hx&&Bx?null:e;default:return null}}function k4(e,t){if(Ci)return e==="compositionend"||!wh&&kb(e,t)?(e=Rb(),Cd=vh=Yo=null,Ci=!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 zx&&t.locale!=="ko"?null:t.data;default:return null}}function Cb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cR[e.type]:t==="textarea"}function U4(e){if(!zs)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Tb(e,t,a,n){ki?Ui?Ui.push(n):Ui=[n]:ki=n,t=ud(t,"onChange"),0<t.length&&(a=new Td("onChange","change",null,a,n),e.push({event:a,listeners:t}))}function C4(e){m0(e,0)}function vu(e){var t=De(e);if(ce(t))return e}function jb(e,t){if(e==="change")return t}function Ob(){ac&&(ac.detachEvent("onpropertychange",Ab),nc=ac=null)}function Ab(e){if(e.propertyName==="value"&&vu(nc)){var t=[];Tb(t,nc,e,em(e)),Db(C4,t)}}function T4(e,t,a){e==="focusin"?(Ob(),ac=t,nc=a,ac.attachEvent("onpropertychange",Ab)):e==="focusout"&&Ob()}function j4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vu(nc)}function O4(e,t){if(e==="click")return vu(t)}function A4(e,t){if(e==="input"||e==="change")return vu(t)}function V4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function vl(e,t){if($a(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!ts.call(t,r)||!$a(e[r],t[r]))return!1}return!0}function Vb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mb(e,t){var a=Vb(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Vb(a)}}function zb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ce(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ce(e.document)}return t}function am(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")}function Hb(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Dh||Ti==null||Ti!==Ce(n)||(n=Ti,"selectionStart"in n&&am(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),sc&&vl(sc,n)||(sc=n,n=ud(Eh,"onSelect"),0<n.length&&(t=new Td("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Ti)))}function gr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function br(e){if(Rh[e])return Rh[e];if(!ji[e])return e;var t=ji[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Yx)return Rh[e]=t[a];return e}function Jn(e,t){Xx.set(e,t),st(t,[e])}function M4(e){for(var t=Od,a=0;a<e.length;a++){var n=e[a];if(typeof n=="object"&&n!==null)if(ra(n)&&n.length===2&&typeof n[0]=="string"){if(t!==Od&&t!==Th)return Uh;t=Th}else return Uh;else{if(typeof n=="function"||typeof n=="string"&&50<n.length||t!==Od&&t!==Ch)return Uh;t=Ch}}return t}function nm(e,t,a,n){for(var r in e)ts.call(e,r)&&r[0]!=="_"&&hs(r,e[r],t,a,n)}function hs(e,t,a,n,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Ts){var i=_(t.type)||"…",f=t.key;t=t.props;var p=Object.keys(t),v=p.length;if(f==null&&v===0){t="<"+i+" />";break}if(3>n||v===1&&p[0]==="children"&&f==null){t="<"+i+" … />";break}a.push([r+"  ".repeat(n)+e,"<"+i]),f!==null&&hs("key",f,a,n+1,r),e=!1;for(var S in t)S==="children"?t.children!=null&&(!ra(t.children)||0<t.children.length)&&(e=!0):ts.call(t,S)&&S[0]!=="_"&&hs(S,t[S],a,n+1,r);a.push(["",e?">…</"+i+">":"/>"]);return}if(i=Object.prototype.toString.call(t),i=i.slice(8,i.length-1),i==="Array"){if(S=M4(t),S===Ch||S===Od){t=JSON.stringify(t);break}else if(S===Th){for(a.push([r+"  ".repeat(n)+e,""]),e=0;e<t.length;e++)i=t[e],hs(i[0],i[1],a,n+1,r);return}}if(i==="Promise"){if(t.status==="fulfilled"){if(i=a.length,hs(e,t.value,a,n,r),a.length>i){a=a[i],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(i=a.length,hs(e,t.reason,a,n,r),a.length>i)){a=a[i],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(n)+e,"Promise"]);return}i==="Object"&&(S=Object.getPrototypeOf(t))&&typeof S.constructor=="function"&&(i=S.constructor.name),a.push([r+"  ".repeat(n)+e,i==="Object"?3>n?"":"…":i]),3>n&&nm(t,a,n+1,r);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===gR?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([r+"  ".repeat(n)+e,t])}function Bb(e,t,a,n){var r=!0;for(f in e)f in t||(a.push([Ad+"  ".repeat(n)+f,"…"]),r=!1);for(var i in t)if(i in e){var f=e[i],p=t[i];if(f!==p){if(n===0&&i==="children")r="  ".repeat(n)+i,a.push([Ad+r,"…"],[Vd+r,"…"]);else{if(!(3<=n)){if(typeof f=="object"&&typeof p=="object"&&f!==null&&p!==null&&f.$$typeof===p.$$typeof)if(p.$$typeof===Ts){if(f.type===p.type&&f.key===p.key){f=_(p.type)||"…",r="  ".repeat(n)+i,f="<"+f+" … />",a.push([Ad+r,f],[Vd+r,f]),r=!1;continue}}else{var v=Object.prototype.toString.call(f),S=Object.prototype.toString.call(p);if(v===S&&(S==="[object Object]"||S==="[object Array]")){v=[Px+"  ".repeat(n)+i,S==="[object Array]"?"Array":""],a.push(v),S=a.length,Bb(f,p,a,n+1)?S===a.length&&(v[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=!1;continue}}else if(typeof f=="function"&&typeof p=="function"&&f.name===p.name&&f.length===p.length&&(v=Function.prototype.toString.call(f),S=Function.prototype.toString.call(p),v===S)){f=p.name===""?"() => {}":p.name+"() {}",a.push([Px+"  ".repeat(n)+i,f+" Referentially unequal function closure. Consider memoization."]);continue}}hs(i,f,a,n,Ad),hs(i,p,a,n,Vd)}r=!1}}else a.push([Vd+"  ".repeat(n)+i,"…"]),r=!1;return r}function Kn(e){dt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function gs(e,t,a,n){Tt&&(Go.start=t,Go.end=a,so.color="warning",so.tooltipText=n,so.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,n,Go)):performance.measure(n,Go))}function xu(e,t,a){gs(e,t,a,"Reconnect")}function Nu(e,t,a,n,r){var i=H(e);if(i!==null&&Tt){var f=e.alternate,p=e.actualDuration;if(f===null||f.child!==e.child)for(var v=e.child;v!==null;v=v.sibling)p-=v.actualDuration;n=.5>p?n?"tertiary-light":"primary-light":10>p?n?"tertiary":"primary":100>p?n?"tertiary-dark":"primary-dark":"error";var S=e.memoizedProps;p=e._debugTask,S!==null&&f!==null&&f.memoizedProps!==S?(v=[bR],S=Bb(f.memoizedProps,S,v,0),1<v.length&&(S&&!qo&&(f.lanes&r)===0&&100<e.actualDuration?(qo=!0,v[0]=yR,so.color="warning",so.tooltipText=Jx):(so.color=n,so.tooltipText=i),so.properties=v,Go.start=t,Go.end=a,p!=null?p.run(performance.measure.bind(performance,"​"+i,Go)):performance.measure("​"+i,Go))):p!=null?p.run(console.timeStamp.bind(console,i,t,a,Un,void 0,n)):console.timeStamp(i,t,a,Un,void 0,n)}}function sm(e,t,a,n){if(Tt){var r=H(e);if(r!==null){for(var i=null,f=[],p=0;p<n.length;p++){var v=n[p];i==null&&v.source!==null&&(i=v.source._debugTask),v=v.value,f.push(["Error",typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v)])}e.key!==null&&hs("key",e.key,f,0,""),e.memoizedProps!==null&&nm(e.memoizedProps,f,0,""),i==null&&(i=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Un,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:f}}},i?i.run(performance.measure.bind(performance,"​"+r,e)):performance.measure("​"+r,e)}}}function bs(e,t,a,n,r){if(r!==null){if(Tt){var i=H(e);if(i!==null){n=[];for(var f=0;f<r.length;f++){var p=r[f].value;n.push(["Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e.key!==null&&hs("key",e.key,n,0,""),e.memoizedProps!==null&&nm(e.memoizedProps,n,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Un,tooltipText:"A lifecycle or effect errored",properties:n}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+i,t)):performance.measure("​"+i,t)}}}else i=H(e),i!==null&&Tt&&(r=1>n?"secondary-light":100>n?"secondary":500>n?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,i,t,a,Un,void 0,r)):console.timeStamp(i,t,a,Un,void 0,r))}function z4(e,t,a,n){if(Tt&&!(t<=e)){var r=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",n?n.run(console.timeStamp.bind(console,a,e,t,dt,lt,r)):console.timeStamp(a,e,t,dt,lt,r)}}function $b(e,t,a,n){!Tt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",n?n.run(console.timeStamp.bind(console,"Prewarm",e,t,dt,lt,a)):console.timeStamp("Prewarm",e,t,dt,lt,a))}function Yb(e,t,a,n){!Tt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",n?n.run(console.timeStamp.bind(console,"Suspended",e,t,dt,lt,a)):console.timeStamp("Suspended",e,t,dt,lt,a))}function L4(e,t,a,n,r,i){if(Tt&&!(t<=e)){a=[];for(var f=0;f<n.length;f++){var p=n[f].value;a.push(["Recoverable Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:dt,trackGroup:lt,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:a}}},i?i.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function om(e,t,a,n){!Tt||t<=e||(n?n.run(console.timeStamp.bind(console,"Errored",e,t,dt,lt,"error")):console.timeStamp("Errored",e,t,dt,lt,"error"))}function H4(e,t,a,n){!Tt||t<=e||(n?n.run(console.timeStamp.bind(console,a,e,t,dt,lt,"secondary-light")):console.timeStamp(a,e,t,dt,lt,"secondary-light"))}function qb(e,t,a,n,r){if(Tt&&!(t<=e)){for(var i=[],f=0;f<a.length;f++){var p=a[f].value;i.push(["Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"error",track:dt,trackGroup:lt,tooltipText:n?"Remaining Effects Errored":"Commit Errored",properties:i}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function rm(e,t,a){!Tt||t<=e||console.timeStamp("Animating",e,t,dt,lt,"secondary-dark")}function Su(){for(var e=Oi,t=jh=Oi=0;t<e;){var a=Cn[t];Cn[t++]=null;var n=Cn[t];Cn[t++]=null;var r=Cn[t];Cn[t++]=null;var i=Cn[t];if(Cn[t++]=null,n!==null&&r!==null){var f=n.pending;f===null?r.next=r:(r.next=f.next,f.next=r),n.pending=r}i!==0&&Gb(a,r,i)}}function wu(e,t,a,n){Cn[Oi++]=e,Cn[Oi++]=t,Cn[Oi++]=a,Cn[Oi++]=n,jh|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function im(e,t,a,n){return wu(e,t,a,n),Eu(e)}function ka(e,t){return wu(e,null,null,t),Eu(e)}function Gb(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,i=e.return;i!==null;)i.childLanes|=a,n=i.alternate,n!==null&&(n.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&oc||(r=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,r&&t!==null&&(r=31-La(a),e=i.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),i):null}function Eu(e){if(jc>AR)throw Xr=jc=0,Oc=dg=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Xr>VR&&(Xr=0,Oc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&r0(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&r0(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function yr(e){if(Tn===null)return e;var t=Tn(e);return t===void 0?e:t.current}function lm(e){if(Tn===null)return e;var t=Tn(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=yr(e.render),e.render!==t)?(t={$$typeof:Xl,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Ib(e,t){if(Tn===null)return!1;var a=e.elementType;t=t.type;var n=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(n=!0);break;case 0:(typeof t=="function"||r===pn)&&(n=!0);break;case 11:(r===Xl||r===pn)&&(n=!0);break;case 14:case 15:(r===Nd||r===pn)&&(n=!0);break;default:return!1}return!!(n&&(e=Tn(a),e!==void 0&&e===Tn(t)))}function Fb(e){Tn!==null&&typeof WeakSet=="function"&&(Ai===null&&(Ai=new WeakSet),Ai.add(e))}function Xb(e,t,a){do{var n=e,r=n.alternate,i=n.child,f=n.sibling,p=n.tag;n=n.type;var v=null;switch(p){case 0:case 15:case 1:v=n;break;case 11:v=n.render}if(Tn===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(n=!1,v!==null&&(v=Tn(v),v!==void 0&&(a.has(v)?n=!0:t.has(v)&&(p===1?n=!0:S=!0))),Ai!==null&&(Ai.has(e)||r!==null&&Ai.has(r))&&(n=!0),n&&(e._debugNeedsRemount=!0),(n||S)&&(r=ka(e,2),r!==null&&Ht(r,e,2)),i===null||n||Xb(i,t,a),f===null)break;e=f}while(!0)}function B4(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Kx||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function cm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zs(e,t){var a=e.alternate;switch(a===null?(a=N(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=yr(e.type);break;case 1:a.type=yr(e.type);break;case 11:a.type=lm(e.type)}return a}function Qb(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function um(e,t,a,n,r,i){var f=0,p=e;if(typeof e=="function")cm(e)&&(f=1),p=yr(p);else if(typeof e=="string")f=de(),f=ZE(e,a,f)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case nh:return t=N(31,a,t,r),t.elementType=nh,t.lanes=i,t;case Si:return vr(a.children,r,i,t);case xd:f=8,r|=Ca,r|=as;break;case Wp:return e=a,n=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=N(12,e,t,n|Ze),t.elementType=Wp,t.lanes=i,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case th:return t=N(13,a,t,r),t.elementType=th,t.lanes=i,t;case ah:return t=N(19,a,t,r),t.elementType=ah,t.lanes=i,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case js:f=10;break e;case eh:f=9;break e;case Xl:f=11,p=lm(p);break e;case Nd:f=14;break e;case pn:f=16,p=null;break e}p="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?a="null":ra(e)?a="array":e!==void 0&&e.$$typeof===Ts?(a="<"+(_(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(f=n?P(n):null)&&(p+=`
77
+
78
+ Check the render method of \``+f+"`."),f=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+p)),p=null}return t=N(f,a,t,r),t.elementType=e,t.type=p,t.lanes=i,t._debugOwner=n,t}function Du(e,t,a){return t=um(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function vr(e,t,a,n){return e=N(7,e,n,t),e.lanes=a,e}function dm(e,t,a){return e=N(6,e,null,t),e.lanes=a,e}function Zb(e){var t=N(18,null,null,$e);return t.stateNode=e,t}function fm(e,t,a){return t=N(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ln(e,t){if(typeof e=="object"&&e!==null){var a=Oh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:nt(t)},Oh.set(e,t),t)}return{value:e,source:t,stack:nt(t)}}function Ps(e,t){Ro(),Vi[Mi++]=rc,Vi[Mi++]=Md,Md=e,rc=t}function Pb(e,t,a){Ro(),jn[On++]=ro,jn[On++]=io,jn[On++]=jr,jr=e;var n=ro;e=io;var r=32-La(n)-1;n&=~(1<<r),a+=1;var i=32-La(t)+r;if(30<i){var f=r-r%5;i=(n&(1<<f)-1).toString(32),n>>=f,r-=f,ro=1<<32-La(t)+r|a<<r|n,io=i+e}else ro=1<<i|a<<r|n,io=e}function mm(e){Ro(),e.return!==null&&(Ps(e,1),Pb(e,1,0))}function pm(e){for(;e===Md;)Md=Vi[--Mi],Vi[Mi]=null,rc=Vi[--Mi],Vi[Mi]=null;for(;e===jr;)jr=jn[--On],jn[On]=null,io=jn[--On],jn[On]=null,ro=jn[--On],jn[On]=null}function Jb(){return Ro(),jr!==null?{id:ro,overflow:io}:null}function Kb(e,t){Ro(),jn[On++]=ro,jn[On++]=io,jn[On++]=jr,ro=t.id,io=t.overflow,jr=e}function Ro(){ot||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function xr(e,t){if(e.return===null){if(gn===null)gn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(gn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");gn.distanceFromLeaf>t&&(gn.distanceFromLeaf=t)}return gn}var a=xr(e.return,t+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t)}function Wb(){ot&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Ru(e,t){Ls||(e=xr(e,0),e.serverProps=null,t!==null&&(t=T0(t),e.serverTail.push(t)))}function _o(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",n=gn;throw n!==null&&(gn=null,a=Do(n)),xl(ln(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
79
+
80
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
81
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
82
+ - Date formatting in a user's locale which doesn't match the server.
83
+ - External changing data without sending a snapshot of it along with the HTML.
84
+ - Invalid HTML tag nesting.
85
+
86
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
87
+
88
+ https://react.dev/link/hydration-mismatch`+a),e)),Ah}function ey(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Ea]=e,t[Ha]=n,Ap(a,n),a){case"dialog":it("cancel",t),it("close",t);break;case"iframe":case"object":case"embed":it("load",t);break;case"video":case"audio":for(a=0;a<Ac.length;a++)it(Ac[a],t);break;case"source":it("error",t);break;case"img":case"image":case"link":it("error",t),it("load",t);break;case"details":it("toggle",t);break;case"input":ca("input",n),it("invalid",t),Oe(t,n),ze(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"option":Te(t,n);break;case"select":ca("select",n),it("invalid",t),Ut(t,n);break;case"textarea":ca("textarea",n),it("invalid",t),Xt(t,n),bt(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||b0(t.textContent,a)?(n.popover!=null&&(it("beforetoggle",t),it("toggle",t)),n.onScroll!=null&&it("scroll",t),n.onScrollEnd!=null&&it("scrollend",t),n.onClick!=null&&(t.onclick=Qs),t=!0):t=!1,t||_o(e,!0)}function ty(e){for(Da=e.return;Da;)switch(Da.tag){case 5:case 31:case 13:An=!1;return;case 27:case 3:An=!0;return;default:Da=Da.return}}function ri(e){if(e!==Da)return!1;if(!ot)return ty(e),ot=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Hp(e.type,e.memoizedProps)),a=!a),a&&jt){for(a=jt;a;){var n=xr(e,0),r=T0(a);n.serverTail.push(r),a=r.type==="Suspense"?qp(a):mn(a.nextSibling)}_o(e)}if(ty(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");jt=qp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");jt=qp(e)}else t===27?(t=jt,zo(e.type)?(e=wg,wg=null,jt=e):jt=t):jt=Da?mn(e.stateNode.nextSibling):null;return!0}function Nr(){jt=Da=null,Ls=ot=!1}function hm(){var e=Fo;return e!==null&&(Ia===null?Ia=e:Ia.push.apply(Ia,e),Fo=null),e}function xl(e){Fo===null?Fo=[e]:Fo.push(e)}function gm(){var e=gn;if(e!==null){gn=null;for(var t=Do(e);0<e.children.length;)e=e.children[0];he(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
89
+
90
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
91
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
92
+ - Date formatting in a user's locale which doesn't match the server.
93
+ - External changing data without sending a snapshot of it along with the HTML.
94
+ - Invalid HTML tag nesting.
95
+
96
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
97
+
98
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function _u(){zi=zd=null,Li=!1}function ko(e,t,a){X(Vh,t._currentValue,e),t._currentValue=a,X(Mh,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==eN&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=eN}function Js(e,t){e._currentValue=Vh.current;var a=Mh.current;W(Mh,t),e._currentRenderer=a,W(Vh,t)}function bm(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function ym(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var i=r.dependencies;if(i!==null){var f=r.child;i=i.firstContext;e:for(;i!==null;){var p=i;i=r;for(var v=0;v<t.length;v++)if(p.context===t[v]){i.lanes|=a,p=i.alternate,p!==null&&(p.lanes|=a),bm(i.return,a,e),n||(f=null);break e}i=p.next}}else if(r.tag===18){if(f=r.return,f===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");f.lanes|=a,i=f.alternate,i!==null&&(i.lanes|=a),bm(f,a,e),f=null}else f=r.child;if(f!==null)f.return=r;else for(f=r;f!==null;){if(f===e){f=null;break}if(r=f.sibling,r!==null){r.return=f.return,f=r;break}f=f.return}r=f}}function ii(e,t,a,n){e=null;for(var r=t,i=!1;r!==null;){if(!i){if((r.flags&524288)!==0)i=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var f=r.alternate;if(f===null)throw Error("Should have a current fiber. This is a bug in React.");if(f=f.memoizedProps,f!==null){var p=r.type;$a(r.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(r===Sd.current){if(f=r.alternate,f===null)throw Error("Should have a current fiber. This is a bug in React.");f.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Hc):e=[Hc])}r=r.return}e!==null&&ym(t,e,a,n),t.flags|=262144}function ku(e){for(e=e.firstContext;e!==null;){if(!$a(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sr(e){zd=e,zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function At(e){return Li&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),ay(zd,e)}function Uu(e,t){return zd===null&&Sr(e),ay(e,t)}function ay(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},zi===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");zi=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else zi=zi.next=t;return a}function vm(){return{controller:new NR,data:new Map,refCount:0}}function wr(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function Nl(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&SR(wR,function(){e.controller.abort()})}function ys(e,t,a){(e&127)!==0?0>Hs&&(Hs=Wt(),lc=Ld(t),zh=t,a!=null&&(Lh=H(a)),(ft&(la|vn))!==ga&&(Bt=!0,Qo=ic),e=Yl(),t=$l(),e!==Hi||t!==cc?Hi=-1.1:t!==null&&(Qo=ic),Vr=e,cc=t):(e&4194048)!==0&&0>Vn&&(Vn=Wt(),uc=Ld(t),tN=t,a!=null&&(aN=H(a)),0>fo)&&(e=Yl(),t=$l(),(e!==Po||t!==Mr)&&(Po=-1.1),Zo=e,Mr=t)}function $4(e){if(0>Hs){Hs=Wt(),lc=e._debugTask!=null?e._debugTask:null,(ft&(la|vn))!==ga&&(Qo=ic);var t=Yl(),a=$l();t!==Hi||a!==cc?Hi=-1.1:a!==null&&(Qo=ic),Vr=t,cc=a}0>Vn&&(Vn=Wt(),uc=e._debugTask!=null?e._debugTask:null,0>fo)&&(e=Yl(),t=$l(),(e!==Po||t!==Mr)&&(Po=-1.1),Zo=e,Mr=t)}function Ks(){var e=Or;return Or=0,e}function Cu(e){var t=Or;return Or=e,t}function Sl(e){var t=Or;return Or+=e,t}function Tu(){Le=Ve=-1.1}function cn(){var e=Ve;return Ve=-1.1,e}function un(e){0<=e&&(Ve=e)}function vs(){var e=zt;return zt=-0,e}function xs(e){0<=e&&(zt=e)}function Ns(){var e=Vt;return Vt=null,e}function Ss(){var e=Bt;return Bt=!1,e}function xm(e){Ya=Wt(),0>e.actualStartTime&&(e.actualStartTime=Ya)}function Nm(e){if(0<=Ya){var t=Wt()-Ya;e.actualDuration+=t,e.selfBaseDuration=t,Ya=-1}}function ny(e){if(0<=Ya){var t=Wt()-Ya;e.actualDuration+=t,Ya=-1}}function ws(){if(0<=Ya){var e=Wt(),t=e-Ya;Ya=-1,Or+=t,zt+=t,Le=e}}function sy(e){Vt===null&&(Vt=[]),Vt.push(e),co===null&&(co=[]),co.push(e)}function Es(){Ya=Wt(),0>Ve&&(Ve=Ya)}function wl(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Y4(e,t){if(fc===null){var a=fc=[];Bh=0,zr=Cp(),Bi={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Bh++,t.then(oy,oy),t}function oy(){if(--Bh===0&&(-1<Vn||(fo=-1.1),fc!==null)){Bi!==null&&(Bi.status="fulfilled");var e=fc;fc=null,zr=0,Bi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function q4(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}function Sm(){var e=Lr.current;return e!==null?e:Dt.pooledCache}function ju(e,t){t===null?X(Lr,Lr.current,e):X(Lr,t.pool,e)}function ry(){var e=Sm();return e===null?null:{parent:Kt._currentValue,pool:e}}function iy(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function ly(e){return e=e.status,e==="fulfilled"||e==="rejected"}function cy(e,t,a){I.actQueue!==null&&(I.didUsePromise=!0);var n=e.thenables;if(a=n[a],a===void 0?n.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Qs,Qs),t=a),t._debugInfo===void 0){e=performance.now(),n=t.displayName;var r={name:typeof n=="string"?n:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:r}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){r.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,dy(e),e;default:if(typeof t.status=="string")t.then(Qs,Qs);else{if(e=Dt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=i}},function(i){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,dy(e),e}throw Br=t,vc=!0,$i}}function Uo(e){try{return kR(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Br=t,vc=!0,$i):t}}function uy(){if(Br===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Br;return Br=null,vc=!1,e}function dy(e){if(e===$i||e===Fd)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Na(e){var t=Pe;return e!=null&&(Pe=t===null?e:t.concat(e)),t}function wm(){var e=Pe;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function Ou(e,t,a){for(var n=Object.keys(e.props),r=0;r<n.length;r++){var i=n[r];if(i!=="children"&&i!=="key"){t===null&&(t=Du(e,a.mode,0),t._debugInfo=Pe,t.return=a),he(t,function(f){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f)},i);break}}}function Au(e){var t=xc;return xc+=1,Yi===null&&(Yi=iy()),cy(Yi,e,t)}function El(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fy(e,t){throw t.$$typeof===rD?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
99
+ - Multiple copies of the "react" package is used.
100
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
101
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Vu(e,t){var a=wm();a!==null?a.run(fy.bind(null,e,t)):fy(e,t)}function my(e,t){var a=H(e)||"Component";SN[a]||(SN[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
103
+ <%s>{%s}</%s>`,t,t,a,t,a))}function Mu(e,t){var a=wm();a!==null?a.run(my.bind(null,e,t)):my(e,t)}function py(e,t){var a=H(e)||"Component";wN[a]||(wN[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
104
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
105
+ <%s>%s</%s>`,a,t,a))}function zu(e,t){var a=wm();a!==null?a.run(py.bind(null,e,t)):py(e,t)}function hy(e){function t(U,j){if(e){var O=U.deletions;O===null?(U.deletions=[j],U.flags|=16):O.push(j)}}function a(U,j){if(!e)return null;for(;j!==null;)t(U,j),j=j.sibling;return null}function n(U){for(var j=new Map;U!==null;)U.key!==null?j.set(U.key,U):j.set(U.index,U),U=U.sibling;return j}function r(U,j){return U=Zs(U,j),U.index=0,U.sibling=null,U}function i(U,j,O){return U.index=O,e?(O=U.alternate,O!==null?(O=O.index,O<j?(U.flags|=67108866,j):O):(U.flags|=67108866,j)):(U.flags|=1048576,j)}function f(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function p(U,j,O,Z){return j===null||j.tag!==6?(j=dm(O,U.mode,Z),j.return=U,j._debugOwner=U,j._debugTask=U._debugTask,j._debugInfo=Pe,j):(j=r(j,O),j.return=U,j._debugInfo=Pe,j)}function v(U,j,O,Z){var be=O.type;return be===Si?(j=A(U,j,O.props.children,Z,O.key),Ou(O,j,U),j):j!==null&&(j.elementType===be||Ib(j,O)||typeof be=="object"&&be!==null&&be.$$typeof===pn&&Uo(be)===j.type)?(j=r(j,O.props),El(j,O),j.return=U,j._debugOwner=O._owner,j._debugInfo=Pe,j):(j=Du(O,U.mode,Z),El(j,O),j.return=U,j._debugInfo=Pe,j)}function S(U,j,O,Z){return j===null||j.tag!==4||j.stateNode.containerInfo!==O.containerInfo||j.stateNode.implementation!==O.implementation?(j=fm(O,U.mode,Z),j.return=U,j._debugInfo=Pe,j):(j=r(j,O.children||[]),j.return=U,j._debugInfo=Pe,j)}function A(U,j,O,Z,be){return j===null||j.tag!==7?(j=vr(O,U.mode,Z,be),j.return=U,j._debugOwner=U,j._debugTask=U._debugTask,j._debugInfo=Pe,j):(j=r(j,O),j.return=U,j._debugInfo=Pe,j)}function V(U,j,O){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=dm(""+j,U.mode,O),j.return=U,j._debugOwner=U,j._debugTask=U._debugTask,j._debugInfo=Pe,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ts:return O=Du(j,U.mode,O),El(O,j),O.return=U,U=Na(j._debugInfo),O._debugInfo=Pe,Pe=U,O;case Ni:return j=fm(j,U.mode,O),j.return=U,j._debugInfo=Pe,j;case pn:var Z=Na(j._debugInfo);return j=Uo(j),U=V(U,j,O),Pe=Z,U}if(ra(j)||te(j))return O=vr(j,U.mode,O,null),O.return=U,O._debugOwner=U,O._debugTask=U._debugTask,U=Na(j._debugInfo),O._debugInfo=Pe,Pe=U,O;if(typeof j.then=="function")return Z=Na(j._debugInfo),U=V(U,Au(j),O),Pe=Z,U;if(j.$$typeof===js)return V(U,Uu(U,j),O);Vu(U,j)}return typeof j=="function"&&Mu(U,j),typeof j=="symbol"&&zu(U,j),null}function T(U,j,O,Z){var be=j!==null?j.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return be!==null?null:p(U,j,""+O,Z);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Ts:return O.key===be?(be=Na(O._debugInfo),U=v(U,j,O,Z),Pe=be,U):null;case Ni:return O.key===be?S(U,j,O,Z):null;case pn:return be=Na(O._debugInfo),O=Uo(O),U=T(U,j,O,Z),Pe=be,U}if(ra(O)||te(O))return be!==null?null:(be=Na(O._debugInfo),U=A(U,j,O,Z,null),Pe=be,U);if(typeof O.then=="function")return be=Na(O._debugInfo),U=T(U,j,Au(O),Z),Pe=be,U;if(O.$$typeof===js)return T(U,j,Uu(U,O),Z);Vu(U,O)}return typeof O=="function"&&Mu(U,O),typeof O=="symbol"&&zu(U,O),null}function $(U,j,O,Z,be){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return U=U.get(O)||null,p(j,U,""+Z,be);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case Ts:return O=U.get(Z.key===null?O:Z.key)||null,U=Na(Z._debugInfo),j=v(j,O,Z,be),Pe=U,j;case Ni:return U=U.get(Z.key===null?O:Z.key)||null,S(j,U,Z,be);case pn:var qe=Na(Z._debugInfo);return Z=Uo(Z),j=$(U,j,O,Z,be),Pe=qe,j}if(ra(Z)||te(Z))return O=U.get(O)||null,U=Na(Z._debugInfo),j=A(j,O,Z,be,null),Pe=U,j;if(typeof Z.then=="function")return qe=Na(Z._debugInfo),j=$(U,j,O,Au(Z),be),Pe=qe,j;if(Z.$$typeof===js)return $(U,j,O,Uu(j,Z),be);Vu(j,Z)}return typeof Z=="function"&&Mu(j,Z),typeof Z=="symbol"&&zu(j,Z),null}function fe(U,j,O,Z){if(typeof O!="object"||O===null)return Z;switch(O.$$typeof){case Ts:case Ni:D(U,j,O);var be=O.key;if(typeof be!="string")break;if(Z===null){Z=new Set,Z.add(be);break}if(!Z.has(be)){Z.add(be);break}he(j,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",be)});break;case pn:O=Uo(O),fe(U,j,O,Z)}return Z}function Ne(U,j,O,Z){for(var be=null,qe=null,Ae=null,Ue=j,Xe=j=0,Ot=null;Ue!==null&&Xe<O.length;Xe++){Ue.index>Xe?(Ot=Ue,Ue=null):Ot=Ue.sibling;var Pt=T(U,Ue,O[Xe],Z);if(Pt===null){Ue===null&&(Ue=Ot);break}be=fe(U,Pt,O[Xe],be),e&&Ue&&Pt.alternate===null&&t(U,Ue),j=i(Pt,j,Xe),Ae===null?qe=Pt:Ae.sibling=Pt,Ae=Pt,Ue=Ot}if(Xe===O.length)return a(U,Ue),ot&&Ps(U,Xe),qe;if(Ue===null){for(;Xe<O.length;Xe++)Ue=V(U,O[Xe],Z),Ue!==null&&(be=fe(U,Ue,O[Xe],be),j=i(Ue,j,Xe),Ae===null?qe=Ue:Ae.sibling=Ue,Ae=Ue);return ot&&Ps(U,Xe),qe}for(Ue=n(Ue);Xe<O.length;Xe++)Ot=$(Ue,U,Xe,O[Xe],Z),Ot!==null&&(be=fe(U,Ot,O[Xe],be),e&&Ot.alternate!==null&&Ue.delete(Ot.key===null?Xe:Ot.key),j=i(Ot,j,Xe),Ae===null?qe=Ot:Ae.sibling=Ot,Ae=Ot);return e&&Ue.forEach(function(xo){return t(U,xo)}),ot&&Ps(U,Xe),qe}function kt(U,j,O,Z){if(O==null)throw Error("An iterable object provided no iterator.");for(var be=null,qe=null,Ae=j,Ue=j=0,Xe=null,Ot=null,Pt=O.next();Ae!==null&&!Pt.done;Ue++,Pt=O.next()){Ae.index>Ue?(Xe=Ae,Ae=null):Xe=Ae.sibling;var xo=T(U,Ae,Pt.value,Z);if(xo===null){Ae===null&&(Ae=Xe);break}Ot=fe(U,xo,Pt.value,Ot),e&&Ae&&xo.alternate===null&&t(U,Ae),j=i(xo,j,Ue),qe===null?be=xo:qe.sibling=xo,qe=xo,Ae=Xe}if(Pt.done)return a(U,Ae),ot&&Ps(U,Ue),be;if(Ae===null){for(;!Pt.done;Ue++,Pt=O.next())Ae=V(U,Pt.value,Z),Ae!==null&&(Ot=fe(U,Ae,Pt.value,Ot),j=i(Ae,j,Ue),qe===null?be=Ae:qe.sibling=Ae,qe=Ae);return ot&&Ps(U,Ue),be}for(Ae=n(Ae);!Pt.done;Ue++,Pt=O.next())Xe=$(Ae,U,Ue,Pt.value,Z),Xe!==null&&(Ot=fe(U,Xe,Pt.value,Ot),e&&Xe.alternate!==null&&Ae.delete(Xe.key===null?Ue:Xe.key),j=i(Xe,j,Ue),qe===null?be=Xe:qe.sibling=Xe,qe=Xe);return e&&Ae.forEach(function(KR){return t(U,KR)}),ot&&Ps(U,Ue),be}function ct(U,j,O,Z){if(typeof O=="object"&&O!==null&&O.type===Si&&O.key===null&&(Ou(O,null,U),O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Ts:var be=Na(O._debugInfo);e:{for(var qe=O.key;j!==null;){if(j.key===qe){if(qe=O.type,qe===Si){if(j.tag===7){a(U,j.sibling),Z=r(j,O.props.children),Z.return=U,Z._debugOwner=O._owner,Z._debugInfo=Pe,Ou(O,Z,U),U=Z;break e}}else if(j.elementType===qe||Ib(j,O)||typeof qe=="object"&&qe!==null&&qe.$$typeof===pn&&Uo(qe)===j.type){a(U,j.sibling),Z=r(j,O.props),El(Z,O),Z.return=U,Z._debugOwner=O._owner,Z._debugInfo=Pe,U=Z;break e}a(U,j);break}else t(U,j);j=j.sibling}O.type===Si?(Z=vr(O.props.children,U.mode,Z,O.key),Z.return=U,Z._debugOwner=U,Z._debugTask=U._debugTask,Z._debugInfo=Pe,Ou(O,Z,U),U=Z):(Z=Du(O,U.mode,Z),El(Z,O),Z.return=U,Z._debugInfo=Pe,U=Z)}return U=f(U),Pe=be,U;case Ni:e:{for(be=O,O=be.key;j!==null;){if(j.key===O)if(j.tag===4&&j.stateNode.containerInfo===be.containerInfo&&j.stateNode.implementation===be.implementation){a(U,j.sibling),Z=r(j,be.children||[]),Z.return=U,U=Z;break e}else{a(U,j);break}else t(U,j);j=j.sibling}Z=fm(be,U.mode,Z),Z.return=U,U=Z}return f(U);case pn:return be=Na(O._debugInfo),O=Uo(O),U=ct(U,j,O,Z),Pe=be,U}if(ra(O))return be=Na(O._debugInfo),U=Ne(U,j,O,Z),Pe=be,U;if(te(O)){if(be=Na(O._debugInfo),qe=te(O),typeof qe!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ae=qe.call(O);return Ae===O?(U.tag!==0||Object.prototype.toString.call(U.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ae)!=="[object Generator]")&&(xN||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),xN=!0):O.entries!==qe||Gh||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Gh=!0),U=kt(U,j,Ae,Z),Pe=be,U}if(typeof O.then=="function")return be=Na(O._debugInfo),U=ct(U,j,Au(O),Z),Pe=be,U;if(O.$$typeof===js)return ct(U,j,Uu(U,O),Z);Vu(U,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(be=""+O,j!==null&&j.tag===6?(a(U,j.sibling),Z=r(j,be),Z.return=U,U=Z):(a(U,j),Z=dm(be,U.mode,Z),Z.return=U,Z._debugOwner=U,Z._debugTask=U._debugTask,Z._debugInfo=Pe,U=Z),f(U)):(typeof O=="function"&&Mu(U,O),typeof O=="symbol"&&zu(U,O),a(U,j))}return function(U,j,O,Z){var be=Pe;Pe=null;try{xc=0;var qe=ct(U,j,O,Z);return Yi=null,qe}catch(Ot){if(Ot===$i||Ot===Fd)throw Ot;var Ae=N(29,Ot,null,U.mode);Ae.lanes=Z,Ae.return=U;var Ue=Ae._debugInfo=Pe;if(Ae._debugOwner=U._debugOwner,Ae._debugTask=U._debugTask,Ue!=null){for(var Xe=Ue.length-1;0<=Xe;Xe--)if(typeof Ue[Xe].stack=="string"){Ae._debugOwner=Ue[Xe],Ae._debugTask=Ue[Xe].debugTask;break}}return Ae}finally{Pe=be}}}function gy(e,t){var a=ra(e);return e=!a&&typeof te(e)=="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function Em(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dm(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 Co(e){return{lane:e,tag:DN,payload:null,callback:null,next:null}}function To(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Fh===n&&!kN){var r=H(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
106
+
107
+ Please update the following component: %s`,r),kN=!0}return(ft&la)!==ga?(r=n.pending,r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=Eu(e),Gb(e,null,a),t):(wu(e,n,t,a),Eu(e))}function Dl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ds(e,a)}}function Lu(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?r=i=f:i=i.next=f,a=a.next}while(a!==null);i===null?r=i=t:i=i.next=t}else r=i=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Rl(){if(Xh){var e=Bi;if(e!==null)throw e}}function _l(e,t,a,n){Xh=!1;var r=e.updateQueue;Jo=!1,Fh=r.shared;var i=r.firstBaseUpdate,f=r.lastBaseUpdate,p=r.shared.pending;if(p!==null){r.shared.pending=null;var v=p,S=v.next;v.next=null,f===null?i=S:f.next=S,f=v;var A=e.alternate;A!==null&&(A=A.updateQueue,p=A.lastBaseUpdate,p!==f&&(p===null?A.firstBaseUpdate=S:p.next=S,A.lastBaseUpdate=v))}if(i!==null){var V=r.baseState;f=0,A=S=v=null,p=i;do{var T=p.lane&-536870913,$=T!==p.lane;if($?(Je&T)===T:(n&T)===T){T!==0&&T===zr&&(Xh=!0),A!==null&&(A=A.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{T=e;var fe=p,Ne=t,kt=a;switch(fe.tag){case RN:if(fe=fe.payload,typeof fe=="function"){Li=!0;var ct=fe.call(kt,V,Ne);if(T.mode&Ca){we(!0);try{fe.call(kt,V,Ne)}finally{we(!1)}}Li=!1,V=ct;break e}V=fe;break e;case Ih:T.flags=T.flags&-65537|128;case DN:if(ct=fe.payload,typeof ct=="function"){if(Li=!0,fe=ct.call(kt,V,Ne),T.mode&Ca){we(!0);try{ct.call(kt,V,Ne)}finally{we(!1)}}Li=!1}else fe=ct;if(fe==null)break e;V=et({},V,fe);break e;case _N:Jo=!0}}T=p.callback,T!==null&&(e.flags|=64,$&&(e.flags|=8192),$=r.callbacks,$===null?r.callbacks=[T]:$.push(T))}else $={lane:T,tag:p.tag,payload:p.payload,callback:p.callback,next:null},A===null?(S=A=$,v=V):A=A.next=$,f|=T;if(p=p.next,p===null){if(p=r.shared.pending,p===null)break;$=p,p=$.next,$.next=null,r.lastBaseUpdate=$,r.shared.pending=null}}while(!0);A===null&&(v=V),r.baseState=v,r.firstBaseUpdate=S,r.lastBaseUpdate=A,i===null&&(r.shared.lanes=0),er|=f,e.lanes=f,e.memoizedState=V}Fh=null}function by(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function G4(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)by(a[e],t)}function yy(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)by(a[e],t)}function vy(e,t){var a=$s;X(Qd,a,e),X(qi,t,e),$s=a|t.baseLanes}function Rm(e){X(Qd,$s,e),X(qi,qi.current,e)}function _m(e){$s=Qd.current,W(qi,e),W(Qd,e)}function jo(e){var t=e.alternate;X(Zt,Zt.current&Gi,e),X(bn,e,e),Mn===null&&(t===null||qi.current!==null||t.memoizedState!==null)&&(Mn=e)}function km(e){X(Zt,Zt.current,e),X(bn,e,e),Mn===null&&(Mn=e)}function xy(e){e.tag===22?(X(Zt,Zt.current,e),X(bn,e,e),Mn===null&&(Mn=e)):Oo(e)}function Oo(e){X(Zt,Zt.current,e),X(bn,bn.current,e)}function dn(e){W(bn,e),Mn===e&&(Mn=null),W(Zt,e)}function Hu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||$p(a)||Yp(a)))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}function We(){var e=Y;Ln===null?Ln=[e]:Ln.push(e)}function se(){var e=Y;if(Ln!==null&&(ho++,Ln[ho]!==e)){var t=H(Ye);if(!UN.has(t)&&(UN.add(t),Ln!==null)){for(var a="",n=0;n<=ho;n++){var r=Ln[n],i=n===ho?e:r;for(r=n+1+". "+r;30>r.length;)r+=" ";r+=i+`
108
+ `,a+=r}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
109
+
110
+ Previous render Next render
111
+ ------------------------------------------------------
112
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
+ `,t,a)}}}function li(e){e==null||ra(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Y,typeof e)}function Bu(){var e=H(Ye);TN.has(e)||(TN.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function qt(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
114
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
115
+ 2. You might be breaking the Rules of Hooks
116
+ 3. You might have more than one copy of React in the same app
117
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Um(e,t){if(wc)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Y),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
118
+
119
+ Previous: %s
120
+ Incoming: %s`,Y,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!$a(e[a],t[a]))return!1;return!0}function Cm(e,t,a,n,r,i){mo=i,Ye=t,Ln=e!==null?e._debugHookTypes:null,ho=-1,wc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(i=H(Ye),Qh.has(i)||(Qh.add(i),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",i===null?"An unknown Component":"<"+i+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e!==null&&e.memoizedState!==null?Ph:Ln!==null?jN:Zh,Yr=i=(t.mode&Ca)!==$e;var f=$h(a,n,r);if(Yr=!1,Fi&&(f=Tm(t,a,n,r)),i){we(!0);try{f=Tm(t,a,n,r)}finally{we(!1)}}return Ny(e,t),f}function Ny(e,t){t._debugHookTypes=Ln,t.dependencies===null?po!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:po}):t.dependencies._debugThenableState=po,I.H=Ec;var a=Et!==null&&Et.next!==null;if(mo=0,Ln=Y=ea=Et=Ye=null,ho=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Pd=!1,Sc=0,po=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||ta||(e=e.dependencies,e!==null&&ku(e)&&(ta=!0)),vc?(vc=!1,e=!0):e=!1,e&&(t=H(t)||"Unknown",CN.has(t)||Qh.has(t)||(CN.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Tm(e,t,a,n){Ye=e;var r=0;do{if(Fi&&(po=null),Sc=0,Fi=!1,r>=CR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,wc=!1,ea=Et=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}ho=-1,I.H=ON,i=$h(t,a,n)}while(Fi);return i}function I4(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?kl(t):t,e=e.useState()[0],(Et!==null?Et.memoizedState:null)!==e&&(Ye.flags|=1024),t}function jm(){var e=Jd!==0;return Jd=0,e}function Om(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&as)!==$e?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Am(e){if(Pd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pd=!1}mo=0,Ln=ea=Et=Ye=null,ho=-1,Y=null,Fi=!1,Sc=Jd=0,po=null}function za(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ea===null?Ye.memoizedState=ea=e:ea=ea.next=e,ea}function xt(){if(Et===null){var e=Ye.alternate;e=e!==null?e.memoizedState:null}else e=Et.next;var t=ea===null?Ye.memoizedState:ea.next;if(t!==null)ea=t,Et=e;else{if(e===null)throw Ye.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Et=e,e={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},ea===null?Ye.memoizedState=ea=e:ea=ea.next=e}return ea}function $u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(e){var t=Sc;return Sc+=1,po===null&&(po=iy()),e=cy(po,e,t),t=Ye,(ea===null?t.memoizedState:ea.next)===null&&(t=t.alternate,I.H=t!==null&&t.memoizedState!==null?Ph:Zh),e}function Ao(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return kl(e);if(e.$$typeof===js)return At(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Er(e){var t=null,a=Ye.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=Ye.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=$u(),Ye.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||wc)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=iD;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Wn(e,t){return typeof t=="function"?t(e):t}function Vm(e,t,a){var n=za();if(a!==void 0){var r=a(t);if(Yr){we(!0);try{a(t)}finally{we(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=P4.bind(null,Ye,e),[n.memoizedState,e]}function ci(e){var t=xt();return Mm(t,Et,e)}function Mm(e,t,a){var n=e.queue;if(n===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=a;var r=e.baseQueue,i=n.pending;if(i!==null){if(r!==null){var f=r.next;r.next=i.next,i.next=f}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=i,n.pending=null}if(i=e.baseState,r===null)e.memoizedState=i;else{t=r.next;var p=f=null,v=null,S=t,A=!1;do{var V=S.lane&-536870913;if(V!==S.lane?(Je&V)===V:(mo&V)===V){var T=S.revertLane;if(T===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),V===zr&&(A=!0);else if((mo&T)===T){S=S.next,T===zr&&(A=!0);continue}else V={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},v===null?(p=v=V,f=i):v=v.next=V,Ye.lanes|=T,er|=T;V=S.action,Yr&&a(i,V),i=S.hasEagerState?S.eagerState:a(i,V)}else T={lane:V,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},v===null?(p=v=T,f=i):v=v.next=T,Ye.lanes|=V,er|=V;S=S.next}while(S!==null&&S!==t);if(v===null?f=i:v.next=p,!$a(i,e.memoizedState)&&(ta=!0,A&&(a=Bi,a!==null)))throw a;e.memoizedState=i,e.baseState=f,e.baseQueue=v,n.lastRenderedState=i}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Ul(e){var t=xt(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,i=t.memoizedState;if(r!==null){a.pending=null;var f=r=r.next;do i=e(i,f.action),f=f.next;while(f!==r);$a(i,t.memoizedState)||(ta=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,n]}function zm(e,t,a){var n=Ye,r=za();if(ot){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var i=a();Ii||i===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ii=!0)}else{if(i=t(),Ii||(a=t(),$a(i,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ii=!0)),Dt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Je&127)!==0||Sy(n,t,i)}return r.memoizedState=i,a={value:i,getSnapshot:t},r.queue=a,Iu(Ey.bind(null,n,a,e),[e]),n.flags|=2048,di(zn|Ga,{destroy:void 0},wy.bind(null,n,a,i,t),null),i}function Yu(e,t,a){var n=Ye,r=xt(),i=ot;if(i){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Ii){var f=t();$a(a,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ii=!0)}(f=!$a((Et||r).memoizedState,a))&&(r.memoizedState=a,ta=!0),r=r.queue;var p=Ey.bind(null,n,r,e);if(Ka(2048,Ga,p,[e]),r.getSnapshot!==t||f||ea!==null&&ea.memoizedState.tag&zn){if(n.flags|=2048,di(zn|Ga,{destroy:void 0},wy.bind(null,n,r,a,t),null),Dt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i||(mo&127)!==0||Sy(n,t,a)}return a}function Sy(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ye.updateQueue,t===null?(t=$u(),Ye.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function wy(e,t,a,n){t.value=a,t.getSnapshot=n,Dy(t)&&Ry(e)}function Ey(e,t,a){return a(function(){Dy(t)&&(ys(2,"updateSyncExternalStore()",e),Ry(e))})}function Dy(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!$a(e,a)}catch{return!0}}function Ry(e){var t=ka(e,2);t!==null&&Ht(t,e,2)}function Lm(e){var t=za();if(typeof e=="function"){var a=e;if(e=a(),Yr){we(!0);try{a()}finally{we(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},t}function Hm(e){e=Lm(e);var t=e.queue,a=Iy.bind(null,Ye,t);return t.dispatch=a,[e.memoizedState,a]}function Bm(e){var t=za();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ep.bind(null,Ye,!0,a),a.dispatch=t,[e,t]}function _y(e,t){var a=xt();return ky(a,Et,e,t)}function ky(e,t,a,n){return e.baseState=a,Mm(e,Et,typeof n=="function"?n:Wn)}function Uy(e,t){var a=xt();return Et!==null?ky(a,Et,e,t):(a.baseState=e,[e,a.queue.dispatch])}function F4(e,t,a,n,r){if(Ju(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};I.T!==null?a(!0):i.isTransition=!1,n(i),a=t.pending,a===null?(i.next=t.pending=i,Cy(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Cy(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var i=I.T,f={};f._updatedFibers=new Set,I.T=f;try{var p=a(r,n),v=I.S;v!==null&&v(f,p),Ty(e,t,p)}catch(S){$m(e,t,S)}finally{i!==null&&f.types!==null&&(i.types!==null&&i.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),i.types=f.types),I.T=i,i===null&&f._updatedFibers&&(e=f._updatedFibers.size,f._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{f=a(r,n),Ty(e,t,f)}catch(S){$m(e,t,S)}}function Ty(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(I.asyncTransitions++,a.then(Pu,Pu),a.then(function(n){jy(e,t,n)},function(n){return $m(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):jy(e,t,a)}function jy(e,t,a){t.status="fulfilled",t.value=a,Oy(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Cy(e,a)))}function $m(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Oy(t),t=t.next;while(t!==n)}e.action=null}function Oy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ay(e,t){return t}function ui(e,t){if(ot){var a=Dt.formState;if(a!==null){e:{var n=Ye;if(ot){if(jt){t:{for(var r=jt,i=An;r.nodeType!==8;){if(!i){r=null;break t}if(r=mn(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i===vg||i===y1?r:null}if(r){jt=mn(r.nextSibling),n=r.data===vg;break e}}_o(n)}n=!1}n&&(t=a[0])}}return a=za(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ay,lastRenderedState:t},a.queue=n,a=Iy.bind(null,Ye,n),n.dispatch=a,n=Lm(!1),i=ep.bind(null,Ye,!1,n.queue),n=za(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=F4.bind(null,Ye,r,i,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function qu(e){var t=xt();return Vy(t,Et,e)}function Vy(e,t,a){if(t=Mm(e,t,Ay)[0],e=ci(Wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=kl(t)}catch(f){throw f===$i?Fd:f}else n=t;t=xt();var r=t.queue,i=r.dispatch;return a!==t.memoizedState&&(Ye.flags|=2048,di(zn|Ga,{destroy:void 0},X4.bind(null,r,a),null)),[n,i,e]}function X4(e,t){e.action=t}function Gu(e){var t=xt(),a=Et;if(a!==null)return Vy(t,a,e);xt(),t=t.memoizedState,a=xt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function di(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=Ye.updateQueue,t===null&&(t=$u(),Ye.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function Ym(e){var t=za();return e={current:e},t.memoizedState=e}function Dr(e,t,a,n){var r=za();Ye.flags|=e,r.memoizedState=di(zn|t,{destroy:void 0},a,n===void 0?null:n)}function Ka(e,t,a,n){var r=xt();n=n===void 0?null:n;var i=r.memoizedState.inst;Et!==null&&n!==null&&Um(n,Et.memoizedState.deps)?r.memoizedState=di(t,i,a,n):(Ye.flags|=e,r.memoizedState=di(zn|t,i,a,n))}function Iu(e,t){(Ye.mode&as)!==$e?Dr(276826112,Ga,e,t):Dr(8390656,Ga,e,t)}function Q4(e){Ye.flags|=4;var t=Ye.updateQueue;if(t===null)t=$u(),Ye.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function qm(e){var t=za(),a={impl:e};return t.memoizedState=a,function(){if((ft&la)!==ga)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Fu(e){var t=xt().memoizedState;return Q4({ref:t,nextImpl:e}),function(){if((ft&la)!==ga)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Gm(e,t){var a=4194308;return(Ye.mode&as)!==$e&&(a|=134217728),Dr(a,yn,e,t)}function My(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Im(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var n=4194308;(Ye.mode&as)!==$e&&(n|=134217728),Dr(n,yn,My.bind(null,t,e),a)}function Xu(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,Ka(4,yn,My.bind(null,t,e),a)}function Fm(e,t){return za().memoizedState=[e,t===void 0?null:t],e}function Qu(e,t){var a=xt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Um(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Xm(e,t){var a=za();t=t===void 0?null:t;var n=e();if(Yr){we(!0);try{e()}finally{we(!1)}}return a.memoizedState=[n,t],n}function Zu(e,t){var a=xt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Um(t,n[1]))return n[0];if(n=e(),Yr){we(!0);try{e()}finally{we(!1)}}return a.memoizedState=[n,t],n}function Qm(e,t){var a=za();return Zm(a,e,t)}function zy(e,t){var a=xt();return Hy(a,Et.memoizedState,e,t)}function Ly(e,t){var a=xt();return Et===null?Zm(a,e,t):Hy(a,Et.memoizedState,e,t)}function Zm(e,t,a){return a===void 0||(mo&1073741824)!==0&&(Je&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Bv(),Ye.lanes|=e,er|=e,a)}function Hy(e,t,a,n){return $a(a,t)?a:qi.current!==null?(e=Zm(e,a,n),$a(e,t)||(ta=!0),e):(mo&42)===0||(mo&1073741824)!==0&&(Je&261930)===0?(ta=!0,e.memoizedState=a):(e=Bv(),Ye.lanes|=e,er|=e,t)}function Pu(){I.asyncTransitions--}function By(e,t,a,n,r){var i=vt.p;vt.p=i!==0&&i<Ms?i:Ms;var f=I.T,p={};p._updatedFibers=new Set,I.T=p,ep(e,!1,t,a);try{var v=r(),S=I.S;if(S!==null&&S(p,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){I.asyncTransitions++,v.then(Pu,Pu);var A=q4(v,n);Cl(e,t,A,fn(e))}else Cl(e,t,n,fn(e))}catch(V){Cl(e,t,{then:function(){},status:"rejected",reason:V},fn(e))}finally{vt.p=i,f!==null&&p.types!==null&&(f.types!==null&&f.types!==p.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),f.types=p.types),I.T=f,f===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Pm(e,t,a,n){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=$y(e).queue;$4(e),By(e,r,t,Wr,a===null?y:function(){return Yy(e),a(n)})}function $y(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Wr,baseState:Wr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:Wr},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yy(e){I.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=$y(e);t.next===null&&(t=e.alternate.memoizedState),Cl(e,t.next.queue,{},fn(e))}function Jm(){var e=Lm(!1);return e=By.bind(null,Ye,e.queue,!0,!1),za().memoizedState=e,[!1,e]}function qy(){var e=ci(Wn)[0],t=xt().memoizedState;return[typeof e=="boolean"?e:kl(e),t]}function Gy(){var e=Ul(Wn)[0],t=xt().memoizedState;return[typeof e=="boolean"?e:kl(e),t]}function Rr(){return At(Hc)}function Km(){var e=za(),t=Dt.identifierPrefix;if(ot){var a=io,n=ro;a=(n&~(1<<32-La(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Jd++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=UR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Wm(){return za().memoizedState=Z4.bind(null,Ye)}function Z4(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var n=fn(a),r=Co(n),i=To(a,r,n);i!==null&&(ys(n,"refresh()",e),Ht(i,a,n),Dl(i,a,n)),e=vm(),t!=null&&i!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}a=a.return}}function P4(e,t,a){var n=arguments;typeof n[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),n=fn(e);var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Ju(e)?Fy(t,r):(r=im(e,t,r,n),r!==null&&(ys(n,"dispatch()",e),Ht(r,e,n),Xy(r,t,n)))}function Iy(e,t,a){var n=arguments;typeof n[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),n=fn(e),Cl(e,t,a,n)&&ys(n,"setState()",e)}function Cl(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ju(e))Fy(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null)){var f=I.H;I.H=ss;try{var p=t.lastRenderedState,v=i(p,a);if(r.hasEagerState=!0,r.eagerState=v,$a(v,p))return wu(e,t,r,0),Dt===null&&Su(),!1}catch{}finally{I.H=f}}if(a=im(e,t,r,n),a!==null)return Ht(a,e,n),Xy(a,t,n),!0}return!1}function ep(e,t,a,n){if(I.T===null&&zr===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),n={lane:2,revertLane:Cp(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ju(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=im(e,a,n,2),t!==null&&(ys(2,"setOptimistic()",e),Ht(t,e,2))}function Ju(e){var t=e.alternate;return e===Ye||t!==null&&t===Ye}function Fy(e,t){Fi=Pd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Xy(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ds(e,a)}}function tp(e){if(e!==null&&typeof e!="function"){var t=String(e);GN.has(t)||(GN.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function ap(e,t,a,n){var r=e.memoizedState,i=a(n,r);if(e.mode&Ca){we(!0);try{i=a(n,r)}finally{we(!1)}}i===void 0&&(t=_(t)||"Component",BN.has(t)||(BN.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=i==null?r:et({},r,i),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function Qy(e,t,a,n,r,i,f){var p=e.stateNode;if(typeof p.shouldComponentUpdate=="function"){if(a=p.shouldComponentUpdate(n,i,f),e.mode&Ca){we(!0);try{a=p.shouldComponentUpdate(n,i,f)}finally{we(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",_(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!vl(a,n)||!vl(r,i):!0}function Zy(e,t,a,n){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==r&&(e=H(e)||"Component",VN.has(e)||(VN.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Jh.enqueueReplaceState(t,t.state,null))}function _r(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=et({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function Py(e){kh(e),console.warn(`%s
121
+
122
+ %s
123
+ `,Xi?"An error occurred in the <"+Xi+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
124
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Jy(e){var t=Xi?"The above error occurred in the <"+Xi+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Kh||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var n=e.environmentName;e=[`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,e,t,a].slice(0),typeof e[0]=="string"?e.splice(0,1,R1+" "+e[0],_1,wf+n+wf,k1):e.splice(0,0,R1,_1,wf+n+wf,k1),e.unshift(console),n=PR.apply(console.error,e),n()}else console.error(`%o
130
+
131
+ %s
132
+
133
+ %s
134
+ `,e,t,a)}function Ky(e){kh(e)}function Ku(e,t){try{Xi=t.source?H(t.source):null,Kh=null;var a=t.value;if(I.actQueue!==null)I.thrownErrors.push(a);else{var n=e.onUncaughtError;n(a,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function Wy(e,t,a){try{Xi=a.source?H(a.source):null,Kh=H(t);var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function np(e,t,a){return a=Co(a),a.tag=Ih,a.payload={element:null},a.callback=function(){he(t.source,Ku,e,t)},a}function sp(e){return e=Co(e),e.tag=Ih,e}function op(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var i=n.value;e.payload=function(){return r(i)},e.callback=function(){Fb(a),he(n.source,Wy,t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Fb(a),he(n.source,Wy,t,a,n),typeof r!="function"&&(ar===null?ar=new Set([this]):ar.add(this)),DR(this,n),typeof r=="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",H(a)||"Unknown")})}function J4(e,t,a,n,r){if(a.flags|=32768,Vs&&Ll(e,r),n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&ii(t,a,r,!0),ot&&(Ls=!0),a=bn.current,a!==null){switch(a.tag){case 31:case 13:return Mn===null?id():a.alternate===null&&Lt===bo&&(Lt=ef),a.flags&=-257,a.flags|=65536,a.lanes=r,n===Xd?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Rp(e,n,r)),!1;case 22:return a.flags|=65536,n===Xd?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Rp(e,n,r)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return Rp(e,n,r),id(),!1}if(ot)return Ls=!0,t=bn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==Ah&&xl(ln(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:n}),a))):(n!==Ah&&xl(ln(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:n}),a)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=ln(n,a),r=np(e.stateNode,n,r),Lu(e,r),Lt!==Ko&&(Lt=qr)),!1;var i=ln(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:n}),a);if(Cc===null?Cc=[i]:Cc.push(i),Lt!==Ko&&(Lt=qr),t===null)return!0;n=ln(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=np(a.stateNode,n,e),Lu(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ar===null||!ar.has(i))))return a.flags|=65536,r&=-r,a.lanes|=r,r=sp(r),op(r,e,a,n),Lu(a,r),!1}a=a.return}while(a!==null);return!1}function Sa(e,t,a,n){t.child=e===null?EN(t,null,a,n):$r(t,e.child,a,n)}function ev(e,t,a,n,r){a=a.render;var i=t.ref;if("ref"in n){var f={};for(var p in n)p!=="ref"&&(f[p]=n[p])}else f=n;return Sr(t),n=Cm(e,t,a,f,i,r),p=jm(),e!==null&&!ta?(Om(e,t,r),Ws(e,t,r)):(ot&&p&&mm(t),t.flags|=1,Sa(e,t,n,r),t.child)}function tv(e,t,a,n,r){if(e===null){var i=a.type;return typeof i=="function"&&!cm(i)&&i.defaultProps===void 0&&a.compare===null?(a=yr(i),t.tag=15,t.type=a,ip(t,i),av(e,t,a,n,r)):(e=um(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!mp(e,r)){var f=i.memoizedProps;if(a=a.compare,a=a!==null?a:vl,a(f,n)&&e.ref===t.ref)return Ws(e,t,r)}return t.flags|=1,e=Zs(i,n),e.ref=t.ref,e.return=t,t.child=e}function av(e,t,a,n,r){if(e!==null){var i=e.memoizedProps;if(vl(i,n)&&e.ref===t.ref&&t.type===e.type)if(ta=!1,t.pendingProps=n=i,mp(e,r))(e.flags&131072)!==0&&(ta=!0);else return t.lanes=e.lanes,Ws(e,t,r)}return rp(e,t,a,n,r)}function nv(e,t,a,n){var r=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:oc,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~i}else n=0,t.child=null;return sv(e,t,i,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ju(t,i!==null?i.cachePool:null),i!==null?vy(t,i):Rm(t),xy(t);else return n=t.lanes=536870912,sv(e,t,i!==null?i.baseLanes|a:a,a,n)}else i!==null?(ju(t,i.cachePool),vy(t,i),Oo(t),t.memoizedState=null):(e!==null&&ju(t,null),Rm(t),Oo(t));return Sa(e,t,r,a),t.child}function Tl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:oc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sv(e,t,a,n,r){var i=Sm();return i=i===null?null:{parent:Kt._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&ju(t,null),Rm(t),xy(t),e!==null&&ii(e,t,n,!0),t.childLanes=r,null}function Wu(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
135
+ - <Activity %s>
136
+ + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=td({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ov(e,t,a){return $r(t,e.child,null,a),e=Wu(t,t.pendingProps),e.flags|=2,dn(t),t.memoizedState=null,e}function K4(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ot){if(n.mode==="hidden")return e=Wu(t,n),t.lanes=536870912,Tl(null,e);if(km(t),(e=jt)?(a=C0(e,An),a=a!==null&&a.data===Zr?a:null,a!==null&&(n={dehydrated:a,treeContext:Jb(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=Zb(a),n.return=t,t.child=n,Da=t,jt=null)):a=null,a===null)throw Ru(t,e),_o(t);return t.lanes=536870912,null}return Wu(t,n)}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(km(t),r)if(t.flags&256)t.flags&=-257,t=ov(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Wb(),(a&536870912)!==0&&rd(t),ta||ii(e,t,a,!1),r=(a&e.childLanes)!==0,ta||r){if(n=Dt,n!==null&&(f=Fn(n,a),f!==0&&f!==i.retryLane))throw i.retryLane=f,ka(e,f),Ht(n,e,f),Wh;id(),t=ov(e,t,a)}else e=i.treeContext,jt=mn(f.nextSibling),Da=t,ot=!0,Fo=null,Ls=!1,gn=null,An=!1,e!==null&&Kb(t,e),t=Wu(t,n),t.flags|=4096;return t}return i=e.child,n={mode:n.mode,children:n.children},(a&536870912)!==0&&(a&e.lanes)!==0&&rd(t),e=Zs(i,n),e.ref=t.ref,t.child=e,e.return=t,e}function ed(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==a)&&(t.flags|=4194816)}}function rp(e,t,a,n,r){if(a.prototype&&typeof a.prototype.render=="function"){var i=_(a)||"Unknown";IN[i]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",i,i),IN[i]=!0)}return t.mode&Ca&&ns.recordLegacyContextWarning(t,null),e===null&&(ip(t,t.type),a.contextTypes&&(i=_(a)||"Unknown",XN[i]||(XN[i]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",i)))),Sr(t),a=Cm(e,t,a,n,void 0,r),n=jm(),e!==null&&!ta?(Om(e,t,r),Ws(e,t,r)):(ot&&n&&mm(t),t.flags|=1,Sa(e,t,a,r),t.child)}function rv(e,t,a,n,r,i){return Sr(t),ho=-1,wc=e!==null&&e.type!==t.type,t.updateQueue=null,a=Tm(t,n,a,r),Ny(e,t),n=jm(),e!==null&&!ta?(Om(e,t,i),Ws(e,t,i)):(ot&&n&&mm(t),t.flags|=1,Sa(e,t,a,i),t.child)}function iv(e,t,a,n,r){switch(h(t)){case!1:var i=t.stateNode,f=new t.type(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,f,null);break;case!0:t.flags|=128,t.flags|=65536,i=Error("Simulated error coming from DevTools");var p=r&-r;if(t.lanes|=p,f=Dt,f===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=sp(p),op(p,f,t,ln(i,t)),Lu(t,p)}if(Sr(t),t.stateNode===null){if(f=Io,i=a.contextType,"contextType"in a&&i!==null&&(i===void 0||i.$$typeof!==js)&&!qN.has(a)&&(qN.add(a),p=i===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof i!="object"?" However, it is set to a "+typeof i+".":i.$$typeof===eh?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(i).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",_(a)||"Component",p)),typeof i=="object"&&i!==null&&(f=At(i)),i=new a(n,f),t.mode&Ca){we(!0);try{i=new a(n,f)}finally{we(!1)}}if(f=t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Jh,t.stateNode=i,i._reactInternals=t,i._reactInternalInstance=AN,typeof a.getDerivedStateFromProps=="function"&&f===null&&(f=_(a)||"Component",MN.has(f)||(MN.add(f),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",f,i.state===null?"null":"undefined",f))),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"){var v=p=f=null;if(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0?f="componentWillMount":typeof i.UNSAFE_componentWillMount=="function"&&(f="UNSAFE_componentWillMount"),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0?p="componentWillReceiveProps":typeof i.UNSAFE_componentWillReceiveProps=="function"&&(p="UNSAFE_componentWillReceiveProps"),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0?v="componentWillUpdate":typeof i.UNSAFE_componentWillUpdate=="function"&&(v="UNSAFE_componentWillUpdate"),f!==null||p!==null||v!==null){i=_(a)||"Component";var S=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";LN.has(i)||(LN.add(i),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
137
+
138
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
139
+
140
+ The above lifecycles should be removed. Learn more about this warning here:
141
+ https://react.dev/link/unsafe-component-lifecycles`,i,S,f!==null?`
142
+ `+f:"",p!==null?`
143
+ `+p:"",v!==null?`
144
+ `+v:""))}}i=t.stateNode,f=_(a)||"Component",i.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",f):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",f)),!i.getInitialState||i.getInitialState.isReactClassApproved||i.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",f),i.getDefaultProps&&!i.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",f),i.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",f),a.childContextTypes&&!YN.has(a)&&(YN.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",f)),a.contextTypes&&!$N.has(a)&&($N.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",f)),typeof i.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",f),a.prototype&&a.prototype.isPureReactComponent&&typeof i.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",_(a)||"A pure component"),typeof i.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",f),typeof i.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",f),typeof i.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",f),typeof i.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",f),p=i.props!==n,i.props!==void 0&&p&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",f),i.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",f,f),typeof i.getSnapshotBeforeUpdate!="function"||typeof i.componentDidUpdate=="function"||zN.has(a)||(zN.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",_(a))),typeof i.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof i.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",f),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",f),(p=i.state)&&(typeof p!="object"||ra(p))&&console.error("%s.state: must be set to an object or null",f),typeof i.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",f),i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},Em(t),f=a.contextType,i.context=typeof f=="object"&&f!==null?At(f):Io,i.state===n&&(f=_(a)||"Component",HN.has(f)||(HN.add(f),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",f))),t.mode&Ca&&ns.recordLegacyContextWarning(t,i),ns.recordUnsafeLifecycleWarnings(t,i),i.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(ap(t,a,f,n),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",H(t)||"Component"),Jh.enqueueReplaceState(i,i.state,null)),_l(t,n,i,r),Rl(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==$e&&(t.flags|=134217728),i=!0}else if(e===null){i=t.stateNode;var A=t.memoizedProps;p=_r(a,A),i.props=p;var V=i.context;v=a.contextType,f=Io,typeof v=="object"&&v!==null&&(f=At(v)),S=a.getDerivedStateFromProps,v=typeof S=="function"||typeof i.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,v||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(A||V!==f)&&Zy(t,i,n,f),Jo=!1;var T=t.memoizedState;i.state=T,_l(t,n,i,r),Rl(),V=t.memoizedState,A||T!==V||Jo?(typeof S=="function"&&(ap(t,a,S,n),V=t.memoizedState),(p=Jo||Qy(t,a,p,n,T,V,f))?(v||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==$e&&(t.flags|=134217728)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==$e&&(t.flags|=134217728),t.memoizedProps=n,t.memoizedState=V),i.props=n,i.state=V,i.context=f,i=p):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==$e&&(t.flags|=134217728),i=!1)}else{i=t.stateNode,Dm(e,t),f=t.memoizedProps,v=_r(a,f),i.props=v,S=t.pendingProps,T=i.context,V=a.contextType,p=Io,typeof V=="object"&&V!==null&&(p=At(V)),A=a.getDerivedStateFromProps,(V=typeof A=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==S||T!==p)&&Zy(t,i,n,p),Jo=!1,T=t.memoizedState,i.state=T,_l(t,n,i,r),Rl();var $=t.memoizedState;f!==S||T!==$||Jo||e!==null&&e.dependencies!==null&&ku(e.dependencies)?(typeof A=="function"&&(ap(t,a,A,n),$=t.memoizedState),(v=Jo||Qy(t,a,v,n,T,$,p)||e!==null&&e.dependencies!==null&&ku(e.dependencies))?(V||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,$,p),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,$,p)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=$),i.props=n,i.state=$,i.context=p,i=v):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),i=!1)}if(p=i,ed(e,t),f=(t.flags&128)!==0,p||f){if(p=t.stateNode,Yt(t),f&&typeof a.getDerivedStateFromError!="function")a=null,Ya=-1;else if(a=uN(p),t.mode&Ca){we(!0);try{uN(p)}finally{we(!1)}}t.flags|=1,e!==null&&f?(t.child=$r(t,e.child,null,r),t.child=$r(t,null,a,r)):Sa(e,t,a,r),t.memoizedState=p.state,e=t.child}else e=Ws(e,t,r);return r=t.stateNode,i&&r.props!==n&&(Qi||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",H(t)||"a component"),Qi=!0),e}function lv(e,t,a,n){return Nr(),t.flags|=256,Sa(e,t,a,n),t.child}function ip(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
145
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=_(t)||"Unknown",QN[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),QN[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=_(t)||"Unknown",FN[t]||(console.error("%s: Function components do not support contextType.",t),FN[t]=!0))}function lp(e){return{baseLanes:e,cachePool:ry()}}function cp(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=nn),e}function cv(e,t,a){var n,r=t.pendingProps;d(t)&&(t.flags|=128);var i=!1,f=(t.flags&128)!==0;if((n=f)||(n=e!==null&&e.memoizedState===null?!1:(Zt.current&Nc)!==0),n&&(i=!0,t.flags&=-129),n=(t.flags&32)!==0,t.flags&=-33,e===null){if(ot){if(i?jo(t):Oo(t),(e=jt)?(a=C0(e,An),a=a!==null&&a.data!==Zr?a:null,a!==null&&(n={dehydrated:a,treeContext:Jb(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=Zb(a),n.return=t,t.child=n,Da=t,jt=null)):a=null,a===null)throw Ru(t,e),_o(t);return Yp(a)?t.lanes=32:t.lanes=536870912,null}var p=r.children;if(r=r.fallback,i){Oo(t);var v=t.mode;return p=td({mode:"hidden",children:p},v),r=vr(r,v,a,null),p.return=t,r.return=t,p.sibling=r,t.child=p,r=t.child,r.memoizedState=lp(a),r.childLanes=cp(e,n,a),t.memoizedState=eg,Tl(null,r)}return jo(t),up(t,p)}var S=e.memoizedState;if(S!==null){var A=S.dehydrated;if(A!==null){if(f)t.flags&256?(jo(t),t.flags&=-257,t=dp(e,t,a)):t.memoizedState!==null?(Oo(t),t.child=e.child,t.flags|=128,t=null):(Oo(t),p=r.fallback,v=t.mode,r=td({mode:"visible",children:r.children},v),p=vr(p,v,a,null),p.flags|=2,r.return=t,p.return=t,r.sibling=p,t.child=r,$r(t,e.child,null,a),r=t.child,r.memoizedState=lp(a),r.childLanes=cp(e,n,a),t.memoizedState=eg,t=Tl(null,r));else if(jo(t),Wb(),(a&536870912)!==0&&rd(t),Yp(A)){if(n=A.nextSibling&&A.nextSibling.dataset,n){p=n.dgst;var V=n.msg;v=n.stck;var T=n.cstck}i=V,n=p,r=v,A=T,p=i,v=A,p=Error(p||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),p.stack=r||"",p.digest=n,n=v===void 0?null:v,r={value:p,source:null,stack:n},typeof n=="string"&&Oh.set(p,r),xl(r),t=dp(e,t,a)}else if(ta||ii(e,t,a,!1),n=(a&e.childLanes)!==0,ta||n){if(n=Dt,n!==null&&(r=Fn(n,a),r!==0&&r!==S.retryLane))throw S.retryLane=r,ka(e,r),Ht(n,e,r),Wh;$p(A)||id(),t=dp(e,t,a)}else $p(A)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,jt=mn(A.nextSibling),Da=t,ot=!0,Fo=null,Ls=!1,gn=null,An=!1,e!==null&&Kb(t,e),t=up(t,r.children),t.flags|=4096);return t}}return i?(Oo(t),p=r.fallback,v=t.mode,T=e.child,A=T.sibling,r=Zs(T,{mode:"hidden",children:r.children}),r.subtreeFlags=T.subtreeFlags&65011712,A!==null?p=Zs(A,p):(p=vr(p,v,a,null),p.flags|=2),p.return=t,r.return=t,r.sibling=p,t.child=r,Tl(null,r),r=t.child,p=e.child.memoizedState,p===null?p=lp(a):(v=p.cachePool,v!==null?(T=Kt._currentValue,v=v.parent!==T?{parent:T,pool:T}:v):v=ry(),p={baseLanes:p.baseLanes|a,cachePool:v}),r.memoizedState=p,r.childLanes=cp(e,n,a),t.memoizedState=eg,Tl(e.child,r)):(S!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&rd(t),jo(t),a=e.child,e=a.sibling,a=Zs(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a)}function up(e,t){return t=td({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function td(e,t){return e=N(22,e,null,t),e.lanes=0,e}function dp(e,t,a){return $r(t,e.child,null,a),e=up(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uv(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),bm(e.return,t,a)}function fp(e,t,a,n,r,i){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:i}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=r,f.treeForkCount=i)}function dv(e,t,a){var n=t.pendingProps,r=n.revealOrder,i=n.tail,f=n.children,p=Zt.current;if((n=(p&Nc)!==0)?(p=p&Gi|Nc,t.flags|=128):p&=Gi,X(Zt,p,t),p=r??"null",r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!ZN[p])if(ZN[p]=!0,r==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(r==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);p=i??"null",Wd[p]||(i==null?(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&(Wd[p]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):i!=="visible"&&i!=="collapsed"&&i!=="hidden"?(Wd[p]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',i)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(Wd[p]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',i)));e:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&f!==void 0&&f!==null&&f!==!1)if(ra(f)){for(p=0;p<f.length;p++)if(!gy(f[p],p))break e}else if(p=te(f),typeof p=="function"){if(p=p.call(f))for(var v=p.next(),S=0;!v.done;v=p.next()){if(!gy(v.value,S))break e;S++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r);if(Sa(e,t,f,a),ot?(Ro(),f=rc):f=0,!n&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uv(e,a,t);else if(e.tag===19)uv(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Hu(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),fp(t,!1,r,a,i,f);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Hu(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}fp(t,!0,a,null,i,f);break;case"together":fp(t,!1,null,null,void 0,f);break;default:t.memoizedState=null}return t.child}function Ws(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ya=-1,er|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ii(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,a=Zs(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Zs(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function mp(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ku(e)))}function W4(e,t,a){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),ko(t,Kt,e.memoizedState.cache),Nr();break;case 27:case 5:ge(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:ko(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var n=t.stateNode;n.effectDuration=-0,n.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,km(t),null;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(jo(t),t.flags|=128,null):(a&t.child.childLanes)!==0?cv(e,t,a):(jo(t),e=Ws(e,t,a),e!==null?e.sibling:null);jo(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(ii(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return dv(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),X(Zt,Zt.current,t),n)break;return null;case 22:return t.lanes=0,nv(e,t,a,t.pendingProps);case 24:ko(t,Kt,e.memoizedState.cache)}return Ws(e,t,a)}function pp(e,t,a){if(t._debugNeedsRemount&&e!==null){a=um(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var n=t.return;if(n===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===n.child)n.child=a;else{var r=n.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=a}return t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)ta=!0;else{if(!mp(e,a)&&(t.flags&128)===0)return ta=!1,W4(e,t,a);ta=(e.flags&131072)!==0}else ta=!1,(n=ot)&&(Ro(),n=(t.flags&1048576)!==0),n&&(n=t.index,Ro(),Pb(t,rc,n));switch(t.lanes=0,t.tag){case 16:e:if(n=t.pendingProps,e=Uo(t.elementType),t.type=e,typeof e=="function")cm(e)?(n=_r(e,n),t.tag=1,t.type=e=yr(e),t=iv(null,t,e,n,a)):(t.tag=0,ip(t,e),t.type=e=yr(e),t=rp(null,t,e,n,a));else{if(e!=null){if(r=e.$$typeof,r===Xl){t.tag=11,t.type=e=lm(e),t=ev(null,t,e,n,a);break e}else if(r===Nd){t.tag=14,t=tv(null,t,e,n,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===pn&&(t=" Did you wrap a component in React.lazy() more than once?"),a=_(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return rp(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=_r(n,t.pendingProps),iv(e,t,n,r,a);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");n=t.pendingProps;var i=t.memoizedState;r=i.element,Dm(e,t),_l(t,n,null,a);var f=t.memoizedState;if(n=f.cache,ko(t,Kt,n),n!==i.cache&&ym(t,[Kt],a,!0),Rl(),n=f.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=lv(e,t,n,a);break e}else if(n!==r){r=ln(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),xl(r),t=lv(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,jt=mn(e.firstChild),Da=t,ot=!0,Fo=null,Ls=!1,gn=null,An=!0,a=EN(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Nr(),n===r){t=Ws(e,t,a);break e}Sa(e,t,n,a)}t=t.child}return t;case 26:return ed(e,t),e===null?(a=M0(t.type,null,t.pendingProps,null))?t.memoizedState=a:ot||(a=t.type,e=t.pendingProps,n=ie(Ho.current),n=dd(n).createElement(a),n[Ea]=t,n[Ha]=e,wa(n,a,e),ke(n),t.stateNode=n):t.memoizedState=M0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&ot&&(n=ie(Ho.current),r=de(),n=t.stateNode=A0(t.type,t.pendingProps,n,r,!1),Ls||(r=S0(n,t.type,t.pendingProps,r),r!==null&&(xr(t,0).serverProps=r)),Da=t,An=!0,r=jt,zo(t.type)?(wg=r,jt=mn(n.firstChild)):jt=r),Sa(e,t,t.pendingProps.children,a),ed(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ot&&(i=de(),n=Wf(t.type,i.ancestorInfo),r=jt,(f=!r)||(f=$E(r,t.type,t.pendingProps,An),f!==null?(t.stateNode=f,Ls||(i=S0(f,t.type,t.pendingProps,i),i!==null&&(xr(t,0).serverProps=i)),Da=t,jt=mn(f.firstChild),An=!1,i=!0):i=!1,f=!i),f&&(n&&Ru(t,r),_o(t))),ge(t),r=t.type,i=t.pendingProps,f=e!==null?e.memoizedProps:null,n=i.children,Hp(r,i)?n=null:f!==null&&Hp(r,f)&&(t.flags|=32),t.memoizedState!==null&&(r=Cm(e,t,I4,null,null,a),Hc._currentValue=r),ed(e,t),Sa(e,t,n,a),t.child;case 6:return e===null&&ot&&(a=t.pendingProps,e=de(),n=e.ancestorInfo.current,a=n!=null?gu(a,n.tag,e.ancestorInfo.implicitRootScope):!0,e=jt,(n=!e)||(n=YE(e,t.pendingProps,An),n!==null?(t.stateNode=n,Da=t,jt=null,n=!0):n=!1,n=!n),n&&(a&&Ru(t,e),_o(t))),null;case 13:return cv(e,t,a);case 4:return Ee(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=$r(t,null,n,a):Sa(e,t,n,a),t.child;case 11:return ev(e,t,t.type,t.pendingProps,a);case 7:return Sa(e,t,t.pendingProps,a),t.child;case 8:return Sa(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,n=t.stateNode,n.effectDuration=-0,n.passiveEffectDuration=-0,Sa(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.type,r=t.pendingProps,i=r.value,"value"in r||PN||(PN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ko(t,n,i),Sa(e,t,r.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,typeof n!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Sr(t),r=At(r),n=$h(n,r,void 0),t.flags|=1,Sa(e,t,n,a),t.child;case 14:return tv(e,t,t.type,t.pendingProps,a);case 15:return av(e,t,t.type,t.pendingProps,a);case 19:return dv(e,t,a);case 31:return K4(e,t,a);case 22:return nv(e,t,a,t.pendingProps);case 24:return Sr(t),n=At(Kt),e===null?(r=Sm(),r===null&&(r=Dt,i=vm(),r.pooledCache=i,wr(i),i!==null&&(r.pooledCacheLanes|=a),r=i),t.memoizedState={parent:n,cache:r},Em(t),ko(t,Kt,r)):((e.lanes&a)!==0&&(Dm(e,t),_l(t,null,null,a),Rl()),r=e.memoizedState,i=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),ko(t,Kt,n)):(n=i.cache,ko(t,Kt,n),n!==r.cache&&ym(t,[Kt],a,!0))),Sa(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function eo(e){e.flags|=4}function hp(e,t,a,n,r){if((t=(e.mode&xR)!==$e)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Gv())e.flags|=8192;else throw Br=Xd,qh}else e.flags&=-16777217}function fv(e,t){if(t.type!=="stylesheet"||(t.state.loading&Hn)!==Kr)e.flags&=-16777217;else if(e.flags|=16777216,!$0(t))if(Gv())e.flags|=8192;else throw Br=Xd,qh}function ad(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?on():536870912,e.lanes|=t,Fr|=t)}function jl(e,t){if(!ot)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function _t(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)if((e.mode&Ze)!==$e){for(var r=e.selfBaseDuration,i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,r+=i.treeBaseDuration,i=i.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Ze)!==$e){r=e.actualDuration,i=e.selfBaseDuration;for(var f=e.child;f!==null;)a|=f.lanes|f.childLanes,n|=f.subtreeFlags,n|=f.flags,r+=f.actualDuration,i+=f.treeBaseDuration,f=f.sibling;e.actualDuration=r,e.treeBaseDuration=i}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function eE(e,t,a){var n=t.pendingProps;switch(pm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(t),null;case 1:return _t(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Js(Kt,t),J(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ri(t)?(gm(),eo(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hm())),_t(t),null;case 26:var r=t.type,i=t.memoizedState;return e===null?(eo(t),i!==null?(_t(t),fv(t,i)):(_t(t),hp(t,r,null,n,a))):i?i!==e.memoizedState?(eo(t),_t(t),fv(t,i)):(_t(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&eo(t),_t(t),hp(t,r,e,n,a)),null;case 27:if(K(t),a=ie(Ho.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&eo(t);else{if(!n){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return _t(t),null}e=de(),ri(t)?ey(t):(e=A0(r,n,a,e,!0),t.stateNode=e,eo(t))}return _t(t),null;case 5:if(K(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&eo(t);else{if(!n){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return _t(t),null}var f=de();if(ri(t))ey(t);else{switch(i=ie(Ho.current),Wf(r,f.ancestorInfo),f=f.context,i=dd(i),f){case al:i=i.createElementNS(Ri,r);break;case xf:i=i.createElementNS(kd,r);break;default:switch(r){case"svg":i=i.createElementNS(Ri,r);break;case"math":i=i.createElementNS(kd,r);break;case"script":i=i.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?i.createElement(r,{is:n.is}):i.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(i)!=="[object HTMLUnknownElement]"||ts.call(x1,r)||(x1[r]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)))}}i[Ea]=t,i[Ha]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=i;e:switch(wa(i,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&eo(t)}}return _t(t),hp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&eo(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=ie(Ho.current),a=de(),ri(t)){if(e=t.stateNode,a=t.memoizedProps,r=!Ls,n=null,i=Da,i!==null)switch(i.tag){case 3:r&&(r=j0(e,a,n),r!==null&&(xr(t,0).serverProps=r));break;case 27:case 5:n=i.memoizedProps,r&&(r=j0(e,a,n),r!==null&&(xr(t,0).serverProps=r))}e[Ea]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||b0(e.nodeValue,a)),e||_o(t,!0)}else r=a.ancestorInfo.current,r!=null&&gu(n,r.tag,a.ancestorInfo.implicitRootScope),e=dd(e).createTextNode(n),e[Ea]=t,t.stateNode=e}return _t(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=ri(t),a!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Ea]=t,_t(t),(t.mode&Ze)!==$e&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else gm(),Nr(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,_t(t),(t.mode&Ze)!==$e&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=hm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(dn(t),t):(dn(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return _t(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=n,i=ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");i[Ea]=t,_t(t),(t.mode&Ze)!==$e&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else gm(),Nr(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,_t(t),(t.mode&Ze)!==$e&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=hm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(dn(t),t):(dn(t),null)}return dn(t),(t.flags&128)!==0?(t.lanes=a,(t.mode&Ze)!==$e&&wl(t),t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ad(t,t.updateQueue),_t(t),(t.mode&Ze)!==$e&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return J(t),e===null&&jp(t.stateNode.containerInfo),_t(t),null;case 10:return Js(t.type,t),_t(t),null;case 19:if(W(Zt,t),n=t.memoizedState,n===null)return _t(t),null;if(r=(t.flags&128)!==0,i=n.rendering,i===null)if(r)jl(n,!1);else{if(Lt!==bo||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Hu(e),i!==null){for(t.flags|=128,jl(n,!1),e=i.updateQueue,t.updateQueue=e,ad(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Qb(a,e),a=a.sibling;return X(Zt,Zt.current&Gi|Nc,t),ot&&Ps(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ma()>rf&&(t.flags|=128,r=!0,jl(n,!1),t.lanes=4194304)}else{if(!r)if(e=Hu(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ad(t,e),jl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!ot)return _t(t),null}else 2*ma()-n.renderingStartTime>rf&&a!==536870912&&(t.flags|=128,r=!0,jl(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ma(),e.sibling=null,a=Zt.current,a=r?a&Gi|Nc:a&Gi,X(Zt,a,t),ot&&Ps(t,n.treeForkCount),e):(_t(t),null);case 22:case 23:return dn(t),_m(t),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(_t(t),t.subtreeFlags&6&&(t.flags|=8192)):_t(t),a=t.updateQueue,a!==null&&ad(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&W(Lr,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Js(Kt,t),_t(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function tE(e,t){switch(pm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ze)!==$e&&wl(t),t):null;case 3:return Js(Kt,t),J(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return K(t),null;case 31:if(t.memoizedState!==null){if(dn(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ze)!==$e&&wl(t),t):null;case 13:if(dn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ze)!==$e&&wl(t),t):null;case 19:return W(Zt,t),null;case 4:return J(t),null;case 10:return Js(t.type,t),null;case 22:case 23:return dn(t),_m(t),e!==null&&W(Lr,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ze)!==$e&&wl(t),t):null;case 24:return Js(Kt,t),null;case 25:return null;default:return null}}function mv(e,t){switch(pm(t),t.tag){case 3:Js(Kt,t),J(t);break;case 26:case 27:case 5:K(t);break;case 4:J(t);break;case 31:t.memoizedState!==null&&dn(t);break;case 13:dn(t);break;case 19:W(Zt,t);break;case 10:Js(t.type,t);break;case 22:case 23:dn(t),_m(t),e!==null&&W(Lr,t);break;case 24:Js(Kt,t)}}function Ds(e){return(e.mode&Ze)!==$e}function pv(e,t){Ds(e)?(Es(),Ol(t,e),ws()):Ol(t,e)}function gp(e,t,a){Ds(e)?(Es(),fi(a,e,t),ws()):fi(a,e,t)}function Ol(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e&&(n=void 0,(e&qa)!==Zd&&(Wi=!0),n=he(t,RR,a),(e&qa)!==Zd&&(Wi=!1),n!==void 0&&typeof n!="function")){var i=void 0;i=(a.tag&yn)!==0?"useLayoutEffect":(a.tag&qa)!==0?"useInsertionEffect":"useEffect";var f=void 0;f=n===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof n.then=="function"?`
146
+
147
+ It looks like you wrote `+i+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
148
+
149
+ `+i+`(() => {
150
+ async function fetchData() {
151
+ // You can await here
152
+ const response = await MyAPI.getData(someId);
153
+ // ...
154
+ }
155
+ fetchData();
156
+ }, [someId]); // Or [] if effect doesn't need props or state
157
+
158
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+n,he(t,function(p,v){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,v)},i,f)}a=a.next}while(a!==r)}}catch(p){yt(t,t.return,p)}}function fi(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){var f=n.inst,p=f.destroy;p!==void 0&&(f.destroy=void 0,(e&qa)!==Zd&&(Wi=!0),r=t,he(r,_R,r,a,p),(e&qa)!==Zd&&(Wi=!1))}n=n.next}while(n!==i)}}catch(v){yt(t,t.return,v)}}function hv(e,t){Ds(e)?(Es(),Ol(t,e),ws()):Ol(t,e)}function bp(e,t,a){Ds(e)?(Es(),fi(a,e,t),ws()):fi(a,e,t)}function gv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Qi||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(e)||"instance"));try{he(e,yy,t,a)}catch(n){yt(e,e.return,n)}}}function aE(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function nE(e,t){var a=t.memoizedProps,n=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Qi||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(e)||"instance"));try{var r=_r(e.type,a),i=he(e,aE,t,r,n);a=JN,i!==void 0||a.has(e.type)||(a.add(e.type),he(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",H(e))})),t.__reactInternalSnapshotBeforeUpdate=i}catch(f){yt(e,e.return,f)}}function bv(e,t,a){a.props=_r(e.type,e.memoizedProps),a.state=e.memoizedState,Ds(e)?(Es(),he(e,gN,e,t,a),ws()):he(e,gN,e,t,a)}function sE(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t=="function")if(Ds(e))try{Es(),e.refCleanup=t(a)}finally{ws()}else e.refCleanup=t(a);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",H(e)),t.current=a}}function Al(e,t){try{he(e,sE,e)}catch(a){yt(e,t,a)}}function Rs(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{if(Ds(e))try{Es(),he(e,n)}finally{ws(e)}else he(e,n)}catch(r){yt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(Ds(e))try{Es(),he(e,a,null)}finally{ws(e)}else he(e,a,null)}catch(r){yt(e,t,r)}else a.current=null}function yv(e,t,a,n){var r=e.memoizedProps,i=r.id,f=r.onCommit;r=r.onRender,t=t===null?"mount":"update",qd&&(t="nested-update"),typeof r=="function"&&r(i,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof f=="function"&&f(i,t,n,a)}function oE(e,t,a,n){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",qd&&(t="nested-update"),typeof r=="function"&&r(e,t,n,a)}function vv(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{he(e,UE,n,t,a,e)}catch(r){yt(e,e.return,r)}}function yp(e,t,a){try{he(e,TE,e.stateNode,e.type,a,t,e)}catch(n){yt(e,e.return,n)}}function xv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zo(e.type)||e.tag===4}function vp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xv(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&&zo(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 xp(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(_0(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(_0(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Qs));else if(n!==4&&(n===27&&zo(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(xp(e,t,a),e=e.sibling;e!==null;)xp(e,t,a),e=e.sibling}function nd(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&zo(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(nd(e,t,a),e=e.sibling;e!==null;)nd(e,t,a),e=e.sibling}function rE(e){for(var t,a=e.return;a!==null;){if(xv(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=vp(e),nd(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(R0(a),t.flags&=-33),t=vp(e),nd(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=vp(e),xp(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Nv(e){var t=e.stateNode,a=e.memoizedProps;try{he(e,XE,e.type,a,t,e)}catch(n){yt(e,e.return,n)}}function Sv(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function iE(e,t){if(e=e.containerInfo,xg=Ef,e=Lb(e),am(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var f=0,p=-1,v=-1,S=0,A=0,V=e,T=null;t:for(;;){for(var $;V!==a||r!==0&&V.nodeType!==3||(p=f+r),V!==i||n!==0&&V.nodeType!==3||(v=f+n),V.nodeType===3&&(f+=V.nodeValue.length),($=V.firstChild)!==null;)T=V,V=$;for(;;){if(V===e)break t;if(T===a&&++S===r&&(p=f),T===i&&++A===n&&(v=f),($=V.nextSibling)!==null)break;V=T,T=V.parentNode}V=$}a=p===-1||v===-1?null:{start:p,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ng={focusedElem:e,selectionRange:a},Ef=!1,ha=t;ha!==null;)if(t=ha,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ha=e;else for(;ha!==null;){switch(e=t=ha,a=e.alternate,r=e.flags,e.tag){case 0:if((r&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:(r&1024)!==0&&a!==null&&nE(e,a);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Bp(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,ha=e;break}ha=t.return}}function wv(e,t,a){var n=cn(),r=vs(),i=Ns(),f=Ss(),p=a.flags;switch(a.tag){case 0:case 11:case 15:_s(e,a),p&4&&pv(a,yn|zn);break;case 1:if(_s(e,a),p&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Qi||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(a)||"instance")),Ds(a)?(Es(),he(a,Yh,a,e),ws()):he(a,Yh,a,e);else{var v=_r(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Qi||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",H(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",H(a)||"instance")),Ds(a)?(Es(),he(a,mN,a,e,v,t,e.__reactInternalSnapshotBeforeUpdate),ws()):he(a,mN,a,e,v,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&gv(a),p&512&&Al(a,a.return);break;case 3:if(t=Ks(),_s(e,a),p&64&&(p=a.updateQueue,p!==null)){if(v=null,a.child!==null)switch(a.child.tag){case 27:case 5:v=a.child.stateNode;break;case 1:v=a.child.stateNode}try{he(a,yy,p,v)}catch(A){yt(a,a.return,A)}}e.effectDuration+=Cu(t);break;case 27:t===null&&p&4&&Nv(a);case 26:case 5:if(_s(e,a),t===null){if(p&4)vv(a);else if(p&64){e=a.type,t=a.memoizedProps,v=a.stateNode;try{he(a,CE,v,e,t,a)}catch(A){yt(a,a.return,A)}}}p&512&&Al(a,a.return);break;case 12:if(p&4){p=Ks(),_s(e,a),e=a.stateNode,e.effectDuration+=Sl(p);try{he(a,yv,a,t,Xo,e.effectDuration)}catch(A){yt(a,a.return,A)}}else _s(e,a);break;case 31:_s(e,a),p&4&&Rv(e,a);break;case 13:_s(e,a),p&4&&_v(e,a),p&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=gE.bind(null,a),qE(e,p))));break;case 22:if(p=a.memoizedState!==null||go,!p){t=t!==null&&t.memoizedState!==null||aa,v=go;var S=aa;go=p,(aa=t)&&!S?(ks(e,a,(a.subtreeFlags&8772)!==0),(a.mode&Ze)!==$e&&0<=Ve&&0<=Le&&.05<Le-Ve&&xu(a,Ve,Le)):_s(e,a),go=v,aa=S}break;case 30:break;default:_s(e,a)}(a.mode&Ze)!==$e&&0<=Ve&&0<=Le&&((Bt||.05<zt)&&bs(a,Ve,Le,zt,Vt),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Le-Ve&&(Sv(a.return.alternate,a.return)||gs(a,Ve,Le,"Mount"))),un(n),xs(r),Vt=i,Bt=f}function Ev(e){var t=e.alternate;t!==null&&(e.alternate=null,Ev(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&M(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function to(e,t,a){for(a=a.child;a!==null;)Dv(e,t,a),a=a.sibling}function Dv(e,t,a){if(Ua&&typeof Ua.onCommitFiberUnmount=="function")try{Ua.onCommitFiberUnmount(Ei,a)}catch(S){As||(As=!0,console.error("React instrumentation encountered an error: %o",S))}var n=cn(),r=vs(),i=Ns(),f=Ss();switch(a.tag){case 26:aa||Rs(a,t),to(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:aa||Rs(a,t);var p=na,v=tn;zo(a.type)&&(na=a.stateNode,tn=!1),to(e,t,a),he(a,ql,a.stateNode),na=p,tn=v;break;case 5:aa||Rs(a,t);case 6:if(p=na,v=tn,na=null,to(e,t,a),na=p,tn=v,na!==null)if(tn)try{he(a,AE,na,a.stateNode)}catch(S){yt(a,t,S)}else try{he(a,OE,na,a.stateNode)}catch(S){yt(a,t,S)}break;case 18:na!==null&&(tn?(e=na,k0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),xi(e)):k0(na,a.stateNode));break;case 4:p=na,v=tn,na=a.stateNode.containerInfo,tn=!0,to(e,t,a),na=p,tn=v;break;case 0:case 11:case 14:case 15:fi(qa,a,t),aa||gp(a,t,yn),to(e,t,a);break;case 1:aa||(Rs(a,t),p=a.stateNode,typeof p.componentWillUnmount=="function"&&bv(a,t,p)),to(e,t,a);break;case 21:to(e,t,a);break;case 22:aa=(p=aa)||a.memoizedState!==null,to(e,t,a),aa=p;break;default:to(e,t,a)}(a.mode&Ze)!==$e&&0<=Ve&&0<=Le&&(Bt||.05<zt)&&bs(a,Ve,Le,zt,Vt),un(n),xs(r),Vt=i,Bt=f}function Rv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{he(t,IE,e)}catch(a){yt(t,t.return,a)}}}function _v(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{he(t,FE,e)}catch(a){yt(t,t.return,a)}}function lE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new KN),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new KN),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function sd(e,t){var a=lE(e);t.forEach(function(n){if(!a.has(n)){if(a.add(n),Vs)if(Zi!==null&&Pi!==null)Ll(Pi,Zi);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=bE.bind(null,e,n);n.then(r,r)}})}function Wa(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=e,i=t,f=a[n],p=cn(),v=i;e:for(;v!==null;){switch(v.tag){case 27:if(zo(v.type)){na=v.stateNode,tn=!1;break e}break;case 5:na=v.stateNode,tn=!1;break e;case 3:case 4:na=v.stateNode.containerInfo,tn=!0;break e}v=v.return}if(na===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Dv(r,i,f),na=null,tn=!1,(f.mode&Ze)!==$e&&0<=Ve&&0<=Le&&.05<Le-Ve&&gs(f,Ve,Le,"Unmount"),un(p),r=f,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)kv(t,e),t=t.sibling}function kv(e,t){var a=cn(),n=vs(),r=Ns(),i=Ss(),f=e.alternate,p=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Wa(t,e),en(e),p&4&&(fi(qa|zn,e,e.return),Ol(qa|zn,e),gp(e,e.return,yn|zn));break;case 1:if(Wa(t,e),en(e),p&512&&(aa||f===null||Rs(f,f.return)),p&64&&go&&(p=e.updateQueue,p!==null&&(f=p.callbacks,f!==null))){var v=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=v===null?f:v.concat(f)}break;case 26:if(v=os,Wa(t,e),en(e),p&512&&(aa||f===null||Rs(f,f.return)),p&4){var S=f!==null?f.memoizedState:null;if(p=e.memoizedState,f===null)if(p===null)if(e.stateNode===null){e:{p=e.type,f=e.memoizedProps,v=v.ownerDocument||v;t:switch(p){case"title":S=v.getElementsByTagName("title")[0],(!S||S[Pl]||S[Ea]||S.namespaceURI===Ri||S.hasAttribute("itemprop"))&&(S=v.createElement(p),v.head.insertBefore(S,v.querySelector("head > title"))),wa(S,p,f),S[Ea]=e,ke(S),p=S;break e;case"link":var A=H0("link","href",v).get(p+(f.href||""));if(A){for(var V=0;V<A.length;V++)if(S=A[V],S.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&S.getAttribute("rel")===(f.rel==null?null:f.rel)&&S.getAttribute("title")===(f.title==null?null:f.title)&&S.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){A.splice(V,1);break t}}S=v.createElement(p),wa(S,p,f),v.head.appendChild(S);break;case"meta":if(A=H0("meta","content",v).get(p+(f.content||""))){for(V=0;V<A.length;V++)if(S=A[V],ut(f.content,"content"),S.getAttribute("content")===(f.content==null?null:""+f.content)&&S.getAttribute("name")===(f.name==null?null:f.name)&&S.getAttribute("property")===(f.property==null?null:f.property)&&S.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&S.getAttribute("charset")===(f.charSet==null?null:f.charSet)){A.splice(V,1);break t}}S=v.createElement(p),wa(S,p,f),v.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}S[Ea]=e,ke(S),p=S}e.stateNode=p}else B0(v,e.type,e.stateNode);else e.stateNode=L0(v,p,e.memoizedProps);else S!==p?(S===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):S.count--,p===null?B0(v,e.type,e.stateNode):L0(v,p,e.memoizedProps)):p===null&&e.stateNode!==null&&yp(e,e.memoizedProps,f.memoizedProps)}break;case 27:Wa(t,e),en(e),p&512&&(aa||f===null||Rs(f,f.return)),f!==null&&p&4&&yp(e,e.memoizedProps,f.memoizedProps);break;case 5:if(Wa(t,e),en(e),p&512&&(aa||f===null||Rs(f,f.return)),e.flags&32){v=e.stateNode;try{he(e,R0,v)}catch(Ne){yt(e,e.return,Ne)}}p&4&&e.stateNode!=null&&(v=e.memoizedProps,yp(e,v,f!==null?f.memoizedProps:v)),p&1024&&(tg=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Wa(t,e),en(e),p&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");p=e.memoizedProps,f=f!==null?f.memoizedProps:p,v=e.stateNode;try{he(e,jE,v,f,p)}catch(Ne){yt(e,e.return,Ne)}}break;case 3:if(v=Ks(),Nf=null,S=os,os=fd(t.containerInfo),Wa(t,e),os=S,en(e),p&4&&f!==null&&f.memoizedState.isDehydrated)try{he(e,GE,t.containerInfo)}catch(Ne){yt(e,e.return,Ne)}tg&&(tg=!1,Uv(e)),t.effectDuration+=Cu(v);break;case 4:p=os,os=fd(e.stateNode.containerInfo),Wa(t,e),en(e),os=p;break;case 12:p=Ks(),Wa(t,e),en(e),e.stateNode.effectDuration+=Sl(p);break;case 31:Wa(t,e),en(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,sd(e,p)));break;case 13:Wa(t,e),en(e),e.child.flags&8192&&e.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(of=ma()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,sd(e,p)));break;case 22:v=e.memoizedState!==null;var T=f!==null&&f.memoizedState!==null,$=go,fe=aa;if(go=$||v,aa=fe||T,Wa(t,e),aa=fe,go=$,T&&!v&&!$&&!fe&&(e.mode&Ze)!==$e&&0<=Ve&&0<=Le&&.05<Le-Ve&&xu(e,Ve,Le),en(e),p&8192)e:for(t=e.stateNode,t._visibility=v?t._visibility&~oc:t._visibility|oc,!v||f===null||T||go||aa||(kr(e),(e.mode&Ze)!==$e&&0<=Ve&&0<=Le&&.05<Le-Ve&&gs(e,Ve,Le,"Disconnect")),f=null,t=e;;){if(t.tag===5||t.tag===26){if(f===null){T=f=t;try{S=T.stateNode,v?he(T,ME,S):he(T,HE,T.stateNode,T.memoizedProps)}catch(Ne){yt(T,T.return,Ne)}}}else if(t.tag===6){if(f===null){T=t;try{A=T.stateNode,v?he(T,zE,A):he(T,BE,A,T.memoizedProps)}catch(Ne){yt(T,T.return,Ne)}}}else if(t.tag===18){if(f===null){T=t;try{V=T.stateNode,v?he(T,VE,V):he(T,LE,T.stateNode)}catch(Ne){yt(T,T.return,Ne)}}}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;f===t&&(f=null),t=t.return}f===t&&(f=null),t.sibling.return=t.return,t=t.sibling}p&4&&(p=e.updateQueue,p!==null&&(f=p.retryQueue,f!==null&&(p.retryQueue=null,sd(e,f))));break;case 19:Wa(t,e),en(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,sd(e,p)));break;case 30:break;case 21:break;default:Wa(t,e),en(e)}(e.mode&Ze)!==$e&&0<=Ve&&0<=Le&&((Bt||.05<zt)&&bs(e,Ve,Le,zt,Vt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Le-Ve&&(Sv(e.return.alternate,e.return)||gs(e,Ve,Le,"Mount"))),un(a),xs(n),Vt=r,Bt=i}function en(e){var t=e.flags;if(t&2){try{he(e,rE,e)}catch(a){yt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Uv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Uv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _s(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wv(e,t.alternate,t),t=t.sibling}function Cv(e){var t=cn(),a=vs(),n=Ns(),r=Ss();switch(e.tag){case 0:case 11:case 14:case 15:gp(e,e.return,yn),kr(e);break;case 1:Rs(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&bv(e,e.return,i),kr(e);break;case 27:he(e,ql,e.stateNode);case 26:case 5:Rs(e,e.return),kr(e);break;case 22:e.memoizedState===null&&kr(e);break;case 30:kr(e);break;default:kr(e)}(e.mode&Ze)!==$e&&0<=Ve&&0<=Le&&(Bt||.05<zt)&&bs(e,Ve,Le,zt,Vt),un(t),xs(a),Vt=n,Bt=r}function kr(e){for(e=e.child;e!==null;)Cv(e),e=e.sibling}function Tv(e,t,a,n){var r=cn(),i=vs(),f=Ns(),p=Ss(),v=a.flags;switch(a.tag){case 0:case 11:case 15:ks(e,a,n),pv(a,yn);break;case 1:if(ks(e,a,n),t=a.stateNode,typeof t.componentDidMount=="function"&&he(a,Yh,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{he(a,G4,t,e)}catch(S){yt(a,a.return,S)}}n&&v&64&&gv(a),Al(a,a.return);break;case 27:Nv(a);case 26:case 5:ks(e,a,n),n&&t===null&&v&4&&vv(a),Al(a,a.return);break;case 12:if(n&&v&4){v=Ks(),ks(e,a,n),n=a.stateNode,n.effectDuration+=Sl(v);try{he(a,yv,a,t,Xo,n.effectDuration)}catch(S){yt(a,a.return,S)}}else ks(e,a,n);break;case 31:ks(e,a,n),n&&v&4&&Rv(e,a);break;case 13:ks(e,a,n),n&&v&4&&_v(e,a);break;case 22:a.memoizedState===null&&ks(e,a,n),Al(a,a.return);break;case 30:break;default:ks(e,a,n)}(a.mode&Ze)!==$e&&0<=Ve&&0<=Le&&(Bt||.05<zt)&&bs(a,Ve,Le,zt,Vt),un(r),xs(i),Vt=f,Bt=p}function ks(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Tv(e,t.alternate,t,a),t=t.sibling}function Np(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&wr(e),a!=null&&Nl(a))}function Sp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(wr(t),e!=null&&Nl(e))}function es(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var i=t.sibling;jv(e,t,a,n,i!==null?i.actualStartTime:r),t=i}}function jv(e,t,a,n,r){var i=cn(),f=vs(),p=Ns(),v=Ss(),S=qo,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Ze)!==$e&&0<t.actualStartTime&&(t.flags&1)!==0&&Nu(t,t.actualStartTime,r,ia,a),es(e,t,a,n,r),A&2048&&hv(t,Ga|zn);break;case 1:(t.mode&Ze)!==$e&&0<t.actualStartTime&&((t.flags&128)!==0?sm(t,t.actualStartTime,r,[]):(t.flags&1)!==0&&Nu(t,t.actualStartTime,r,ia,a)),es(e,t,a,n,r);break;case 3:var V=Ks(),T=ia;ia=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,es(e,t,a,n,r),ia=T,A&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),n=t.memoizedState.cache,n!==a&&(wr(n),a!=null&&Nl(a))),e.passiveEffectDuration+=Cu(V);break;case 12:if(A&2048){A=Ks(),es(e,t,a,n,r),e=t.stateNode,e.passiveEffectDuration+=Sl(A);try{he(t,oE,t,t.alternate,Xo,e.passiveEffectDuration)}catch($){yt(t,t.return,$)}}else es(e,t,a,n,r);break;case 31:A=ia,V=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,V!==null&&T===null?(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(ia=!1,V=V.hydrationErrors,V!==null&&sm(t,t.actualStartTime,r,V)):ia=!0):ia=!1,es(e,t,a,n,r),ia=A;break;case 13:A=ia,V=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,V===null||V.dehydrated===null||T!==null&&T.dehydrated!==null?ia=!1:(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(ia=!1,V=V.hydrationErrors,V!==null&&sm(t,t.actualStartTime,r,V)):ia=!0),es(e,t,a,n,r),ia=A;break;case 23:break;case 22:T=t.stateNode,V=t.alternate,t.memoizedState!==null?T._visibility&oo?es(e,t,a,n,r):Vl(e,t,a,n,r):T._visibility&oo?es(e,t,a,n,r):(T._visibility|=oo,mi(e,t,a,n,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&Ze)===$e||ia||(e=t.actualStartTime,0<=e&&.05<r-e&&xu(t,e,r),0<=Ve&&0<=Le&&.05<Le-Ve&&xu(t,Ve,Le))),A&2048&&Np(V,t);break;case 24:es(e,t,a,n,r),A&2048&&Sp(t.alternate,t);break;default:es(e,t,a,n,r)}(t.mode&Ze)!==$e&&((e=!ia&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<r-a&&gs(t,a,r,"Mount")),0<=Ve&&0<=Le&&((Bt||.05<zt)&&bs(t,Ve,Le,zt,Vt),e&&.05<Le-Ve&&gs(t,Ve,Le,"Mount"))),un(i),xs(f),Vt=p,Bt=v,qo=S}function mi(e,t,a,n,r,i){for(r=r&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var f=t.sibling;Ov(e,t,a,n,r,f!==null?f.actualStartTime:i),t=f}}function Ov(e,t,a,n,r,i){var f=cn(),p=vs(),v=Ns(),S=Ss(),A=qo;r&&(t.mode&Ze)!==$e&&0<t.actualStartTime&&(t.flags&1)!==0&&Nu(t,t.actualStartTime,i,ia,a);var V=t.flags;switch(t.tag){case 0:case 11:case 15:mi(e,t,a,n,r,i),hv(t,Ga);break;case 23:break;case 22:var T=t.stateNode;t.memoizedState!==null?T._visibility&oo?mi(e,t,a,n,r,i):Vl(e,t,a,n,i):(T._visibility|=oo,mi(e,t,a,n,r,i)),r&&V&2048&&Np(t.alternate,t);break;case 24:mi(e,t,a,n,r,i),r&&V&2048&&Sp(t.alternate,t);break;default:mi(e,t,a,n,r,i)}(t.mode&Ze)!==$e&&0<=Ve&&0<=Le&&(Bt||.05<zt)&&bs(t,Ve,Le,zt,Vt),un(f),xs(p),Vt=v,Bt=S,qo=A}function Vl(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var i=t.child;i!==null;){t=i.sibling;var f=e,p=a,v=n,S=t!==null?t.actualStartTime:r,A=qo;(i.mode&Ze)!==$e&&0<i.actualStartTime&&(i.flags&1)!==0&&Nu(i,i.actualStartTime,S,ia,p);var V=i.flags;switch(i.tag){case 22:Vl(f,i,p,v,S),V&2048&&Np(i.alternate,i);break;case 24:Vl(f,i,p,v,S),V&2048&&Sp(i.alternate,i);break;default:Vl(f,i,p,v,S)}qo=A,i=t}}function pi(e,t,a){if(e.subtreeFlags&Dc)for(e=e.child;e!==null;)Av(e,t,a),e=e.sibling}function Av(e,t,a){switch(e.tag){case 26:pi(e,t,a),e.flags&Dc&&e.memoizedState!==null&&PE(a,os,e.memoizedState,e.memoizedProps);break;case 5:pi(e,t,a);break;case 3:case 4:var n=os;os=fd(e.stateNode.containerInfo),pi(e,t,a),os=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Dc,Dc=16777216,pi(e,t,a),Dc=n):pi(e,t,a));break;default:pi(e,t,a)}}function Vv(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 Ml(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],r=cn();ha=n,Lv(n,e),(n.mode&Ze)!==$e&&0<=Ve&&0<=Le&&.05<Le-Ve&&gs(n,Ve,Le,"Unmount"),un(r)}Vv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mv(e),e=e.sibling}function Mv(e){var t=cn(),a=vs(),n=Ns(),r=Ss();switch(e.tag){case 0:case 11:case 15:Ml(e),e.flags&2048&&bp(e,e.return,Ga|zn);break;case 3:var i=Ks();Ml(e),e.stateNode.passiveEffectDuration+=Cu(i);break;case 12:i=Ks(),Ml(e),e.stateNode.passiveEffectDuration+=Sl(i);break;case 22:i=e.stateNode,e.memoizedState!==null&&i._visibility&oo&&(e.return===null||e.return.tag!==13)?(i._visibility&=~oo,od(e),(e.mode&Ze)!==$e&&0<=Ve&&0<=Le&&.05<Le-Ve&&gs(e,Ve,Le,"Disconnect")):Ml(e);break;default:Ml(e)}(e.mode&Ze)!==$e&&0<=Ve&&0<=Le&&(Bt||.05<zt)&&bs(e,Ve,Le,zt,Vt),un(t),xs(a),Bt=r,Vt=n}function od(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],r=cn();ha=n,Lv(n,e),(n.mode&Ze)!==$e&&0<=Ve&&0<=Le&&.05<Le-Ve&&gs(n,Ve,Le,"Unmount"),un(r)}Vv(e)}for(e=e.child;e!==null;)zv(e),e=e.sibling}function zv(e){var t=cn(),a=vs(),n=Ns(),r=Ss();switch(e.tag){case 0:case 11:case 15:bp(e,e.return,Ga),od(e);break;case 22:var i=e.stateNode;i._visibility&oo&&(i._visibility&=~oo,od(e));break;default:od(e)}(e.mode&Ze)!==$e&&0<=Ve&&0<=Le&&(Bt||.05<zt)&&bs(e,Ve,Le,zt,Vt),un(t),xs(a),Bt=r,Vt=n}function Lv(e,t){for(;ha!==null;){var a=ha,n=a,r=t,i=cn(),f=vs(),p=Ns(),v=Ss();switch(n.tag){case 0:case 11:case 15:bp(n,r,Ga);break;case 23:case 22:n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool,r!=null&&wr(r));break;case 24:Nl(n.memoizedState.cache)}if((n.mode&Ze)!==$e&&0<=Ve&&0<=Le&&(Bt||.05<zt)&&bs(n,Ve,Le,zt,Vt),un(i),xs(f),Bt=v,Vt=p,n=a.child,n!==null)n.return=a,ha=n;else e:for(a=e;ha!==null;){if(n=ha,i=n.sibling,f=n.return,Ev(n),n===a){ha=null;break e}if(i!==null){i.return=f,ha=i;break e}ha=f}}}function cE(){jR.forEach(function(e){return e()})}function Hv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||I.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function fn(e){if((ft&la)!==ga&&Je!==0)return Je&-Je;var t=I.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Cp()):gt()}function Bv(){if(nn===0)if((Je&536870912)===0||ot){var e=Ed;Ed<<=1,(Ed&3932160)===0&&(Ed=262144),nn=e}else nn=536870912;return e=bn.current,e!==null&&(e.flags|=32),nn}function Ht(e,t,a){if(Wi&&console.error("useInsertionEffect must not schedule updates."),fg&&(uf=!0),(e===Dt&&(Nt===Gr||Nt===Ir)||e.cancelPendingCommit!==null)&&(gi(e,0),Vo(e,Je,nn,!1)),Za(e,a),(ft&la)!==ga&&e===Dt){if(Os)switch(t.tag){case 0:case 11:case 15:e=Ke&&H(Ke)||"Unknown",m1.has(e)||(m1.add(e),t=H(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:f1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),f1=!0)}}else Vs&&Xn(e,t,a),vE(t),e===Dt&&((ft&la)===ga&&(tr|=a),Lt===Ko&&Vo(e,Je,nn,!1)),Us(e)}function $v(e,t,a){if((ft&(la|vn))!==ga)throw Error("Should not already be working.");if(Je!==0&&Ke!==null){var n=Ke,r=ma();switch(oN){case kc:case Gr:var i=dc;Tt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Suspended",i,r,Un,void 0,"primary-light")):console.timeStamp("Suspended",i,r,Un,void 0,"primary-light"));break;case Ir:i=dc,Tt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Action",i,r,Un,void 0,"primary-light")):console.timeStamp("Action",i,r,Un,void 0,"primary-light"));break;default:Tt&&(n=r-dc,3>n||console.timeStamp("Blocked",dc,r,Un,void 0,5>n?"primary-light":10>n?"primary":100>n?"primary-dark":"error"))}}i=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Dn(e,t))?dE(e,t):Ep(e,t,!0);var f=a;do{if(i===bo){Ji&&!a&&Vo(e,t,0,!1),t=Nt,dc=Wt(),oN=t;break}else{if(n=ma(),r=e.current.alternate,f&&!uE(r)){Kn(t),r=pa,i=n,!Tt||i<=r||(Gt?Gt.run(console.timeStamp.bind(console,"Teared Render",r,i,dt,lt,"error")):console.timeStamp("Teared Render",r,i,dt,lt,"error")),Ur(t,n),i=Ep(e,t,!1),f=!1;continue}if(i===qr){if(f=t,e.errorRecoveryDisabledLanes&f)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){Kn(t),om(pa,n,t,Gt),Ur(t,n),t=p;e:{n=e,i=f,f=Cc;var v=n.current.memoizedState.isDehydrated;if(v&&(gi(n,p).flags|=256),p=Ep(n,p,!1),p!==qr){if(sg&&!v){n.errorRecoveryDisabledLanes|=i,tr|=i,i=Ko;break e}n=Ia,Ia=f,n!==null&&(Ia===null?Ia=n:Ia.push.apply(Ia,n))}i=p}if(f=!1,i!==qr)continue;n=ma()}}if(i===_c){Kn(t),om(pa,n,t,Gt),Ur(t,n),gi(e,0),Vo(e,t,0,!0);break}e:{switch(a=e,i){case bo:case _c:throw Error("Root did not complete. This is a bug in React.");case Ko:if((t&4194048)!==t)break;case tf:Kn(t),$b(pa,n,t,Gt),Ur(t,n),r=t,(r&127)!==0?Bd=n:(r&4194048)!==0&&($d=n),Vo(a,t,nn,!Wo);break e;case qr:Ia=null;break;case ef:case WN:break;default:throw Error("Unknown root exit status.")}if(I.actQueue!==null)Dp(a,r,t,Ia,Tc,sf,nn,tr,Fr,i,null,null,pa,n);else{if((t&62914560)===t&&(f=of+a1-ma(),10<f)){if(Vo(a,t,nn,!Wo),Xa(a,0,!0)!==0)break e;rs=t,a.timeoutHandle=N1(Yv.bind(null,a,r,Ia,Tc,sf,t,nn,tr,Fr,Wo,i,"Throttled",pa,n),f);break e}Yv(a,r,Ia,Tc,sf,t,nn,tr,Fr,Wo,i,null,pa,n)}}}break}while(!0);Us(e)}function Yv(e,t,a,n,r,i,f,p,v,S,A,V,T,$){e.timeoutHandle=Jr;var fe=t.subtreeFlags,Ne=null;if((fe&8192||(fe&16785408)===16785408)&&(Ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qs},Av(t,i,Ne),fe=(i&62914560)===i?of-ma():(i&4194048)===i?t1-ma():0,fe=JE(Ne,fe),fe!==null)){rs=i,e.cancelPendingCommit=fe(Dp.bind(null,e,t,i,a,n,r,f,p,v,A,Ne,Ne.waitingForViewTransition?"Waiting for the previous Animation":0<Ne.count?0<Ne.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Ne.imgCount===1?"Suspended on an Image":0<Ne.imgCount?"Suspended on Images":null,T,$)),Vo(e,i,f,!S);return}Dp(e,t,i,a,n,r,f,p,v,A,Ne,V,T,$)}function uE(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var r=a[n],i=r.getSnapshot;r=r.value;try{if(!$a(i(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vo(e,t,a,n){t&=~og,t&=~tr,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var i=31-La(r),f=1<<i;n[i]=-1,r&=~f}a!==0&&xa(e,a,t)}function hi(){return(ft&(la|vn))===ga?(Hl(0),!1):!0}function wp(){if(Ke!==null){if(Nt===an)var e=Ke.return;else e=Ke,_u(),Am(e),Yi=null,xc=0,e=Ke;for(;e!==null;)mv(e.alternate,e),e=e.return;Ke=null}}function Ur(e,t){(e&127)!==0&&(Ar=t),(e&4194048)!==0&&(uo=t),(e&62914560)!==0&&(nN=t),(e&2080374784)!==0&&(sN=t)}function gi(e,t){Tt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",lt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",lt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",lt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",lt,"primary-light"));var a=pa;if(pa=Wt(),Je!==0&&0<a){if(Kn(Je),Lt===ef||Lt===Ko)$b(a,pa,t,Gt);else{var n=pa,r=Gt;if(Tt&&!(n<=a)){var i=(t&738197653)===t?"tertiary-dark":"primary-dark",f=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";r?r.run(console.timeStamp.bind(console,f,a,n,dt,lt,i)):console.timeStamp(f,a,n,dt,lt,i)}}Ur(Je,pa)}if(a=Gt,Gt=null,(t&127)!==0){Gt=lc,r=0<=Hs&&Hs<Ar?Ar:Hs,n=0<=Vr&&Vr<Ar?Ar:Vr,i=0<=n?n:0<=r?r:pa,0<=Bd?(Kn(2),Yb(Bd,i,t,a)):Yd&127,a=r;var p=n,v=cc,S=0<Hi,A=Qo===ic,V=Qo===Hd;if(r=pa,n=lc,i=zh,f=Lh,Tt){if(dt="Blocking",0<a?a>r&&(a=r):a=r,0<p?p>a&&(p=a):p=a,v!==null&&a>p){var T=S?"secondary-light":"warning";n?n.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+v,p,a,dt,lt,T)):console.timeStamp(S?"Consecutive":"Event: "+v,p,a,dt,lt,T)}r>a&&(p=A?"error":(t&738197653)===t?"tertiary-light":"primary-light",A=V?"Promise Resolved":A?"Cascading Update":5<r-a?"Update Blocked":"Update",V=[],f!=null&&V.push(["Component name",f]),i!=null&&V.push(["Method name",i]),a={start:a,end:r,detail:{devtools:{properties:V,track:dt,trackGroup:lt,color:p}}},n?n.run(performance.measure.bind(performance,A,a)):performance.measure(A,a))}Hs=-1.1,Qo=0,Lh=zh=null,Bd=-1.1,Hi=Vr,Vr=-1.1,Ar=Wt()}if((t&4194048)!==0&&(Gt=uc,r=0<=fo&&fo<uo?uo:fo,a=0<=Vn&&Vn<uo?uo:Vn,n=0<=Zo&&Zo<uo?uo:Zo,i=0<=n?n:0<=a?a:pa,0<=$d?(Kn(256),Yb($d,i,t,Gt)):Yd&4194048,V=n,p=Mr,v=0<Po,S=Hh===Hd,i=pa,n=uc,f=tN,A=aN,Tt&&(dt="Transition",0<a?a>i&&(a=i):a=i,0<r?r>a&&(r=a):r=a,0<V?V>r&&(V=r):V=r,r>V&&p!==null&&(T=v?"secondary-light":"warning",n?n.run(console.timeStamp.bind(console,v?"Consecutive":"Event: "+p,V,r,dt,lt,T)):console.timeStamp(v?"Consecutive":"Event: "+p,V,r,dt,lt,T)),a>r&&(n?n.run(console.timeStamp.bind(console,"Action",r,a,dt,lt,"primary-dark")):console.timeStamp("Action",r,a,dt,lt,"primary-dark")),i>a&&(r=S?"Promise Resolved":5<i-a?"Update Blocked":"Update",V=[],A!=null&&V.push(["Component name",A]),f!=null&&V.push(["Method name",f]),a={start:a,end:i,detail:{devtools:{properties:V,track:dt,trackGroup:lt,color:"primary-light"}}},n?n.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),Vn=fo=-1.1,Hh=0,$d=-1.1,Po=Zo,Zo=-1.1,uo=Wt()),(t&62914560)!==0&&(Yd&62914560)!==0&&(Kn(4194304),rm(nN,pa)),(t&2080374784)!==0&&(Yd&2080374784)!==0&&(Kn(268435456),rm(sN,pa)),a=e.timeoutHandle,a!==Jr&&(e.timeoutHandle=Jr,IR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),rs=0,wp(),Dt=e,Ke=a=Zs(e.current,null),Je=t,Nt=an,xn=null,Wo=!1,Ji=Dn(e,t),sg=!1,Lt=bo,Fr=nn=og=tr=er=0,Ia=Cc=null,sf=!1,(t&8)!==0&&(t|=t&32),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=t;0<n;)r=31-La(n),i=1<<r,t|=e[r],n&=~i;return $s=t,Su(),e=Zx(),1e3<e-Qx&&(I.recentlyCreatedOwnerStacks=0,Qx=e),ns.discardPendingWarnings(),a}function qv(e,t){Ye=null,I.H=Ec,I.getCurrentStack=null,Os=!1,hn=null,t===$i||t===Fd?(t=uy(),Nt=kc):t===qh?(t=uy(),Nt=e1):Nt=t===Wh?ng:t!==null&&typeof t=="object"&&typeof t.then=="function"?Uc:af,xn=t;var a=Ke;a===null?(Lt=_c,Ku(e,ln(t,e.current))):a.mode&Ze&&Nm(a)}function Gv(){var e=bn.current;return e===null?!0:(Je&4194048)===Je?Mn===null:(Je&62914560)===Je||(Je&536870912)!==0?e===Mn:!1}function Iv(){var e=I.H;return I.H=Ec,e===null?Ec:e}function Fv(){var e=I.A;return I.A=TR,e}function rd(e){Gt===null&&(Gt=e._debugTask==null?null:e._debugTask)}function id(){Lt=Ko,Wo||(Je&4194048)!==Je&&bn.current!==null||(Ji=!0),(er&134217727)===0&&(tr&134217727)===0||Dt===null||Vo(Dt,Je,nn,!1)}function Ep(e,t,a){var n=ft;ft|=la;var r=Iv(),i=Fv();if(Dt!==e||Je!==t){if(Vs){var f=e.memoizedUpdaters;0<f.size&&(Ll(e,Je),f.clear()),pe(e,t)}Tc=null,gi(e,t)}t=!1,f=Lt;e:do try{if(Nt!==an&&Ke!==null){var p=Ke,v=xn;switch(Nt){case ng:wp(),f=tf;break e;case kc:case Gr:case Ir:case Uc:bn.current===null&&(t=!0);var S=Nt;if(Nt=an,xn=null,bi(e,p,v,S),a&&Ji){f=bo;break e}break;default:S=Nt,Nt=an,xn=null,bi(e,p,v,S)}}Xv(),f=Lt;break}catch(A){qv(e,A)}while(!0);return t&&e.shellSuspendCounter++,_u(),ft=n,I.H=r,I.A=i,Ke===null&&(Dt=null,Je=0,Su()),f}function Xv(){for(;Ke!==null;)Qv(Ke)}function dE(e,t){var a=ft;ft|=la;var n=Iv(),r=Fv();if(Dt!==e||Je!==t){if(Vs){var i=e.memoizedUpdaters;0<i.size&&(Ll(e,Je),i.clear()),pe(e,t)}Tc=null,rf=ma()+n1,gi(e,t)}else Ji=Dn(e,t);e:do try{if(Nt!==an&&Ke!==null)t:switch(t=Ke,i=xn,Nt){case af:Nt=an,xn=null,bi(e,t,i,af);break;case Gr:case Ir:if(ly(i)){Nt=an,xn=null,Zv(t);break}t=function(){Nt!==Gr&&Nt!==Ir||Dt!==e||(Nt=nf),Us(e)},i.then(t,t);break e;case kc:Nt=nf;break e;case e1:Nt=ag;break e;case nf:ly(i)?(Nt=an,xn=null,Zv(t)):(Nt=an,xn=null,bi(e,t,i,nf));break;case ag:var f=null;switch(Ke.tag){case 26:f=Ke.memoizedState;case 5:case 27:var p=Ke;if(f?$0(f):p.stateNode.complete){Nt=an,xn=null;var v=p.sibling;if(v!==null)Ke=v;else{var S=p.return;S!==null?(Ke=S,ld(S)):Ke=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Nt=an,xn=null,bi(e,t,i,ag);break;case Uc:Nt=an,xn=null,bi(e,t,i,Uc);break;case ng:wp(),Lt=tf;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}I.actQueue!==null?Xv():fE();break}catch(A){qv(e,A)}while(!0);return _u(),I.H=n,I.A=r,ft=a,Ke!==null?bo:(Dt=null,Je=0,Su(),Lt)}function fE(){for(;Ke!==null&&!dD();)Qv(Ke)}function Qv(e){var t=e.alternate;(e.mode&Ze)!==$e?(xm(e),t=he(e,pp,t,e,$s),Nm(e)):t=he(e,pp,t,e,$s),e.memoizedProps=e.pendingProps,t===null?ld(e):Ke=t}function Zv(e){var t=he(e,mE,e);e.memoizedProps=e.pendingProps,t===null?ld(e):Ke=t}function mE(e){var t=e.alternate,a=(e.mode&Ze)!==$e;switch(a&&xm(e),e.tag){case 15:case 0:t=rv(t,e,e.pendingProps,e.type,void 0,Je);break;case 11:t=rv(t,e,e.pendingProps,e.type.render,e.ref,Je);break;case 5:Am(e);default:mv(t,e),e=Ke=Qb(e,$s),t=pp(t,e,$s)}return a&&Nm(e),t}function bi(e,t,a,n){_u(),Am(t),Yi=null,xc=0;var r=t.return;try{if(J4(e,r,t,a,Je)){Lt=_c,Ku(e,ln(a,e.current)),Ke=null;return}}catch(i){if(r!==null)throw Ke=r,i;Lt=_c,Ku(e,ln(a,e.current)),Ke=null;return}t.flags&32768?(ot||n===af?e=!0:Ji||(Je&536870912)!==0?e=!1:(Wo=e=!0,(n===Gr||n===Ir||n===kc||n===Uc)&&(n=bn.current,n!==null&&n.tag===13&&(n.flags|=16384))),Pv(t,e)):ld(t)}function ld(e){var t=e;do{if((t.flags&32768)!==0){Pv(t,Wo);return}var a=t.alternate;if(e=t.return,xm(t),a=he(t,eE,a,t,$s),(t.mode&Ze)!==$e&&ny(t),a!==null){Ke=a;return}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Lt===bo&&(Lt=WN)}function Pv(e,t){do{var a=tE(e.alternate,e);if(a!==null){a.flags&=32767,Ke=a;return}if((e.mode&Ze)!==$e){ny(e),a=e.actualDuration;for(var n=e.child;n!==null;)a+=n.actualDuration,n=n.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ke=e;return}Ke=e=a}while(e!==null);Lt=tf,Ke=null}function Dp(e,t,a,n,r,i,f,p,v,S,A,V,T,$){e.cancelPendingCommit=null;do zl();while(sa!==nr);if(ns.flushLegacyContextWarning(),ns.flushPendingUnsafeLifecycleWarnings(),(ft&(la|vn))!==ga)throw Error("Should not already be working.");if(Kn(a),S===qr?om(T,$,a,Gt):n!==null?L4(T,$,a,n,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Gt):z4(T,$,a,Gt),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(i=t.lanes|t.childLanes,i|=jh,Ra(e,a,i,f,p,v),e===Dt&&(Ke=Dt=null,Je=0),Ki=t,sr=e,rs=a,lg=i,ug=r,c1=n,cg=$,u1=V,is=lf,d1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,yE(wi,function(){return zc=window.event,is===lf&&(is=ig),t0(),null})):(e.callbackNode=null,e.callbackPriority=0),co=null,Xo=Wt(),V!==null&&H4($,Xo,V,Gt),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=I.T,I.T=null,r=vt.p,vt.p=kn,f=ft,ft|=vn;try{iE(e,t,a)}finally{ft=f,vt.p=r,I.T=n}}sa=o1,Jv(),Kv(),Wv()}}function Jv(){if(sa===o1){sa=nr;var e=sr,t=Ki,a=rs,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=I.T,I.T=null;var r=vt.p;vt.p=kn;var i=ft;ft|=vn;try{Zi=a,Pi=e,Tu(),kv(t,e),Pi=Zi=null,a=Ng;var f=Lb(e.containerInfo),p=a.focusedElem,v=a.selectionRange;if(f!==p&&p&&p.ownerDocument&&zb(p.ownerDocument.documentElement,p)){if(v!==null&&am(p)){var S=v.start,A=v.end;if(A===void 0&&(A=S),"selectionStart"in p)p.selectionStart=S,p.selectionEnd=Math.min(A,p.value.length);else{var V=p.ownerDocument||document,T=V&&V.defaultView||window;if(T.getSelection){var $=T.getSelection(),fe=p.textContent.length,Ne=Math.min(v.start,fe),kt=v.end===void 0?Ne:Math.min(v.end,fe);!$.extend&&Ne>kt&&(f=kt,kt=Ne,Ne=f);var ct=Mb(p,Ne),U=Mb(p,kt);if(ct&&U&&($.rangeCount!==1||$.anchorNode!==ct.node||$.anchorOffset!==ct.offset||$.focusNode!==U.node||$.focusOffset!==U.offset)){var j=V.createRange();j.setStart(ct.node,ct.offset),$.removeAllRanges(),Ne>kt?($.addRange(j),$.extend(U.node,U.offset)):(j.setEnd(U.node,U.offset),$.addRange(j))}}}}for(V=[],$=p;$=$.parentNode;)$.nodeType===1&&V.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<V.length;p++){var O=V[p];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}Ef=!!xg,Ng=xg=null}finally{ft=i,vt.p=r,I.T=n}}e.current=t,sa=r1}}function Kv(){if(sa===r1){sa=nr;var e=d1;if(e!==null){Xo=Wt();var t=lo,a=Xo;!Tt||a<=t||console.timeStamp(e,t,a,dt,lt,"secondary-light")}e=sr,t=Ki,a=rs;var n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=I.T,I.T=null;var r=vt.p;vt.p=kn;var i=ft;ft|=vn;try{Zi=a,Pi=e,Tu(),wv(e,t.alternate,t),Pi=Zi=null}finally{ft=i,vt.p=r,I.T=n}}e=cg,t=u1,lo=Wt(),e=t===null?e:Xo,t=lo,a=is===rg,n=Gt,co!==null?qb(e,t,co,!1,n):!Tt||t<=e||(n?n.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,dt,lt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,dt,lt,a?"error":"secondary-dark")),sa=i1}}function Wv(){if(sa===l1||sa===i1){if(sa===l1){var e=lo;lo=Wt();var t=lo,a=is===rg;!Tt||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,dt,lt,a?" error":"secondary-light"),is!==rg&&(is=s1)}sa=nr,fD(),e=sr;var n=Ki;t=rs,a=c1;var r=n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0;r?sa=cf:(sa=nr,Ki=sr=null,e0(e,e.pendingLanes),Xr=0,Oc=null);var i=e.pendingLanes;if(i===0&&(ar=null),r||o0(e),i=He(t),n=n.stateNode,Ua&&typeof Ua.onCommitFiberRoot=="function")try{var f=(n.current.flags&128)===128;switch(i){case kn:var p=uh;break;case Ms:p=dh;break;case no:p=wi;break;case Rd:p=fh;break;default:p=wi}Ua.onCommitFiberRoot(Ei,n,p,f)}catch(V){As||(As=!0,console.error("React instrumentation encountered an error: %o",V))}if(Vs&&e.memoizedUpdaters.clear(),cE(),a!==null){f=I.T,p=vt.p,vt.p=kn,I.T=null;try{var v=e.onRecoverableError;for(n=0;n<a.length;n++){var S=a[n],A=pE(S.stack);he(S.source,v,S.value,A)}}finally{I.T=f,vt.p=p}}(rs&3)!==0&&zl(),Us(e),i=e.pendingLanes,(t&261930)!==0&&(i&42)!==0?(Gd=!0,e===dg?jc++:(jc=0,dg=e)):jc=0,r||Ur(t,lo),Hl(0)}}function pE(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function e0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Nl(t)))}function zl(){return Jv(),Kv(),Wv(),t0()}function t0(){if(sa!==cf)return!1;var e=sr,t=lg;lg=0;var a=He(rs),n=no>a?no:a;a=I.T;var r=vt.p;try{vt.p=n,I.T=null;var i=ug;ug=null,n=sr;var f=rs;if(sa=nr,Ki=sr=null,rs=0,(ft&(la|vn))!==ga)throw Error("Cannot flush passive effects while already rendering.");Kn(f),fg=!0,uf=!1;var p=0;if(co=null,p=ma(),is===s1)rm(lo,p,ER);else{var v=lo,S=p,A=is===ig;!Tt||S<=v||(Gt?Gt.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",v,S,dt,lt,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",v,S,dt,lt,"secondary-light"))}v=ft,ft|=vn;var V=n.current;Tu(),Mv(V);var T=n.current;V=cg,Tu(),jv(n,T,f,i,V),o0(n),ft=v;var $=ma();if(T=p,V=Gt,co!==null?qb(T,$,co,!0,V):!Tt||$<=T||(V?V.run(console.timeStamp.bind(console,"Remaining Effects",T,$,dt,lt,"secondary-dark")):console.timeStamp("Remaining Effects",T,$,dt,lt,"secondary-dark")),Ur(f,$),Hl(0,!1),uf?n===Oc?Xr++:(Xr=0,Oc=n):Xr=0,uf=fg=!1,Ua&&typeof Ua.onPostCommitFiberRoot=="function")try{Ua.onPostCommitFiberRoot(Ei,n)}catch(Ne){As||(As=!0,console.error("React instrumentation encountered an error: %o",Ne))}var fe=n.current.stateNode;return fe.effectDuration=0,fe.passiveEffectDuration=0,!0}finally{vt.p=r,I.T=a,e0(e,t)}}function a0(e,t,a){t=ln(a,t),sy(t),t=np(e.stateNode,t,2),e=To(e,t,2),e!==null&&(Za(e,2),Us(e))}function yt(e,t,a){if(Wi=!1,e.tag===3)a0(e,e,a);else{for(;t!==null;){if(t.tag===3){a0(t,e,a);return}if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ar===null||!ar.has(n))){e=ln(a,e),sy(e),a=sp(2),n=To(t,a,2),n!==null&&(op(a,n,t,e),Za(n,2),Us(n));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
159
+
160
+ Error message:
161
+
162
+ %s`,a)}}function Rp(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new OR;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(sg=!0,r.add(a),n=hE.bind(null,e,t,a),Vs&&Ll(e,a),t.then(n,n))}function hE(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Hs&&(Ar=Hs=Wt(),lc=Ld("Promise Resolved"),Qo=Hd):(a&4194048)!==0&&0>Vn&&(uo=Vn=Wt(),uc=Ld("Promise Resolved"),Hh=Hd),Hv()&&I.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
163
+
164
+ When testing, code that resolves suspended data should be wrapped into act(...):
165
+
166
+ act(() => {
167
+ /* finish loading suspended data */
168
+ });
169
+ /* assert on the output */
170
+
171
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Dt===e&&(Je&a)===a&&(Lt===Ko||Lt===ef&&(Je&62914560)===Je&&ma()-of<a1?(ft&la)===ga&&gi(e,0):og|=a,Fr===Je&&(Fr=0)),Us(e)}function n0(e,t){t===0&&(t=on()),e=ka(e,t),e!==null&&(Za(e,t),Us(e))}function gE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),n0(e,a)}function bE(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}n!==null&&n.delete(t),n0(e,a)}function _p(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var n=e,r=t,i=r.type===xd;i=a||i,r.tag!==22?r.flags&67108864?i&&he(r,s0,n,r):_p(n,r,i):r.memoizedState===null&&(i&&r.flags&8192?he(r,s0,n,r):r.subtreeFlags&67108864&&he(r,_p,n,r,i)),t=t.sibling}}function s0(e,t){we(!0);try{Cv(t),zv(t),Tv(e,t.alternate,t,!1),Ov(e,t,0,null,!1,0)}finally{we(!1)}}function o0(e){var t=!0;e.current.mode&(Ca|as)||(t=!1),_p(e,e.current,t)}function r0(e){if((ft&la)===ga){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=H(e)||"ReactComponent",df!==null){if(df.has(t))return;df.add(t)}else df=new Set([t]);he(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Ll(e,t){Vs&&e.memoizedUpdaters.forEach(function(a){Xn(e,a,t)})}function yE(e,t){var a=I.actQueue;return a!==null?(a.push(t),MR):ch(e,t)}function vE(e){Hv()&&I.actQueue===null&&he(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
172
+
173
+ When testing, code that causes React state updates should be wrapped into act(...):
174
+
175
+ act(() => {
176
+ /* fire events that update state */
177
+ });
178
+ /* assert on the output */
179
+
180
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,H(e))})}function Us(e){e!==el&&e.next===null&&(el===null?ff=el=e:el=el.next=e),mf=!0,I.actQueue!==null?pg||(pg=!0,u0()):mg||(mg=!0,u0())}function Hl(e,t){if(!hg&&mf){hg=!0;do for(var a=!1,n=ff;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var i=0;else{var f=n.suspendedLanes,p=n.pingedLanes;i=(1<<31-La(42|e)+1)-1,i&=r&~(f&~p),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,c0(n,i))}else i=Je,i=Xa(n,n===Dt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==Jr),(i&3)===0||Dn(n,i)||(a=!0,c0(n,i));n=n.next}while(a);hg=!1}}function xE(){zc=window.event,kp()}function kp(){mf=pg=mg=!1;var e=0;or!==0&&_E()&&(e=or);for(var t=ma(),a=null,n=ff;n!==null;){var r=n.next,i=i0(n,t);i===0?(n.next=null,a===null?ff=r:a.next=r,r===null&&(el=a)):(a=n,(e!==0||(i&3)!==0)&&(mf=!0)),n=r}sa!==nr&&sa!==cf||Hl(e),or!==0&&(or=0)}function i0(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var f=31-La(i),p=1<<f,v=r[f];v===-1?((p&a)===0||(p&n)!==0)&&(r[f]=Qa(p,t)):v<=t&&(e.expiredLanes|=p),i&=~p}if(t=Dt,a=Je,a=Xa(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Jr),n=e.callbackNode,a===0||e===t&&(Nt===Gr||Nt===Ir)||e.cancelPendingCommit!==null)return n!==null&&Up(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Dn(e,a)){if(t=a&-a,t!==e.callbackPriority||I.actQueue!==null&&n!==gg)Up(n);else return t;switch(He(a)){case kn:case Ms:a=dh;break;case no:a=wi;break;case Rd:a=fh;break;default:a=wi}return n=l0.bind(null,e),I.actQueue!==null?(I.actQueue.push(n),a=gg):a=ch(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&Up(n),e.callbackPriority=2,e.callbackNode=null,2}function l0(e,t){if(Gd=qd=!1,zc=window.event,sa!==nr&&sa!==cf)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(is===lf&&(is=ig),zl()&&e.callbackNode!==a)return null;var n=Je;return n=Xa(e,e===Dt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Jr),n===0?null:($v(e,n,t),i0(e,ma()),e.callbackNode!=null&&e.callbackNode===a?l0.bind(null,e):null)}function c0(e,t){if(zl())return null;qd=Gd,Gd=!1,$v(e,t,!0)}function Up(e){e!==gg&&e!==null&&uD(e)}function u0(){I.actQueue!==null&&I.actQueue.push(function(){return kp(),null}),FR(function(){(ft&(la|vn))!==ga?ch(uh,xE):kp()})}function Cp(){if(or===0){var e=zr;e===0&&(e=wd,wd<<=1,(wd&261888)===0&&(wd=256)),or=e}return or}function d0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(ut(e,"action"),bl(""+e))}function f0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function NE(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var i=d0((r[Ha]||null).action),f=n.submitter;f&&(t=(t=f[Ha]||null)?d0(t.formAction):f.getAttribute("formAction"),t!==null&&(i=t,f=null));var p=new Td("action","action",null,n,r);e.push({event:p,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(or!==0){var v=f?f0(r,f):new FormData(r),S={pending:!0,data:v,method:r.method,action:i};Object.freeze(S),Pm(a,S,null,v)}}else typeof i=="function"&&(p.preventDefault(),v=f?f0(r,f):new FormData(r),S={pending:!0,data:v,method:r.method,action:i},Object.freeze(S),Pm(a,S,i,v))},currentTarget:r}]})}}function cd(e,t,a){e.currentTarget=a;try{t(e)}catch(n){kh(n)}e.currentTarget=null}function m0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a];e:{var r=void 0,i=n.event;if(n=n.listeners,t)for(var f=n.length-1;0<=f;f--){var p=n[f],v=p.instance,S=p.currentTarget;if(p=p.listener,v!==r&&i.isPropagationStopped())break e;v!==null?he(v,cd,i,p,S):cd(i,p,S),r=v}else for(f=0;f<n.length;f++){if(p=n[f],v=p.instance,S=p.currentTarget,p=p.listener,v!==r&&i.isPropagationStopped())break e;v!==null?he(v,cd,i,p,S):cd(i,p,S),r=v}}}}function it(e,t){bg.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[mh];a===void 0&&(a=t[mh]=new Set);var n=e+"__bubble";a.has(n)||(p0(t,e,2,!1),a.add(n))}function Tp(e,t,a){bg.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var n=0;t&&(n|=4),p0(a,e,n,t)}function jp(e){if(!e[pf]){e[pf]=!0,ux.forEach(function(a){a!=="selectionchange"&&(bg.has(a)||Tp(a,!1,e),Tp(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pf]||(t[pf]=!0,Tp("selectionchange",!1,t))}}function p0(e,t,a,n){switch(X0(t)){case kn:var r=tD;break;case Ms:r=aD;break;default:r=Qp}a=r.bind(null,t,a,e),r=void 0,!yh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Op(e,t,a,n,r){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var p=n.stateNode.containerInfo;if(p===r)break;if(f===4)for(f=n.return;f!==null;){var v=f.tag;if((v===3||v===4)&&f.stateNode.containerInfo===r)return;f=f.return}for(;p!==null;){if(f=ae(p),f===null)return;if(v=f.tag,v===5||v===6||v===26||v===27){n=i=f;continue e}p=p.parentNode}}n=n.return}Db(function(){var S=i,A=em(a),V=[];e:{var T=Xx.get(e);if(T!==void 0){var $=Td,fe=e;switch(e){case"keypress":if(bu(a)===0)break e;case"keydown":case"keyup":$=JD;break;case"focusin":fe="focus",$=Sh;break;case"focusout":fe="blur",$=Sh;break;case"beforeblur":case"afterblur":$=Sh;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Ox;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=HD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=eR;break;case qx:case Gx:case Ix:$=YD;break;case Fx:$=aR;break;case"scroll":case"scrollend":$=zD;break;case"wheel":$=sR;break;case"copy":case"cut":case"paste":$=GD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Vx;break;case"toggle":case"beforetoggle":$=rR}var Ne=(t&4)!==0,kt=!Ne&&(e==="scroll"||e==="scrollend"),ct=Ne?T!==null?T+"Capture":null:T;Ne=[];for(var U=S,j;U!==null;){var O=U;if(j=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||j===null||ct===null||(O=yl(U,ct),O!=null&&Ne.push(Bl(U,O,j))),kt)break;U=U.return}0<Ne.length&&(T=new $(T,fe,null,a,A),V.push({event:T,listeners:Ne}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",T&&a!==Jl&&(fe=a.relatedTarget||a.fromElement)&&(ae(fe)||fe[$o]))break e;if(($||T)&&(T=A.window===A?A:(T=A.ownerDocument)?T.defaultView||T.parentWindow:window,$?(fe=a.relatedTarget||a.toElement,$=S,fe=fe?ae(fe):null,fe!==null&&(kt=F(fe),Ne=fe.tag,fe!==kt||Ne!==5&&Ne!==27&&Ne!==6)&&(fe=null)):($=null,fe=S),$!==fe)){if(Ne=Ox,O="onMouseLeave",ct="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=Vx,O="onPointerLeave",ct="onPointerEnter",U="pointer"),kt=$==null?T:De($),j=fe==null?T:De(fe),T=new Ne(O,U+"leave",$,a,A),T.target=kt,T.relatedTarget=j,O=null,ae(A)===S&&(Ne=new Ne(ct,U+"enter",fe,a,A),Ne.target=j,Ne.relatedTarget=kt,O=Ne),kt=O,$&&fe)t:{for(Ne=SE,ct=$,U=fe,j=0,O=ct;O;O=Ne(O))j++;O=0;for(var Z=U;Z;Z=Ne(Z))O++;for(;0<j-O;)ct=Ne(ct),j--;for(;0<O-j;)U=Ne(U),O--;for(;j--;){if(ct===U||U!==null&&ct===U.alternate){Ne=ct;break t}ct=Ne(ct),U=Ne(U)}Ne=null}else Ne=null;$!==null&&h0(V,T,$,Ne,!1),fe!==null&&kt!==null&&h0(V,kt,fe,Ne,!0)}}e:{if(T=S?De(S):window,$=T.nodeName&&T.nodeName.toLowerCase(),$==="select"||$==="input"&&T.type==="file")var be=jb;else if(Cb(T))if($x)be=A4;else{be=j4;var qe=T4}else $=T.nodeName,!$||$.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?S&&gl(S.elementType)&&(be=jb):be=O4;if(be&&(be=be(e,S))){Tb(V,be,a,A);break e}qe&&qe(e,T,S),e==="focusout"&&S&&T.type==="number"&&S.memoizedProps.value!=null&&Me(T,"number",T.value)}switch(qe=S?De(S):window,e){case"focusin":(Cb(qe)||qe.contentEditable==="true")&&(Ti=qe,Eh=S,sc=null);break;case"focusout":sc=Eh=Ti=null;break;case"mousedown":Dh=!0;break;case"contextmenu":case"mouseup":case"dragend":Dh=!1,Hb(V,a,A);break;case"selectionchange":if(uR)break;case"keydown":case"keyup":Hb(V,a,A)}var Ae;if(wh)e:{switch(e){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Ci?kb(e,a)&&(Ue="onCompositionEnd"):e==="keydown"&&a.keyCode===Mx&&(Ue="onCompositionStart");Ue&&(zx&&a.locale!=="ko"&&(Ci||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Ci&&(Ae=Rb()):(Yo=A,vh="value"in Yo?Yo.value:Yo.textContent,Ci=!0)),qe=ud(S,Ue),0<qe.length&&(Ue=new Ax(Ue,e,null,a,A),V.push({event:Ue,listeners:qe}),Ae?Ue.data=Ae:(Ae=Ub(a),Ae!==null&&(Ue.data=Ae)))),(Ae=lR?_4(e,a):k4(e,a))&&(Ue=ud(S,"onBeforeInput"),0<Ue.length&&(qe=new FD("onBeforeInput","beforeinput",null,a,A),V.push({event:qe,listeners:Ue}),qe.data=Ae)),NE(V,e,S,a,A)}m0(V,t)})}function Bl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ud(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,i=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||i===null||(r=yl(e,a),r!=null&&n.unshift(Bl(e,r,i)),r=yl(e,t),r!=null&&n.push(Bl(e,r,i))),e.tag===3)return n;e=e.return}return[]}function SE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function h0(e,t,a,n,r){for(var i=t._reactName,f=[];a!==null&&a!==n;){var p=a,v=p.alternate,S=p.stateNode;if(p=p.tag,v!==null&&v===n)break;p!==5&&p!==26&&p!==27||S===null||(v=S,r?(S=yl(a,i),S!=null&&f.unshift(Bl(a,S,v))):r||(S=yl(a,i),S!=null&&f.push(Bl(a,S,v)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}function Ap(e,t){w4(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||Tx||(Tx=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Cr,possibleRegistrationNames:ph};gl(e)||typeof t.is=="string"||D4(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function fa(e,t,a,n){t!==a&&(a=Mo(a),Mo(t)!==a&&(n[e]=t))}function wE(e,t,a){t.forEach(function(n){a[y0(n)]=n==="style"?Mp(e):e.getAttribute(n)})}function Cs(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function g0(e,t){return e=e.namespaceURI===kd||e.namespaceURI===Ri?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Mo(e){return Ft(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",pt(e)),ya(e)),(typeof e=="string"?e:""+e).replace(zR,`
181
+ `).replace(LR,"")}function b0(e,t){return t=Mo(t),Mo(e)===t}function wt(e,t,a,n,r,i){switch(a){case"children":typeof n=="string"?(gu(n,t,!1),t==="body"||t==="textarea"&&n===""||hl(e,n)):(typeof n=="number"||typeof n=="bigint")&&(gu(""+n,t,!1),t!=="body"&&hl(e,""+n));break;case"className":oi(e,"class",n);break;case"tabIndex":oi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":oi(e,a,n);break;case"style":Sb(e,n,i);break;case"data":if(t!=="object"){oi(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}ut(n,a),n=bl(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(n!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof n=="function"&&(r.encType==null&&r.method==null||bf||(bf=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),r.target==null||gf||(gf=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||hf?t!=="button"||r.type==null||r.type==="submit"||hf?typeof n=="function"&&(r.name==null||g1||(g1=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),r.formEncType==null&&r.formMethod==null||bf||(bf=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),r.formTarget==null||gf||(gf=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(hf=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(hf=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&wt(e,t,"name",r.name,r,null),wt(e,t,"formEncType",r.formEncType,r,null),wt(e,t,"formMethod",r.formMethod,r,null),wt(e,t,"formTarget",r.formTarget,r,null)):(wt(e,t,"encType",r.encType,r,null),wt(e,t,"method",r.method,r,null),wt(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}ut(n,a),n=bl(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(typeof n!="function"&&Cs(a,n),e.onclick=Qs);break;case"onScroll":n!=null&&(typeof n!="function"&&Cs(a,n),it("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Cs(a,n),it("scrollend",e));break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=n.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}ut(n,a),a=bl(""+n),e.setAttributeNS(Qr,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?(ut(n,a),e.setAttribute(a,""+n)):e.removeAttribute(a);break;case"inert":n!==""||yf[a]||(yf[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?(ut(n,a),e.setAttribute(a,n)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?(ut(n,a),e.setAttribute(a,n)):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):(ut(n,a),e.setAttribute(a,n));break;case"popover":it("beforetoggle",e),it("toggle",e),Fs(e,"popover",n);break;case"xlinkActuate":Qn(e,Qr,"xlink:actuate",n);break;case"xlinkArcrole":Qn(e,Qr,"xlink:arcrole",n);break;case"xlinkRole":Qn(e,Qr,"xlink:role",n);break;case"xlinkShow":Qn(e,Qr,"xlink:show",n);break;case"xlinkTitle":Qn(e,Qr,"xlink:title",n);break;case"xlinkType":Qn(e,Qr,"xlink:type",n);break;case"xmlBase":Qn(e,yg,"xml:base",n);break;case"xmlLang":Qn(e,yg,"xml:lang",n);break;case"xmlSpace":Qn(e,yg,"xml:space",n);break;case"is":i!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Fs(e,"is",n);break;case"innerText":case"textContent":break;case"popoverTarget":b1||n==null||typeof n!="object"||(b1=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",n));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=wb(a),Fs(e,a,n)):Cr.hasOwnProperty(a)&&n!=null&&typeof n!="function"&&Cs(a,n)}}function Vp(e,t,a,n,r,i){switch(a){case"style":Sb(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=n.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof n=="string"?hl(e,n):(typeof n=="number"||typeof n=="bigint")&&hl(e,""+n);break;case"onScroll":n!=null&&(typeof n!="function"&&Cs(a,n),it("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Cs(a,n),it("scrollend",e));break;case"onClick":n!=null&&(typeof n!="function"&&Cs(a,n),e.onclick=Qs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Cr.hasOwnProperty(a))n!=null&&typeof n!="function"&&Cs(a,n);else e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),i=e[Ha]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,r),typeof n=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Fs(e,a,n)}}}function wa(e,t,a){switch(Ap(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",e),it("load",e);var n=!1,r=!1,i;for(i in a)if(a.hasOwnProperty(i)){var f=a[i];if(f!=null)switch(i){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:wt(e,t,i,f,a,null)}}r&&wt(e,t,"srcSet",a.srcSet,a,null),n&&wt(e,t,"src",a.src,a,null);return;case"input":ca("input",a),it("invalid",e);var p=i=f=r=null,v=null,S=null;for(n in a)if(a.hasOwnProperty(n)){var A=a[n];if(A!=null)switch(n){case"name":r=A;break;case"type":f=A;break;case"checked":v=A;break;case"defaultChecked":S=A;break;case"value":i=A;break;case"defaultValue":p=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:wt(e,t,n,A,a,null)}}Oe(e,a),ze(e,i,p,v,S,f,r,!1);return;case"select":ca("select",a),it("invalid",e),n=f=i=null;for(r in a)if(a.hasOwnProperty(r)&&(p=a[r],p!=null))switch(r){case"value":i=p;break;case"defaultValue":f=p;break;case"multiple":n=p;default:wt(e,t,r,p,a,null)}Ut(e,a),t=i,a=f,e.multiple=!!n,t!=null?tt(e,!!n,t,!1):a!=null&&tt(e,!!n,a,!0);return;case"textarea":ca("textarea",a),it("invalid",e),i=r=n=null;for(f in a)if(a.hasOwnProperty(f)&&(p=a[f],p!=null))switch(f){case"value":n=p;break;case"defaultValue":r=p;break;case"children":i=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:wt(e,t,f,p,a,null)}Xt(e,a),bt(e,n,r,i);return;case"option":Te(e,a);for(v in a)a.hasOwnProperty(v)&&(n=a[v],n!=null)&&(v==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":wt(e,t,v,n,a,null));return;case"dialog":it("beforetoggle",e),it("toggle",e),it("cancel",e),it("close",e);break;case"iframe":case"object":it("load",e);break;case"video":case"audio":for(n=0;n<Ac.length;n++)it(Ac[n],e);break;case"image":it("error",e),it("load",e);break;case"details":it("toggle",e);break;case"embed":case"source":case"link":it("error",e),it("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(S in a)if(a.hasOwnProperty(S)&&(n=a[S],n!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:wt(e,t,S,n,a,null)}return;default:if(gl(t)){for(A in a)a.hasOwnProperty(A)&&(n=a[A],n!==void 0&&Vp(e,t,A,n,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(n=a[p],n!=null&&wt(e,t,p,n,a,null))}function EE(e,t,a,n){switch(Ap(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,f=null,p=null,v=null,S=null,A=null;for($ in a){var V=a[$];if(a.hasOwnProperty($)&&V!=null)switch($){case"checked":break;case"value":break;case"defaultValue":v=V;default:n.hasOwnProperty($)||wt(e,t,$,null,n,V)}}for(var T in n){var $=n[T];if(V=a[T],n.hasOwnProperty(T)&&($!=null||V!=null))switch(T){case"type":i=$;break;case"name":r=$;break;case"checked":S=$;break;case"defaultChecked":A=$;break;case"value":f=$;break;case"defaultValue":p=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:$!==V&&wt(e,t,T,$,n,V)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,n=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,t||!n||h1||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),h1=!0),!t||n||p1||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),p1=!0),Re(e,f,p,v,S,A,i,r);return;case"select":$=f=p=T=null;for(i in a)if(v=a[i],a.hasOwnProperty(i)&&v!=null)switch(i){case"value":break;case"multiple":$=v;default:n.hasOwnProperty(i)||wt(e,t,i,null,n,v)}for(r in n)if(i=n[r],v=a[r],n.hasOwnProperty(r)&&(i!=null||v!=null))switch(r){case"value":T=i;break;case"defaultValue":p=i;break;case"multiple":f=i;default:i!==v&&wt(e,t,r,i,n,v)}n=p,t=f,a=$,T!=null?tt(e,!!t,T,!1):!!a!=!!t&&(n!=null?tt(e,!!t,n,!0):tt(e,!!t,t?[]:"",!1));return;case"textarea":$=T=null;for(p in a)if(r=a[p],a.hasOwnProperty(p)&&r!=null&&!n.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:wt(e,t,p,null,n,r)}for(f in n)if(r=n[f],i=a[f],n.hasOwnProperty(f)&&(r!=null||i!=null))switch(f){case"value":T=r;break;case"defaultValue":$=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==i&&wt(e,t,f,r,n,i)}ua(e,T,$);return;case"option":for(var fe in a)T=a[fe],a.hasOwnProperty(fe)&&T!=null&&!n.hasOwnProperty(fe)&&(fe==="selected"?e.selected=!1:wt(e,t,fe,null,n,T));for(v in n)T=n[v],$=a[v],n.hasOwnProperty(v)&&T!==$&&(T!=null||$!=null)&&(v==="selected"?e.selected=T&&typeof T!="function"&&typeof T!="symbol":wt(e,t,v,T,n,$));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 Ne in a)T=a[Ne],a.hasOwnProperty(Ne)&&T!=null&&!n.hasOwnProperty(Ne)&&wt(e,t,Ne,null,n,T);for(S in n)if(T=n[S],$=a[S],n.hasOwnProperty(S)&&T!==$&&(T!=null||$!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:wt(e,t,S,T,n,$)}return;default:if(gl(t)){for(var kt in a)T=a[kt],a.hasOwnProperty(kt)&&T!==void 0&&!n.hasOwnProperty(kt)&&Vp(e,t,kt,void 0,n,T);for(A in n)T=n[A],$=a[A],!n.hasOwnProperty(A)||T===$||T===void 0&&$===void 0||Vp(e,t,A,T,n,$);return}}for(var ct in a)T=a[ct],a.hasOwnProperty(ct)&&T!=null&&!n.hasOwnProperty(ct)&&wt(e,t,ct,null,n,T);for(V in n)T=n[V],$=a[V],!n.hasOwnProperty(V)||T===$||T==null&&$==null||wt(e,t,V,T,n,$)}function y0(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Mp(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var n=e[a];t[n]=e.getPropertyValue(n)}return t}function v0(e,t,a){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var n,r=n="",i;for(i in t)if(t.hasOwnProperty(i)){var f=t[i];f!=null&&typeof f!="boolean"&&f!==""&&(i.indexOf("--")===0?(St(f,i),n+=r+i+":"+(""+f).trim()):typeof f!="number"||f===0||Ux.has(i)?(St(f,i),n+=r+i.replace(Ex,"-$1").toLowerCase().replace(Dx,"-ms-")+":"+(""+f).trim()):n+=r+i.replace(Ex,"-$1").toLowerCase().replace(Dx,"-ms-")+":"+f+"px",r=";")}n=n||null,t=e.getAttribute("style"),t!==n&&(n=Mo(n),Mo(t)!==n&&(a.style=Mp(e)))}}function _n(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(ut(n,t),e===""+n)return}fa(t,e,n,i)}function x0(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null){switch(typeof n){case"function":case"symbol":return}if(!n)return}else switch(typeof n){case"function":case"symbol":break;default:if(n)return}fa(t,e,n,i)}function zp(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":return}else if(n!=null)switch(typeof n){case"function":case"symbol":break;default:if(ut(n,a),e===""+n)return}fa(t,e,n,i)}function N0(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(n))return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(!isNaN(n)&&(ut(n,t),e===""+n))return}fa(t,e,n,i)}function Lp(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(ut(n,t),a=bl(""+n),e===a)return}fa(t,e,n,i)}function S0(e,t,a,n){for(var r={},i=new Set,f=e.attributes,p=0;p<f.length;p++)switch(f[p].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:i.add(f[p].name)}if(gl(t)){for(var v in a)if(a.hasOwnProperty(v)){var S=a[v];if(S!=null){if(Cr.hasOwnProperty(v))typeof S!="function"&&Cs(v,S);else if(a.suppressHydrationWarning!==!0)switch(v){case"children":typeof S!="string"&&typeof S!="number"||fa("children",e.textContent,S,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=e.innerHTML,S=S?S.__html:void 0,S!=null&&(S=g0(e,S),fa(v,f,S,r));continue;case"style":i.delete(v),v0(e,S,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":i.delete(v.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",v);continue;case"className":i.delete("class"),f=Is(e,"class",S),fa("className",f,S,r);continue;default:n.context===yo&&t!=="svg"&&t!=="math"?i.delete(v.toLowerCase()):i.delete(v),f=Is(e,v,S),fa(v,f,S,r)}}}}else for(S in a)if(a.hasOwnProperty(S)&&(v=a[S],v!=null)){if(Cr.hasOwnProperty(S))typeof v!="function"&&Cs(S,v);else if(a.suppressHydrationWarning!==!0)switch(S){case"children":typeof v!="string"&&typeof v!="number"||fa("children",e.textContent,v,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=e.innerHTML,v=v?v.__html:void 0,v!=null&&(v=g0(e,v),f!==v&&(r[S]={__html:f}));continue;case"className":_n(e,S,"class",v,i,r);continue;case"tabIndex":_n(e,S,"tabindex",v,i,r);continue;case"style":i.delete(S),v0(e,v,r);continue;case"multiple":i.delete(S),fa(S,e.multiple,v,r);continue;case"muted":i.delete(S),fa(S,e.muted,v,r);continue;case"autoFocus":i.delete("autofocus"),fa(S,e.autofocus,v,r);continue;case"data":if(t!=="object"){i.delete(S),f=e.getAttribute("data"),fa(S,f,v,r);continue}case"src":case"href":if(!(v!==""||t==="a"&&S==="href"||t==="object"&&S==="data")){console.error(S==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S);continue}Lp(e,S,S,v,i,r);continue;case"action":case"formAction":if(f=e.getAttribute(S),typeof v=="function"){i.delete(S.toLowerCase()),S==="formAction"?(i.delete("name"),i.delete("formenctype"),i.delete("formmethod"),i.delete("formtarget")):(i.delete("enctype"),i.delete("method"),i.delete("target"));continue}else if(f===HR){i.delete(S.toLowerCase()),fa(S,"function",v,r);continue}Lp(e,S,S.toLowerCase(),v,i,r);continue;case"xlinkHref":Lp(e,S,"xlink:href",v,i,r);continue;case"contentEditable":zp(e,S,"contenteditable",v,i,r);continue;case"spellCheck":zp(e,S,"spellcheck",v,i,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":zp(e,S,S,v,i,r);continue;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":x0(e,S,S.toLowerCase(),v,i,r);continue;case"capture":case"download":e:{p=e;var A=f=S,V=r;if(i.delete(A),p=p.getAttribute(A),p===null)switch(typeof v){case"undefined":case"function":case"symbol":break e;default:if(v===!1)break e}else if(v!=null)switch(typeof v){case"function":case"symbol":break;case"boolean":if(v===!0&&p==="")break e;break;default:if(ut(v,f),p===""+v)break e}fa(f,p,v,V)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,A=f=S,V=r,i.delete(A),p=p.getAttribute(A),p===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(v)||1>v)break e}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(v)||1>v)&&(ut(v,f),p===""+v))break e}fa(f,p,v,V)}continue;case"rowSpan":N0(e,S,"rowspan",v,i,r);continue;case"start":N0(e,S,S,v,i,r);continue;case"xHeight":_n(e,S,"x-height",v,i,r);continue;case"xlinkActuate":_n(e,S,"xlink:actuate",v,i,r);continue;case"xlinkArcrole":_n(e,S,"xlink:arcrole",v,i,r);continue;case"xlinkRole":_n(e,S,"xlink:role",v,i,r);continue;case"xlinkShow":_n(e,S,"xlink:show",v,i,r);continue;case"xlinkTitle":_n(e,S,"xlink:title",v,i,r);continue;case"xlinkType":_n(e,S,"xlink:type",v,i,r);continue;case"xmlBase":_n(e,S,"xml:base",v,i,r);continue;case"xmlLang":_n(e,S,"xml:lang",v,i,r);continue;case"xmlSpace":_n(e,S,"xml:space",v,i,r);continue;case"inert":v!==""||yf[S]||(yf[S]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",S)),x0(e,S,S,v,i,r);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){p=wb(S),f=!1,n.context===yo&&t!=="svg"&&t!=="math"?i.delete(p.toLowerCase()):(A=S.toLowerCase(),A=Ud.hasOwnProperty(A)&&Ud[A]||null,A!==null&&A!==S&&(f=!0,i.delete(A)),i.delete(p));e:if(A=e,V=p,p=v,Va(V))if(A.hasAttribute(V))A=A.getAttribute(V),ut(p,V),p=A===""+p?p:A;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(A=V.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;f||fa(S,p,v,r)}}}return 0<i.size&&a.suppressHydrationWarning!==!0&&wE(e,i,r),Object.keys(r).length===0?null:r}function DE(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function w0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function RE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],i=r.transferSize,f=r.initiatorType,p=r.duration;if(i&&p&&w0(f)){for(f=0,p=r.responseEnd,n+=1;n<a.length;n++){var v=a[n],S=v.startTime;if(S>p)break;var A=v.transferSize,V=v.initiatorType;A&&w0(V)&&(v=v.responseEnd,f+=A*(v<p?1:(p-S)/(v-S)))}if(--n,t+=8*(i+f)/(r.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}function dd(e){return e.nodeType===9?e:e.ownerDocument}function E0(e){switch(e){case Ri:return al;case kd:return xf;default:return yo}}function D0(e,t){if(e===yo)switch(t){case"svg":return al;case"math":return xf;default:return yo}return e===al&&t==="foreignObject"?yo:e}function Hp(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}function _E(){var e=window.event;return e&&e.type==="popstate"?e===Sg?!1:(Sg=e,!0):(Sg=null,!1)}function $l(){var e=window.event;return e&&e!==zc?e.type:null}function Yl(){var e=window.event;return e&&e!==zc?e.timeStamp:-1.1}function kE(e){setTimeout(function(){throw e})}function UE(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function CE(){}function TE(e,t,a,n){EE(e,t,a,n),e[Ha]=n}function R0(e){hl(e,"")}function jE(e,t,a){e.nodeValue=a}function _0(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Ha]||null;if(t!==null){var a=le(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,he(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,he(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function zo(e){return e==="head"}function OE(e,t){e.removeChild(t)}function AE(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function k0(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a===Mc||a===vf){if(n===0){e.removeChild(r),xi(t);return}n--}else if(a===Vc||a===rr||a===Pr||a===tl||a===Zr)n++;else if(a===$R)ql(e.ownerDocument.documentElement);else if(a===qR){a=e.ownerDocument.head,ql(a);for(var i=a.firstChild;i;){var f=i.nextSibling,p=i.nodeName;i[Pl]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=f}}else a===YR&&ql(e.ownerDocument.body);a=r}while(a);xi(t)}function U0(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a===Mc){if(e===0)break;e--}else a!==Vc&&a!==rr&&a!==Pr&&a!==tl||e++;a=n}while(a)}function VE(e){U0(e,!0)}function ME(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function zE(e){e.nodeValue=""}function LE(e){U0(e,!1)}function HE(e,t){t=t[GR],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function BE(e,t){e.nodeValue=t}function Bp(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Bp(a),M(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function $E(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Pl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){ut(r.name,"name");var i=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=mn(e.nextSibling),e===null)break}return null}function YE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=mn(e.nextSibling),e===null))return null;return e}function C0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=mn(e.nextSibling),e===null))return null;return e}function $p(e){return e.data===rr||e.data===Pr}function Yp(e){return e.data===tl||e.data===rr&&e.ownerDocument.readyState!==v1}function qE(e,t){var a=e.ownerDocument;if(e.data===Pr)e._reactRetry=t;else if(e.data!==rr||a.readyState!==v1)t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function mn(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===Vc||t===tl||t===rr||t===Pr||t===Zr||t===vg||t===y1)break;if(t===Mc||t===vf)return null}}return e}function T0(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},n=e.attributes,r=0;r<n.length;r++){var i=n[r];a[y0(i.name)]=i.name.toLowerCase()==="style"?Mp(e):i.value}return{type:t,props:a}}return e.nodeType===8?e.data===Zr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function j0(e,t,a){return a===null||a[BR]!==!0?(e.nodeValue===t?e=null:(t=Mo(t),e=Mo(e.nodeValue)===t?null:e.nodeValue),e):null}function qp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Mc||a===vf){if(t===0)return mn(e.nextSibling);t--}else a!==Vc&&a!==tl&&a!==rr&&a!==Pr&&a!==Zr||t++}e=e.nextSibling}return null}function O0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Vc||a===tl||a===rr||a===Pr||a===Zr){if(t===0)return e;t--}else a!==Mc&&a!==vf||t++}e=e.previousSibling}return null}function GE(e){xi(e)}function IE(e){xi(e)}function FE(e){xi(e)}function A0(e,t,a,n,r){switch(r&&Wf(e,n.ancestorInfo),t=dd(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function XE(e,t,a,n){if(!a[$o]&&le(a)){var r=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",r,r,r)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(r=a.attributes;r.length;)a.removeAttributeNode(r[0]);wa(a,e,t),a[Ea]=n,a[Ha]=t}function ql(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);M(e)}function fd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function V0(e,t,a){var n=nl;if(n&&typeof t=="string"&&t){var r=ye(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),D1.has(r)||(D1.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),wa(t,"link",e),ke(t),n.head.appendChild(t)))}}function M0(e,t,a,n){var r=(r=Ho.current)?fd(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=yi(a.href),t=Be(r).hoistableStyles,n=t.get(a),n||(n={type:"style",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=yi(a.href);var i=Be(r).hoistableStyles,f=i.get(e);if(!f&&(r=r.ownerDocument||r,f={type:"stylesheet",instance:null,count:0,state:{loading:Kr,preload:null}},i.set(e,f),(i=r.querySelector(Gl(e)))&&!i._p&&(f.instance=i,f.state.loading=Lc|Hn),!Bn.has(e))){var p={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};Bn.set(e,p),i||QE(r,e,p,f.state)}if(t&&n===null)throw a=`
182
+
183
+ - `+md(t)+`
184
+ + `+md(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return f}if(t&&n!==null)throw a=`
185
+
186
+ - `+md(t)+`
187
+ + `+md(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=vi(a),t=Be(r).hoistableScripts,n=t.get(a),n||(n={type:"script",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function md(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):ts.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):ts.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):ts.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function yi(e){return'href="'+ye(e)+'"'}function Gl(e){return'link[rel="stylesheet"]['+e+"]"}function z0(e){return et({},e,{"data-precedence":e.precedence,precedence:null})}function QE(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=Lc:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=Lc}),t.addEventListener("error",function(){return n.loading|=w1}),wa(t,"link",a),ke(t),e.head.appendChild(t))}function vi(e){return'[src="'+ye(e)+'"]'}function Il(e){return"script[async]"+e}function L0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+ye(a.href)+'"]');if(n)return t.instance=n,ke(n),n;var r=et({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ke(n),wa(n,"style",r),pd(n,a.precedence,e),t.instance=n;case"stylesheet":r=yi(a.href);var i=e.querySelector(Gl(r));if(i)return t.state.loading|=Hn,t.instance=i,ke(i),i;n=z0(a),(r=Bn.get(r))&&Gp(n,r),i=(e.ownerDocument||e).createElement("link"),ke(i);var f=i;return f._p=new Promise(function(p,v){f.onload=p,f.onerror=v}),wa(i,"link",n),t.state.loading|=Hn,pd(i,a.precedence,e),t.instance=i;case"script":return i=vi(a.src),(r=e.querySelector(Il(i)))?(t.instance=r,ke(r),r):(n=a,(r=Bn.get(i))&&(n=et({},a),Ip(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),ke(r),wa(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Hn)===Kr&&(n=t.instance,t.state.loading|=Hn,pd(n,a.precedence,e));return t.instance}function pd(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,i=r,f=0;f<n.length;f++){var p=n[f];if(p.dataset.precedence===t)i=p;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Gp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ip(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function H0(e,t,a){if(Nf===null){var n=new Map,r=Nf=new Map;r.set(a,n)}else r=Nf,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var i=a[r];if(!(i[Pl]||i[Ea]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!==Ri){var f=i.getAttribute(t)||"";f=e+f;var p=n.get(f);p?p.push(i):n.set(f,[i])}}return n}function B0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function ZE(e,t,a){var n=!a.ancestorInfo.containerTagInScope;if(a.context===al||t.itemProp!=null)return!n||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){n&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var r=t.onError,i=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),r&&a.push("`onError`"),i!=null&&a.push("`disabled`"),r=DE(a,"and"),r+=a.length===1?" prop":" props",i=a.length===1?"an "+r:"the "+r,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,i,r)}n&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return t.rel==="stylesheet"?(e=t.precedence,t=t.disabled,typeof e!="string"&&n&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null):!0;case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){n&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":n&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function $0(e){return!(e.type==="stylesheet"&&(e.state.loading&E1)===Kr)}function PE(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&Hn)===Kr){if(a.instance===null){var r=yi(n.href),i=t.querySelector(Gl(r));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=hd.bind(e),t.then(e,e)),a.state.loading|=Hn,a.instance=i,ke(i);return}i=t.ownerDocument||t,n=z0(n),(r=Bn.get(r))&&Gp(n,r),i=i.createElement("link"),ke(i);var f=i;f._p=new Promise(function(p,v){f.onload=p,f.onerror=v}),wa(i,"link",n),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&E1)===Kr&&(e.count++,a=hd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function JE(e,t){return e.stylesheets&&e.count===0&&gd(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&gd(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},XR+t);0<e.imgBytes&&Eg===0&&(Eg=125*RE()*ZR);var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&gd(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Eg?50:QR)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function hd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function gd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Sf=new Map,t.forEach(KE,e),Sf=null,hd.call(e))}function KE(e,t){if(!(t.state.loading&Hn)){var a=Sf.get(e);if(a)var n=a.get(Dg);else{a=new Map,Sf.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var f=r[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(Dg,n)}r=t.instance,f=r.getAttribute("data-precedence"),i=a.get(f)||n,i===n&&a.set(Dg,r),a.set(f,r),this.count++,n=hd.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),i?i.parentNode.insertBefore(r,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=Hn}}function WE(e,t,a,n,r,i,f,p,v){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Jr,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=us(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=us(0),this.hiddenUpdates=us(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function Y0(e,t,a,n,r,i,f,p,v,S,A,V){return e=new WE(e,t,a,f,v,S,A,V,p),t=vR,i===!0&&(t|=Ca|as),t|=Ze,i=N(3,null,null,t),e.current=i,i.stateNode=e,t=vm(),wr(t),e.pooledCache=t,wr(t),i.memoizedState={element:n,isDehydrated:a,cache:t},Em(i),e}function q0(e){return e?(e=Io,e):Io}function Fp(e,t,a,n,r,i){if(Ua&&typeof Ua.onScheduleFiberRoot=="function")try{Ua.onScheduleFiberRoot(Ei,n,a)}catch(f){As||(As=!0,console.error("React instrumentation encountered an error: %o",f))}r=q0(r),n.context===null?n.context=r:n.pendingContext=r,Os&&hn!==null&&!U1&&(U1=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
188
+
189
+ Check the render method of %s.`,H(hn)||"Unknown")),n=Co(t),n.payload={element:a},i=i===void 0?null:i,i!==null&&(typeof i!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",i),n.callback=i),a=To(e,n,t),a!==null&&(ys(t,"root.render()",null),Ht(a,e,t),Dl(a,e,t))}function G0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Xp(e,t){G0(e,t),(e=e.alternate)&&G0(e,t)}function I0(e){if(e.tag===13||e.tag===31){var t=ka(e,67108864);t!==null&&Ht(t,e,67108864),Xp(e,67108864)}}function F0(e){if(e.tag===13||e.tag===31){var t=fn(e);t=Pa(t);var a=ka(e,t);a!==null&&Ht(a,e,t),Xp(e,t)}}function eD(){return hn}function tD(e,t,a,n){var r=I.T;I.T=null;var i=vt.p;try{vt.p=kn,Qp(e,t,a,n)}finally{vt.p=i,I.T=r}}function aD(e,t,a,n){var r=I.T;I.T=null;var i=vt.p;try{vt.p=Ms,Qp(e,t,a,n)}finally{vt.p=i,I.T=r}}function Qp(e,t,a,n){if(Ef){var r=Zp(n);if(r===null)Op(e,t,n,Df,a),Q0(e,n);else if(nD(r,e,t,a,n))n.stopPropagation();else if(Q0(e,n),t&4&&-1<JR.indexOf(e)){for(;r!==null;){var i=le(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=va(i.pendingLanes);if(f!==0){var p=i;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var v=1<<31-La(f);p.entanglements[1]|=v,f&=~v}Us(i),(ft&(la|vn))===ga&&(rf=ma()+n1,Hl(0))}}break;case 31:case 13:p=ka(i,2),p!==null&&Ht(p,i,2),hi(),Xp(i,2)}if(i=Zp(n),i===null&&Op(e,t,n,Df,a),i===r)break;r=i}r!==null&&n.stopPropagation()}else Op(e,t,n,null,a)}}function Zp(e){return e=em(e),Pp(e)}function Pp(e){if(Df=null,e=ae(e),e!==null){var t=F(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=Q(t),e!==null)return e;e=null}else if(a===31){if(e=ee(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Df=e,null}function X0(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 kn;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 Ms;case"message":switch(mD()){case uh:return kn;case dh:return Ms;case wi:case pD:return no;case fh:return Rd;default:return no}default:return no}}function Q0(e,t){switch(e){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":lr=null;break;case"mouseover":case"mouseout":cr=null;break;case"pointerover":case"pointerout":Bc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$c.delete(t.pointerId)}}function Fl(e,t,a,n,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:i,targetContainers:[r]},t!==null&&(t=le(t),t!==null&&I0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function nD(e,t,a,n,r){switch(t){case"focusin":return ir=Fl(ir,e,t,a,n,r),!0;case"dragenter":return lr=Fl(lr,e,t,a,n,r),!0;case"mouseover":return cr=Fl(cr,e,t,a,n,r),!0;case"pointerover":var i=r.pointerId;return Bc.set(i,Fl(Bc.get(i)||null,e,t,a,n,r)),!0;case"gotpointercapture":return i=r.pointerId,$c.set(i,Fl($c.get(i)||null,e,t,a,n,r)),!0}return!1}function Z0(e){var t=ae(e.target);if(t!==null){var a=F(t);if(a!==null){if(t=a.tag,t===13){if(t=Q(a),t!==null){e.blockedOn=t,E(e.priority,function(){F0(a)});return}}else if(t===31){if(t=ee(a),t!==null){e.blockedOn=t,E(e.priority,function(){F0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Zp(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a),r=n;Jl!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Jl=r,a.target.dispatchEvent(n),Jl===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Jl=null}else return t=le(a),t!==null&&I0(t),e.blockedOn=a,!1;t.shift()}return!0}function P0(e,t,a){bd(e)&&a.delete(t)}function sD(){Rg=!1,ir!==null&&bd(ir)&&(ir=null),lr!==null&&bd(lr)&&(lr=null),cr!==null&&bd(cr)&&(cr=null),Bc.forEach(P0),$c.forEach(P0)}function yd(e,t){e.blockedOn===t&&(e.blockedOn=null,Rg||(Rg=!0,Jt.unstable_scheduleCallback(Jt.unstable_NormalPriority,sD)))}function J0(e){Rf!==e&&(Rf=e,Jt.unstable_scheduleCallback(Jt.unstable_NormalPriority,function(){Rf===e&&(Rf=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(Pp(n||a)===null)continue;break}var i=le(a);i!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:r,method:a.method,action:n},Object.freeze(a),Pm(i,a,n,r))}}))}function xi(e){function t(v){return yd(v,e)}ir!==null&&yd(ir,e),lr!==null&&yd(lr,e),cr!==null&&yd(cr,e),Bc.forEach(t),$c.forEach(t);for(var a=0;a<ur.length;a++){var n=ur[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<ur.length&&(a=ur[0],a.blockedOn===null);)Z0(a),a.blockedOn===null&&ur.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],i=a[n+1],f=r[Ha]||null;if(typeof i=="function")f||J0(a);else if(f){var p=null;if(i&&i.hasAttribute("formAction")){if(r=i,f=i[Ha]||null)p=f.formAction;else if(Pp(r)!==null)continue}else p=f.action;typeof p=="function"?a[n+1]=p:(a.splice(n,3),n-=3),J0(a)}}}function K0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return r=f})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Jp(e){this._internalRoot=e}function vd(e){this._internalRoot=e}function W0(e){e[$o]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Jt=dk(),Kp=iu(),oD=mk(),et=Object.assign,rD=Symbol.for("react.element"),Ts=Symbol.for("react.transitional.element"),Ni=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),xd=Symbol.for("react.strict_mode"),Wp=Symbol.for("react.profiler"),eh=Symbol.for("react.consumer"),js=Symbol.for("react.context"),Xl=Symbol.for("react.forward_ref"),th=Symbol.for("react.suspense"),ah=Symbol.for("react.suspense_list"),Nd=Symbol.for("react.memo"),pn=Symbol.for("react.lazy"),nh=Symbol.for("react.activity"),iD=Symbol.for("react.memo_cache_sentinel"),ex=Symbol.iterator,lD=Symbol.for("react.client.reference"),ra=Array.isArray,I=Kp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vt=oD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,cD=Object.freeze({pending:!1,data:null,method:null,action:null}),sh=[],oh=[],ao=-1,Lo=me(null),Ql=me(null),Ho=me(null),Sd=me(null),Zl=0,tx,ax,nx,sx,ox,rx,ix;xe.__reactDisabledLog=!0;var rh,lx,ih=!1,lh=new(typeof WeakMap=="function"?WeakMap:Map),hn=null,Os=!1,ts=Object.prototype.hasOwnProperty,ch=Jt.unstable_scheduleCallback,uD=Jt.unstable_cancelCallback,dD=Jt.unstable_shouldYield,fD=Jt.unstable_requestPaint,ma=Jt.unstable_now,mD=Jt.unstable_getCurrentPriorityLevel,uh=Jt.unstable_ImmediatePriority,dh=Jt.unstable_UserBlockingPriority,wi=Jt.unstable_NormalPriority,pD=Jt.unstable_LowPriority,fh=Jt.unstable_IdlePriority,hD=Jt.log,gD=Jt.unstable_setDisableYieldValue,Ei=null,Ua=null,As=!1,Vs=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",La=Math.clz32?Math.clz32:En,bD=Math.log,yD=Math.LN2,wd=256,Ed=262144,Dd=4194304,kn=2,Ms=8,no=32,Rd=268435456,Bo=Math.random().toString(36).slice(2),Ea="__reactFiber$"+Bo,Ha="__reactProps$"+Bo,$o="__reactContainer$"+Bo,mh="__reactEvents$"+Bo,vD="__reactListeners$"+Bo,xD="__reactHandles$"+Bo,cx="__reactResources$"+Bo,Pl="__reactMarker$"+Bo,ux=new Set,Cr={},ph={},ND={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},SD=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]*$"),dx={},fx={},wD=/[\n"\\]/g,mx=!1,px=!1,hx=!1,gx=!1,bx=!1,yx=!1,vx=["value","defaultValue"],xx=!1,Nx=/["'&<>\n\t]|^\s|\s$/,ED="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),Sx="applet caption html table td th marquee object template foreignObject desc title".split(" "),DD=Sx.concat(["button"]),RD="dd dt li option optgroup p rp rt".split(" "),wx={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},_d={},hh={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Ex=/([A-Z])/g,Dx=/^ms-/,_D=/^(?:webkit|moz|o)[A-Z]/,kD=/^-ms-/,UD=/-(.)/g,Rx=/;\s*$/,Di={},gh={},_x=!1,kx=!1,Ux=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(" ")),kd="http://www.w3.org/1998/Math/MathML",Ri="http://www.w3.org/2000/svg",CD=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"]]),Ud={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Cx={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},_i={},TD=RegExp("^(aria)-[: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]*$"),jD=RegExp("^(aria)[A-Z][: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]*$"),Tx=!1,Ba={},jx=/^on./,OD=/^on[^A-Z]/,AD=RegExp("^(aria)-[: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]*$"),VD=RegExp("^(aria)[A-Z][: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]*$"),MD=/^[\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,Jl=null,ki=null,Ui=null,bh=!1,zs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yh=!1;if(zs)try{var Kl={};Object.defineProperty(Kl,"passive",{get:function(){yh=!0}}),window.addEventListener("test",Kl,Kl),window.removeEventListener("test",Kl,Kl)}catch{yh=!1}var Yo=null,vh=null,Cd=null,Tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Td=Ja(Tr),Wl=et({},Tr,{view:0,detail:0}),zD=Ja(Wl),xh,Nh,ec,jd=et({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tm,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!==ec&&(ec&&e.type==="mousemove"?(xh=e.screenX-ec.screenX,Nh=e.screenY-ec.screenY):Nh=xh=0,ec=e),xh)},movementY:function(e){return"movementY"in e?e.movementY:Nh}}),Ox=Ja(jd),LD=et({},jd,{dataTransfer:0}),HD=Ja(LD),BD=et({},Wl,{relatedTarget:0}),Sh=Ja(BD),$D=et({},Tr,{animationName:0,elapsedTime:0,pseudoElement:0}),YD=Ja($D),qD=et({},Tr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),GD=Ja(qD),ID=et({},Tr,{data:0}),Ax=Ja(ID),FD=Ax,XD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QD={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"},ZD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},PD=et({},Wl,{key:function(e){if(e.key){var t=XD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?QD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tm,charCode:function(e){return e.type==="keypress"?bu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),JD=Ja(PD),KD=et({},jd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vx=Ja(KD),WD=et({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tm}),eR=Ja(WD),tR=et({},Tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),aR=Ja(tR),nR=et({},jd,{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}),sR=Ja(nR),oR=et({},Tr,{newState:0,oldState:0}),rR=Ja(oR),iR=[9,13,27,32],Mx=229,wh=zs&&"CompositionEvent"in window,tc=null;zs&&"documentMode"in document&&(tc=document.documentMode);var lR=zs&&"TextEvent"in window&&!tc,zx=zs&&(!wh||tc&&8<tc&&11>=tc),Lx=32,Hx=String.fromCharCode(Lx),Bx=!1,Ci=!1,cR={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},ac=null,nc=null,$x=!1;zs&&($x=U4("input")&&(!document.documentMode||9<document.documentMode));var $a=typeof Object.is=="function"?Object.is:V4,uR=zs&&"documentMode"in document&&11>=document.documentMode,Ti=null,Eh=null,sc=null,Dh=!1,ji={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionrun:gr("Transition","TransitionRun"),transitionstart:gr("Transition","TransitionStart"),transitioncancel:gr("Transition","TransitionCancel"),transitionend:gr("Transition","TransitionEnd")},Rh={},Yx={};zs&&(Yx=document.createElement("div").style,"AnimationEvent"in window||(delete ji.animationend.animation,delete ji.animationiteration.animation,delete ji.animationstart.animation),"TransitionEvent"in window||delete ji.transitionend.transition);var qx=br("animationend"),Gx=br("animationiteration"),Ix=br("animationstart"),dR=br("transitionrun"),fR=br("transitionstart"),mR=br("transitioncancel"),Fx=br("transitionend"),Xx=new Map,_h="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(" ");_h.push("scrollEnd");var Qx=0;if(typeof performance=="object"&&typeof performance.now=="function")var pR=performance,Zx=function(){return pR.now()};else{var hR=Date;Zx=function(){return hR.now()}}var kh=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)},gR="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Od=0,Uh=1,Ch=2,Th=3,Ad="– ",Vd="+ ",Px="  ",Tt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Un="Components ⚛",lt="Scheduler ⚛",dt="Blocking",qo=!1,so={color:"primary",properties:null,tooltipText:"",track:Un},Go={start:-0,end:-0,detail:{devtools:so}},bR=["Changed Props",""],Jx="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",yR=["Changed Props",Jx],oc=1,oo=2,Cn=[],Oi=0,jh=0,Io={};Object.freeze(Io);var Tn=null,Ai=null,$e=0,vR=1,Ze=2,Ca=8,as=16,xR=32,Kx=!1;try{var Wx=Object.preventExtensions({})}catch{Kx=!0}var Oh=new WeakMap,Vi=[],Mi=0,Md=null,rc=0,jn=[],On=0,jr=null,ro=1,io="",Da=null,jt=null,ot=!1,Ls=!1,gn=null,Fo=null,An=!1,Ah=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Vh=me(null),Mh=me(null),eN={},zd=null,zi=null,Li=!1,NR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},SR=Jt.unstable_scheduleCallback,wR=Jt.unstable_NormalPriority,Kt={$$typeof:js,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Wt=Jt.unstable_now,Ld=console.createTask?console.createTask:function(){return null},ic=1,Hd=2,pa=-0,Xo=-0,lo=-0,co=null,Ya=-1.1,Or=-0,zt=-0,Ve=-1.1,Le=-1.1,Vt=null,Bt=!1,Ar=-0,Hs=-1.1,lc=null,Qo=0,zh=null,Lh=null,Vr=-1.1,cc=null,Hi=-1.1,Bd=-1.1,uo=-0,fo=-1.1,Vn=-1.1,Hh=0,uc=null,tN=null,aN=null,Zo=-1.1,Mr=null,Po=-1.1,$d=-1.1,nN=-0,sN=-0,Yd=0,ER=null,oN=0,dc=-1.1,qd=!1,Gd=!1,fc=null,Bh=0,zr=0,Bi=null,rN=I.S;I.S=function(e,t){if(t1=ma(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>fo&&0>Vn){fo=Wt();var a=Yl(),n=$l();(a!==Po||n!==Mr)&&(Po=-1.1),Zo=a,Mr=n}Y4(e,t)}rN!==null&&rN(e,t)};var Lr=me(null),ns={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},mc=[],pc=[],hc=[],gc=[],bc=[],yc=[],Hr=new Set;ns.recordUnsafeLifecycleWarnings=function(e,t){Hr.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&mc.push(e),e.mode&Ca&&typeof t.UNSAFE_componentWillMount=="function"&&pc.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&hc.push(e),e.mode&Ca&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&gc.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&bc.push(e),e.mode&Ca&&typeof t.UNSAFE_componentWillUpdate=="function"&&yc.push(e))},ns.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<mc.length&&(mc.forEach(function(p){e.add(H(p)||"Component"),Hr.add(p.type)}),mc=[]);var t=new Set;0<pc.length&&(pc.forEach(function(p){t.add(H(p)||"Component"),Hr.add(p.type)}),pc=[]);var a=new Set;0<hc.length&&(hc.forEach(function(p){a.add(H(p)||"Component"),Hr.add(p.type)}),hc=[]);var n=new Set;0<gc.length&&(gc.forEach(function(p){n.add(H(p)||"Component"),Hr.add(p.type)}),gc=[]);var r=new Set;0<bc.length&&(bc.forEach(function(p){r.add(H(p)||"Component"),Hr.add(p.type)}),bc=[]);var i=new Set;if(0<yc.length&&(yc.forEach(function(p){i.add(H(p)||"Component"),Hr.add(p.type)}),yc=[]),0<t.size){var f=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
190
+
191
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
192
+
193
+ Please update the following components: %s`,f)}0<n.size&&(f=x(n),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
197
+
198
+ Please update the following components: %s`,f)),0<i.size&&(f=x(i),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
+
200
+ * Move data fetching code or side effects to componentDidUpdate.
201
+
202
+ Please update the following components: %s`,f)),0<e.size&&(f=x(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
205
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
206
+
207
+ Please update the following components: %s`,f)),0<a.size&&(f=x(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move data fetching code or side effects to componentDidUpdate.
210
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
211
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,f)),0<r.size&&(f=x(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
214
+
215
+ * Move data fetching code or side effects to componentDidUpdate.
216
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
+
218
+ Please update the following components: %s`,f))};var Id=new Map,iN=new Set;ns.recordLegacyContextWarning=function(e,t){for(var a=null,n=e;n!==null;)n.mode&Ca&&(a=n),n=n.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!iN.has(e.type)&&(n=Id.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(n===void 0&&(n=[],Id.set(a,n)),n.push(e))},ns.flushLegacyContextWarning=function(){Id.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(r){a.add(H(r)||"Component"),iN.add(r.type)});var n=x(a);he(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
219
+
220
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
221
+
222
+ Please update the following components: %s
223
+
224
+ Learn more about this warning here: https://react.dev/link/legacy-context`,n)})}})},ns.discardPendingWarnings=function(){mc=[],pc=[],hc=[],gc=[],bc=[],yc=[],Id=new Map};var lN={react_stack_bottom_frame:function(e,t,a){var n=Os;Os=!0;try{return e(t,a)}finally{Os=n}}},$h=lN.react_stack_bottom_frame.bind(lN),cN={react_stack_bottom_frame:function(e){var t=Os;Os=!0;try{return e.render()}finally{Os=t}}},uN=cN.react_stack_bottom_frame.bind(cN),dN={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){yt(e,e.return,a)}}},Yh=dN.react_stack_bottom_frame.bind(dN),fN={react_stack_bottom_frame:function(e,t,a,n,r){try{t.componentDidUpdate(a,n,r)}catch(i){yt(e,e.return,i)}}},mN=fN.react_stack_bottom_frame.bind(fN),pN={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},DR=pN.react_stack_bottom_frame.bind(pN),hN={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(n){yt(e,t,n)}}},gN=hN.react_stack_bottom_frame.bind(hN),bN={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},RR=bN.react_stack_bottom_frame.bind(bN),yN={react_stack_bottom_frame:function(e,t,a){try{a()}catch(n){yt(e,t,n)}}},_R=yN.react_stack_bottom_frame.bind(yN),vN={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},kR=vN.react_stack_bottom_frame.bind(vN),$i=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),qh=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Fd=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Xd={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Br=null,vc=!1,Yi=null,xc=0,Pe=null,Gh,xN=Gh=!1,NN={},SN={},wN={};D=function(e,t,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var n=H(e),r=n||"null";if(!NN[r]){NN[r]=!0,a=a._owner,e=e._debugOwner;var i="";e&&typeof e.tag=="number"&&(r=H(e))&&(i=`
225
+
226
+ Check the render method of \``+r+"`."),i||n&&(i=`
227
+
228
+ Check the top-level render call using <`+n+">.");var f="";a!=null&&e!==a&&(n=null,typeof a.tag=="number"?n=H(a):typeof a.name=="string"&&(n=a.name),n&&(f=" It was passed a child from "+n+".")),he(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',i,f)})}}};var $r=hy(!0),EN=hy(!1),DN=0,RN=1,_N=2,Ih=3,Jo=!1,kN=!1,Fh=null,Xh=!1,qi=me(null),Qd=me(0),bn=me(null),Mn=null,Gi=1,Nc=2,Zt=me(0),Zd=0,zn=1,qa=2,yn=4,Ga=8,Ii,UN=new Set,CN=new Set,Qh=new Set,TN=new Set,mo=0,Ye=null,Et=null,ea=null,Pd=!1,Fi=!1,Yr=!1,Jd=0,Sc=0,po=null,UR=0,CR=25,Y=null,Ln=null,ho=-1,wc=!1,Ec={readContext:At,use:Ao,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};Ec.useEffectEvent=qt;var Zh=null,jN=null,Ph=null,ON=null,Bs=null,ss=null,Kd=null;Zh={readContext:function(e){return At(e)},use:Ao,useCallback:function(e,t){return Y="useCallback",We(),li(t),Fm(e,t)},useContext:function(e){return Y="useContext",We(),At(e)},useEffect:function(e,t){return Y="useEffect",We(),li(t),Iu(e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",We(),li(a),Im(e,t,a)},useInsertionEffect:function(e,t){Y="useInsertionEffect",We(),li(t),Dr(4,qa,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",We(),li(t),Gm(e,t)},useMemo:function(e,t){Y="useMemo",We(),li(t);var a=I.H;I.H=Bs;try{return Xm(e,t)}finally{I.H=a}},useReducer:function(e,t,a){Y="useReducer",We();var n=I.H;I.H=Bs;try{return Vm(e,t,a)}finally{I.H=n}},useRef:function(e){return Y="useRef",We(),Ym(e)},useState:function(e){Y="useState",We();var t=I.H;I.H=Bs;try{return Hm(e)}finally{I.H=t}},useDebugValue:function(){Y="useDebugValue",We()},useDeferredValue:function(e,t){return Y="useDeferredValue",We(),Qm(e,t)},useTransition:function(){return Y="useTransition",We(),Jm()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",We(),zm(e,t,a)},useId:function(){return Y="useId",We(),Km()},useFormState:function(e,t){return Y="useFormState",We(),Bu(),ui(e,t)},useActionState:function(e,t){return Y="useActionState",We(),ui(e,t)},useOptimistic:function(e){return Y="useOptimistic",We(),Bm(e)},useHostTransitionStatus:Rr,useMemoCache:Er,useCacheRefresh:function(){return Y="useCacheRefresh",We(),Wm()},useEffectEvent:function(e){return Y="useEffectEvent",We(),qm(e)}},jN={readContext:function(e){return At(e)},use:Ao,useCallback:function(e,t){return Y="useCallback",se(),Fm(e,t)},useContext:function(e){return Y="useContext",se(),At(e)},useEffect:function(e,t){return Y="useEffect",se(),Iu(e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",se(),Im(e,t,a)},useInsertionEffect:function(e,t){Y="useInsertionEffect",se(),Dr(4,qa,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",se(),Gm(e,t)},useMemo:function(e,t){Y="useMemo",se();var a=I.H;I.H=Bs;try{return Xm(e,t)}finally{I.H=a}},useReducer:function(e,t,a){Y="useReducer",se();var n=I.H;I.H=Bs;try{return Vm(e,t,a)}finally{I.H=n}},useRef:function(e){return Y="useRef",se(),Ym(e)},useState:function(e){Y="useState",se();var t=I.H;I.H=Bs;try{return Hm(e)}finally{I.H=t}},useDebugValue:function(){Y="useDebugValue",se()},useDeferredValue:function(e,t){return Y="useDeferredValue",se(),Qm(e,t)},useTransition:function(){return Y="useTransition",se(),Jm()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",se(),zm(e,t,a)},useId:function(){return Y="useId",se(),Km()},useActionState:function(e,t){return Y="useActionState",se(),ui(e,t)},useFormState:function(e,t){return Y="useFormState",se(),Bu(),ui(e,t)},useOptimistic:function(e){return Y="useOptimistic",se(),Bm(e)},useHostTransitionStatus:Rr,useMemoCache:Er,useCacheRefresh:function(){return Y="useCacheRefresh",se(),Wm()},useEffectEvent:function(e){return Y="useEffectEvent",se(),qm(e)}},Ph={readContext:function(e){return At(e)},use:Ao,useCallback:function(e,t){return Y="useCallback",se(),Qu(e,t)},useContext:function(e){return Y="useContext",se(),At(e)},useEffect:function(e,t){Y="useEffect",se(),Ka(2048,Ga,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",se(),Xu(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",se(),Ka(4,qa,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",se(),Ka(4,yn,e,t)},useMemo:function(e,t){Y="useMemo",se();var a=I.H;I.H=ss;try{return Zu(e,t)}finally{I.H=a}},useReducer:function(e,t,a){Y="useReducer",se();var n=I.H;I.H=ss;try{return ci(e,t,a)}finally{I.H=n}},useRef:function(){return Y="useRef",se(),xt().memoizedState},useState:function(){Y="useState",se();var e=I.H;I.H=ss;try{return ci(Wn)}finally{I.H=e}},useDebugValue:function(){Y="useDebugValue",se()},useDeferredValue:function(e,t){return Y="useDeferredValue",se(),zy(e,t)},useTransition:function(){return Y="useTransition",se(),qy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",se(),Yu(e,t,a)},useId:function(){return Y="useId",se(),xt().memoizedState},useFormState:function(e){return Y="useFormState",se(),Bu(),qu(e)},useActionState:function(e){return Y="useActionState",se(),qu(e)},useOptimistic:function(e,t){return Y="useOptimistic",se(),_y(e,t)},useHostTransitionStatus:Rr,useMemoCache:Er,useCacheRefresh:function(){return Y="useCacheRefresh",se(),xt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",se(),Fu(e)}},ON={readContext:function(e){return At(e)},use:Ao,useCallback:function(e,t){return Y="useCallback",se(),Qu(e,t)},useContext:function(e){return Y="useContext",se(),At(e)},useEffect:function(e,t){Y="useEffect",se(),Ka(2048,Ga,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",se(),Xu(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",se(),Ka(4,qa,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",se(),Ka(4,yn,e,t)},useMemo:function(e,t){Y="useMemo",se();var a=I.H;I.H=Kd;try{return Zu(e,t)}finally{I.H=a}},useReducer:function(e,t,a){Y="useReducer",se();var n=I.H;I.H=Kd;try{return Ul(e,t,a)}finally{I.H=n}},useRef:function(){return Y="useRef",se(),xt().memoizedState},useState:function(){Y="useState",se();var e=I.H;I.H=Kd;try{return Ul(Wn)}finally{I.H=e}},useDebugValue:function(){Y="useDebugValue",se()},useDeferredValue:function(e,t){return Y="useDeferredValue",se(),Ly(e,t)},useTransition:function(){return Y="useTransition",se(),Gy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",se(),Yu(e,t,a)},useId:function(){return Y="useId",se(),xt().memoizedState},useFormState:function(e){return Y="useFormState",se(),Bu(),Gu(e)},useActionState:function(e){return Y="useActionState",se(),Gu(e)},useOptimistic:function(e,t){return Y="useOptimistic",se(),Uy(e,t)},useHostTransitionStatus:Rr,useMemoCache:Er,useCacheRefresh:function(){return Y="useCacheRefresh",se(),xt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",se(),Fu(e)}},Bs={readContext:function(e){return b(),At(e)},use:function(e){return g(),Ao(e)},useCallback:function(e,t){return Y="useCallback",g(),We(),Fm(e,t)},useContext:function(e){return Y="useContext",g(),We(),At(e)},useEffect:function(e,t){return Y="useEffect",g(),We(),Iu(e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",g(),We(),Im(e,t,a)},useInsertionEffect:function(e,t){Y="useInsertionEffect",g(),We(),Dr(4,qa,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",g(),We(),Gm(e,t)},useMemo:function(e,t){Y="useMemo",g(),We();var a=I.H;I.H=Bs;try{return Xm(e,t)}finally{I.H=a}},useReducer:function(e,t,a){Y="useReducer",g(),We();var n=I.H;I.H=Bs;try{return Vm(e,t,a)}finally{I.H=n}},useRef:function(e){return Y="useRef",g(),We(),Ym(e)},useState:function(e){Y="useState",g(),We();var t=I.H;I.H=Bs;try{return Hm(e)}finally{I.H=t}},useDebugValue:function(){Y="useDebugValue",g(),We()},useDeferredValue:function(e,t){return Y="useDeferredValue",g(),We(),Qm(e,t)},useTransition:function(){return Y="useTransition",g(),We(),Jm()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",g(),We(),zm(e,t,a)},useId:function(){return Y="useId",g(),We(),Km()},useFormState:function(e,t){return Y="useFormState",g(),We(),ui(e,t)},useActionState:function(e,t){return Y="useActionState",g(),We(),ui(e,t)},useOptimistic:function(e){return Y="useOptimistic",g(),We(),Bm(e)},useMemoCache:function(e){return g(),Er(e)},useHostTransitionStatus:Rr,useCacheRefresh:function(){return Y="useCacheRefresh",We(),Wm()},useEffectEvent:function(e){return Y="useEffectEvent",g(),We(),qm(e)}},ss={readContext:function(e){return b(),At(e)},use:function(e){return g(),Ao(e)},useCallback:function(e,t){return Y="useCallback",g(),se(),Qu(e,t)},useContext:function(e){return Y="useContext",g(),se(),At(e)},useEffect:function(e,t){Y="useEffect",g(),se(),Ka(2048,Ga,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",g(),se(),Xu(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",g(),se(),Ka(4,qa,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",g(),se(),Ka(4,yn,e,t)},useMemo:function(e,t){Y="useMemo",g(),se();var a=I.H;I.H=ss;try{return Zu(e,t)}finally{I.H=a}},useReducer:function(e,t,a){Y="useReducer",g(),se();var n=I.H;I.H=ss;try{return ci(e,t,a)}finally{I.H=n}},useRef:function(){return Y="useRef",g(),se(),xt().memoizedState},useState:function(){Y="useState",g(),se();var e=I.H;I.H=ss;try{return ci(Wn)}finally{I.H=e}},useDebugValue:function(){Y="useDebugValue",g(),se()},useDeferredValue:function(e,t){return Y="useDeferredValue",g(),se(),zy(e,t)},useTransition:function(){return Y="useTransition",g(),se(),qy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",g(),se(),Yu(e,t,a)},useId:function(){return Y="useId",g(),se(),xt().memoizedState},useFormState:function(e){return Y="useFormState",g(),se(),qu(e)},useActionState:function(e){return Y="useActionState",g(),se(),qu(e)},useOptimistic:function(e,t){return Y="useOptimistic",g(),se(),_y(e,t)},useMemoCache:function(e){return g(),Er(e)},useHostTransitionStatus:Rr,useCacheRefresh:function(){return Y="useCacheRefresh",se(),xt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",g(),se(),Fu(e)}},Kd={readContext:function(e){return b(),At(e)},use:function(e){return g(),Ao(e)},useCallback:function(e,t){return Y="useCallback",g(),se(),Qu(e,t)},useContext:function(e){return Y="useContext",g(),se(),At(e)},useEffect:function(e,t){Y="useEffect",g(),se(),Ka(2048,Ga,e,t)},useImperativeHandle:function(e,t,a){return Y="useImperativeHandle",g(),se(),Xu(e,t,a)},useInsertionEffect:function(e,t){return Y="useInsertionEffect",g(),se(),Ka(4,qa,e,t)},useLayoutEffect:function(e,t){return Y="useLayoutEffect",g(),se(),Ka(4,yn,e,t)},useMemo:function(e,t){Y="useMemo",g(),se();var a=I.H;I.H=ss;try{return Zu(e,t)}finally{I.H=a}},useReducer:function(e,t,a){Y="useReducer",g(),se();var n=I.H;I.H=ss;try{return Ul(e,t,a)}finally{I.H=n}},useRef:function(){return Y="useRef",g(),se(),xt().memoizedState},useState:function(){Y="useState",g(),se();var e=I.H;I.H=ss;try{return Ul(Wn)}finally{I.H=e}},useDebugValue:function(){Y="useDebugValue",g(),se()},useDeferredValue:function(e,t){return Y="useDeferredValue",g(),se(),Ly(e,t)},useTransition:function(){return Y="useTransition",g(),se(),Gy()},useSyncExternalStore:function(e,t,a){return Y="useSyncExternalStore",g(),se(),Yu(e,t,a)},useId:function(){return Y="useId",g(),se(),xt().memoizedState},useFormState:function(e){return Y="useFormState",g(),se(),Gu(e)},useActionState:function(e){return Y="useActionState",g(),se(),Gu(e)},useOptimistic:function(e,t){return Y="useOptimistic",g(),se(),Uy(e,t)},useMemoCache:function(e){return g(),Er(e)},useHostTransitionStatus:Rr,useCacheRefresh:function(){return Y="useCacheRefresh",se(),xt().memoizedState},useEffectEvent:function(e){return Y="useEffectEvent",g(),se(),Fu(e)}};var AN={},VN=new Set,MN=new Set,zN=new Set,LN=new Set,HN=new Set,BN=new Set,$N=new Set,YN=new Set,qN=new Set,GN=new Set;Object.freeze(AN);var Jh={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=fn(e),r=Co(n);r.payload=t,a!=null&&(tp(a),r.callback=a),t=To(e,r,n),t!==null&&(ys(n,"this.setState()",e),Ht(t,e,n),Dl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=fn(e),r=Co(n);r.tag=RN,r.payload=t,a!=null&&(tp(a),r.callback=a),t=To(e,r,n),t!==null&&(ys(n,"this.replaceState()",e),Ht(t,e,n),Dl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=fn(e),n=Co(a);n.tag=_N,t!=null&&(tp(t),n.callback=t),t=To(e,n,a),t!==null&&(ys(a,"this.forceUpdate()",e),Ht(t,e,a),Dl(t,e,a))}},Xi=null,Kh=null,Wh=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),ta=!1,IN={},FN={},XN={},QN={},Qi=!1,ZN={},Wd={},eg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},PN=!1,JN=null;JN=new Set;var go=!1,aa=!1,tg=!1,KN=typeof WeakSet=="function"?WeakSet:Set,ha=null,Zi=null,Pi=null,na=null,tn=!1,os=null,ia=!1,Dc=8192,TR={getCacheForType:function(e){var t=At(Kt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return At(Kt).controller.signal},getOwner:function(){return hn}};if(typeof Symbol=="function"&&Symbol.for){var Rc=Symbol.for;Rc("selector.component"),Rc("selector.has_pseudo_class"),Rc("selector.role"),Rc("selector.test_id"),Rc("selector.text")}var jR=[],OR=typeof WeakMap=="function"?WeakMap:Map,ga=0,la=2,vn=4,bo=0,_c=1,qr=2,ef=3,Ko=4,tf=6,WN=5,ft=ga,Dt=null,Ke=null,Je=0,an=0,af=1,Gr=2,kc=3,e1=4,ag=5,Uc=6,nf=7,ng=8,Ir=9,Nt=an,xn=null,Wo=!1,Ji=!1,sg=!1,$s=0,Lt=bo,er=0,tr=0,og=0,nn=0,Fr=0,Cc=null,Ia=null,sf=!1,of=0,t1=0,a1=300,rf=1/0,n1=500,Tc=null,Gt=null,ar=null,lf=0,rg=1,ig=2,s1=3,nr=0,o1=1,r1=2,i1=3,l1=4,cf=5,sa=0,sr=null,Ki=null,rs=0,lg=0,cg=-0,ug=null,c1=null,u1=null,is=lf,d1=null,AR=50,jc=0,dg=null,fg=!1,uf=!1,VR=50,Xr=0,Oc=null,Wi=!1,df=null,f1=!1,m1=new Set,MR={},ff=null,el=null,mg=!1,pg=!1,mf=!1,hg=!1,or=0,gg={};(function(){for(var e=0;e<_h.length;e++){var t=_h[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Jn(a,"on"+t)}Jn(qx,"onAnimationEnd"),Jn(Gx,"onAnimationIteration"),Jn(Ix,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(dR,"onTransitionRun"),Jn(fR,"onTransitionStart"),Jn(mR,"onTransitionCancel"),Jn(Fx,"onTransitionEnd")})(),Ie("onMouseEnter",["mouseout","mouseover"]),Ie("onMouseLeave",["mouseout","mouseover"]),Ie("onPointerEnter",["pointerout","pointerover"]),Ie("onPointerLeave",["pointerout","pointerover"]),st("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),st("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),st("onBeforeInput",["compositionend","keypress","textInput","paste"]),st("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),st("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),st("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ac)),pf="_reactListening"+Math.random().toString(36).slice(2),p1=!1,h1=!1,hf=!1,g1=!1,gf=!1,bf=!1,b1=!1,yf={},zR=/\r\n?/g,LR=/\u0000|\uFFFD/g,Qr="http://www.w3.org/1999/xlink",yg="http://www.w3.org/XML/1998/namespace",HR="javascript:throw new Error('React form unexpectedly submitted.')",BR="suppressHydrationWarning",Zr="&",vf="/&",Vc="$",Mc="/$",rr="$?",Pr="$~",tl="$!",$R="html",YR="body",qR="head",vg="F!",y1="F",v1="loading",GR="style",yo=0,al=1,xf=2,xg=null,Ng=null,x1={dialog:!0,webview:!0},Sg=null,zc=void 0,N1=typeof setTimeout=="function"?setTimeout:void 0,IR=typeof clearTimeout=="function"?clearTimeout:void 0,Jr=-1,S1=typeof Promise=="function"?Promise:void 0,FR=typeof queueMicrotask=="function"?queueMicrotask:typeof S1<"u"?function(e){return S1.resolve(null).then(e).catch(kE)}:N1,wg=null,Kr=0,Lc=1,w1=2,E1=3,Hn=4,Bn=new Map,D1=new Set,vo=vt.d;vt.d={f:function(){var e=vo.f(),t=hi();return e||t},r:function(e){var t=le(e);t!==null&&t.tag===5&&t.type==="form"?Yy(t):vo.r(e)},D:function(e){vo.D(e),V0("dns-prefetch",e,null)},C:function(e,t){vo.C(e,t),V0("preconnect",e,t)},L:function(e,t,a){vo.L(e,t,a);var n=nl;if(n&&e&&t){var r='link[rel="preload"][as="'+ye(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+ye(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+ye(a.imageSizes)+'"]')):r+='[href="'+ye(e)+'"]';var i=r;switch(t){case"style":i=yi(e);break;case"script":i=vi(e)}Bn.has(i)||(e=et({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Bn.set(i,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Gl(i))||t==="script"&&n.querySelector(Il(i))||(t=n.createElement("link"),wa(t,"link",e),ke(t),n.head.appendChild(t)))}},m:function(e,t){vo.m(e,t);var a=nl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+ye(n)+'"][href="'+ye(e)+'"]',i=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=vi(e)}if(!Bn.has(i)&&(e=et({rel:"modulepreload",href:e},t),Bn.set(i,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Il(i)))return}n=a.createElement("link"),wa(n,"link",e),ke(n),a.head.appendChild(n)}}},X:function(e,t){vo.X(e,t);var a=nl;if(a&&e){var n=Be(a).hoistableScripts,r=vi(e),i=n.get(r);i||(i=a.querySelector(Il(r)),i||(e=et({src:e,async:!0},t),(t=Bn.get(r))&&Ip(e,t),i=a.createElement("script"),ke(i),wa(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}},S:function(e,t,a){vo.S(e,t,a);var n=nl;if(n&&e){var r=Be(n).hoistableStyles,i=yi(e);t=t||"default";var f=r.get(i);if(!f){var p={loading:Kr,preload:null};if(f=n.querySelector(Gl(i)))p.loading=Lc|Hn;else{e=et({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Bn.get(i))&&Gp(e,a);var v=f=n.createElement("link");ke(v),wa(v,"link",e),v._p=new Promise(function(S,A){v.onload=S,v.onerror=A}),v.addEventListener("load",function(){p.loading|=Lc}),v.addEventListener("error",function(){p.loading|=w1}),p.loading|=Hn,pd(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:p},r.set(i,f)}}},M:function(e,t){vo.M(e,t);var a=nl;if(a&&e){var n=Be(a).hoistableScripts,r=vi(e),i=n.get(r);i||(i=a.querySelector(Il(r)),i||(e=et({src:e,async:!0,type:"module"},t),(t=Bn.get(r))&&Ip(e,t),i=a.createElement("script"),ke(i),wa(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}};var nl=typeof document>"u"?null:document,Nf=null,XR=6e4,QR=800,ZR=500,Eg=0,Dg=null,Sf=null,Wr=cD,Hc={$$typeof:js,Provider:null,Consumer:null,_currentValue:Wr,_currentValue2:Wr,_threadCount:0},R1="%c%s%c",_1="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",k1="",wf=" ",PR=Function.prototype.bind,U1=!1,C1=null,T1=null,j1=null,O1=null,A1=null,V1=null,M1=null,z1=null,L1=null,H1=null;C1=function(e,t,a,n){t=s(e,t),t!==null&&(a=o(t.memoizedState,a,0,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=et({},e.memoizedProps),a=ka(e,2),a!==null&&Ht(a,e,2))},T1=function(e,t,a){t=s(e,t),t!==null&&(a=u(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=et({},e.memoizedProps),a=ka(e,2),a!==null&&Ht(a,e,2))},j1=function(e,t,a,n){t=s(e,t),t!==null&&(a=l(t.memoizedState,a,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=et({},e.memoizedProps),a=ka(e,2),a!==null&&Ht(a,e,2))},O1=function(e,t,a){e.pendingProps=o(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ka(e,2),t!==null&&Ht(t,e,2)},A1=function(e,t){e.pendingProps=u(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ka(e,2),t!==null&&Ht(t,e,2)},V1=function(e,t,a){e.pendingProps=l(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=ka(e,2),t!==null&&Ht(t,e,2)},M1=function(e){var t=ka(e,2);t!==null&&Ht(t,e,2)},z1=function(e){var t=on(),a=ka(e,t);a!==null&&Ht(a,e,t)},L1=function(e){h=e},H1=function(e){d=e};var Ef=!0,Df=null,Rg=!1,ir=null,lr=null,cr=null,Bc=new Map,$c=new Map,ur=[],JR="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(" "),Rf=null;if(vd.prototype.render=Jp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):L(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var n=t.current,r=fn(n);Fp(n,r,a,t,null,null)},vd.prototype.unmount=Jp.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(ft&(la|vn))!==ga&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Fp(e.current,2,null,e,null,null),hi(),t[$o]=null}},vd.prototype.unstable_scheduleHydration=function(e){if(e){var t=gt();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ur.length&&t!==0&&t<ur[a].priority;a++);ur.splice(a,0,e),a===0&&Z0(e)}},(function(){var e=Kp.version;if(e!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
229
+ - react: `+(e+`
230
+ - react-dom: 19.2.4
231
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),vt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=re(t),e=e!==null?ne(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.4"};return e.overrideHookState=C1,e.overrideHookStateDeletePath=T1,e.overrideHookStateRenamePath=j1,e.overrideProps=O1,e.overridePropsDeletePath=A1,e.overridePropsRenamePath=V1,e.scheduleUpdate=M1,e.scheduleRetry=z1,e.setErrorHandler=L1,e.setSuspenseHandler=H1,e.scheduleRefresh=k,e.scheduleRoot=R,e.setRefreshHandler=B,e.getCurrentFiber=eD,wn(e)})()&&zs&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var B1=window.location.protocol;/^(https?|file):$/.test(B1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(B1==="file:"?`
232
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}qc.createRoot=function(e,t){if(!L(e))throw Error("Target container is not a DOM element.");W0(e);var a=!1,n="",r=Py,i=Jy,f=Ky;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Ts&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
233
+
234
+ let root = createRoot(domContainer);
235
+ root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Y0(e,1,!1,null,null,a,n,null,r,i,f,K0),e[$o]=t.current,jp(e),new Jp(t)},qc.hydrateRoot=function(e,t,a){if(!L(e))throw Error("Target container is not a DOM element.");W0(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var n=!1,r="",i=Py,f=Jy,p=Ky,v=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),t=Y0(e,1,!0,t,a??null,n,r,v,i,f,p,K0),t.context=q0(null),a=t.current,n=fn(a),n=Pa(n),r=Co(n),r.callback=null,To(a,r,n),ys(n,"hydrateRoot()",null),a=n,t.current.lanes=a,Za(t,a),Us(t),e[$o]=t.current,jp(e),new vd(t)},qc.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),qc}var bS;function hk(){return bS||(bS=1,Ag.exports=pk()),Ag.exports}var gk=hk();var Dw=s=>{throw TypeError(s)},bk=(s,o,l)=>o.has(s)||Dw("Cannot "+l),Lg=(s,o,l)=>(bk(s,o,"read from private field"),l?l.call(s):o.get(s)),yk=(s,o,l)=>o.has(s)?Dw("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(s):o.set(s,l),yS="popstate";function vS(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function vk(s={}){function o(c,u){let d=u.state?.masked,{pathname:h,search:g,hash:b}=d||c.location;return au("",{pathname:h,search:g,hash:b},u.state&&u.state.usr||null,u.state&&u.state.key||"default",d?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function l(c,u){return typeof u=="string"?u:qs(u)}return Nk(o,l,null,s)}function at(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function It(s,o){if(!s){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function xk(){return Math.random().toString(36).substring(2,10)}function xS(s,o){return{usr:s.state,key:s.key,idx:o,masked:s.unstable_mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function au(s,o,l=null,c,u){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof o=="string"?wo(o):o,state:l,key:o&&o.key||c||xk(),unstable_mask:u}}function qs({pathname:s="/",search:o="",hash:l=""}){return o&&o!=="?"&&(s+=o.charAt(0)==="?"?o:"?"+o),l&&l!=="#"&&(s+=l.charAt(0)==="#"?l:"#"+l),s}function wo(s){let o={};if(s){let l=s.indexOf("#");l>=0&&(o.hash=s.substring(l),s=s.substring(0,l));let c=s.indexOf("?");c>=0&&(o.search=s.substring(c),s=s.substring(0,c)),s&&(o.pathname=s)}return o}function Nk(s,o,l,c={}){let{window:u=document.defaultView,v5Compat:d=!1}=c,h=u.history,g="POP",b=null,y=D();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function D(){return(h.state||{idx:null}).idx}function x(){g="POP";let L=D(),F=L==null?null:L-y;y=L,b&&b({action:g,location:B.location,delta:F})}function N(L,F){g="PUSH";let Q=vS(L)?L:au(B.location,L,F);y=D()+1;let ee=xS(Q,y),ue=B.createHref(Q.unstable_mask||Q);try{h.pushState(ee,"",ue)}catch(re){if(re instanceof DOMException&&re.name==="DataCloneError")throw re;u.location.assign(ue)}d&&b&&b({action:g,location:B.location,delta:1})}function R(L,F){g="REPLACE";let Q=vS(L)?L:au(B.location,L,F);y=D();let ee=xS(Q,y),ue=B.createHref(Q.unstable_mask||Q);h.replaceState(ee,"",ue),d&&b&&b({action:g,location:B.location,delta:0})}function k(L){return Rw(L)}let B={get action(){return g},get location(){return s(u,h)},listen(L){if(b)throw new Error("A history only accepts one active listener");return u.addEventListener(yS,x),b=L,()=>{u.removeEventListener(yS,x),b=null}},createHref(L){return o(u,L)},createURL:k,encodeLocation(L){let F=k(L);return{pathname:F.pathname,search:F.search,hash:F.hash}},push:N,replace:R,go(L){return h.go(L)}};return B}function Rw(s,o=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),at(l,"No window.location.(origin|href) available to create URL");let c=typeof s=="string"?s:qs(s);return c=c.replace(/ $/,"%20"),!o&&c.startsWith("//")&&(c=l+c),new URL(c,l)}var Zc,NS=class{constructor(s){if(yk(this,Zc,new Map),s)for(let[o,l]of s)this.set(o,l)}get(s){if(Lg(this,Zc).has(s))return Lg(this,Zc).get(s);if(s.defaultValue!==void 0)return s.defaultValue;throw new Error("No value found for context")}set(s,o){Lg(this,Zc).set(s,o)}};Zc=new WeakMap;var Sk=new Set(["lazy","caseSensitive","path","id","index","children"]);function wk(s){return Sk.has(s)}var Ek=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Dk(s){return Ek.has(s)}function Rk(s){return s.index===!0}function nu(s,o,l=[],c={},u=!1){return s.map((d,h)=>{let g=[...l,String(h)],b=typeof d.id=="string"?d.id:g.join("-");if(at(d.index!==!0||!d.children,"Cannot specify children on an index route"),at(u||!c[b],`Found a route id collision on id "${b}". Route id's must be globally unique within Data Router usages`),Rk(d)){let y={...d,id:b};return c[b]=SS(y,o(y)),y}else{let y={...d,id:b,children:void 0};return c[b]=SS(y,o(y)),d.children&&(y.children=nu(d.children,o,g,c,u)),y}})}function SS(s,o){return Object.assign(s,{...o,...typeof o.lazy=="object"&&o.lazy!=null?{lazy:{...s.lazy,...o.lazy}}:{}})}function dr(s,o,l="/"){return Pc(s,o,l,!1)}function Pc(s,o,l,c){let u=typeof o=="string"?wo(o):o,d=qn(u.pathname||"/",l);if(d==null)return null;let h=_w(s);kk(h);let g=null;for(let b=0;g==null&&b<h.length;++b){let y=Hk(d);g=zk(h[b],y,c)}return g}function _k(s,o){let{route:l,pathname:c,params:u}=s;return{id:l.id,pathname:c,params:u,data:o[l.id],loaderData:o[l.id],handle:l.handle}}function _w(s,o=[],l=[],c="",u=!1){let d=(h,g,b=u,y)=>{let D={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(D.relativePath.startsWith("/")){if(!D.relativePath.startsWith(c)&&b)return;at(D.relativePath.startsWith(c),`Absolute route path "${D.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),D.relativePath=D.relativePath.slice(c.length)}let x=ls([c,D.relativePath]),N=l.concat(D);h.children&&h.children.length>0&&(at(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),_w(h.children,o,N,x,b)),!(h.path==null&&!h.index)&&o.push({path:x,score:Vk(x,h.index),routesMeta:N})};return s.forEach((h,g)=>{if(h.path===""||!h.path?.includes("?"))d(h,g);else for(let b of kw(h.path))d(h,g,!0,b)}),o}function kw(s){let o=s.split("/");if(o.length===0)return[];let[l,...c]=o,u=l.endsWith("?"),d=l.replace(/\?$/,"");if(c.length===0)return u?[d,""]:[d];let h=kw(c.join("/")),g=[];return g.push(...h.map(b=>b===""?d:[d,b].join("/"))),u&&g.push(...h),g.map(b=>s.startsWith("/")&&b===""?"/":b)}function kk(s){s.sort((o,l)=>o.score!==l.score?l.score-o.score:Mk(o.routesMeta.map(c=>c.childrenIndex),l.routesMeta.map(c=>c.childrenIndex)))}var Uk=/^:[\w-]+$/,Ck=3,Tk=2,jk=1,Ok=10,Ak=-2,wS=s=>s==="*";function Vk(s,o){let l=s.split("/"),c=l.length;return l.some(wS)&&(c+=Ak),o&&(c+=Tk),l.filter(u=>!wS(u)).reduce((u,d)=>u+(Uk.test(d)?Ck:d===""?jk:Ok),c)}function Mk(s,o){return s.length===o.length&&s.slice(0,-1).every((c,u)=>c===o[u])?s[s.length-1]-o[o.length-1]:0}function zk(s,o,l=!1){let{routesMeta:c}=s,u={},d="/",h=[];for(let g=0;g<c.length;++g){let b=c[g],y=g===c.length-1,D=d==="/"?o:o.slice(d.length)||"/",x=$f({path:b.relativePath,caseSensitive:b.caseSensitive,end:y},D),N=b.route;if(!x&&y&&l&&!c[c.length-1].route.index&&(x=$f({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},D)),!x)return null;Object.assign(u,x.params),h.push({params:u,pathname:ls([d,x.pathname]),pathnameBase:Yk(ls([d,x.pathnameBase])),route:N}),x.pathnameBase!=="/"&&(d=ls([d,x.pathnameBase]))}return h}function $f(s,o){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[l,c]=Lk(s.path,s.caseSensitive,s.end),u=o.match(l);if(!u)return null;let d=u[0],h=d.replace(/(.)\/+$/,"$1"),g=u.slice(1);return{params:c.reduce((y,{paramName:D,isOptional:x},N)=>{if(D==="*"){let k=g[N]||"";h=d.slice(0,d.length-k.length).replace(/(.)\/+$/,"$1")}const R=g[N];return x&&!R?y[D]=void 0:y[D]=(R||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:s}}function Lk(s,o=!1,l=!0){It(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let c=[],u="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,b,y,D)=>{if(c.push({paramName:g,isOptional:b!=null}),b){let x=D.charAt(y+h.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(c.push({paramName:"*"}),u+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?u+="\\/*$":s!==""&&s!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,o?void 0:"i"),c]}function Hk(s){try{return s.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return It(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),s}}function qn(s,o){if(o==="/")return s;if(!s.toLowerCase().startsWith(o.toLowerCase()))return null;let l=o.endsWith("/")?o.length-1:o.length,c=s.charAt(l);return c&&c!=="/"?null:s.slice(l)||"/"}function Bk({basename:s,pathname:o}){return o==="/"?s:ls([s,o])}var Uw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ib=s=>Uw.test(s);function $k(s,o="/"){let{pathname:l,search:c="",hash:u=""}=typeof s=="string"?wo(s):s,d;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?d=ES(l.substring(1),"/"):d=ES(l,o)):d=o,{pathname:d,search:qk(c),hash:Gk(u)}}function ES(s,o){let l=o.replace(/\/+$/,"").split("/");return s.split("/").forEach(u=>{u===".."?l.length>1&&l.pop():u!=="."&&l.push(u)}),l.length>1?l.join("/"):"/"}function Hg(s,o,l,c){return`Cannot include a '${s}' character in a manually specified \`to.${o}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Cw(s){return s.filter((o,l)=>l===0||o.route.path&&o.route.path.length>0)}function Gf(s){let o=Cw(s);return o.map((l,c)=>c===o.length-1?l.pathname:l.pathnameBase)}function lu(s,o,l,c=!1){let u;typeof s=="string"?u=wo(s):(u={...s},at(!u.pathname||!u.pathname.includes("?"),Hg("?","pathname","search",u)),at(!u.pathname||!u.pathname.includes("#"),Hg("#","pathname","hash",u)),at(!u.search||!u.search.includes("#"),Hg("#","search","hash",u)));let d=s===""||u.pathname==="",h=d?"/":u.pathname,g;if(h==null)g=l;else{let x=o.length-1;if(!c&&h.startsWith("..")){let N=h.split("/");for(;N[0]==="..";)N.shift(),x-=1;u.pathname=N.join("/")}g=x>=0?o[x]:"/"}let b=$k(u,g),y=h&&h!=="/"&&h.endsWith("/"),D=(d||h===".")&&l.endsWith("/");return!b.pathname.endsWith("/")&&(y||D)&&(b.pathname+="/"),b}var ls=s=>s.join("/").replace(/\/\/+/g,"/"),Yk=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),qk=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Gk=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,cu=class{constructor(s,o,l,c=!1){this.status=s,this.statusText=o||"",this.internal=c,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function su(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function uu(s){return s.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Tw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function jw(s,o){let l=s;if(typeof l!="string"||!Uw.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let c=l,u=!1;if(Tw)try{let d=new URL(window.location.href),h=l.startsWith("//")?new URL(d.protocol+l):new URL(l),g=qn(h.pathname,o);h.origin===d.origin&&g!=null?l=g+h.search+h.hash:u=!0}catch{It(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:u,to:l}}var mr=Symbol("Uninstrumented");function Ik(s,o){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};s.forEach(u=>u({id:o.id,index:o.index,path:o.path,instrument(d){let h=Object.keys(l);for(let g of h)d[g]&&l[g].push(d[g])}}));let c={};if(typeof o.lazy=="function"&&l.lazy.length>0){let u=ll(l.lazy,o.lazy,()=>{});u&&(c.lazy=u)}if(typeof o.lazy=="object"){let u=o.lazy;["middleware","loader","action"].forEach(d=>{let h=u[d],g=l[`lazy.${d}`];if(typeof h=="function"&&g.length>0){let b=ll(g,h,()=>{});b&&(c.lazy=Object.assign(c.lazy||{},{[d]:b}))}})}return["loader","action"].forEach(u=>{let d=o[u];if(typeof d=="function"&&l[u].length>0){let h=d[mr]??d,g=ll(l[u],h,(...b)=>DS(b[0]));g&&(u==="loader"&&h.hydrate===!0&&(g.hydrate=!0),g[mr]=h,c[u]=g)}}),o.middleware&&o.middleware.length>0&&l.middleware.length>0&&(c.middleware=o.middleware.map(u=>{let d=u[mr]??u,h=ll(l.middleware,d,(...g)=>DS(g[0]));return h?(h[mr]=d,h):u})),c}function Fk(s,o){let l={navigate:[],fetch:[]};if(o.forEach(c=>c({instrument(u){let d=Object.keys(u);for(let h of d)u[h]&&l[h].push(u[h])}})),l.navigate.length>0){let c=s.navigate[mr]??s.navigate,u=ll(l.navigate,c,(...d)=>{let[h,g]=d;return{to:typeof h=="number"||typeof h=="string"?h:h?qs(h):".",...RS(s,g??{})}});u&&(u[mr]=c,s.navigate=u)}if(l.fetch.length>0){let c=s.fetch[mr]??s.fetch,u=ll(l.fetch,c,(...d)=>{let[h,,g,b]=d;return{href:g??".",fetcherKey:h,...RS(s,b??{})}});u&&(u[mr]=c,s.fetch=u)}return s}function ll(s,o,l){return s.length===0?null:async(...c)=>{let u=await Ow(s,l(...c),()=>o(...c),s.length-1);if(u.type==="error")throw u.value;return u.value}}async function Ow(s,o,l,c){let u=s[c],d;if(u){let h,g=async()=>(h?console.error("You cannot call instrumented handlers more than once"):h=Ow(s,o,l,c-1),d=await h,at(d,"Expected a result"),d.type==="error"&&d.value instanceof Error?{status:"error",error:d.value}:{status:"success",error:void 0});try{await u(g,o)}catch(b){console.error("An instrumentation function threw an error:",b)}h||await g(),await h}else try{d={type:"success",value:await l()}}catch(h){d={type:"error",value:h}}return d||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function DS(s){let{request:o,context:l,params:c,unstable_pattern:u}=s;return{request:Xk(o),params:{...c},unstable_pattern:u,context:Qk(l)}}function RS(s,o){return{currentUrl:qs(s.state.location),..."formMethod"in o?{formMethod:o.formMethod}:{},..."formEncType"in o?{formEncType:o.formEncType}:{},..."formData"in o?{formData:o.formData}:{},..."body"in o?{body:o.body}:{}}}function Xk(s){return{method:s.method,url:s.url,headers:{get:(...o)=>s.headers.get(...o)}}}function Qk(s){if(Pk(s)){let o={...s};return Object.freeze(o),o}else return{get:o=>s.get(o)}}var Zk=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Pk(s){if(s===null||typeof s!="object")return!1;const o=Object.getPrototypeOf(s);return o===Object.prototype||o===null||Object.getOwnPropertyNames(o).sort().join("\0")===Zk}var Aw=["POST","PUT","PATCH","DELETE"],Jk=new Set(Aw),Kk=["GET",...Aw],Wk=new Set(Kk),Vw=new Set([301,302,303,307,308]),eU=new Set([307,308]),Bg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tU={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Gc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},aU=s=>({hasErrorBoundary:!!s.hasErrorBoundary}),Mw="remix-router-transitions",zw=Symbol("ResetLoaderData");function nU(s){const o=s.window?s.window:typeof window<"u"?window:void 0,l=typeof o<"u"&&typeof o.document<"u"&&typeof o.document.createElement<"u";at(s.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=s.hydrationRouteProperties||[],u=s.mapRouteProperties||aU,d=u;if(s.unstable_instrumentations){let C=s.unstable_instrumentations;d=z=>({...u(z),...Ik(C.map(q=>q.route).filter(Boolean),z)})}let h={},g=nu(s.routes,d,void 0,h),b,y=s.basename||"/";y.startsWith("/")||(y=`/${y}`);let D=s.dataStrategy||lU,x={...s.future},N=null,R=new Set,k=null,B=null,L=null,F=s.hydrationData!=null,Q=dr(g,s.history.location,y),ee=!1,ue=null,re,ne;if(Q==null&&!s.patchRoutesOnNavigation){let C=$n(404,{pathname:s.history.location.pathname}),{matches:z,route:q}=Uf(g);re=!0,ne=!re,Q=z,ue={[q.id]:C}}else if(Q&&!s.hydrationData&&Va(Q,g,s.history.location.pathname).active&&(Q=null),Q)if(Q.some(C=>C.route.lazy))re=!1,ne=!re;else if(!Q.some(C=>lb(C.route)))re=!0,ne=!re;else{let C=s.hydrationData?s.hydrationData.loaderData:null,z=s.hydrationData?s.hydrationData.errors:null,q=Q;if(z){let oe=Q.findIndex(ce=>z[ce.route.id]!==void 0);q=q.slice(0,oe+1)}ne=!1,re=q.every(oe=>{let ce=Lw(oe.route,C,z);return ne=ne||ce.renderFallback,!ce.shouldLoad})}else{re=!1,ne=!re,Q=[];let C=Va(null,g,s.history.location.pathname);C.active&&C.matches&&(ee=!0,Q=C.matches)}let te,_={historyAction:s.history.action,location:s.history.location,matches:Q,initialized:re,renderFallback:ne,navigation:Bg,restoreScrollPosition:s.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:s.hydrationData&&s.hydrationData.loaderData||{},actionData:s.hydrationData&&s.hydrationData.actionData||null,errors:s.hydrationData&&s.hydrationData.errors||ue,fetchers:new Map,blockers:new Map},P="POP",H=null,me=!1,W,X=!1,ie=new Map,Ee=null,J=!1,de=!1,ge=new Set,K=new Map,xe=0,G=-1,ve=new Map,je=new Set,_e=new Map,mt=new Map,Rt=new Set,nt=new Map,$t,Se=null;function Mt(){if(N=s.history.listen(({action:C,location:z,delta:q})=>{if($t){$t(),$t=void 0;return}It(nt.size===0||q!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let oe=De({currentLocation:_.location,nextLocation:z,historyAction:C});if(oe&&q!=null){let ce=new Promise(Ce=>{$t=Ce});s.history.go(q*-1),le(oe,{state:"blocked",location:z,proceed(){le(oe,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),ce.then(()=>s.history.go(q))},reset(){let Ce=new Map(_.blockers);Ce.set(oe,Gc),pt({blockers:Ce})}}),H?.resolve(),H=null;return}return St(C,z)}),l){RU(o,ie);let C=()=>_U(o,ie);o.addEventListener("pagehide",C),Ee=()=>o.removeEventListener("pagehide",C)}return _.initialized||St("POP",_.location,{initialHydration:!0}),te}function he(){N&&N(),Ee&&Ee(),R.clear(),W&&W.abort(),_.fetchers.forEach((C,z)=>Pa(z)),_.blockers.forEach((C,z)=>ae(z))}function Yt(C){return R.add(C),()=>R.delete(C)}function pt(C,z={}){C.matches&&(C.matches=C.matches.map(ce=>{let Ce=h[ce.route.id],ye=ce.route;return ye.element!==Ce.element||ye.errorElement!==Ce.errorElement||ye.hydrateFallbackElement!==Ce.hydrateFallbackElement?{...ce,route:Ce}:ce})),_={..._,...C};let q=[],oe=[];_.fetchers.forEach((ce,Ce)=>{ce.state==="idle"&&(Rt.has(Ce)?q.push(Ce):oe.push(Ce))}),Rt.forEach(ce=>{!_.fetchers.has(ce)&&!K.has(ce)&&q.push(ce)}),[...R].forEach(ce=>ce(_,{deletedFetchers:q,newErrors:C.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),q.forEach(ce=>Pa(ce)),oe.forEach(ce=>_.fetchers.delete(ce))}function Ft(C,z,{flushSync:q}={}){let oe=_.actionData!=null&&_.navigation.formMethod!=null&&ja(_.navigation.formMethod)&&_.navigation.state==="loading"&&C.state?._isRedirect!==!0,ce;z.actionData?Object.keys(z.actionData).length>0?ce=z.actionData:ce=null:oe?ce=_.actionData:ce=null;let Ce=z.loaderData?MS(_.loaderData,z.loaderData,z.matches||[],z.errors):_.loaderData,ye=_.blockers;ye.size>0&&(ye=new Map(ye),ye.forEach((Me,Te)=>ye.set(Te,Gc)));let Oe=J?!1:ca(C,z.matches||_.matches),Re=me===!0||_.navigation.formMethod!=null&&ja(_.navigation.formMethod)&&C.state?._isRedirect!==!0;b&&(g=b,b=void 0),J||P==="POP"||(P==="PUSH"?s.history.push(C,C.state):P==="REPLACE"&&s.history.replace(C,C.state));let ze;if(P==="POP"){let Me=ie.get(_.location.pathname);Me&&Me.has(C.pathname)?ze={currentLocation:_.location,nextLocation:C}:ie.has(C.pathname)&&(ze={currentLocation:C,nextLocation:_.location})}else if(X){let Me=ie.get(_.location.pathname);Me?Me.add(C.pathname):(Me=new Set([C.pathname]),ie.set(_.location.pathname,Me)),ze={currentLocation:_.location,nextLocation:C}}pt({...z,actionData:ce,loaderData:Ce,historyAction:P,location:C,initialized:!0,renderFallback:!1,navigation:Bg,revalidation:"idle",restoreScrollPosition:Oe,preventScrollReset:Re,blockers:ye},{viewTransitionOpts:ze,flushSync:q===!0}),P="POP",me=!1,X=!1,J=!1,de=!1,H?.resolve(),H=null,Se?.resolve(),Se=null}async function ya(C,z){if(H?.resolve(),H=null,typeof C=="number"){H||(H=BS());let Ut=H.promise;return s.history.go(C),Ut}let q=Kg(_.location,_.matches,y,C,z?.fromRouteId,z?.relative),{path:oe,submission:ce,error:Ce}=_S(!1,q,z),ye;z?.unstable_mask&&(ye={pathname:"",search:"",hash:"",...typeof z.unstable_mask=="string"?wo(z.unstable_mask):{..._.location.unstable_mask,...z.unstable_mask}});let Oe=_.location,Re=au(Oe,oe,z&&z.state,void 0,ye);Re={...Re,...s.history.encodeLocation(Re)};let ze=z&&z.replace!=null?z.replace:void 0,Me="PUSH";ze===!0?Me="REPLACE":ze===!1||ce!=null&&ja(ce.formMethod)&&ce.formAction===_.location.pathname+_.location.search&&(Me="REPLACE");let Te=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,ht=(z&&z.flushSync)===!0,tt=De({currentLocation:Oe,nextLocation:Re,historyAction:Me});if(tt){le(tt,{state:"blocked",location:Re,proceed(){le(tt,{state:"proceeding",proceed:void 0,reset:void 0,location:Re}),ya(C,z)},reset(){let Ut=new Map(_.blockers);Ut.set(tt,Gc),pt({blockers:Ut})}});return}await St(Me,Re,{submission:ce,pendingError:Ce,preventScrollReset:Te,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:ht,callSiteDefaultShouldRevalidate:z&&z.unstable_defaultShouldRevalidate})}function ut(){Se||(Se=BS()),Za(),pt({revalidation:"loading"});let C=Se.promise;return _.navigation.state==="submitting"?C:_.navigation.state==="idle"?(St(_.historyAction,_.location,{startUninterruptedRevalidation:!0}),C):(St(P||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:X===!0}),C)}async function St(C,z,q){W&&W.abort(),W=null,P=C,J=(q&&q.startUninterruptedRevalidation)===!0,Ie(_.location,_.matches),me=(q&&q.preventScrollReset)===!0,X=(q&&q.enableViewTransition)===!0;let oe=b||g,ce=q&&q.overrideNavigation,Ce=q?.initialHydration&&_.matches&&_.matches.length>0&&!ee?_.matches:dr(oe,z,y),ye=(q&&q.flushSync)===!0;if(Ce&&_.initialized&&!de&&gU(_.location,z)&&!(q&&q.submission&&ja(q.submission.formMethod))){Ft(z,{matches:Ce},{flushSync:ye});return}let Oe=Va(Ce,oe,z.pathname);if(Oe.active&&Oe.matches&&(Ce=Oe.matches),!Ce){let{error:Xt,notFoundMatches:ua,route:bt}=Be(z.pathname);Ft(z,{matches:ua,loaderData:{},errors:{[bt.id]:Xt}},{flushSync:ye});return}W=new AbortController;let Re=rl(s.history,z,W.signal,q&&q.submission),ze=s.getContext?await s.getContext():new NS,Me;if(q&&q.pendingError)Me=[fr(Ce).route.id,{type:"error",error:q.pendingError}];else if(q&&q.submission&&ja(q.submission.formMethod)){let Xt=await oa(Re,z,q.submission,Ce,ze,Oe.active,q&&q.initialHydration===!0,{replace:q.replace,flushSync:ye});if(Xt.shortCircuited)return;if(Xt.pendingActionResult){let[ua,bt]=Xt.pendingActionResult;if(Nn(bt)&&su(bt.error)&&bt.error.status===404){W=null,Ft(z,{matches:Xt.matches,loaderData:{},errors:{[ua]:bt.error}});return}}Ce=Xt.matches||Ce,Me=Xt.pendingActionResult,ce=$g(z,q.submission),ye=!1,Oe.active=!1,Re=rl(s.history,Re.url,Re.signal)}let{shortCircuited:Te,matches:ht,loaderData:tt,errors:Ut}=await wn(Re,z,Ce,ze,Oe.active,ce,q&&q.submission,q&&q.fetcherSubmission,q&&q.replace,q&&q.initialHydration===!0,ye,Me,q&&q.callSiteDefaultShouldRevalidate);Te||(W=null,Ft(z,{matches:ht||Ce,...zS(Me),loaderData:tt,errors:Ut}))}async function oa(C,z,q,oe,ce,Ce,ye,Oe={}){Za();let Re=EU(z,q);if(pt({navigation:Re},{flushSync:Oe.flushSync===!0}),Ce){let Te=await Is(oe,z.pathname,C.signal);if(Te.type==="aborted")return{shortCircuited:!0};if(Te.type==="error"){if(Te.partialMatches.length===0){let{matches:tt,route:Ut}=Uf(g);return{matches:tt,pendingActionResult:[Ut.id,{type:"error",error:Te.error}]}}let ht=fr(Te.partialMatches).route.id;return{matches:Te.partialMatches,pendingActionResult:[ht,{type:"error",error:Te.error}]}}else if(Te.matches)oe=Te.matches;else{let{notFoundMatches:ht,error:tt,route:Ut}=Be(z.pathname);return{matches:ht,pendingActionResult:[Ut.id,{type:"error",error:tt}]}}}let ze,Me=Vf(oe,z);if(!Me.route.action&&!Me.route.lazy)ze={type:"error",error:$n(405,{method:C.method,pathname:z.pathname,routeId:Me.route.id})};else{let Te=cl(d,h,C,oe,Me,ye?[]:c,ce),ht=await on(C,Te,ce,null);if(ze=ht[Me.route.id],!ze){for(let tt of oe)if(ht[tt.route.id]){ze=ht[tt.route.id];break}}if(C.signal.aborted)return{shortCircuited:!0}}if(ti(ze)){let Te;return Oe&&Oe.replace!=null?Te=Oe.replace:Te=OS(ze.response.headers.get("Location"),new URL(C.url),y,s.history)===_.location.pathname+_.location.search,await Qa(C,ze,!0,{submission:q,replace:Te}),{shortCircuited:!0}}if(Nn(ze)){let Te=fr(oe,Me.route.id);return(Oe&&Oe.replace)!==!0&&(P="PUSH"),{matches:oe,pendingActionResult:[Te.route.id,ze,Me.route.id]}}return{matches:oe,pendingActionResult:[Me.route.id,ze]}}async function wn(C,z,q,oe,ce,Ce,ye,Oe,Re,ze,Me,Te,ht){let tt=Ce||$g(z,ye),Ut=ye||Oe||HS(tt),Xt=!J&&!ze;if(ce){if(Xt){let da=we(Te);pt({navigation:tt,...da!==void 0?{actionData:da}:{}},{flushSync:Me})}let rt=await Is(q,z.pathname,C.signal);if(rt.type==="aborted")return{shortCircuited:!0};if(rt.type==="error"){if(rt.partialMatches.length===0){let{matches:Eo,route:ps}=Uf(g);return{matches:Eo,loaderData:{},errors:{[ps.id]:rt.error}}}let da=fr(rt.partialMatches).route.id;return{matches:rt.partialMatches,loaderData:{},errors:{[da]:rt.error}}}else if(rt.matches)q=rt.matches;else{let{error:da,notFoundMatches:Eo,route:ps}=Be(z.pathname);return{matches:Eo,loaderData:{},errors:{[ps.id]:da}}}}let ua=b||g,{dsMatches:bt,revalidatingFetchers:Ma}=kS(C,oe,d,h,s.history,_,q,Ut,z,ze?[]:c,ze===!0,de,ge,Rt,_e,je,ua,y,s.patchRoutesOnNavigation!=null,Te,ht);if(G=++xe,!s.dataStrategy&&!bt.some(rt=>rt.shouldLoad)&&!bt.some(rt=>rt.route.middleware&&rt.route.middleware.length>0)&&Ma.length===0){let rt=gt();return Ft(z,{matches:q,loaderData:{},errors:Te&&Nn(Te[1])?{[Te[0]]:Te[1].error}:null,...zS(Te),...rt?{fetchers:new Map(_.fetchers)}:{}},{flushSync:Me}),{shortCircuited:!0}}if(Xt){let rt={};if(!ce){rt.navigation=tt;let da=we(Te);da!==void 0&&(rt.actionData=da)}Ma.length>0&&(rt.fetchers=En(Ma)),pt(rt,{flushSync:Me})}Ma.forEach(rt=>{pe(rt.key),rt.controller&&K.set(rt.key,rt.controller)});let Qt=()=>Ma.forEach(rt=>pe(rt.key));W&&W.signal.addEventListener("abort",Qt);let{loaderResults:Rn,fetcherResults:_a}=await us(bt,Ma,C,oe);if(C.signal.aborted)return{shortCircuited:!0};W&&W.signal.removeEventListener("abort",Qt),Ma.forEach(rt=>K.delete(rt.key));let rn=Cf(Rn);if(rn)return await Qa(C,rn.result,!0,{replace:Re}),{shortCircuited:!0};if(rn=Cf(_a),rn)return je.add(rn.key),await Qa(C,rn.result,!0,{replace:Re}),{shortCircuited:!0};let{loaderData:Xs,errors:fs}=VS(_,q,Rn,Te,Ma,_a);ze&&_.errors&&(fs={..._.errors,...fs});let Zn=gt(),ms=E(G),Pn=Zn||ms||Ma.length>0;return{matches:q,loaderData:Xs,errors:fs,...Pn?{fetchers:new Map(_.fetchers)}:{}}}function we(C){if(C&&!Nn(C[1]))return{[C[0]]:C[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function En(C){return C.forEach(z=>{let q=_.fetchers.get(z.key),oe=Ic(void 0,q?q.data:void 0);_.fetchers.set(z.key,oe)}),new Map(_.fetchers)}async function va(C,z,q,oe){pe(C);let ce=(oe&&oe.flushSync)===!0,Ce=b||g,ye=Kg(_.location,_.matches,y,q,z,oe?.relative),Oe=dr(Ce,ye,y),Re=Va(Oe,Ce,ye);if(Re.active&&Re.matches&&(Oe=Re.matches),!Oe){xa(C,z,$n(404,{pathname:ye}),{flushSync:ce});return}let{path:ze,submission:Me,error:Te}=_S(!0,ye,oe);if(Te){xa(C,z,Te,{flushSync:ce});return}let ht=s.getContext?await s.getContext():new NS,tt=(oe&&oe.preventScrollReset)===!0;if(Me&&ja(Me.formMethod)){await Xa(C,z,ze,Oe,ht,Re.active,ce,tt,Me,oe&&oe.unstable_defaultShouldRevalidate);return}_e.set(C,{routeId:z,path:ze}),await Dn(C,z,ze,Oe,ht,Re.active,ce,tt,Me)}async function Xa(C,z,q,oe,ce,Ce,ye,Oe,Re,ze){Za(),_e.delete(C);let Me=_.fetchers.get(C);Ra(C,DU(Re,Me),{flushSync:ye});let Te=new AbortController,ht=rl(s.history,q,Te.signal,Re);if(Ce){let Ct=await Is(oe,new URL(ht.url).pathname,ht.signal,C);if(Ct.type==="aborted")return;if(Ct.type==="error"){xa(C,z,Ct.error,{flushSync:ye});return}else if(Ct.matches)oe=Ct.matches;else{xa(C,z,$n(404,{pathname:q}),{flushSync:ye});return}}let tt=Vf(oe,q);if(!tt.route.action&&!tt.route.lazy){let Ct=$n(405,{method:Re.formMethod,pathname:q,routeId:z});xa(C,z,Ct,{flushSync:ye});return}K.set(C,Te);let Ut=xe,Xt=cl(d,h,ht,oe,tt,c,ce),ua=await on(ht,Xt,ce,C),bt=ua[tt.route.id];if(!bt){for(let Ct of Xt)if(ua[Ct.route.id]){bt=ua[Ct.route.id];break}}if(ht.signal.aborted){K.get(C)===Te&&K.delete(C);return}if(Rt.has(C)){if(ti(bt)||Nn(bt)){Ra(C,No(void 0));return}}else{if(ti(bt))if(K.delete(C),G>Ut){Ra(C,No(void 0));return}else return je.add(C),Ra(C,Ic(Re)),Qa(ht,bt,!1,{fetcherSubmission:Re,preventScrollReset:Oe});if(Nn(bt)){xa(C,z,bt.error);return}}let Ma=_.navigation.location||_.location,Qt=rl(s.history,Ma,Te.signal),Rn=b||g,_a=_.navigation.state!=="idle"?dr(Rn,_.navigation.location,y):_.matches;at(_a,"Didn't find any matches after fetcher action");let rn=++xe;ve.set(C,rn);let Xs=Ic(Re,bt.data);_.fetchers.set(C,Xs);let{dsMatches:fs,revalidatingFetchers:Zn}=kS(Qt,ce,d,h,s.history,_,_a,Re,Ma,c,!1,de,ge,Rt,_e,je,Rn,y,s.patchRoutesOnNavigation!=null,[tt.route.id,bt],ze);Zn.filter(Ct=>Ct.key!==C).forEach(Ct=>{let Do=Ct.key,pl=_.fetchers.get(Do),hu=Ic(void 0,pl?pl.data:void 0);_.fetchers.set(Do,hu),pe(Do),Ct.controller&&K.set(Do,Ct.controller)}),pt({fetchers:new Map(_.fetchers)});let ms=()=>Zn.forEach(Ct=>pe(Ct.key));Te.signal.addEventListener("abort",ms);let{loaderResults:Pn,fetcherResults:rt}=await us(fs,Zn,Qt,ce);if(Te.signal.aborted)return;if(Te.signal.removeEventListener("abort",ms),ve.delete(C),K.delete(C),Zn.forEach(Ct=>K.delete(Ct.key)),_.fetchers.has(C)){let Ct=No(bt.data);_.fetchers.set(C,Ct)}let da=Cf(Pn);if(da)return Qa(Qt,da.result,!1,{preventScrollReset:Oe});if(da=Cf(rt),da)return je.add(da.key),Qa(Qt,da.result,!1,{preventScrollReset:Oe});let{loaderData:Eo,errors:ps}=VS(_,_a,Pn,void 0,Zn,rt);E(rn),_.navigation.state==="loading"&&rn>G?(at(P,"Expected pending action"),W&&W.abort(),Ft(_.navigation.location,{matches:_a,loaderData:Eo,errors:ps,fetchers:new Map(_.fetchers)})):(pt({errors:ps,loaderData:MS(_.loaderData,Eo,_a,ps),fetchers:new Map(_.fetchers)}),de=!1)}async function Dn(C,z,q,oe,ce,Ce,ye,Oe,Re){let ze=_.fetchers.get(C);Ra(C,Ic(Re,ze?ze.data:void 0),{flushSync:ye});let Me=new AbortController,Te=rl(s.history,q,Me.signal);if(Ce){let bt=await Is(oe,new URL(Te.url).pathname,Te.signal,C);if(bt.type==="aborted")return;if(bt.type==="error"){xa(C,z,bt.error,{flushSync:ye});return}else if(bt.matches)oe=bt.matches;else{xa(C,z,$n(404,{pathname:q}),{flushSync:ye});return}}let ht=Vf(oe,q);K.set(C,Me);let tt=xe,Ut=cl(d,h,Te,oe,ht,c,ce),ua=(await on(Te,Ut,ce,C))[ht.route.id];if(K.get(C)===Me&&K.delete(C),!Te.signal.aborted){if(Rt.has(C)){Ra(C,No(void 0));return}if(ti(ua))if(G>tt){Ra(C,No(void 0));return}else{je.add(C),await Qa(Te,ua,!1,{preventScrollReset:Oe});return}if(Nn(ua)){xa(C,z,ua.error);return}Ra(C,No(ua.data))}}async function Qa(C,z,q,{submission:oe,fetcherSubmission:ce,preventScrollReset:Ce,replace:ye}={}){q||(H?.resolve(),H=null),z.response.headers.has("X-Remix-Revalidate")&&(de=!0);let Oe=z.response.headers.get("Location");at(Oe,"Expected a Location header on the redirect Response"),Oe=OS(Oe,new URL(C.url),y,s.history);let Re=au(_.location,Oe,{_isRedirect:!0});if(l){let Ut=!1;if(z.response.headers.has("X-Remix-Reload-Document"))Ut=!0;else if(ib(Oe)){const Xt=Rw(Oe,!0);Ut=Xt.origin!==o.location.origin||qn(Xt.pathname,y)==null}if(Ut){ye?o.location.replace(Oe):o.location.assign(Oe);return}}W=null;let ze=ye===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Me,formAction:Te,formEncType:ht}=_.navigation;!oe&&!ce&&Me&&Te&&ht&&(oe=HS(_.navigation));let tt=oe||ce;if(eU.has(z.response.status)&&tt&&ja(tt.formMethod))await St(ze,Re,{submission:{...tt,formAction:Oe},preventScrollReset:Ce||me,enableViewTransition:q?X:void 0});else{let Ut=$g(Re,oe);await St(ze,Re,{overrideNavigation:Ut,fetcherSubmission:ce,preventScrollReset:Ce||me,enableViewTransition:q?X:void 0})}}async function on(C,z,q,oe){let ce,Ce={};try{ce=await uU(D,C,z,oe,q,!1)}catch(ye){return z.filter(Oe=>Oe.shouldLoad).forEach(Oe=>{Ce[Oe.route.id]={type:"error",error:ye}}),Ce}if(C.signal.aborted)return Ce;if(!ja(C.method))for(let ye of z){if(ce[ye.route.id]?.type==="error")break;!ce.hasOwnProperty(ye.route.id)&&!_.loaderData.hasOwnProperty(ye.route.id)&&(!_.errors||!_.errors.hasOwnProperty(ye.route.id))&&ye.shouldCallHandler()&&(ce[ye.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ye.route.id}`)})}for(let[ye,Oe]of Object.entries(ce))if(xU(Oe)){let Re=Oe.result;Ce[ye]={type:"redirect",response:pU(Re,C,ye,z,y)}}else Ce[ye]=await mU(Oe);return Ce}async function us(C,z,q,oe){let ce=on(q,C,oe,null),Ce=Promise.all(z.map(async Re=>{if(Re.matches&&Re.match&&Re.request&&Re.controller){let Me=(await on(Re.request,Re.matches,oe,Re.key))[Re.match.route.id];return{[Re.key]:Me}}else return Promise.resolve({[Re.key]:{type:"error",error:$n(404,{pathname:Re.path})}})})),ye=await ce,Oe=(await Ce).reduce((Re,ze)=>Object.assign(Re,ze),{});return{loaderResults:ye,fetcherResults:Oe}}function Za(){de=!0,_e.forEach((C,z)=>{K.has(z)&&ge.add(z),pe(z)})}function Ra(C,z,q={}){_.fetchers.set(C,z),pt({fetchers:new Map(_.fetchers)},{flushSync:(q&&q.flushSync)===!0})}function xa(C,z,q,oe={}){let ce=fr(_.matches,z);Pa(C),pt({errors:{[ce.route.id]:q},fetchers:new Map(_.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function ds(C){return mt.set(C,(mt.get(C)||0)+1),Rt.has(C)&&Rt.delete(C),_.fetchers.get(C)||tU}function Fn(C,z){pe(C,z?.reason),Ra(C,No(null))}function Pa(C){let z=_.fetchers.get(C);K.has(C)&&!(z&&z.state==="loading"&&ve.has(C))&&pe(C),_e.delete(C),ve.delete(C),je.delete(C),Rt.delete(C),ge.delete(C),_.fetchers.delete(C)}function Xn(C){let z=(mt.get(C)||0)-1;z<=0?(mt.delete(C),Rt.add(C)):mt.set(C,z),pt({fetchers:new Map(_.fetchers)})}function pe(C,z){let q=K.get(C);q&&(q.abort(z),K.delete(C))}function He(C){for(let z of C){let q=ds(z),oe=No(q.data);_.fetchers.set(z,oe)}}function gt(){let C=[],z=!1;for(let q of je){let oe=_.fetchers.get(q);at(oe,`Expected fetcher: ${q}`),oe.state==="loading"&&(je.delete(q),C.push(q),z=!0)}return He(C),z}function E(C){let z=[];for(let[q,oe]of ve)if(oe<C){let ce=_.fetchers.get(q);at(ce,`Expected fetcher: ${q}`),ce.state==="loading"&&(pe(q),ve.delete(q),z.push(q))}return He(z),z.length>0}function M(C,z){let q=_.blockers.get(C)||Gc;return nt.get(C)!==z&&nt.set(C,z),q}function ae(C){_.blockers.delete(C),nt.delete(C)}function le(C,z){let q=_.blockers.get(C)||Gc;at(q.state==="unblocked"&&z.state==="blocked"||q.state==="blocked"&&z.state==="blocked"||q.state==="blocked"&&z.state==="proceeding"||q.state==="blocked"&&z.state==="unblocked"||q.state==="proceeding"&&z.state==="unblocked",`Invalid blocker state transition: ${q.state} -> ${z.state}`);let oe=new Map(_.blockers);oe.set(C,z),pt({blockers:oe})}function De({currentLocation:C,nextLocation:z,historyAction:q}){if(nt.size===0)return;nt.size>1&&It(!1,"A router only supports one blocker at a time");let oe=Array.from(nt.entries()),[ce,Ce]=oe[oe.length-1],ye=_.blockers.get(ce);if(!(ye&&ye.state==="proceeding")&&Ce({currentLocation:C,nextLocation:z,historyAction:q}))return ce}function Be(C){let z=$n(404,{pathname:C}),q=b||g,{matches:oe,route:ce}=Uf(q);return{notFoundMatches:oe,route:ce,error:z}}function ke(C,z,q){if(k=C,L=z,B=q||null,!F&&_.navigation===Bg){F=!0;let oe=ca(_.location,_.matches);oe!=null&&pt({restoreScrollPosition:oe})}return()=>{k=null,L=null,B=null}}function st(C,z){return B&&B(C,z.map(oe=>_k(oe,_.loaderData)))||C.key}function Ie(C,z){if(k&&L){let q=st(C,z);k[q]=L()}}function ca(C,z){if(k){let q=st(C,z),oe=k[q];if(typeof oe=="number")return oe}return null}function Va(C,z,q){if(s.patchRoutesOnNavigation)if(C){if(Object.keys(C[0].params).length>0)return{active:!0,matches:Pc(z,q,y,!0)}}else return{active:!0,matches:Pc(z,q,y,!0)||[]};return{active:!1,matches:null}}async function Is(C,z,q,oe){if(!s.patchRoutesOnNavigation)return{type:"success",matches:C};let ce=C;for(;;){let Ce=b==null,ye=b||g,Oe=h;try{await s.patchRoutesOnNavigation({signal:q,path:z,matches:ce,fetcherKey:oe,patch:(Me,Te)=>{q.aborted||US(Me,Te,ye,Oe,d,!1)}})}catch(Me){return{type:"error",error:Me,partialMatches:ce}}finally{Ce&&!q.aborted&&(g=[...g])}if(q.aborted)return{type:"aborted"};let Re=dr(ye,z,y),ze=null;if(Re){if(Object.keys(Re[0].params).length===0)return{type:"success",matches:Re};if(ze=Pc(ye,z,y,!0),!(ze&&ce.length<ze.length&&Fs(ce,ze.slice(0,ce.length))))return{type:"success",matches:Re}}if(ze||(ze=Pc(ye,z,y,!0)),!ze||Fs(ce,ze))return{type:"success",matches:null};ce=ze}}function Fs(C,z){return C.length===z.length&&C.every((q,oe)=>q.route.id===z[oe].route.id)}function oi(C){h={},b=nu(C,d,void 0,h)}function Qn(C,z,q=!1){let oe=b==null;US(C,z,b||g,h,d,q),oe&&(g=[...g],pt({}))}return te={get basename(){return y},get future(){return x},get state(){return _},get routes(){return g},get window(){return o},initialize:Mt,subscribe:Yt,enableScrollRestoration:ke,navigate:ya,fetch:va,revalidate:ut,createHref:C=>s.history.createHref(C),encodeLocation:C=>s.history.encodeLocation(C),getFetcher:ds,resetFetcher:Fn,deleteFetcher:Xn,dispose:he,getBlocker:M,deleteBlocker:ae,patchRoutes:Qn,_internalFetchControllers:K,_internalSetRoutes:oi,_internalSetStateDoNotUseOrYouWillBreakYourApp(C){pt(C)}},s.unstable_instrumentations&&(te=Fk(te,s.unstable_instrumentations.map(C=>C.router).filter(Boolean))),te}function sU(s){return s!=null&&("formData"in s&&s.formData!=null||"body"in s&&s.body!==void 0)}function Kg(s,o,l,c,u,d){let h,g;if(u){h=[];for(let y of o)if(h.push(y),y.route.id===u){g=y;break}}else h=o,g=o[o.length-1];let b=lu(c||".",Gf(h),qn(s.pathname,l)||s.pathname,d==="path");if(c==null&&(b.search=s.search,b.hash=s.hash),(c==null||c===""||c===".")&&g){let y=ub(b.search);if(g.route.index&&!y)b.search=b.search?b.search.replace(/^\?/,"?index&"):"?index";else if(!g.route.index&&y){let D=new URLSearchParams(b.search),x=D.getAll("index");D.delete("index"),x.filter(R=>R).forEach(R=>D.append("index",R));let N=D.toString();b.search=N?`?${N}`:""}}return l!=="/"&&(b.pathname=Bk({basename:l,pathname:b.pathname})),qs(b)}function _S(s,o,l){if(!l||!sU(l))return{path:o};if(l.formMethod&&!wU(l.formMethod))return{path:o,error:$n(405,{method:l.formMethod})};let c=()=>({path:o,error:$n(400,{type:"invalid-body"})}),d=(l.formMethod||"get").toUpperCase(),h=Gw(o);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!ja(d))return c();let x=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((N,[R,k])=>`${N}${R}=${k}
236
+ `,""):String(l.body);return{path:o,submission:{formMethod:d,formAction:h,formEncType:l.formEncType,formData:void 0,json:void 0,text:x}}}else if(l.formEncType==="application/json"){if(!ja(d))return c();try{let x=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:o,submission:{formMethod:d,formAction:h,formEncType:l.formEncType,formData:void 0,json:x,text:void 0}}}catch{return c()}}}at(typeof FormData=="function","FormData is not available in this environment");let g,b;if(l.formData)g=eb(l.formData),b=l.formData;else if(l.body instanceof FormData)g=eb(l.body),b=l.body;else if(l.body instanceof URLSearchParams)g=l.body,b=AS(g);else if(l.body==null)g=new URLSearchParams,b=new FormData;else try{g=new URLSearchParams(l.body),b=AS(g)}catch{return c()}let y={formMethod:d,formAction:h,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:b,json:void 0,text:void 0};if(ja(y.formMethod))return{path:o,submission:y};let D=wo(o);return s&&D.search&&ub(D.search)&&g.append("index",""),D.search=`?${g}`,{path:qs(D),submission:y}}function kS(s,o,l,c,u,d,h,g,b,y,D,x,N,R,k,B,L,F,Q,ee,ue){let re=ee?Nn(ee[1])?ee[1].error:ee[1].data:void 0,ne=u.createURL(d.location),te=u.createURL(b),_;if(D&&d.errors){let Ee=Object.keys(d.errors)[0];_=h.findIndex(J=>J.route.id===Ee)}else if(ee&&Nn(ee[1])){let Ee=ee[0];_=h.findIndex(J=>J.route.id===Ee)-1}let P=ee?ee[1].statusCode:void 0,H=P&&P>=400,me={currentUrl:ne,currentParams:d.matches[0]?.params||{},nextUrl:te,nextParams:h[0].params,...g,actionResult:re,actionStatus:P},W=uu(h),X=h.map((Ee,J)=>{let{route:de}=Ee,ge=null;if(_!=null&&J>_)ge=!1;else if(de.lazy)ge=!0;else if(!lb(de))ge=!1;else if(D){let{shouldLoad:ve}=Lw(de,d.loaderData,d.errors);ge=ve}else oU(d.loaderData,d.matches[J],Ee)&&(ge=!0);if(ge!==null)return Wg(l,c,s,W,Ee,y,o,ge);let K=!1;typeof ue=="boolean"?K=ue:H?K=!1:(x||ne.pathname+ne.search===te.pathname+te.search||ne.search!==te.search||rU(d.matches[J],Ee))&&(K=!0);let xe={...me,defaultShouldRevalidate:K},G=eu(Ee,xe);return Wg(l,c,s,W,Ee,y,o,G,xe,ue)}),ie=[];return k.forEach((Ee,J)=>{if(D||!h.some(_e=>_e.route.id===Ee.routeId)||R.has(J))return;let de=d.fetchers.get(J),ge=de&&de.state!=="idle"&&de.data===void 0,K=dr(L,Ee.path,F);if(!K){if(Q&&ge)return;ie.push({key:J,routeId:Ee.routeId,path:Ee.path,matches:null,match:null,request:null,controller:null});return}if(B.has(J))return;let xe=Vf(K,Ee.path),G=new AbortController,ve=rl(u,Ee.path,G.signal),je=null;if(N.has(J))N.delete(J),je=cl(l,c,ve,K,xe,y,o);else if(ge)x&&(je=cl(l,c,ve,K,xe,y,o));else{let _e;typeof ue=="boolean"?_e=ue:H?_e=!1:_e=x;let mt={...me,defaultShouldRevalidate:_e};eu(xe,mt)&&(je=cl(l,c,ve,K,xe,y,o,mt))}je&&ie.push({key:J,routeId:Ee.routeId,path:Ee.path,matches:je,match:xe,request:ve,controller:G})}),{dsMatches:X,revalidatingFetchers:ie}}function lb(s){return s.loader!=null||s.middleware!=null&&s.middleware.length>0}function Lw(s,o,l){if(s.lazy)return{shouldLoad:!0,renderFallback:!0};if(!lb(s))return{shouldLoad:!1,renderFallback:!1};let c=o!=null&&s.id in o,u=l!=null&&l[s.id]!==void 0;if(!c&&u)return{shouldLoad:!1,renderFallback:!1};if(typeof s.loader=="function"&&s.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!c};let d=!c&&!u;return{shouldLoad:d,renderFallback:d}}function oU(s,o,l){let c=!o||l.route.id!==o.route.id,u=!s.hasOwnProperty(l.route.id);return c||u}function rU(s,o){let l=s.route.path;return s.pathname!==o.pathname||l!=null&&l.endsWith("*")&&s.params["*"]!==o.params["*"]}function eu(s,o){if(s.route.shouldRevalidate){let l=s.route.shouldRevalidate(o);if(typeof l=="boolean")return l}return o.defaultShouldRevalidate}function US(s,o,l,c,u,d){let h;if(s){let y=c[s];at(y,`No route found to patch children into: routeId = ${s}`),y.children||(y.children=[]),h=y.children}else h=l;let g=[],b=[];if(o.forEach(y=>{let D=h.find(x=>Hw(y,x));D?b.push({existingRoute:D,newRoute:y}):g.push(y)}),g.length>0){let y=nu(g,u,[s||"_","patch",String(h?.length||"0")],c);h.push(...y)}if(d&&b.length>0)for(let y=0;y<b.length;y++){let{existingRoute:D,newRoute:x}=b[y],N=D,[R]=nu([x],u,[],{},!0);Object.assign(N,{element:R.element?R.element:N.element,errorElement:R.errorElement?R.errorElement:N.errorElement,hydrateFallbackElement:R.hydrateFallbackElement?R.hydrateFallbackElement:N.hydrateFallbackElement})}}function Hw(s,o){return"id"in s&&"id"in o&&s.id===o.id?!0:s.index===o.index&&s.path===o.path&&s.caseSensitive===o.caseSensitive?(!s.children||s.children.length===0)&&(!o.children||o.children.length===0)?!0:s.children?.every((l,c)=>o.children?.some(u=>Hw(l,u)))??!1:!1}var CS=new WeakMap,Bw=({key:s,route:o,manifest:l,mapRouteProperties:c})=>{let u=l[o.id];if(at(u,"No route found in manifest"),!u.lazy||typeof u.lazy!="object")return;let d=u.lazy[s];if(!d)return;let h=CS.get(u);h||(h={},CS.set(u,h));let g=h[s];if(g)return g;let b=(async()=>{let y=wk(s),x=u[s]!==void 0&&s!=="hasErrorBoundary";if(y)It(!y,"Route property "+s+" is not a supported lazy route property. This property will be ignored."),h[s]=Promise.resolve();else if(x)It(!1,`Route "${u.id}" has a static property "${s}" defined. The lazy property will be ignored.`);else{let N=await d();N!=null&&(Object.assign(u,{[s]:N}),Object.assign(u,c(u)))}typeof u.lazy=="object"&&(u.lazy[s]=void 0,Object.values(u.lazy).every(N=>N===void 0)&&(u.lazy=void 0))})();return h[s]=b,b},TS=new WeakMap;function iU(s,o,l,c,u){let d=l[s.id];if(at(d,"No route found in manifest"),!s.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof s.lazy=="function"){let D=TS.get(d);if(D)return{lazyRoutePromise:D,lazyHandlerPromise:D};let x=(async()=>{at(typeof s.lazy=="function","No lazy route function found");let N=await s.lazy(),R={};for(let k in N){let B=N[k];if(B===void 0)continue;let L=Dk(k),Q=d[k]!==void 0&&k!=="hasErrorBoundary";L?It(!L,"Route property "+k+" is not a supported property to be returned from a lazy route function. This property will be ignored."):Q?It(!Q,`Route "${d.id}" has a static property "${k}" defined but its lazy function is also returning a value for this property. The lazy route property "${k}" will be ignored.`):R[k]=B}Object.assign(d,R),Object.assign(d,{...c(d),lazy:void 0})})();return TS.set(d,x),x.catch(()=>{}),{lazyRoutePromise:x,lazyHandlerPromise:x}}let h=Object.keys(s.lazy),g=[],b;for(let D of h){if(u&&u.includes(D))continue;let x=Bw({key:D,route:s,manifest:l,mapRouteProperties:c});x&&(g.push(x),D===o&&(b=x))}let y=g.length>0?Promise.all(g).then(()=>{}):void 0;return y?.catch(()=>{}),b?.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:b}}async function jS(s){let o=s.matches.filter(u=>u.shouldLoad),l={};return(await Promise.all(o.map(u=>u.resolve()))).forEach((u,d)=>{l[o[d].route.id]=u}),l}async function lU(s){return s.matches.some(o=>o.route.middleware)?$w(s,()=>jS(s)):jS(s)}function $w(s,o){return cU(s,o,c=>{if(SU(c))throw c;return c},yU,l);function l(c,u,d){if(d)return Promise.resolve(Object.assign(d.value,{[u]:{type:"error",result:c}}));{let{matches:h}=s,g=Math.min(Math.max(h.findIndex(y=>y.route.id===u),0),Math.max(h.findIndex(y=>y.shouldCallHandler()),0)),b=fr(h,h[g].route.id).route.id;return Promise.resolve({[b]:{type:"error",result:c}})}}}async function cU(s,o,l,c,u){let{matches:d,request:h,params:g,context:b,unstable_pattern:y}=s,D=d.flatMap(N=>N.route.middleware?N.route.middleware.map(R=>[N.route.id,R]):[]);return await Yw({request:h,params:g,context:b,unstable_pattern:y},D,o,l,c,u)}async function Yw(s,o,l,c,u,d,h=0){let{request:g}=s;if(g.signal.aborted)throw g.signal.reason??new Error(`Request aborted: ${g.method} ${g.url}`);let b=o[h];if(!b)return await l();let[y,D]=b,x,N=async()=>{if(x)throw new Error("You may only call `next()` once per middleware");try{return x={value:await Yw(s,o,l,c,u,d,h+1)},x.value}catch(R){return x={value:await d(R,y,x)},x.value}};try{let R=await D(s,N),k=R!=null?c(R):void 0;return u(k)?k:x?k??x.value:(x={value:await N()},x.value)}catch(R){return await d(R,y,x)}}function qw(s,o,l,c,u){let d=Bw({key:"middleware",route:c.route,manifest:o,mapRouteProperties:s}),h=iU(c.route,ja(l.method)?"action":"loader",o,s,u);return{middleware:d,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function Wg(s,o,l,c,u,d,h,g,b=null,y){let D=!1,x=qw(s,o,l,u,d);return{...u,_lazyPromises:x,shouldLoad:g,shouldRevalidateArgs:b,shouldCallHandler(N){return D=!0,b?typeof y=="boolean"?eu(u,{...b,defaultShouldRevalidate:y}):typeof N=="boolean"?eu(u,{...b,defaultShouldRevalidate:N}):eu(u,b):g},resolve(N){let{lazy:R,loader:k,middleware:B}=u.route,L=D||g||N&&!ja(l.method)&&(R||k),F=B&&B.length>0&&!k&&!R;return L&&(ja(l.method)||!F)?dU({request:l,unstable_pattern:c,match:u,lazyHandlerPromise:x?.handler,lazyRoutePromise:x?.route,handlerOverride:N,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function cl(s,o,l,c,u,d,h,g=null){return c.map(b=>b.route.id!==u.route.id?{...b,shouldLoad:!1,shouldRevalidateArgs:g,shouldCallHandler:()=>!1,_lazyPromises:qw(s,o,l,b,d),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Wg(s,o,l,uu(c),b,d,h,!0,g))}async function uU(s,o,l,c,u,d){l.some(y=>y._lazyPromises?.middleware)&&await Promise.all(l.map(y=>y._lazyPromises?.middleware));let h={request:o,unstable_pattern:uu(l),params:l[0].params,context:u,matches:l},b=await s({...h,fetcherKey:c,runClientMiddleware:y=>{let D=h;return $w(D,()=>y({...D,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(y=>[y._lazyPromises?.handler,y._lazyPromises?.route]))}catch{}return b}async function dU({request:s,unstable_pattern:o,match:l,lazyHandlerPromise:c,lazyRoutePromise:u,handlerOverride:d,scopedContext:h}){let g,b,y=ja(s.method),D=y?"action":"loader",x=N=>{let R,k=new Promise((F,Q)=>R=Q);b=()=>R(),s.signal.addEventListener("abort",b);let B=F=>typeof N!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${D}" [routeId: ${l.route.id}]`)):N({request:s,unstable_pattern:o,params:l.params,context:h},...F!==void 0?[F]:[]),L=(async()=>{try{return{type:"data",result:await(d?d(Q=>B(Q)):B())}}catch(F){return{type:"error",result:F}}})();return Promise.race([L,k])};try{let N=y?l.route.action:l.route.loader;if(c||u)if(N){let R,[k]=await Promise.all([x(N).catch(B=>{R=B}),c,u]);if(R!==void 0)throw R;g=k}else{await c;let R=y?l.route.action:l.route.loader;if(R)[g]=await Promise.all([x(R),u]);else if(D==="action"){let k=new URL(s.url),B=k.pathname+k.search;throw $n(405,{method:s.method,pathname:B,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(N)g=await x(N);else{let R=new URL(s.url),k=R.pathname+R.search;throw $n(404,{pathname:k})}}catch(N){return{type:"error",result:N}}finally{b&&s.signal.removeEventListener("abort",b)}return g}async function fU(s){let o=s.headers.get("Content-Type");return o&&/\bapplication\/json\b/.test(o)?s.body==null?null:s.json():s.text()}async function mU(s){let{result:o,type:l}=s;if(cb(o)){let c;try{c=await fU(o)}catch(u){return{type:"error",error:u}}return l==="error"?{type:"error",error:new cu(o.status,o.statusText,c),statusCode:o.status,headers:o.headers}:{type:"data",data:c,statusCode:o.status,headers:o.headers}}return l==="error"?LS(o)?o.data instanceof Error?{type:"error",error:o.data,statusCode:o.init?.status,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"error",error:bU(o),statusCode:su(o)?o.status:void 0,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"error",error:o,statusCode:su(o)?o.status:void 0}:LS(o)?{type:"data",data:o.data,statusCode:o.init?.status,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"data",data:o}}function pU(s,o,l,c,u){let d=s.headers.get("Location");if(at(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!ib(d)){let h=c.slice(0,c.findIndex(g=>g.route.id===l)+1);d=Kg(new URL(o.url),h,u,d),s.headers.set("Location",d)}return s}function OS(s,o,l,c){let u=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(ib(s)){let d=s,h=d.startsWith("//")?new URL(o.protocol+d):new URL(d);if(u.includes(h.protocol))throw new Error("Invalid redirect location");let g=qn(h.pathname,l)!=null;if(h.origin===o.origin&&g)return h.pathname+h.search+h.hash}try{let d=c.createURL(s);if(u.includes(d.protocol))throw new Error("Invalid redirect location")}catch{}return s}function rl(s,o,l,c){let u=s.createURL(Gw(o)).toString(),d={signal:l};if(c&&ja(c.formMethod)){let{formMethod:h,formEncType:g}=c;d.method=h.toUpperCase(),g==="application/json"?(d.headers=new Headers({"Content-Type":g}),d.body=JSON.stringify(c.json)):g==="text/plain"?d.body=c.text:g==="application/x-www-form-urlencoded"&&c.formData?d.body=eb(c.formData):d.body=c.formData}return new Request(u,d)}function eb(s){let o=new URLSearchParams;for(let[l,c]of s.entries())o.append(l,typeof c=="string"?c:c.name);return o}function AS(s){let o=new FormData;for(let[l,c]of s.entries())o.append(l,c);return o}function hU(s,o,l,c=!1,u=!1){let d={},h=null,g,b=!1,y={},D=l&&Nn(l[1])?l[1].error:void 0;return s.forEach(x=>{if(!(x.route.id in o))return;let N=x.route.id,R=o[N];if(at(!ti(R),"Cannot handle redirect results in processLoaderData"),Nn(R)){let k=R.error;if(D!==void 0&&(k=D,D=void 0),h=h||{},u)h[N]=k;else{let B=fr(s,N);h[B.route.id]==null&&(h[B.route.id]=k)}c||(d[N]=zw),b||(b=!0,g=su(R.error)?R.error.status:500),R.headers&&(y[N]=R.headers)}else d[N]=R.data,R.statusCode&&R.statusCode!==200&&!b&&(g=R.statusCode),R.headers&&(y[N]=R.headers)}),D!==void 0&&l&&(h={[l[0]]:D},l[2]&&(d[l[2]]=void 0)),{loaderData:d,errors:h,statusCode:g||200,loaderHeaders:y}}function VS(s,o,l,c,u,d){let{loaderData:h,errors:g}=hU(o,l,c);return u.filter(b=>!b.matches||b.matches.some(y=>y.shouldLoad)).forEach(b=>{let{key:y,match:D,controller:x}=b;if(x&&x.signal.aborted)return;let N=d[y];if(at(N,"Did not find corresponding fetcher result"),Nn(N)){let R=fr(s.matches,D?.route.id);g&&g[R.route.id]||(g={...g,[R.route.id]:N.error}),s.fetchers.delete(y)}else if(ti(N))at(!1,"Unhandled fetcher revalidation redirect");else{let R=No(N.data);s.fetchers.set(y,R)}}),{loaderData:h,errors:g}}function MS(s,o,l,c){let u=Object.entries(o).filter(([,d])=>d!==zw).reduce((d,[h,g])=>(d[h]=g,d),{});for(let d of l){let h=d.route.id;if(!o.hasOwnProperty(h)&&s.hasOwnProperty(h)&&d.route.loader&&(u[h]=s[h]),c&&c.hasOwnProperty(h))break}return u}function zS(s){return s?Nn(s[1])?{actionData:{}}:{actionData:{[s[0]]:s[1].data}}:{}}function fr(s,o){return(o?s.slice(0,s.findIndex(c=>c.route.id===o)+1):[...s]).reverse().find(c=>c.route.hasErrorBoundary===!0)||s[0]}function Uf(s){let o=s.length===1?s[0]:s.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:o}],route:o}}function $n(s,{pathname:o,routeId:l,method:c,type:u,message:d}={}){let h="Unknown Server Error",g="Unknown @remix-run/router error";return s===400?(h="Bad Request",c&&o&&l?g=`You made a ${c} request to "${o}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:u==="invalid-body"&&(g="Unable to encode submission body")):s===403?(h="Forbidden",g=`Route "${l}" does not match URL "${o}"`):s===404?(h="Not Found",g=`No route matches URL "${o}"`):s===405&&(h="Method Not Allowed",c&&o&&l?g=`You made a ${c.toUpperCase()} request to "${o}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:c&&(g=`Invalid request method "${c.toUpperCase()}"`)),new cu(s||500,h,new Error(g),!0)}function Cf(s){let o=Object.entries(s);for(let l=o.length-1;l>=0;l--){let[c,u]=o[l];if(ti(u))return{key:c,result:u}}}function Gw(s){let o=typeof s=="string"?wo(s):s;return qs({...o,hash:""})}function gU(s,o){return s.pathname!==o.pathname||s.search!==o.search?!1:s.hash===""?o.hash!=="":s.hash===o.hash?!0:o.hash!==""}function bU(s){return new cu(s.init?.status??500,s.init?.statusText??"Internal Server Error",s.data)}function yU(s){return s!=null&&typeof s=="object"&&Object.entries(s).every(([o,l])=>typeof o=="string"&&vU(l))}function vU(s){return s!=null&&typeof s=="object"&&"type"in s&&"result"in s&&(s.type==="data"||s.type==="error")}function xU(s){return cb(s.result)&&Vw.has(s.result.status)}function Nn(s){return s.type==="error"}function ti(s){return(s&&s.type)==="redirect"}function LS(s){return typeof s=="object"&&s!=null&&"type"in s&&"data"in s&&"init"in s&&s.type==="DataWithResponseInit"}function cb(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.headers=="object"&&typeof s.body<"u"}function NU(s){return Vw.has(s)}function SU(s){return cb(s)&&NU(s.status)&&s.headers.has("Location")}function wU(s){return Wk.has(s.toUpperCase())}function ja(s){return Jk.has(s.toUpperCase())}function ub(s){return new URLSearchParams(s).getAll("index").some(o=>o==="")}function Vf(s,o){let l=typeof o=="string"?wo(o).search:o.search;if(s[s.length-1].route.index&&ub(l||""))return s[s.length-1];let c=Cw(s);return c[c.length-1]}function HS(s){let{formMethod:o,formAction:l,formEncType:c,text:u,formData:d,json:h}=s;if(!(!o||!l||!c)){if(u!=null)return{formMethod:o,formAction:l,formEncType:c,formData:void 0,json:void 0,text:u};if(d!=null)return{formMethod:o,formAction:l,formEncType:c,formData:d,json:void 0,text:void 0};if(h!==void 0)return{formMethod:o,formAction:l,formEncType:c,formData:void 0,json:h,text:void 0}}}function $g(s,o){return o?{state:"loading",location:s,formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}:{state:"loading",location:s,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function EU(s,o){return{state:"submitting",location:s,formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}}function Ic(s,o){return s?{state:"loading",formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text,data:o}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:o}}function DU(s,o){return{state:"submitting",formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text,data:o?o.data:void 0}}function No(s){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:s}}function RU(s,o){try{let l=s.sessionStorage.getItem(Mw);if(l){let c=JSON.parse(l);for(let[u,d]of Object.entries(c||{}))d&&Array.isArray(d)&&o.set(u,new Set(d||[]))}}catch{}}function _U(s,o){if(o.size>0){let l={};for(let[c,u]of o)l[c]=[...u];try{s.sessionStorage.setItem(Mw,JSON.stringify(l))}catch(c){It(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function BS(){let s,o,l=new Promise((c,u)=>{s=async d=>{c(d);try{await l}catch{}},o=async d=>{u(d);try{await l}catch{}}});return{promise:l,resolve:s,reject:o}}var si=w.createContext(null);si.displayName="DataRouter";var du=w.createContext(null);du.displayName="DataRouterState";var Iw=w.createContext(!1);function kU(){return w.useContext(Iw)}var db=w.createContext({isTransitioning:!1});db.displayName="ViewTransition";var Fw=w.createContext(new Map);Fw.displayName="Fetchers";var UU=w.createContext(null);UU.displayName="Await";var Sn=w.createContext(null);Sn.displayName="Navigation";var If=w.createContext(null);If.displayName="Location";var Gn=w.createContext({outlet:null,matches:[],isDataRoute:!1});Gn.displayName="Route";var fb=w.createContext(null);fb.displayName="RouteError";var Xw="REACT_ROUTER_ERROR",CU="REDIRECT",TU="ROUTE_ERROR_RESPONSE";function jU(s){if(s.startsWith(`${Xw}:${CU}:{`))try{let o=JSON.parse(s.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function OU(s){if(s.startsWith(`${Xw}:${TU}:{`))try{let o=JSON.parse(s.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new cu(o.status,o.statusText,o.data)}catch{}}function AU(s,{relative:o}={}){at(fl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:c}=w.useContext(Sn),{hash:u,pathname:d,search:h}=fu(s,{relative:o}),g=d;return l!=="/"&&(g=d==="/"?l:ls([l,d])),c.createHref({pathname:g,search:h,hash:u})}function fl(){return w.useContext(If)!=null}function cs(){return at(fl(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(If).location}var Qw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Zw(s){w.useContext(Sn).static||w.useLayoutEffect(s)}function hr(){let{isDataRoute:s}=w.useContext(Gn);return s?ZU():VU()}function VU(){at(fl(),"useNavigate() may be used only in the context of a <Router> component.");let s=w.useContext(si),{basename:o,navigator:l}=w.useContext(Sn),{matches:c}=w.useContext(Gn),{pathname:u}=cs(),d=JSON.stringify(Gf(c)),h=w.useRef(!1);return Zw(()=>{h.current=!0}),w.useCallback((b,y={})=>{if(It(h.current,Qw),!h.current)return;if(typeof b=="number"){l.go(b);return}let D=lu(b,JSON.parse(d),u,y.relative==="path");s==null&&o!=="/"&&(D.pathname=D.pathname==="/"?o:ls([o,D.pathname])),(y.replace?l.replace:l.push)(D,y.state,y)},[o,l,d,u,s])}var MU=w.createContext(null);function zU(s){let o=w.useContext(Gn).outlet;return w.useMemo(()=>o&&w.createElement(MU.Provider,{value:s},o),[o,s])}function Ff(){let{matches:s}=w.useContext(Gn),o=s[s.length-1];return o?o.params:{}}function fu(s,{relative:o}={}){let{matches:l}=w.useContext(Gn),{pathname:c}=cs(),u=JSON.stringify(Gf(l));return w.useMemo(()=>lu(s,JSON.parse(u),c,o==="path"),[s,u,c,o])}function LU(s,o,l){at(fl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=w.useContext(Sn),{matches:u}=w.useContext(Gn),d=u[u.length-1],h=d?d.params:{},g=d?d.pathname:"/",b=d?d.pathnameBase:"/",y=d&&d.route;{let L=y&&y.path||"";Jw(g,!y||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
237
+
238
+ Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let D=cs(),x;x=D;let N=x.pathname||"/",R=N;if(b!=="/"){let L=b.replace(/^\//,"").split("/");R="/"+N.replace(/^\//,"").split("/").slice(L.length).join("/")}let k=dr(s,{pathname:R});return It(y||k!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),It(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),qU(k&&k.map(L=>Object.assign({},L,{params:Object.assign({},h,L.params),pathname:ls([b,c.encodeLocation?c.encodeLocation(L.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?b:ls([b,c.encodeLocation?c.encodeLocation(L.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),u,l)}function HU(){let s=QU(),o=su(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),l=s instanceof Error?s.stack:null,c="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",s),h=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:d},"ErrorBoundary")," or"," ",w.createElement("code",{style:d},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},o),l?w.createElement("pre",{style:u},l):null,h)}var BU=w.createElement(HU,null),Pw=class extends w.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,o){return o.location!==s.location||o.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:o.error,location:o.location,revalidation:s.revalidation||o.revalidation}}componentDidCatch(s,o){this.props.onError?this.props.onError(s,o):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const l=OU(s.digest);l&&(s=l)}let o=s!==void 0?w.createElement(Gn.Provider,{value:this.props.routeContext},w.createElement(fb.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?w.createElement($U,{error:s},o):o}};Pw.contextType=Iw;var Yg=new WeakMap;function $U({children:s,error:o}){let{basename:l}=w.useContext(Sn);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let c=jU(o.digest);if(c){let u=Yg.get(o);if(u)throw u;let d=jw(c.location,l);if(Tw&&!Yg.get(o))if(d.isExternal||c.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:c.replace}));throw Yg.set(o,h),h}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return s}function YU({routeContext:s,match:o,children:l}){let c=w.useContext(si);return c&&c.static&&c.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=o.route.id),w.createElement(Gn.Provider,{value:s},l)}function qU(s,o=[],l){let c=l?.state;if(s==null){if(!c)return null;if(c.errors)s=c.matches;else if(o.length===0&&!c.initialized&&c.matches.length>0)s=c.matches;else return null}let u=s,d=c?.errors;if(d!=null){let D=u.findIndex(x=>x.route.id&&d?.[x.route.id]!==void 0);at(D>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),u=u.slice(0,Math.min(u.length,D+1))}let h=!1,g=-1;if(l&&c){h=c.renderFallback;for(let D=0;D<u.length;D++){let x=u[D];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(g=D),x.route.id){let{loaderData:N,errors:R}=c,k=x.route.loader&&!N.hasOwnProperty(x.route.id)&&(!R||R[x.route.id]===void 0);if(x.route.lazy||k){l.isStatic&&(h=!0),g>=0?u=u.slice(0,g+1):u=[u[0]];break}}}}let b=l?.onError,y=c&&b?(D,x)=>{b(D,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:uu(c.matches),errorInfo:x})}:void 0;return u.reduceRight((D,x,N)=>{let R,k=!1,B=null,L=null;c&&(R=d&&x.route.id?d[x.route.id]:void 0,B=x.route.errorElement||BU,h&&(g<0&&N===0?(Jw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,L=null):g===N&&(k=!0,L=x.route.hydrateFallbackElement||null)));let F=o.concat(u.slice(0,N+1)),Q=()=>{let ee;return R?ee=B:k?ee=L:x.route.Component?ee=w.createElement(x.route.Component,null):x.route.element?ee=x.route.element:ee=D,w.createElement(YU,{match:x,routeContext:{outlet:D,matches:F,isDataRoute:c!=null},children:ee})};return c&&(x.route.ErrorBoundary||x.route.errorElement||N===0)?w.createElement(Pw,{location:c.location,revalidation:c.revalidation,component:B,error:R,children:Q(),routeContext:{outlet:null,matches:F,isDataRoute:!0},onError:y}):Q()},null)}function mb(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function GU(s){let o=w.useContext(si);return at(o,mb(s)),o}function IU(s){let o=w.useContext(du);return at(o,mb(s)),o}function FU(s){let o=w.useContext(Gn);return at(o,mb(s)),o}function pb(s){let o=FU(s),l=o.matches[o.matches.length-1];return at(l.route.id,`${s} can only be used on routes that contain a unique "id"`),l.route.id}function XU(){return pb("useRouteId")}function QU(){let s=w.useContext(fb),o=IU("useRouteError"),l=pb("useRouteError");return s!==void 0?s:o.errors?.[l]}function ZU(){let{router:s}=GU("useNavigate"),o=pb("useNavigate"),l=w.useRef(!1);return Zw(()=>{l.current=!0}),w.useCallback(async(u,d={})=>{It(l.current,Qw),l.current&&(typeof u=="number"?await s.navigate(u):await s.navigate(u,{fromRouteId:o,...d}))},[s,o])}var $S={};function Jw(s,o,l){!o&&!$S[s]&&($S[s]=!0,It(!1,l))}var YS={};function qS(s,o){!s&&!YS[o]&&(YS[o]=!0,console.warn(o))}var PU="useOptimistic",GS=R_[PU],JU=()=>{};function KU(s){return GS?GS(s):[s,JU]}function WU(s){let o={hasErrorBoundary:s.hasErrorBoundary||s.ErrorBoundary!=null||s.errorElement!=null};return s.Component&&(s.element&&It(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(o,{element:w.createElement(s.Component),Component:void 0})),s.HydrateFallback&&(s.hydrateFallbackElement&&It(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(o,{hydrateFallbackElement:w.createElement(s.HydrateFallback),HydrateFallback:void 0})),s.ErrorBoundary&&(s.errorElement&&It(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(o,{errorElement:w.createElement(s.ErrorBoundary),ErrorBoundary:void 0})),o}var eC=["HydrateFallback","hydrateFallbackElement"],tC=class{constructor(){this.status="pending",this.promise=new Promise((s,o)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",s(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",o(l))}})}};function aC({router:s,flushSync:o,onError:l,unstable_useTransitions:c}){c=kU()||c;let[d,h]=w.useState(s.state),[g,b]=KU(d),[y,D]=w.useState(),[x,N]=w.useState({isTransitioning:!1}),[R,k]=w.useState(),[B,L]=w.useState(),[F,Q]=w.useState(),ee=w.useRef(new Map),ue=w.useCallback((_,{deletedFetchers:P,newErrors:H,flushSync:me,viewTransitionOpts:W})=>{H&&l&&Object.values(H).forEach(ie=>l(ie,{location:_.location,params:_.matches[0]?.params??{},unstable_pattern:uu(_.matches)})),_.fetchers.forEach((ie,Ee)=>{ie.data!==void 0&&ee.current.set(Ee,ie.data)}),P.forEach(ie=>ee.current.delete(ie)),qS(me===!1||o!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let X=s.window!=null&&s.window.document!=null&&typeof s.window.document.startViewTransition=="function";if(qS(W==null||X,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!W||!X){o&&me?o(()=>h(_)):c===!1?h(_):w.startTransition(()=>{c===!0&&b(ie=>IS(ie,_)),h(_)});return}if(o&&me){o(()=>{B&&(R?.resolve(),B.skipTransition()),N({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let ie=s.window.document.startViewTransition(()=>{o(()=>h(_))});ie.finished.finally(()=>{o(()=>{k(void 0),L(void 0),D(void 0),N({isTransitioning:!1})})}),o(()=>L(ie));return}B?(R?.resolve(),B.skipTransition(),Q({state:_,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(D(_),N({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[s.window,o,B,R,c,b,l]);w.useLayoutEffect(()=>s.subscribe(ue),[s,ue]),w.useEffect(()=>{x.isTransitioning&&!x.flushSync&&k(new tC)},[x]),w.useEffect(()=>{if(R&&y&&s.window){let _=y,P=R.promise,H=s.window.document.startViewTransition(async()=>{c===!1?h(_):w.startTransition(()=>{c===!0&&b(me=>IS(me,_)),h(_)}),await P});H.finished.finally(()=>{k(void 0),L(void 0),D(void 0),N({isTransitioning:!1})}),L(H)}},[y,R,s.window,c,b]),w.useEffect(()=>{R&&y&&g.location.key===y.location.key&&R.resolve()},[R,B,g.location,y]),w.useEffect(()=>{!x.isTransitioning&&F&&(D(F.state),N({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}),Q(void 0))},[x.isTransitioning,F]);let re=w.useMemo(()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:_=>s.navigate(_),push:(_,P,H)=>s.navigate(_,{state:P,preventScrollReset:H?.preventScrollReset}),replace:(_,P,H)=>s.navigate(_,{replace:!0,state:P,preventScrollReset:H?.preventScrollReset})}),[s]),ne=s.basename||"/",te=w.useMemo(()=>({router:s,navigator:re,static:!1,basename:ne,onError:l}),[s,re,ne,l]);return w.createElement(w.Fragment,null,w.createElement(si.Provider,{value:te},w.createElement(du.Provider,{value:g},w.createElement(Fw.Provider,{value:ee.current},w.createElement(db.Provider,{value:x},w.createElement(oC,{basename:ne,location:g.location,navigationType:g.historyAction,navigator:re,unstable_useTransitions:c},w.createElement(nC,{routes:s.routes,future:s.future,state:g,isStatic:!1,onError:l})))))),null)}function IS(s,o){return{...s,navigation:o.navigation.state!=="idle"?o.navigation:s.navigation,revalidation:o.revalidation!=="idle"?o.revalidation:s.revalidation,actionData:o.navigation.state!=="submitting"?o.actionData:s.actionData,fetchers:o.fetchers}}var nC=w.memo(sC);function sC({routes:s,future:o,state:l,isStatic:c,onError:u}){return LU(s,void 0,{state:l,isStatic:c,onError:u})}function FS({to:s,replace:o,state:l,relative:c}){at(fl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=w.useContext(Sn);It(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=w.useContext(Gn),{pathname:h}=cs(),g=hr(),b=lu(s,Gf(d),h,c==="path"),y=JSON.stringify(b);return w.useEffect(()=>{g(JSON.parse(y),{replace:o,state:l,relative:c})},[g,y,c,o,l]),null}function Kw(s){return zU(s.context)}function oC({basename:s="/",children:o=null,location:l,navigationType:c="POP",navigator:u,static:d=!1,unstable_useTransitions:h}){at(!fl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=s.replace(/^\/*/,"/"),b=w.useMemo(()=>({basename:g,navigator:u,static:d,unstable_useTransitions:h,future:{}}),[g,u,d,h]);typeof l=="string"&&(l=wo(l));let{pathname:y="/",search:D="",hash:x="",state:N=null,key:R="default",unstable_mask:k}=l,B=w.useMemo(()=>{let L=qn(y,g);return L==null?null:{location:{pathname:L,search:D,hash:x,state:N,key:R,unstable_mask:k},navigationType:c}},[g,y,D,x,N,R,c,k]);return It(B!=null,`<Router basename="${g}"> is not able to match the URL "${y}${D}${x}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:w.createElement(Sn.Provider,{value:b},w.createElement(If.Provider,{children:o,value:B}))}var Mf="get",zf="application/x-www-form-urlencoded";function Xf(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function rC(s){return Xf(s)&&s.tagName.toLowerCase()==="button"}function iC(s){return Xf(s)&&s.tagName.toLowerCase()==="form"}function lC(s){return Xf(s)&&s.tagName.toLowerCase()==="input"}function cC(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function uC(s,o){return s.button===0&&(!o||o==="_self")&&!cC(s)}function tb(s=""){return new URLSearchParams(typeof s=="string"||Array.isArray(s)||s instanceof URLSearchParams?s:Object.keys(s).reduce((o,l)=>{let c=s[l];return o.concat(Array.isArray(c)?c.map(u=>[l,u]):[[l,c]])},[]))}function dC(s,o){let l=tb(s);return o&&o.forEach((c,u)=>{l.has(u)||o.getAll(u).forEach(d=>{l.append(u,d)})}),l}var Tf=null;function fC(){if(Tf===null)try{new FormData(document.createElement("form"),0),Tf=!1}catch{Tf=!0}return Tf}var mC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qg(s){return s!=null&&!mC.has(s)?(It(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zf}"`),null):s}function pC(s,o){let l,c,u,d,h;if(iC(s)){let g=s.getAttribute("action");c=g?qn(g,o):null,l=s.getAttribute("method")||Mf,u=qg(s.getAttribute("enctype"))||zf,d=new FormData(s)}else if(rC(s)||lC(s)&&(s.type==="submit"||s.type==="image")){let g=s.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=s.getAttribute("formaction")||g.getAttribute("action");if(c=b?qn(b,o):null,l=s.getAttribute("formmethod")||g.getAttribute("method")||Mf,u=qg(s.getAttribute("formenctype"))||qg(g.getAttribute("enctype"))||zf,d=new FormData(g,s),!fC()){let{name:y,type:D,value:x}=s;if(D==="image"){let N=y?`${y}.`:"";d.append(`${N}x`,"0"),d.append(`${N}y`,"0")}else y&&d.append(y,x)}}else{if(Xf(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=Mf,c=null,u=zf,h=s}return d&&u==="text/plain"&&(h=d,d=void 0),{action:c,method:l.toLowerCase(),encType:u,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function hb(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function hC(s,o,l,c){let u=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return l?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${c}`:u.pathname=`${u.pathname}.${c}`:u.pathname==="/"?u.pathname=`_root.${c}`:o&&qn(u.pathname,o)==="/"?u.pathname=`${o.replace(/\/$/,"")}/_root.${c}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${c}`,u}async function gC(s,o){if(s.id in o)return o[s.id];try{let l=await import(s.module);return o[s.id]=l,l}catch(l){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bC(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function yC(s,o,l){let c=await Promise.all(s.map(async u=>{let d=o.routes[u.route.id];if(d){let h=await gC(d,l);return h.links?h.links():[]}return[]}));return SC(c.flat(1).filter(bC).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function XS(s,o,l,c,u,d){let h=(b,y)=>l[y]?b.route.id!==l[y].route.id:!0,g=(b,y)=>l[y].pathname!==b.pathname||l[y].route.path?.endsWith("*")&&l[y].params["*"]!==b.params["*"];return d==="assets"?o.filter((b,y)=>h(b,y)||g(b,y)):d==="data"?o.filter((b,y)=>{let D=c.routes[b.route.id];if(!D||!D.hasLoader)return!1;if(h(b,y)||g(b,y))return!0;if(b.route.shouldRevalidate){let x=b.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(s,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function vC(s,o,{includeHydrateFallback:l}={}){return xC(s.map(c=>{let u=o.routes[c.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),l&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function xC(s){return[...new Set(s)]}function NC(s){let o={},l=Object.keys(s).sort();for(let c of l)o[c]=s[c];return o}function SC(s,o){let l=new Set;return new Set(o),s.reduce((c,u)=>{let d=JSON.stringify(NC(u));return l.has(d)||(l.add(d),c.push({key:d,link:u})),c},[])}function Ww(){let s=w.useContext(si);return hb(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function wC(){let s=w.useContext(du);return hb(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var gb=w.createContext(void 0);gb.displayName="FrameworkContext";function e4(){let s=w.useContext(gb);return hb(s,"You must render this element inside a <HydratedRouter> element"),s}function EC(s,o){let l=w.useContext(gb),[c,u]=w.useState(!1),[d,h]=w.useState(!1),{onFocus:g,onBlur:b,onMouseEnter:y,onMouseLeave:D,onTouchStart:x}=o,N=w.useRef(null);w.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let B=F=>{F.forEach(Q=>{h(Q.isIntersecting)})},L=new IntersectionObserver(B,{threshold:.5});return N.current&&L.observe(N.current),()=>{L.disconnect()}}},[s]),w.useEffect(()=>{if(c){let B=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(B)}}},[c]);let R=()=>{u(!0)},k=()=>{u(!1),h(!1)};return l?s!=="intent"?[d,N,{}]:[d,N,{onFocus:Fc(g,R),onBlur:Fc(b,k),onMouseEnter:Fc(y,R),onMouseLeave:Fc(D,k),onTouchStart:Fc(x,R)}]:[!1,N,{}]}function Fc(s,o){return l=>{s&&s(l),l.defaultPrevented||o(l)}}function DC({page:s,...o}){let{router:l}=Ww(),c=w.useMemo(()=>dr(l.routes,s,l.basename),[l.routes,s,l.basename]);return c?w.createElement(_C,{page:s,matches:c,...o}):null}function RC(s){let{manifest:o,routeModules:l}=e4(),[c,u]=w.useState([]);return w.useEffect(()=>{let d=!1;return yC(s,o,l).then(h=>{d||u(h)}),()=>{d=!0}},[s,o,l]),c}function _C({page:s,matches:o,...l}){let c=cs(),{future:u,manifest:d,routeModules:h}=e4(),{basename:g}=Ww(),{loaderData:b,matches:y}=wC(),D=w.useMemo(()=>XS(s,o,y,d,c,"data"),[s,o,y,d,c]),x=w.useMemo(()=>XS(s,o,y,d,c,"assets"),[s,o,y,d,c]),N=w.useMemo(()=>{if(s===c.pathname+c.search+c.hash)return[];let B=new Set,L=!1;if(o.forEach(Q=>{let ee=d.routes[Q.route.id];!ee||!ee.hasLoader||(!D.some(ue=>ue.route.id===Q.route.id)&&Q.route.id in b&&h[Q.route.id]?.shouldRevalidate||ee.hasClientLoader?L=!0:B.add(Q.route.id))}),B.size===0)return[];let F=hC(s,g,u.unstable_trailingSlashAwareDataRequests,"data");return L&&B.size>0&&F.searchParams.set("_routes",o.filter(Q=>B.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[F.pathname+F.search]},[g,u.unstable_trailingSlashAwareDataRequests,b,c,d,D,o,s,h]),R=w.useMemo(()=>vC(x,d),[x,d]),k=RC(x);return w.createElement(w.Fragment,null,N.map(B=>w.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...l})),R.map(B=>w.createElement("link",{key:B,rel:"modulepreload",href:B,...l})),k.map(({key:B,link:L})=>w.createElement("link",{key:B,nonce:l.nonce,...L,crossOrigin:L.crossOrigin??l.crossOrigin})))}function kC(...s){return o=>{s.forEach(l=>{typeof l=="function"?l(o):l!=null&&(l.current=o)})}}var UC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{UC&&(window.__reactRouterVersion="7.13.1")}catch{}function CC(s,o){return nU({basename:o?.basename,getContext:o?.getContext,future:o?.future,history:vk({window:o?.window}),hydrationData:TC(),routes:s,mapRouteProperties:WU,hydrationRouteProperties:eC,dataStrategy:o?.dataStrategy,patchRoutesOnNavigation:o?.patchRoutesOnNavigation,window:o?.window,unstable_instrumentations:o?.unstable_instrumentations}).initialize()}function TC(){let s=window?.__staticRouterHydrationData;return s&&s.errors&&(s={...s,errors:jC(s.errors)}),s}function jC(s){if(!s)return null;let o=Object.entries(s),l={};for(let[c,u]of o)if(u&&u.__type==="RouteErrorResponse")l[c]=new cu(u.status,u.statusText,u.data,u.internal===!0);else if(u&&u.__type==="Error"){if(u.__subType){let d=window[u.__subType];if(typeof d=="function")try{let h=new d(u.message);h.stack="",l[c]=h}catch{}}if(l[c]==null){let d=new Error(u.message);d.stack="",l[c]=d}}else l[c]=u;return l}var t4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sn=w.forwardRef(function({onClick:o,discover:l="render",prefetch:c="none",relative:u,reloadDocument:d,replace:h,unstable_mask:g,state:b,target:y,to:D,preventScrollReset:x,viewTransition:N,unstable_defaultShouldRevalidate:R,...k},B){let{basename:L,navigator:F,unstable_useTransitions:Q}=w.useContext(Sn),ee=typeof D=="string"&&t4.test(D),ue=jw(D,L);D=ue.to;let re=AU(D,{relative:u}),ne=cs(),te=null;if(g){let Ee=lu(g,[],ne.unstable_mask?ne.unstable_mask.pathname:"/",!0);L!=="/"&&(Ee.pathname=Ee.pathname==="/"?L:ls([L,Ee.pathname])),te=F.createHref(Ee)}let[_,P,H]=EC(c,k),me=VC(D,{replace:h,unstable_mask:g,state:b,target:y,preventScrollReset:x,relative:u,viewTransition:N,unstable_defaultShouldRevalidate:R,unstable_useTransitions:Q});function W(Ee){o&&o(Ee),Ee.defaultPrevented||me(Ee)}let X=!(ue.isExternal||d),ie=w.createElement("a",{...k,...H,href:(X?te:void 0)||ue.absoluteURL||re,onClick:X?W:o,ref:kC(B,P),target:y,"data-discover":!ee&&l==="render"?"true":void 0});return _&&!ee?w.createElement(w.Fragment,null,ie,w.createElement(DC,{page:re})):ie});sn.displayName="Link";var ou=w.forwardRef(function({"aria-current":o="page",caseSensitive:l=!1,className:c="",end:u=!1,style:d,to:h,viewTransition:g,children:b,...y},D){let x=fu(h,{relative:y.relative}),N=cs(),R=w.useContext(du),{navigator:k,basename:B}=w.useContext(Sn),L=R!=null&&BC(x)&&g===!0,F=k.encodeLocation?k.encodeLocation(x).pathname:x.pathname,Q=N.pathname,ee=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;l||(Q=Q.toLowerCase(),ee=ee?ee.toLowerCase():null,F=F.toLowerCase()),ee&&B&&(ee=qn(ee,B)||ee);const ue=F!=="/"&&F.endsWith("/")?F.length-1:F.length;let re=Q===F||!u&&Q.startsWith(F)&&Q.charAt(ue)==="/",ne=ee!=null&&(ee===F||!u&&ee.startsWith(F)&&ee.charAt(F.length)==="/"),te={isActive:re,isPending:ne,isTransitioning:L},_=re?o:void 0,P;typeof c=="function"?P=c(te):P=[c,re?"active":null,ne?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let H=typeof d=="function"?d(te):d;return w.createElement(sn,{...y,"aria-current":_,className:P,ref:D,style:H,to:h,viewTransition:g},typeof b=="function"?b(te):b)});ou.displayName="NavLink";var OC=w.forwardRef(({discover:s="render",fetcherKey:o,navigate:l,reloadDocument:c,replace:u,state:d,method:h=Mf,action:g,onSubmit:b,relative:y,preventScrollReset:D,viewTransition:x,unstable_defaultShouldRevalidate:N,...R},k)=>{let{unstable_useTransitions:B}=w.useContext(Sn),L=LC(),F=HC(g,{relative:y}),Q=h.toLowerCase()==="get"?"get":"post",ee=typeof g=="string"&&t4.test(g),ue=re=>{if(b&&b(re),re.defaultPrevented)return;re.preventDefault();let ne=re.nativeEvent.submitter,te=ne?.getAttribute("formmethod")||h,_=()=>L(ne||re.currentTarget,{fetcherKey:o,method:te,navigate:l,replace:u,state:d,relative:y,preventScrollReset:D,viewTransition:x,unstable_defaultShouldRevalidate:N});B&&l!==!1?w.startTransition(()=>_()):_()};return w.createElement("form",{ref:k,method:Q,action:F,onSubmit:c?b:ue,...R,"data-discover":!ee&&s==="render"?"true":void 0})});OC.displayName="Form";function AC(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function a4(s){let o=w.useContext(si);return at(o,AC(s)),o}function VC(s,{target:o,replace:l,unstable_mask:c,state:u,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:b,unstable_useTransitions:y}={}){let D=hr(),x=cs(),N=fu(s,{relative:h});return w.useCallback(R=>{if(uC(R,o)){R.preventDefault();let k=l!==void 0?l:qs(x)===qs(N),B=()=>D(s,{replace:k,unstable_mask:c,state:u,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:b});y?w.startTransition(()=>B()):B()}},[x,D,N,l,c,u,o,s,d,h,g,b,y])}function n4(s){It(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let o=w.useRef(tb(s)),l=w.useRef(!1),c=cs(),u=w.useMemo(()=>dC(c.search,l.current?null:o.current),[c.search]),d=hr(),h=w.useCallback((g,b)=>{const y=tb(typeof g=="function"?g(new URLSearchParams(u)):g);l.current=!0,d("?"+y,b)},[d,u]);return[u,h]}var MC=0,zC=()=>`__${String(++MC)}__`;function LC(){let{router:s}=a4("useSubmit"),{basename:o}=w.useContext(Sn),l=XU(),c=s.fetch,u=s.navigate;return w.useCallback(async(d,h={})=>{let{action:g,method:b,encType:y,formData:D,body:x}=pC(d,o);if(h.navigate===!1){let N=h.fetcherKey||zC();await c(N,l,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:x,formMethod:h.method||b,formEncType:h.encType||y,flushSync:h.flushSync})}else await u(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:x,formMethod:h.method||b,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:l,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,u,o,l])}function HC(s,{relative:o}={}){let{basename:l}=w.useContext(Sn),c=w.useContext(Gn);at(c,"useFormAction must be used inside a RouteContext");let[u]=c.matches.slice(-1),d={...fu(s||".",{relative:o})},h=cs();if(s==null){d.search=h.search;let g=new URLSearchParams(d.search),b=g.getAll("index");if(b.some(D=>D==="")){g.delete("index"),b.filter(x=>x).forEach(x=>g.append("index",x));let D=g.toString();d.search=D?`?${D}`:""}}return(!s||s===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(d.pathname=d.pathname==="/"?l:ls([l,d.pathname])),qs(d)}function BC(s,{relative:o}={}){let l=w.useContext(db);at(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=a4("useViewTransitionState"),u=fu(s,{relative:o});if(!l.isTransitioning)return!1;let d=qn(l.currentLocation.pathname,c)||l.currentLocation.pathname,h=qn(l.nextLocation.pathname,c)||l.nextLocation.pathname;return $f(u.pathname,h)!=null||$f(u.pathname,d)!=null}const s4=(...s)=>s.filter((o,l,c)=>!!o&&o.trim()!==""&&c.indexOf(o)===l).join(" ").trim();const $C=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const YC=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,l,c)=>c?c.toUpperCase():l.toLowerCase());const QS=s=>{const o=YC(s);return o.charAt(0).toUpperCase()+o.slice(1)};var qC={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"};const GC=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const IC=w.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:u="",children:d,iconNode:h,...g},b)=>w.createElement("svg",{ref:b,...qC,width:o,height:o,stroke:s,strokeWidth:c?Number(l)*24/Number(o):l,className:s4("lucide",u),...!d&&!GC(g)&&{"aria-hidden":"true"},...g},[...h.map(([y,D])=>w.createElement(y,D)),...Array.isArray(d)?d:[d]]));const Qe=(s,o)=>{const l=w.forwardRef(({className:c,...u},d)=>w.createElement(IC,{ref:d,iconNode:o,className:s4(`lucide-${$C(QS(s))}`,`lucide-${s}`,c),...u}));return l.displayName=QS(s),l};const FC=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],o4=Qe("arrow-right",FC);const XC=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],ZS=Qe("arrow-up-right",XC);const QC=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],ZC=Qe("boxes",QC);const PC=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],JC=Qe("brain",PC);const KC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ul=Qe("check",KC);const WC=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qf=Qe("chevron-down",WC);const eT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],So=Qe("chevron-right",eT);const tT=[["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"}]],bb=Qe("circle-alert",tT);const aT=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],PS=Qe("copy",aT);const nT=[["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"}]],sT=Qe("database",nT);const oT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],rT=Qe("file-spreadsheet",oT);const iT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],pr=Qe("file-text",iT);const lT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],r4=Qe("file",lT);const cT=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],uT=Qe("files",cT);const dT=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 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.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],yb=Qe("folder-git-2",dT);const fT=[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]],mT=Qe("folder-input",fT);const pT=[["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"}]],hT=Qe("folder-open",pT);const gT=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],i4=Qe("folder-plus",gT);const bT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Yn=Qe("folder",bT);const yT=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Yf=Qe("git-branch",yT);const vT=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],ab=Qe("git-commit-horizontal",vT);const xT=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],nb=Qe("github",xT);const NT=[["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"}]],ST=Qe("globe",NT);const wT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ET=Qe("info",wT);const DT=[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]],RT=Qe("list-filter",DT);const _T=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Oa=Qe("loader-circle",_T);const kT=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],UT=Qe("menu",kT);const CT=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],TT=Qe("monitor",CT);const jT=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],OT=Qe("moon",jT);const AT=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],dl=Qe("package",AT);const VT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],MT=Qe("panel-left",VT);const zT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],sb=Qe("pencil",zT);const LT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],l4=Qe("plus",LT);const HT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],BT=Qe("refresh-cw",HT);const $T=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],YT=Qe("search",$T);const qT=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],GT=Qe("settings",qT);const IT=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],FT=Qe("share-2",IT);const XT=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],QT=Qe("sparkles",XT);const ZT=[["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"}]],PT=Qe("sun",ZT);const JT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],c4=Qe("trash-2",JT);const KT=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ob=Qe("upload",KT);const WT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],ej=Qe("users",WT);const tj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Zf=Qe("x",tj),JS=s=>{let o;const l=new Set,c=(y,D)=>{const x=typeof y=="function"?y(o):y;if(!Object.is(x,o)){const N=o;o=D??(typeof x!="object"||x===null)?x:Object.assign({},o,x),l.forEach(R=>R(o,N))}},u=()=>o,g={setState:c,getState:u,getInitialState:()=>b,subscribe:y=>(l.add(y),()=>l.delete(y))},b=o=s(c,u,g);return g},aj=(s=>s?JS(s):JS),nj=s=>s;function sj(s,o=nj){const l=il.useSyncExternalStore(s.subscribe,il.useCallback(()=>o(s.getState()),[s,o]),il.useCallback(()=>o(s.getInitialState()),[s,o]));return il.useDebugValue(l),l}const KS=s=>{const o=aj(s),l=c=>sj(o,c);return Object.assign(l,o),l},Pf=(s=>s?KS(s):KS),oj="/api/v1";class Jc extends Error{constructor(o,l,c){super(c),this.status=o,this.code=l,this.name="ApiError"}}async function jf(s,o,l,c){let u=`${oj}${o}`;if(c){const g=new URLSearchParams(c).toString();g&&(u+=`?${g}`)}const d={method:s,headers:{"Content-Type":"application/json"}};l!==void 0&&(d.body=JSON.stringify(l));const h=await fetch(u,d);if(!h.ok){let g="UNKNOWN",b=h.statusText;try{const y=await h.json();y.code&&(g=y.code),y.message&&(b=y.message)}catch{}throw new Jc(h.status,g,b)}return h.json()}const ba={get(s,o){return jf("GET",s,void 0,o)},post(s,o){return jf("POST",s,o)},put(s,o){return jf("PUT",s,o)},delete(s){return jf("DELETE",s)}},rj=3e4,ij=1e3,lj=3e4;class cj{ws=null;url="";handlers=new Map;statusHandlers=new Set;heartbeatTimer=null;reconnectTimer=null;reconnectAttempt=0;intentionalClose=!1;_status="disconnected";get status(){return this._status}setStatus(o){this._status=o;for(const l of this.statusHandlers)l(o)}onStatusChange(o){return this.statusHandlers.add(o),()=>{this.statusHandlers.delete(o)}}connect(o){this.url=o,this.intentionalClose=!1,this.reconnectAttempt=0,this.open()}disconnect(){this.intentionalClose=!0,this.clearTimers(),this.ws&&(this.ws.close(),this.ws=null),this.setStatus("disconnected")}on(o,l){let c=this.handlers.get(o);return c||(c=new Set,this.handlers.set(o,c)),c.add(l),()=>{c.delete(l),c.size===0&&this.handlers.delete(o)}}send(o,l){if(this.ws?.readyState!==WebSocket.OPEN)return;const c={event:o,payload:l,timestamp:Date.now()};this.ws.send(JSON.stringify(c))}open(){this.setStatus("connecting");const o=new WebSocket(this.url);o.onopen=()=>{this.reconnectAttempt=0,this.setStatus("connected"),this.startHeartbeat()},o.onmessage=l=>{try{const c=JSON.parse(String(l.data));if(c.event==="pong")return;const u=this.handlers.get(c.event);if(u)for(const d of u)d(c.payload)}catch{}},o.onclose=()=>{this.stopHeartbeat(),this.intentionalClose||(this.setStatus("reconnecting"),this.scheduleReconnect())},o.onerror=()=>{},this.ws=o}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({event:"ping",payload:null,timestamp:Date.now()}))},rj)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const o=Math.min(ij*2**this.reconnectAttempt,lj);this.reconnectAttempt++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.open()},o)}clearTimers(){this.stopHeartbeat(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}}const Gs=new cj,ni=Pf(s=>({status:"disconnected",onlineCount:0,connections:[],setStatus:o=>s({status:o}),fetchDaemonStatus:async()=>{try{const o=await ba.get("/daemons/status");s({onlineCount:o.online_count,connections:o.connections})}catch{}}})),uj=s=>s==="connecting"?"disconnected":s;Gs.onStatusChange(s=>{ni.getState().setStatus(uj(s))});Gs.on("ws:daemon:connected",s=>{const o=s;ni.setState(l=>{if(l.connections.some(h=>h.machine_id===o.machine_id))return l;const u={machine_id:o.machine_id};o.lib_id&&(u.lib_id=o.lib_id);const d=[...l.connections,u];return{connections:d,onlineCount:d.length}})});Gs.on("ws:daemon:status",s=>{const o=s;ni.setState(l=>{if(o.is_online){if(l.connections.some(g=>g.machine_id===o.machine_id))return l;const d={machine_id:o.machine_id};o.lib_id&&(d.lib_id=o.lib_id);const h=[...l.connections,d];return{connections:h,onlineCount:h.length}}const c=l.connections.filter(u=>u.machine_id!==o.machine_id);return{connections:c,onlineCount:c.length}})});const ru="lib_cloud_default",Aa=Pf((s,o)=>({libraries:[],loading:!1,error:null,fetchLibraries:async()=>{s({loading:!0,error:null});try{const l=await ba.get("/libraries");s({libraries:l,loading:!1})}catch(l){s({error:l instanceof Error?l.message:"Failed to load libraries",loading:!1})}},createLibrary:async l=>{const c=await ba.post("/libraries",l);return s(u=>({libraries:[...u.libraries,c]})),c},deleteLibrary:async l=>{await ba.delete(`/libraries/${l}`),s(c=>({libraries:c.libraries.filter(u=>u.id!==l)}))},updateLibraryName:async(l,c)=>{const u=await ba.put(`/libraries/${l}`,{name:c});s(d=>({libraries:d.libraries.map(h=>h.id===l?u:h)}))},_updateLibraryOnline:(l,c)=>{s(u=>({libraries:u.libraries.map(d=>d.id===l?{...d,is_online:c}:d)}))},_refreshLibrary:async l=>{try{const c=await ba.get(`/libraries/${l}`);s(u=>({libraries:u.libraries.map(d=>d.id===l?c:d)}))}catch{o().fetchLibraries()}}})),mu=s=>{const o=s.libraries.filter(c=>c.type==="cloud").sort((c,u)=>c.created_at.localeCompare(u.created_at)),l=s.libraries.filter(c=>c.type==="daemon").sort((c,u)=>c.name.localeCompare(u.name));return[...o,...l]},dj=s=>s.libraries.filter(o=>o.type==="daemon");Gs.on("ws:daemon:status",s=>{const o=s;o.lib_id&&Aa.getState()._updateLibraryOnline(o.lib_id,o.is_online),Aa.getState().fetchLibraries()});Gs.on("ws:daemon:connected",s=>{const o=s;o.lib_id&&Aa.getState()._updateLibraryOnline(o.lib_id,!0),Aa.getState().fetchLibraries()});Gs.on("ws:library:updated",s=>{const o=s;Aa.getState()._refreshLibrary(o.library_id)});const WS=s=>Symbol.iterator in s,ew=s=>"entries"in s,tw=(s,o)=>{const l=s instanceof Map?s:new Map(s.entries()),c=o instanceof Map?o:new Map(o.entries());if(l.size!==c.size)return!1;for(const[u,d]of l)if(!c.has(u)||!Object.is(d,c.get(u)))return!1;return!0},fj=(s,o)=>{const l=s[Symbol.iterator](),c=o[Symbol.iterator]();let u=l.next(),d=c.next();for(;!u.done&&!d.done;){if(!Object.is(u.value,d.value))return!1;u=l.next(),d=c.next()}return!!u.done&&!!d.done};function mj(s,o){return Object.is(s,o)?!0:typeof s!="object"||s===null||typeof o!="object"||o===null||Object.getPrototypeOf(s)!==Object.getPrototypeOf(o)?!1:WS(s)&&WS(o)?ew(s)&&ew(o)?tw(s,o):fj(s,o):tw({entries:()=>Object.entries(s)},{entries:()=>Object.entries(o)})}function ml(s){const o=il.useRef(void 0);return l=>{const c=s(l);return mj(o.current,c)?o.current:o.current=c}}function rb(){const{t:s}=Ge(),o=ni(h=>h.onlineCount),l=ni(h=>h.connections.length);if(Aa(ml(dj)).length===0)return null;const u=o>0,d=u?s("sources.header.daemon_status",{online:o,total:l}):s("sources.header.all_offline");return m.jsxDEV("div",{className:"group relative flex items-center",title:d,children:[m.jsxDEV("span",{className:`inline-block h-[7px] w-[7px] rounded-full ${u?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:22,columnNumber:7},this),m.jsxDEV("span",{className:"pointer-events-none absolute right-full mr-2 hidden whitespace-nowrap rounded bg-c4a-bg-elevated px-2 py-1 font-mono text-xs text-c4a-text-secondary shadow-c4a-md group-hover:block",children:d},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:25,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:21,columnNumber:5},this)}const aw=[{to:"/",labelKey:"nav.home"},{to:"/studio",labelKey:"nav.studio"},{to:"/docs",labelKey:"nav.docs"}];function pj(){const{t:s}=Ge(),[o,l]=w.useState(!1);return m.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-base/95 backdrop-blur-sm",children:[m.jsxDEV("div",{className:"flex h-14 items-center justify-between px-4",children:[m.jsxDEV(sn,{to:"/",className:"flex items-center gap-2 text-c4a-text-primary",children:[m.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:22,columnNumber:11},this),m.jsxDEV("span",{className:"hidden font-mono text-sm font-semibold uppercase tracking-tight md:inline",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:25,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:21,columnNumber:9},this),m.jsxDEV("div",{className:"hidden items-center gap-6 md:flex",children:[m.jsxDEV("nav",{className:"flex items-center gap-4",children:aw.map(({to:c,labelKey:u})=>m.jsxDEV(ou,{to:c,end:c==="/",className:({isActive:d})=>`font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${d?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:s(u)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:34,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:32,columnNumber:11},this),m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(rb,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:51,columnNumber:13},this),m.jsxDEV(sn,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:s("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:52,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:31,columnNumber:9},this),m.jsxDEV("button",{onClick:()=>l(!o),className:"text-c4a-text-secondary md:hidden",children:o?m.jsxDEV(Zf,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:23},this):m.jsxDEV(UT,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:41},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:62,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:19,columnNumber:7},this),o&&m.jsxDEV("div",{className:"border-t border-c4a-border-subtle bg-c4a-bg-surface px-4 pb-4 pt-2 md:hidden",children:[m.jsxDEV("nav",{className:"flex flex-col gap-2",children:aw.map(({to:c,labelKey:u})=>m.jsxDEV(ou,{to:c,end:c==="/",onClick:()=>l(!1),className:({isActive:d})=>`block py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${d?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:s(u)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:75,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:73,columnNumber:11},this),m.jsxDEV("div",{className:"mt-2 border-t border-c4a-border-subtle pt-2",children:m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(rb,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:94,columnNumber:15},this),m.jsxDEV(sn,{to:"/login",onClick:()=>l(!1),className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:s("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:95,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:93,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:92,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:18,columnNumber:5},this)}function hj(s){return s==="system"&&typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s==="system"?"dark":s}function u4(s){if(typeof window>"u")return;const o=hj(s);document.documentElement.setAttribute("data-theme",o),localStorage.setItem("theme",s)}function gj(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}const d4=Pf(s=>({theme:gj(),setTheme:o=>{u4(o),s({theme:o})}}));let nw=!1;function bj(){if(nw||typeof window>"u")return;nw=!0;const s=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{const{theme:l}=d4.getState();l==="system"&&u4("system")};s.addEventListener("change",o)}bj();const yj=[{mode:"light",icon:PT,labelKey:"footer.theme.light"},{mode:"dark",icon:OT,labelKey:"footer.theme.dark"},{mode:"system",icon:TT,labelKey:"footer.theme.system"}];function f4(){const{t:s}=Ge(),{theme:o,setTheme:l}=d4();return m.jsxDEV("div",{className:"flex items-center gap-1",children:yj.map(({mode:c,icon:u,labelKey:d})=>m.jsxDEV("button",{onClick:()=>l(c),title:s(d),className:`cursor-pointer rounded p-1.5 transition-colors duration-150 ${o===c?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:m.jsxDEV(u,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:30,columnNumber:11},this)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:20,columnNumber:9},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:18,columnNumber:5},this)}function m4(){const{i18n:s}=Ge(),o=()=>{const l=s.language==="en"?"zh":"en";s.changeLanguage(l)};return m.jsxDEV("button",{onClick:o,className:"cursor-pointer rounded px-2 py-1 font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-secondary hover:bg-c4a-bg-hover",children:s.language==="en"?"CN":"EN"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LanguageSwitcher.tsx",lineNumber:12,columnNumber:5},this)}function p4({compact:s}){const{t:o}=Ge(),l=new Date().getFullYear(),c=s?"footer.copyright_compact":"footer.copyright";return m.jsxDEV("p",{className:"font-mono text-[11px] text-c4a-text-muted",children:o(c,{year:l})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/CopyrightLine.tsx",lineNumber:13,columnNumber:5},this)}const vj="_brandIcon_1c7st_1",xj="_iconPulse_1c7st_35",sw={brandIcon:vj,iconPulse:xj};function Nj({variant:s}){const{t:o}=Ge(),l=s==="studio"?"bg-c4a-bg-surface":"bg-c4a-bg-base";return m.jsxDEV("footer",{className:`border-t border-c4a-border-subtle ${l} px-4 py-4`,children:m.jsxDEV("div",{className:"flex items-end justify-between gap-4",children:[m.jsxDEV("div",{className:"hidden items-center gap-3 md:flex",children:[m.jsxDEV("div",{className:sw.brandIcon,children:m.jsxDEV("span",{className:sw.iconPulse,children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:21,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:20,columnNumber:11},this),m.jsxDEV("div",{className:"flex flex-col",children:[m.jsxDEV("span",{className:"font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-primary",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:24,columnNumber:13},this),m.jsxDEV("span",{className:"font-mono text-[10px] uppercase tracking-wider text-c4a-text-muted",children:o("footer.tagline")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:27,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:23,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:19,columnNumber:9},this),m.jsxDEV("div",{className:"ml-auto flex flex-col items-end gap-2",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(f4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:36,columnNumber:13},this),m.jsxDEV(m4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:37,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:35,columnNumber:11},this),m.jsxDEV(p4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:39,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:34,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:17,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:16,columnNumber:5},this)}function Sj(){return m.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[m.jsxDEV(pj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:8,columnNumber:7},this),m.jsxDEV("main",{className:"mx-auto flex w-full max-w-[1200px] flex-1 flex-col px-4",children:m.jsxDEV(Kw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:10,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:9,columnNumber:7},this),m.jsxDEV(Nj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:12,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:7,columnNumber:5},this)}function wj({onToggleSidebar:s}){const{t:o}=Ge();return m.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-surface/95 backdrop-blur-sm",children:m.jsxDEV("div",{className:"relative flex h-14 items-center justify-between px-4",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[s&&m.jsxDEV("button",{onClick:s,className:"text-c4a-text-secondary transition-colors duration-150 hover:text-c4a-text-primary md:hidden",children:m.jsxDEV(MT,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:23,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:19,columnNumber:13},this),m.jsxDEV(sn,{to:"/",className:"hidden items-center gap-2 text-c4a-text-primary md:flex",children:[m.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:31,columnNumber:13},this),m.jsxDEV("span",{className:"font-mono text-sm font-semibold uppercase tracking-tight",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:34,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:27,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:17,columnNumber:9},this),m.jsxDEV(sn,{to:"/",className:"absolute left-1/2 flex -translate-x-1/2 items-center gap-2 text-c4a-text-primary md:hidden",children:m.jsxDEV("span",{className:"font-mono text-lg font-bold text-c4a-accent",children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:41,columnNumber:9},this),m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(rb,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:52,columnNumber:11},this),m.jsxDEV(sn,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:o("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:53,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:14,columnNumber:5},this)}const Ej="lib_cloud_default",Dj=s=>`flex items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${s?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,Rj=[{to:"/studio/modeling",icon:ZC,i18nKey:"studio.sidebar.modeling"},{to:"/studio/brain",icon:JC,i18nKey:"studio.sidebar.brain"},{to:"/studio/discovery",icon:YT,i18nKey:"studio.sidebar.discovery"},{to:"/studio/sharing",icon:FT,i18nKey:"studio.sidebar.sharing"},{to:"/studio/collaboration",icon:ej,i18nKey:"studio.sidebar.collaboration"},{to:"/studio/settings",icon:GT,i18nKey:"studio.sidebar.settings"}];function ow({onNavigate:s}){const{t:o}=Ge(),l=cs(),c=hr(),u=Aa(ml(mu)),d=l.pathname.startsWith("/studio/sources")||l.pathname.startsWith("/studio/source/"),[h,g]=w.useState(d);w.useEffect(()=>{d&&g(!0)},[d]);const b=y=>y.id===Ej?o("sources.library.default_cloud_name"):y.name;return m.jsxDEV("aside",{className:"flex h-full w-[220px] shrink-0 flex-col border-r border-c4a-border-subtle bg-c4a-bg-surface p-4",children:[m.jsxDEV("nav",{className:"flex flex-col gap-1",children:[m.jsxDEV("div",{className:"group/sources",children:[m.jsxDEV("button",{onClick:()=>g(y=>!y),className:`flex w-full cursor-pointer items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${d?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:[m.jsxDEV(sT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:95,columnNumber:13},this),o("studio.sidebar.sources"),m.jsxDEV("span",{role:"button",tabIndex:0,onClick:y=>{y.stopPropagation(),c("/studio/sources/add-client"),s?.()},onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.stopPropagation(),c("/studio/sources/add-client"),s?.())},className:"rounded p-0.5 text-c4a-text-muted opacity-0 transition-all hover:bg-c4a-bg-hover max-md:opacity-100 group-hover/sources:opacity-100 group-hover/sources:text-c4a-accent",title:o("sources.menu.add_client"),children:m.jsxDEV(l4,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:115,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:97,columnNumber:13},this),m.jsxDEV("span",{className:"ml-auto shrink-0",children:h?m.jsxDEV(Qf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:119,columnNumber:17},this):m.jsxDEV(So,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:121,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:87,columnNumber:11},this),h&&m.jsxDEV("div",{className:"mt-0.5 flex flex-col gap-0.5",children:u.map(y=>{const D=b(y);return m.jsxDEV(ou,{to:`/studio/sources/${y.id}`,onClick:s,className:({isActive:x})=>`flex items-center gap-2 rounded py-1.5 pl-8 pr-3 font-mono text-xs tracking-tight transition-colors duration-150 ${x?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,children:[m.jsxDEV("span",{className:"truncate",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:143,columnNumber:21},this),y.type==="daemon"&&m.jsxDEV("span",{className:`ml-auto h-[7px] w-[7px] shrink-0 rounded-full ${y.is_online?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:145,columnNumber:23},this)]},y.id,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:131,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:127,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:86,columnNumber:9},this),Rj.map(({to:y,icon:D,i18nKey:x})=>m.jsxDEV(ou,{to:y,onClick:s,className:({isActive:N})=>Dj(N),children:[m.jsxDEV(D,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:166,columnNumber:13},this),o(x)]},y,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:160,columnNumber:11},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:85,columnNumber:7},this),m.jsxDEV("div",{className:"mt-auto flex flex-col gap-2 pt-3",children:[m.jsxDEV("div",{className:"flex items-center gap-1.5",children:[m.jsxDEV(f4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:174,columnNumber:11},this),m.jsxDEV(m4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:175,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:173,columnNumber:9},this),m.jsxDEV(p4,{compact:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:177,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:172,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:84,columnNumber:5},this)}function _j(){const[s,o]=w.useState(!1);return w.useEffect(()=>{Aa.getState().fetchLibraries(),ni.getState().fetchDaemonStatus()},[]),w.useEffect(()=>Gs.onStatusChange(l=>{l==="connected"&&(Aa.getState().fetchLibraries(),ni.getState().fetchDaemonStatus())}),[]),m.jsxDEV("div",{className:"flex h-screen flex-col overflow-hidden",children:[m.jsxDEV(wj,{onToggleSidebar:()=>o(!s)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:29,columnNumber:7},this),m.jsxDEV("div",{className:"flex min-h-0 flex-1",children:[m.jsxDEV("div",{className:"hidden md:block",children:m.jsxDEV(ow,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:34,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:33,columnNumber:9},this),s&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("div",{className:"fixed inset-0 top-14 z-30 bg-black/40 md:hidden",onClick:()=>o(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:40,columnNumber:13},this),m.jsxDEV("div",{className:"fixed bottom-0 left-0 top-14 z-30 md:hidden",children:m.jsxDEV(ow,{onNavigate:()=>o(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:45,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:44,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:39,columnNumber:11},this),m.jsxDEV("main",{className:"flex min-h-0 flex-1 flex-col overflow-x-hidden",children:m.jsxDEV(Kw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:51,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:31,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:28,columnNumber:5},this)}function kj(){const{t:s}=Ge();return m.jsxDEV("div",{className:"flex flex-1 flex-col items-center justify-center py-20 text-center",children:[m.jsxDEV("h1",{className:"font-mono text-4xl font-bold uppercase tracking-wide text-c4a-text-primary md:text-5xl",children:s("home.hero.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:10,columnNumber:7},this),m.jsxDEV("p",{className:"mt-6 max-w-lg text-base text-c4a-text-secondary",children:s("home.hero.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:13,columnNumber:7},this),m.jsxDEV("div",{className:"mt-10 flex items-center gap-4",children:[m.jsxDEV(sn,{to:"/studio",className:"flex items-center gap-2 rounded bg-c4a-accent px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-white transition-colors duration-150 hover:bg-c4a-accent-hover",children:[s("home.hero.cta.studio"),m.jsxDEV(o4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:22,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:17,columnNumber:9},this),m.jsxDEV("a",{href:"https://github.com/context4ai/c4a",target:"_blank",rel:"noopener noreferrer",className:"rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:s("home.hero.cta.github")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:16,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:9,columnNumber:5},this)}function In({title:s,version:o,description:l}){const{t:c}=Ge();return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("div",{className:"max-w-md text-center",children:[m.jsxDEV("h2",{className:"font-mono text-2xl font-bold uppercase text-c4a-text-primary",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:15,columnNumber:9},this),o&&m.jsxDEV("span",{className:"mt-3 inline-block rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-1 font-mono text-xs uppercase text-c4a-accent",children:c("placeholder.coming",{version:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:19,columnNumber:11},this),m.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:23,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:14,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:13,columnNumber:5},this)}function Uj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.login.title"),version:"0.5.0",description:s("page.login.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Login.tsx",lineNumber:8,columnNumber:5},this)}function Cj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.docs.title"),version:"0.4.13",description:s("page.docs.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Docs.tsx",lineNumber:8,columnNumber:5},this)}function Tj(){const{t:s}=Ge();return m.jsxDEV("div",{className:"flex min-h-screen flex-col items-center justify-center bg-c4a-bg-base p-8 text-center",children:[m.jsxDEV("h1",{className:"font-mono text-6xl font-bold text-c4a-accent",children:s("notfound.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:9,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 text-base text-c4a-text-secondary",children:s("notfound.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:12,columnNumber:7},this),m.jsxDEV(sn,{to:"/",className:"mt-8 rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:s("notfound.back")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:8,columnNumber:5},this)}function jj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.modeling.title"),version:"0.4.16",description:s("page.modeling.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Modeling.tsx",lineNumber:8,columnNumber:5},this)}function Oj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.brain.title"),version:"0.4.18",description:s("page.brain.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Brain.tsx",lineNumber:8,columnNumber:5},this)}function Aj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.discovery.title"),version:"0.6.x",description:s("page.discovery.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Discovery.tsx",lineNumber:8,columnNumber:5},this)}function Vj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.sharing.title"),version:"0.4.39",description:s("page.sharing.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Sharing.tsx",lineNumber:8,columnNumber:5},this)}function Mj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.collaboration.title"),version:"0.5.x",description:s("page.collaboration.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Collaboration.tsx",lineNumber:8,columnNumber:5},this)}function zj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.settings.title"),version:"0.5.x",description:s("page.settings.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Settings.tsx",lineNumber:8,columnNumber:5},this)}function Lj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.code_setup.title"),version:"0.4.13",description:s("page.code_setup.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeSetup.tsx",lineNumber:8,columnNumber:5},this)}function Hj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.code_compile.title"),version:"0.4.13",description:s("page.code_compile.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeCompile.tsx",lineNumber:8,columnNumber:5},this)}function Bj(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.code_review.title"),version:"0.4.14",description:s("page.code_review.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeReview.tsx",lineNumber:8,columnNumber:5},this)}function $j(){const{t:s}=Ge();return m.jsxDEV(In,{title:s("page.code_result.title"),version:"0.4.14",description:s("page.code_result.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeResult.tsx",lineNumber:8,columnNumber:5},this)}const Jf=(s,o)=>{for(const l of s){if(l.path===o)return l;if(l.children){const c=Jf(l.children,o);if(c)return c}}return null},Yj=(s,o)=>o===""?s:Jf(s,o)?.children??[],h4=(s,o)=>{if(!o)return[];const l=o.split("/"),c=[];let u="";for(const d of l){u=u?`${u}/${d}`:d;const h=Jf(s,u);h&&c.push(h)}return c},Kf=Pf(s=>({rootSources:[],currentRoot:null,loading:!1,error:null,total:0,limit:100,offset:0,filter:"all",fetchRootSources:async({library_id:o,limit:l,offset:c})=>{s({loading:!0,error:null});try{const u={library_id:o};l!==void 0&&(u.limit=String(l)),c!==void 0&&(u.offset=String(c));const d=await ba.get("/sources",u);s({rootSources:d.items,total:d.total,limit:d.limit,offset:d.offset,loading:!1})}catch(u){s({error:u instanceof Error?u.message:"Failed to load sources",loading:!1})}},fetchRootSource:async o=>{const l=await ba.get(`/sources/${o}`);return s({currentRoot:l}),l},createSource:async o=>await ba.post("/sources",o),addTreeNode:async(o,l)=>{const c=await ba.post(`/sources/${o}/tree`,l);return s(u=>({rootSources:u.rootSources.map(d=>d.id===o?c:d),currentRoot:u.currentRoot?.id===o?c:u.currentRoot})),c},updateSource:async(o,l)=>{const c=await ba.put(`/sources/${o}`,l);s(u=>({rootSources:u.rootSources.map(d=>d.id===o?c:d),currentRoot:u.currentRoot?.id===o?c:u.currentRoot}))},deleteSource:async o=>{await ba.delete(`/sources/${o}`),s(l=>({rootSources:l.rootSources.filter(c=>c.id!==o),currentRoot:l.currentRoot?.id===o?null:l.currentRoot}))},uploadDoc:async o=>await ba.post("/sources/upload",o),setFilter:o=>s({filter:o}),clearSources:()=>s({rootSources:[],currentRoot:null,total:0,offset:0})}));function pu({segments:s}){const{t:o}=Ge(),l=w.useRef(null),c=w.useRef(null),[u,d]=w.useState(0),h=[{label:o("sources.breadcrumb.sources")},...s],g=Math.max(0,h.length-3);w.useEffect(()=>{const y=l.current,D=c.current;if(!y||!D)return;const x=()=>{const R=y.clientWidth,k=Array.from(D.children);if(k.length===0)return;const B=k.map(te=>te.offsetWidth),L=4;if(B.reduce((te,_)=>te+_,0)+L*(B.length-1)<=R){d(0);return}const Q=20,ee=(B[0]??0)+(B[1]??0)+L,ue=B[B.length-1]??0,re=ee+L+Q+L+ue;let ne=g;for(let te=1;te<=g;te++){let _=0;for(let P=2+te;P<B.length-1;P++)_+=B[P]+L;if(re+_<=R){ne=te;break}}d(ne)};x();const N=new ResizeObserver(x);return N.observe(y),()=>N.disconnect()},[g,s,o]);const b=(()=>{if(u===0||h.length<=3)return h;const y=h.slice(0,2),D=h[h.length-1],x=h.slice(2+u,h.length-1);return[...y,{label:"…"},...x,D]})();return m.jsxDEV("div",{ref:l,className:"relative min-w-0 overflow-hidden",children:[m.jsxDEV("nav",{className:"flex min-h-8 items-center gap-1 font-mono text-xs text-c4a-text-muted",children:b.map((y,D)=>{const x=D===b.length-1;return m.jsxDEV("span",{className:"flex shrink-0 items-center gap-1",children:[D>0&&m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:106,columnNumber:17},this),y.to&&!x?m.jsxDEV(sn,{to:y.to,className:"cursor-pointer whitespace-nowrap transition-colors hover:text-c4a-text-primary",children:y.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:109,columnNumber:17},this):m.jsxDEV("span",{className:`whitespace-nowrap ${x?"text-c4a-text-primary":""}`,children:y.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:116,columnNumber:17},this)]},D,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:104,columnNumber:13},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:100,columnNumber:7},this),m.jsxDEV("div",{ref:c,"aria-hidden":!0,className:"pointer-events-none invisible absolute left-0 top-0 flex h-0 items-center gap-1 overflow-visible whitespace-nowrap font-mono text-xs",children:h.map((y,D)=>m.jsxDEV("span",{className:"flex shrink-0 items-center gap-1",children:[D>0&&m.jsxDEV(So,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:133,columnNumber:25},this),m.jsxDEV("span",{className:"whitespace-nowrap",children:y.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:134,columnNumber:13},this)]},D,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:132,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:126,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:98,columnNumber:5},this)}const qj=["all","indexed","not_indexed"];function Gj({value:s,onChange:o}){const{t:l}=Ge(),[c,u]=w.useState(!1),d=w.useRef(null),h=w.useRef(null),g={all:l("sources.filter.all"),indexed:l("sources.filter.indexed"),not_indexed:l("sources.filter.not_indexed")},b=w.useCallback(x=>{d.current&&!d.current.contains(x.target)&&u(!1)},[]);w.useEffect(()=>{if(c)return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[c,b]);const y=w.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=null),u(!0)},[]),D=w.useCallback(()=>{h.current=setTimeout(()=>u(!1),150)},[]);return m.jsxDEV("div",{ref:d,className:"relative",onMouseEnter:y,onMouseLeave:D,children:[m.jsxDEV("button",{className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary sm:px-2 sm:py-1",children:[m.jsxDEV(RT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:55,columnNumber:9},this),m.jsxDEV("span",{className:"hidden sm:inline",children:g[s]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:56,columnNumber:9},this),m.jsxDEV(Qf,{size:12,className:"hidden transition-transform sm:block"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:57,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:52,columnNumber:7},this),c&&m.jsxDEV("div",{className:"absolute right-0 top-full z-20 mt-1 min-w-[120px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg",children:qj.map(x=>m.jsxDEV("button",{onClick:()=>{o(x),u(!1)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-xs transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary ${x===s?"text-c4a-accent":"text-c4a-text-secondary"}`,children:[m.jsxDEV(ul,{size:12,className:x===s?"opacity-100":"opacity-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:72,columnNumber:15},this),g[x]]},x,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:62,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:51,columnNumber:5},this)}function g4({currentName:s,onConfirm:o,onCancel:l,error:c}){const[u,d]=w.useState(s),h=w.useRef(null);w.useEffect(()=>{h.current?.select()},[]);const g=w.useCallback(()=>{const y=u.trim();y&&y!==s?o(y):l()},[u,s,o,l]),b=w.useCallback(y=>{y.key==="Enter"?(y.preventDefault(),g()):y.key==="Escape"&&l()},[g,l]);return m.jsxDEV("div",{className:"flex items-center gap-1",children:[m.jsxDEV("input",{ref:h,value:u,onChange:y=>d(y.target.value),onKeyDown:b,onBlur:g,className:"min-w-0 flex-1 rounded border border-c4a-accent bg-c4a-bg-surface px-2 py-1 text-sm text-c4a-text-primary outline-none",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:47,columnNumber:7},this),m.jsxDEV("button",{onClick:y=>{y.stopPropagation(),g()},className:"rounded p-0.5 text-c4a-success hover:bg-c4a-bg-hover",children:m.jsxDEV(ul,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:63,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:56,columnNumber:7},this),m.jsxDEV("button",{onClick:y=>{y.stopPropagation(),l()},className:"rounded p-0.5 text-c4a-error hover:bg-c4a-bg-hover",children:m.jsxDEV(Zf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:72,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:65,columnNumber:7},this),c&&m.jsxDEV("span",{className:"ml-1 text-xs text-c4a-error",children:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:46,columnNumber:5},this)}function Ij({source:s,isDaemonLibrary:o}){return s.kind==="folder"?o?m.jsxDEV(hT,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:35,columnNumber:7},this):m.jsxDEV(Yn,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:37,columnNumber:7},this):s.source_type==="code"?m.jsxDEV(dl,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:41,columnNumber:12},this):m.jsxDEV(pr,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:43,columnNumber:10},this)}function rw({status:s}){const{t:o}=Ge(),[l,c]=w.useState(!1),u={none:"bg-c4a-accent/10 text-c4a-accent/60",indexed:"bg-c4a-accent/20 text-c4a-accent",stale:"bg-c4a-warning/20 text-c4a-warning"},d={none:"sources.status.none",indexed:"sources.status.indexed",stale:"sources.status.stale"},h=s==="none"&&l;return m.jsxDEV("span",{className:`rounded px-1.5 py-0.5 font-mono text-[10px] uppercase transition-colors ${u[s]} ${s==="none"?"cursor-pointer hover:bg-c4a-accent/20 hover:text-c4a-accent":""}`,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:o(h?"sources.status.go_index":d[s])},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:64,columnNumber:5},this)}function iw({source:s,displayName:o,childCount:l,isDaemonLibrary:c,isRepoRoot:u,onClick:d,onRename:h,onDelete:g}){const{t:b}=Ge(),[y,D]=w.useState(!1),[x,N]=w.useState(null),R=w.useCallback(async F=>{if(!h)return;const Q=await h(F);Q?N(Q):(D(!1),N(null))},[h]),k=w.useCallback(()=>{D(!1),N(null)},[]),B=!u&&h,L=g;return m.jsxDEV("div",{className:"group flex items-center gap-3 rounded pl-3 pr-5 py-2 transition-colors hover:bg-c4a-bg-hover cursor-pointer",onClick:y?void 0:d,children:[m.jsxDEV(Ij,{source:s,isDaemonLibrary:c??!1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:115,columnNumber:7},this),y?m.jsxDEV("div",{className:"min-w-0 flex-1",onClick:F=>F.stopPropagation(),children:m.jsxDEV(g4,{currentName:s.name,onConfirm:R,onCancel:k,error:x},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:119,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:118,columnNumber:9},this):m.jsxDEV("span",{className:"min-w-0 flex-1 truncate text-sm text-c4a-text-primary",children:o??s.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:127,columnNumber:9},this),m.jsxDEV("div",{className:"hidden items-center gap-2 md:flex",children:[s.kind==="folder"&&l!==void 0&&m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:b("common.items",{count:l})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:135,columnNumber:11},this),s.kind==="source"&&m.jsxDEV(rw,{status:s.index_status},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:140,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:133,columnNumber:7},this),m.jsxDEV("div",{className:"flex items-center gap-2 md:hidden",children:s.kind==="source"&&m.jsxDEV(rw,{status:s.index_status},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:147,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:145,columnNumber:7},this),(B||L)&&m.jsxDEV("div",{className:"flex items-center gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[B&&m.jsxDEV("button",{title:b("sources.actions.rename"),onClick:F=>{F.stopPropagation(),D(!0)},className:"rounded p-1 text-c4a-text-muted transition-colors hover:text-c4a-accent",children:m.jsxDEV(sb,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:163,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:155,columnNumber:13},this),L&&m.jsxDEV("button",{title:b("sources.actions.delete"),onClick:F=>{F.stopPropagation(),g()},className:"rounded p-1 text-c4a-text-muted transition-colors hover:text-c4a-accent",children:m.jsxDEV(c4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:175,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:167,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:153,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:111,columnNumber:5},this)}function lw({target:s,onConfirm:o,onCancel:l}){const{t:c}=Ge(),u=w.useRef(null);w.useEffect(()=>{const h=g=>{g.key==="Escape"&&l()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[l]);const d=w.useCallback(h=>{u.current&&!u.current.contains(h.target)&&l()},[l]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:d,children:m.jsxDEV("div",{ref:u,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:c("sources.delete.confirm_title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:61,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4 space-y-3 text-sm text-c4a-text-secondary",children:[s.type==="resource"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.resource",{name:s.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:68,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.resource_impact")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:69,columnNumber:15},this),m.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.session_warning")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:70,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:73,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:67,columnNumber:13},this),s.type==="folder"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.folder",{name:s.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:79,columnNumber:15},this),m.jsxDEV("p",{children:s.folderCount!==void 0&&s.sourceCount!==void 0?c("sources.delete.folder_impact",{folders:s.folderCount,sources:s.sourceCount}):c("sources.delete.folder_impact_generic")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:80,columnNumber:15},this),m.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.irreversible")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:88,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:78,columnNumber:13},this),s.type==="repo"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.repo",{name:s.name,library:s.libraryName})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:96,columnNumber:15},this),m.jsxDEV("p",{children:s.packageCount!==void 0&&s.docCount!==void 0?c("sources.delete.repo_impact",{packages:s.packageCount,docs:s.docCount}):c("sources.delete.repo_impact_generic")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:102,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.local_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:110,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:111,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:95,columnNumber:13},this),s.type==="client"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{children:c("sources.delete.client",{name:s.name})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:117,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.client_impact")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:118,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.local_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:119,columnNumber:15},this),m.jsxDEV("p",{children:c("sources.delete.entity_safe")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:120,columnNumber:15},this),m.jsxDEV("p",{className:"text-c4a-warning",children:c("sources.delete.irreversible")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:121,columnNumber:15},this),m.jsxDEV("p",{className:"text-c4a-text-muted",children:c("sources.delete.client_reregister")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:124,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:116,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:65,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:l,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:c("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:132,columnNumber:11},this),m.jsxDEV("button",{onClick:o,className:"rounded bg-c4a-error px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-error/80",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:138,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:131,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:57,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:53,columnNumber:5},this)}function Fj({onConfirm:s,onCancel:o,error:l}){const{t:c}=Ge(),[u,d]=w.useState(""),h=w.useRef(null),g=w.useRef(null);w.useEffect(()=>{h.current?.focus()},[]),w.useEffect(()=>{const x=N=>{N.key==="Escape"&&o()};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[o]);const b=w.useCallback(x=>{g.current&&!g.current.contains(x.target)&&o()},[o]),y=w.useCallback(()=>{const x=u.trim();x&&s(x)},[u,s]),D=w.useCallback(x=>{x.key==="Enter"&&(x.preventDefault(),y())},[y]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:b,children:m.jsxDEV("div",{ref:g,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(i4,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:69,columnNumber:11},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:c("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:70,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:68,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4",children:[m.jsxDEV("input",{ref:h,value:u,onChange:x=>d(x.target.value),onKeyDown:D,placeholder:c("sources.folder.name_placeholder"),className:"w-full rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-2 text-sm text-c4a-text-primary outline-none transition-colors focus:border-c4a-accent",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:76,columnNumber:11},this),l&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:86,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:75,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:o,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:c("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:91,columnNumber:11},this),m.jsxDEV("button",{onClick:y,disabled:!u.trim(),className:"rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:90,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:64,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:60,columnNumber:5},this)}function Gg({label:s,icon:o,items:l,alignRight:c}){const[u,d]=w.useState(!1),h=w.useRef(null),g=w.useRef(null),b=w.useCallback(x=>{h.current&&!h.current.contains(x.target)&&d(!1)},[]);w.useEffect(()=>{if(u)return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[u,b]);const y=w.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),d(!0)},[]),D=w.useCallback(()=>{g.current=setTimeout(()=>d(!1),150)},[]);return m.jsxDEV("div",{ref:h,className:"relative",onMouseEnter:y,onMouseLeave:D,children:[m.jsxDEV("button",{className:`flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary ${s?"p-1 sm:px-2 sm:py-1":"p-1"}`,children:[o,s&&m.jsxDEV("span",{className:"hidden sm:inline",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:54,columnNumber:19},this),s&&m.jsxDEV(Qf,{size:12,className:"hidden transition-transform sm:block"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:55,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:50,columnNumber:7},this),u&&m.jsxDEV("div",{className:`absolute top-full z-20 mt-1 min-w-[160px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg ${c?"right-0":"left-0"}`,children:l.map(x=>m.jsxDEV("button",{onClick:()=>{x.onClick(),d(!1)},className:"flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[x.icon,x.label]},x.label,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:60,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:49,columnNumber:5},this)}function Xj({onClose:s}){const{t:o}=Ge(),l=w.useRef(null),c=w.useCallback(u=>{l.current&&!l.current.contains(u.target)&&s()},[s]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:c,children:m.jsxDEV("div",{ref:l,className:"w-full max-w-sm rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(QT,{size:18,className:"text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:32,columnNumber:11},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:o("sources.upgrade.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:33,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:31,columnNumber:9},this),m.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:o("sources.upgrade.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:37,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-end",children:m.jsxDEV("button",{onClick:s,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:41,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:40,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:27,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:23,columnNumber:5},this)}const Qj=new Set([".md",".doc",".docx",".pdf",".ppt",".pptx",".txt"]),Zj=5*1024*1024,Pj=10;function Jj(s){const o=s.lastIndexOf(".");return o>=0?s.slice(o).toLowerCase():""}function Kj(s){return s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`}function Wj({onConfirm:s,onCancel:o,error:l,uploading:c}){const{t:u}=Ge(),[d,h]=w.useState([]),[g,b]=w.useState(null),[y,D]=w.useState(!1),x=w.useRef(null),N=w.useRef(null);w.useEffect(()=>{const ne=te=>{te.key==="Escape"&&!c&&o()};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[o,c]);const R=w.useCallback(ne=>{!c&&N.current&&!N.current.contains(ne.target)&&o()},[o,c]),k=w.useCallback(ne=>{if(b(null),ne.length>Pj){b(u("sources.upload.too_many_files"));return}for(const te of ne){const _=Jj(te.name);if(!Qj.has(_)){b(u("sources.upload.unsupported_type",{name:te.name}));return}if(te.size>Zj){b(u("sources.upload.file_too_large",{name:te.name}));return}}h(ne.map(te=>({name:te.name,size:te.size,file:te})))},[u]),B=w.useCallback(ne=>{const te=ne.target.files;!te||te.length===0||(k(Array.from(te)),ne.target.value="")},[k]),L=w.useCallback(ne=>{h(te=>te.filter((_,P)=>P!==ne)),b(null)},[]),F=w.useCallback(ne=>{ne.preventDefault(),D(!1);const te=ne.dataTransfer?.files;!te||te.length===0||k(Array.from(te))},[k]),Q=w.useCallback(ne=>{ne.preventDefault(),D(!0)},[]),ee=w.useCallback(ne=>{ne.preventDefault(),D(!1)},[]),ue=w.useCallback(async()=>{if(d.length===0)return;const ne=await Promise.all(d.map(te=>new Promise((_,P)=>{const H=new FileReader;H.onload=()=>_({name:te.name,content:H.result}),H.onerror=()=>P(H.error),H.readAsText(te.file)})));s(ne)},[d,s]),re=l||g;return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:R,children:m.jsxDEV("div",{ref:N,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(ob,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:160,columnNumber:11},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:u("sources.upload.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:161,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:159,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4",children:[m.jsxDEV("input",{ref:x,type:"file",accept:".md,.doc,.docx,.pdf,.ppt,.pptx,.txt",multiple:!0,onChange:B,className:"hidden"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:168,columnNumber:11},this),m.jsxDEV("button",{type:"button",onClick:()=>x.current?.click(),onDrop:F,onDragOver:Q,onDragLeave:ee,disabled:c,className:`flex w-full flex-col items-center justify-center rounded border-2 border-dashed px-4 py-8 transition-colors ${y?"border-c4a-accent bg-c4a-accent/5":"border-c4a-border-default hover:border-c4a-accent/50"} ${c?"cursor-not-allowed opacity-40":"cursor-pointer"}`,children:[m.jsxDEV(ob,{size:24,className:"text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:189,columnNumber:13},this),m.jsxDEV("p",{className:"mt-2 text-sm text-c4a-text-secondary",children:u("sources.upload.drop_hint")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:190,columnNumber:13},this),m.jsxDEV("p",{className:"mt-1 text-[10px] text-c4a-text-muted",children:u("sources.upload.supported_formats")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:193,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:176,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:167,columnNumber:9},this),d.length>0&&m.jsxDEV("div",{className:"mt-3",children:[m.jsxDEV("p",{className:"text-xs text-c4a-text-muted",children:u("sources.upload.selected",{count:d.length})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:202,columnNumber:13},this),m.jsxDEV("div",{className:"mt-1 max-h-40 space-y-1 overflow-y-auto c4a-scrollbar",children:d.map((ne,te)=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded bg-c4a-bg-surface px-2 py-1",children:[m.jsxDEV(pr,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:211,columnNumber:19},this),m.jsxDEV("span",{className:"min-w-0 flex-1 truncate text-xs text-c4a-text-primary",children:ne.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:212,columnNumber:19},this),m.jsxDEV("span",{className:"shrink-0 text-[10px] text-c4a-text-muted",children:Kj(ne.size)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:215,columnNumber:19},this),!c&&m.jsxDEV("button",{type:"button",onClick:()=>L(te),className:"shrink-0 text-c4a-text-muted transition-colors hover:text-c4a-text-primary",title:u("sources.upload.remove"),children:m.jsxDEV(Zf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:225,columnNumber:23},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:219,columnNumber:21},this)]},`${ne.name}-${te}`,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:207,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:205,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:201,columnNumber:11},this),re&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:re},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:236,columnNumber:11},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:o,disabled:c,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:opacity-40",children:u("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:241,columnNumber:11},this),m.jsxDEV("button",{onClick:ue,disabled:d.length===0||c,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[c&&m.jsxDEV(Oa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:253,columnNumber:27},this),u(c?"sources.upload.uploading":"common.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:248,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:240,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:154,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:150,columnNumber:5},this)}function e3({pathLabel:s,loading:o,onNavigateUp:l,children:c}){return m.jsxDEV("div",{className:"mt-4 flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("p",{className:"min-w-0 truncate font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:20,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:23,columnNumber:7},this),m.jsxDEV("div",{className:"c4a-scrollbar flex min-h-0 flex-1 flex-col overflow-y-auto",children:o?m.jsxDEV("div",{className:"flex flex-1 items-center justify-center py-8",children:m.jsxDEV(Oa,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:27,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:26,columnNumber:11},this):m.jsxDEV(m.Fragment,{children:[l&&m.jsxDEV("button",{onClick:l,className:"flex w-full cursor-pointer items-center gap-3 rounded pl-3 pr-5 py-2 text-left text-sm text-c4a-text-primary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(Yn,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:36,columnNumber:17},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:37,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:32,columnNumber:15},this),c]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:30,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:24,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:19,columnNumber:5},this)}function t3({library:s,onNewFolder:o,onImportRepo:l,onImportDir:c,onUpgrade:u}){const{t:d}=Ge(),h=s.type==="daemon";return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("div",{className:"max-w-2xl text-center",children:[m.jsxDEV("h3",{className:"font-mono text-lg font-bold uppercase text-c4a-text-primary",children:d(h?"sources.empty.daemon.title":"sources.empty.cloud.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:68,columnNumber:9},this),m.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:d(h?"sources.empty.daemon.description":"sources.empty.cloud.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:73,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-center gap-3",children:h?m.jsxDEV(m.Fragment,{children:[c&&m.jsxDEV("button",{onClick:c,disabled:!s.is_online,className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-4 py-2 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:opacity-40",children:d("sources.actions.import_dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:82,columnNumber:17},this),l&&m.jsxDEV("button",{onClick:l,disabled:!s.is_online,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:d("sources.actions.import_repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:91,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:80,columnNumber:13},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:o,className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-4 py-2 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:d("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:102,columnNumber:15},this),u&&m.jsxDEV("button",{onClick:u,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover",children:d("sources.actions.import_repo_url")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:109,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:101,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:78,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:67,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:66,columnNumber:5},this)}function a3(){const{t:s}=Ge();return m.jsxDEV("div",{className:"rounded border border-c4a-border-subtle bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("h4",{className:"font-mono text-sm font-bold text-c4a-text-primary",children:s("sources.empty.indexed.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:130,columnNumber:7},this),m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-text-secondary",children:s("sources.empty.indexed.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:133,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:129,columnNumber:5},this)}const cw=s=>{const o=s.children??[];return{folders:o.filter(l=>l.kind==="folder").length,sources:o.filter(l=>l.kind==="source").length,codeSources:o.filter(l=>l.kind==="source"&&l.source_type==="code").length,docSources:o.filter(l=>l.kind==="source"&&l.source_type==="doc").length}};function n3(){const{t:s}=Ge(),o=hr(),{libId:l}=Ff(),[c,u]=n4(),d=c.get("rootId")||null,h=c.get("path")||"",b=Aa(ml(mu)).find(pe=>pe.id===l),y=Aa(pe=>pe.updateLibraryName),D=Aa(pe=>pe.deleteLibrary),{rootSources:x,currentRoot:N,loading:R,filter:k,fetchRootSources:B,fetchRootSource:L,createSource:F,addTreeNode:Q,updateSource:ee,deleteSource:ue,uploadDoc:re,setFilter:ne}=Kf(),[te,_]=w.useState(!1),[P,H]=w.useState(null),[me,W]=w.useState(null),[X,ie]=w.useState(null),[Ee,J]=w.useState(!1),[de,ge]=w.useState(!1),[K,xe]=w.useState(null),[G,ve]=w.useState(!1),[je,_e]=w.useState(!1),[mt,Rt]=w.useState(null),[nt,$t]=w.useState(!1);w.useEffect(()=>{l&&B({library_id:l})},[l,B]),w.useEffect(()=>{d&&L(d)},[d,L]);const Se=d!==null,Mt=w.useMemo(()=>Se?N?[...Yj(N.tree,h)].sort((gt,E)=>gt.kind!==E.kind?gt.kind==="folder"?-1:1:gt.name.localeCompare(E.name)).map(gt=>({type:"node",root:N,node:gt})):[]:[...x].sort((E,M)=>new Date(E.created_at).getTime()-new Date(M.created_at).getTime()).map(E=>({type:"root",root:E,node:null})),[Se,x,N,h]),he=w.useMemo(()=>k==="all"?Mt:Mt.filter(pe=>pe.type==="root"||!pe.node||pe.node.kind==="folder"?!0:k==="indexed"?pe.node.index_status==="indexed":pe.node.index_status==="none"||!pe.node.index_status),[Mt,k]),Yt=b?.type==="daemon",pt=b?.type==="cloud",Ft=Yt&&!Se,ya=w.useMemo(()=>{if(!b)return[];const pe=[{label:b.id===ru?s("sources.library.default_cloud_name"):b.name,to:`/studio/sources/${b.id}`}];return Se&&N&&(pe.push({label:N.name,to:`/studio/sources/${b.id}?rootId=${N.id}`}),h&&h4(N.tree,h).forEach(gt=>{pe.push({label:gt.name,to:`/studio/sources/${b.id}?rootId=${N.id}&path=${encodeURIComponent(gt.path)}`})})),pe},[b,Se,N,h,s]),ut=w.useCallback(async pe=>{if(l)try{Se&&d?await Q(d,{parent_path:h,kind:"folder",name:pe}):(await F({library_id:l,kind:"folder",name:pe}),B({library_id:l})),_(!1),H(null)}catch(He){He instanceof Jc&&He.status===409&&H(s("sources.error.name_conflict",{name:pe}))}},[l,Se,d,h,F,Q,B,s]),St=w.useCallback(pe=>{l&&(pe.type==="root"?u({rootId:pe.root.id}):pe.node&&(pe.node.kind==="folder"?u({rootId:pe.root.id,path:pe.node.path}):o(`/studio/source/${pe.root.id}?path=${encodeURIComponent(pe.node.path)}`)))},[l,o,u]),oa=w.useCallback(()=>{if(!(!d||!l))if(h){const pe=h.split("/");pe.pop();const He=pe.join("/");u(He?{rootId:d,path:He}:{rootId:d})}else u({})},[d,l,h,u]),wn=w.useCallback(async(pe,He)=>{try{return await ee(pe,{name:He}),B({library_id:l}),null}catch(gt){return gt instanceof Jc&&gt.status===409?s("sources.error.name_conflict",{name:He}):null}},[l,ee,B,s]),we=w.useCallback(pe=>{if(pe.type==="root"){ie(pe.root.id);const He=pe.root.tree.length>0?cw({children:pe.root.tree}):void 0;W(Yt?{type:"repo",name:pe.root.name,libraryName:b.name,...He?{packageCount:He.codeSources,docCount:He.docSources}:{}}:{type:"folder",name:pe.root.name,...He?{folderCount:He.folders,sourceCount:He.sources}:{}})}},[Yt,b]),En=w.useCallback(async()=>{if(!(!X||!l))try{await ue(X),W(null),ie(null),B({library_id:l})}catch{}},[X,l,ue,B]),va=w.useCallback(()=>{l&&o(`/studio/sources/import/${l}`)},[l,o]),Xa=w.useCallback(()=>{l&&o(`/studio/sources/import-dir/${l}`)},[l,o]),Dn=w.useCallback(async pe=>{if(l){ve(!0),xe(null);try{const He={library_id:l,files:pe.map(gt=>({file_name:gt.name,content:gt.content}))};Se&&d&&(He.root_source_id=d,He.parent_path=h),await re(He),Se&&d?L(d):B({library_id:l}),ge(!1)}catch(He){He instanceof Jc&&He.status===409?xe(s("sources.error.name_conflict",{name:pe[0]?.name??""})):He instanceof Jc&&xe(He.message)}finally{ve(!1)}}},[l,Se,d,h,re,B,L,s]),Qa=b?.id===ru,on=w.useCallback(async pe=>{if(l)try{await y(l,pe),_e(!1),Rt(null)}catch(He){const gt=He instanceof Error?He.message:String(He);Rt(gt)}},[l,y]),us=w.useCallback(()=>{_e(!1),Rt(null)},[]),Za=w.useCallback(async()=>{if(l){try{await D(l),o("/studio/sources/add-client")}catch{}$t(!1)}},[l,D,o]),Ra=w.useCallback(()=>{$t(!1)},[]);if(!b)return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:502,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:501,columnNumber:7},this);const xa=x.length===0&&k==="all"&&!R&&!Se,ds=he.filter(pe=>pe.type==="node"&&pe.node?.kind==="source").length===0&&k==="indexed"&&!R,Fn=!Ft,Pa=pt,Xn=Ft;return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center gap-2",children:[m.jsxDEV("div",{className:"min-w-0 flex-1",children:je?m.jsxDEV(g4,{currentName:b.name,onConfirm:on,onCancel:us,error:mt},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:524,columnNumber:13},this):m.jsxDEV(pu,{segments:ya},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:531,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:522,columnNumber:9},this),m.jsxDEV("div",{className:"flex shrink-0 items-center gap-2",children:[Pa&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV(Gg,{label:s("sources.actions.upload"),icon:m.jsxDEV(ob,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:540,columnNumber:23},this),items:[{label:s("sources.actions.upload_doc"),icon:m.jsxDEV(pr,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:544,columnNumber:27},this),onClick:()=>ge(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:538,columnNumber:15},this),m.jsxDEV(Gg,{label:s("sources.actions.add"),icon:m.jsxDEV(l4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:551,columnNumber:23},this),items:[{label:s("sources.actions.add_folder"),icon:m.jsxDEV(i4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:555,columnNumber:27},this),onClick:()=>_(!0)},{label:s("sources.actions.add_web"),icon:m.jsxDEV(ST,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:560,columnNumber:27},this),onClick:()=>J(!0)},{label:s("sources.actions.add_feishu"),icon:m.jsxDEV(rT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:565,columnNumber:27},this),onClick:()=>J(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:549,columnNumber:15},this),m.jsxDEV("button",{onClick:()=>J(!0),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary sm:px-2 sm:py-1",children:[m.jsxDEV(ZS,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:574,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_repo_url")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:575,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:570,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:537,columnNumber:13},this),Xn&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:Xa,disabled:!b.is_online,title:b.is_online?void 0:s("sources.import.daemon_offline",{name:b.name}),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40 sm:px-2 sm:py-1",children:[m.jsxDEV(mT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:593,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:594,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:583,columnNumber:15},this),m.jsxDEV("button",{onClick:va,disabled:!b.is_online,title:b.is_online?void 0:s("sources.import.daemon_offline",{name:b.name}),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40 sm:px-2 sm:py-1",children:[m.jsxDEV(ZS,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:606,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:607,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:596,columnNumber:15},this),m.jsxDEV(Gg,{label:"",icon:m.jsxDEV(sb,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:611,columnNumber:23},this),alignRight:!0,items:[{label:s("sources.library.rename"),icon:m.jsxDEV(sb,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:616,columnNumber:27},this),onClick:()=>_e(!0)},...Qa?[]:[{label:s("sources.actions.delete"),icon:m.jsxDEV(c4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:623,columnNumber:33},this),onClick:()=>$t(!0)}]]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:609,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:582,columnNumber:13},this),Fn&&m.jsxDEV(Gj,{value:k,onChange:ne},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:634,columnNumber:26},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:534,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:521,columnNumber:7},this),xa?m.jsxDEV(t3,{library:b,onNewFolder:()=>_(!0),...Yt?{onImportRepo:va,onImportDir:Xa}:{},...pt?{onUpgrade:()=>J(!0)}:{}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:640,columnNumber:9},this):m.jsxDEV(e3,{pathLabel:ya.map(pe=>pe.label).join(" / "),loading:R,onNavigateUp:Se?oa:void 0,children:he.length===0?ds?m.jsxDEV(a3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:654,columnNumber:15},this):Se?null:m.jsxDEV("p",{className:"py-8 text-center text-xs text-c4a-text-muted",children:s("common.items",{count:0})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:656,columnNumber:15},this):m.jsxDEV("div",{className:"flex flex-col gap-0.5",children:he.map(pe=>{if(pe.type==="root"){const M=pe.root,ae=Yt,le=ae?M.metadata?.local_path:void 0,De=M.tree.length>0?cw({children:M.tree}):void 0,Be=De?De.folders+De.sources:0;return m.jsxDEV(iw,{source:{id:M.id,library_id:M.library_id,owner_id:M.owner_id,path:"",kind:M.kind,source_type:M.source_type,name:M.name,content_hash:M.content_hash,metadata:M.metadata,index_status:M.index_status,created_at:M.created_at,updated_at:M.updated_at},...typeof le=="string"?{displayName:le}:{},...Be>0?{childCount:Be}:{},isDaemonLibrary:Yt??!1,isRepoRoot:ae,onClick:()=>St(pe),onRename:ke=>wn(M.id,ke),onDelete:()=>we(pe)},M.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:676,columnNumber:21},this)}const He=pe.node,gt=`${pe.root.id}:${He.path}`,E=He.kind==="folder"&&He.children?He.children.length:void 0;return m.jsxDEV(iw,{source:{id:pe.root.id,library_id:pe.root.library_id,owner_id:pe.root.owner_id,path:He.path,kind:He.kind,source_type:He.source_type??null,name:He.name,content_hash:null,metadata:He.metadata??null,index_status:He.index_status??"none",created_at:pe.root.created_at,updated_at:pe.root.updated_at},...E!==void 0?{childCount:E}:{},isDaemonLibrary:Yt??!1,onClick:()=>St(pe)},gt,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:710,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:661,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:647,columnNumber:9},this),te&&m.jsxDEV(Fj,{onConfirm:ut,onCancel:()=>{_(!1),H(null)},error:P},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:739,columnNumber:9},this),de&&m.jsxDEV(Wj,{onConfirm:Dn,onCancel:()=>{ge(!1),xe(null)},error:K,uploading:G},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:751,columnNumber:9},this),Ee&&m.jsxDEV(Xj,{onClose:()=>J(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:764,columnNumber:9},this),me&&m.jsxDEV(lw,{target:me,onConfirm:En,onCancel:()=>{W(null),ie(null)}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:769,columnNumber:9},this),nt&&b&&m.jsxDEV(lw,{target:{type:"client",name:b.name},onConfirm:Za,onCancel:Ra},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:781,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:519,columnNumber:5},this)}function b4(){const{t:s}=Ge(),[o,l]=w.useState(!1),[c,u]=w.useState(null),d=w.useRef(),h=w.useRef(),g=window.location.host,b=`c4a-daemon --server ${g} --allow <dir1> <dir2>`,y=`c4a-daemon --server ${g}`,D=w.useCallback((R,k)=>{navigator.clipboard.writeText(R),u(k),clearTimeout(d.current),d.current=setTimeout(()=>u(null),1500)},[]),x=w.useCallback(()=>{clearTimeout(h.current),l(!0)},[]),N=w.useCallback(()=>{h.current=setTimeout(()=>l(!1),150)},[]);return m.jsxDEV("span",{className:"relative",onMouseEnter:x,onMouseLeave:N,children:[m.jsxDEV(bb,{size:12,className:"text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:41,columnNumber:7},this),o&&m.jsxDEV("span",{className:"absolute left-full top-1/2 z-10 ml-2 -translate-y-1/2 rounded border border-c4a-border-default bg-c4a-bg-elevated px-2.5 py-2 shadow-lg",onMouseEnter:x,onMouseLeave:N,children:[m.jsxDEV("span",{className:"block whitespace-nowrap font-mono text-xs text-c4a-text-secondary",children:s("sources.import.allowed_dirs_tooltip_restrict")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:49,columnNumber:11},this),m.jsxDEV("span",{className:"mt-1 flex items-center gap-1.5 whitespace-nowrap",children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-accent",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:53,columnNumber:13},this),m.jsxDEV("button",{onClick:()=>D(b,0),className:"shrink-0 rounded p-0.5 text-c4a-accent transition-colors hover:bg-c4a-bg-hover",title:"Copy",children:c===0?m.jsxDEV(ul,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:61,columnNumber:34},this):m.jsxDEV(PS,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:61,columnNumber:56},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:56,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:52,columnNumber:11},this),m.jsxDEV("span",{className:"mt-2 block whitespace-nowrap font-mono text-xs text-c4a-text-secondary",children:s("sources.import.allowed_dirs_tooltip_all")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:66,columnNumber:11},this),m.jsxDEV("span",{className:"mt-1 flex items-center gap-1.5 whitespace-nowrap",children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-accent",children:y},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:70,columnNumber:13},this),m.jsxDEV("button",{onClick:()=>D(y,1),className:"shrink-0 rounded p-0.5 text-c4a-accent transition-colors hover:bg-c4a-bg-hover",title:"Copy",children:c===1?m.jsxDEV(ul,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:78,columnNumber:34},this):m.jsxDEV(PS,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:78,columnNumber:56},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:73,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:69,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:36,columnNumber:5},this)}function y4({open:s,onClose:o,rpc:l,onNavigate:c,defaultPath:u}){const{t:d}=Ge(),[h,g]=w.useState(u??""),[b,y]=w.useState(null),[D,x]=w.useState(!1),N=w.useRef(null);w.useEffect(()=>{u&&!h&&g(u)},[u]);const R=w.useCallback(async()=>{const B=h.trim();if(B){x(!0),y(null);try{(await l("fs/exists",{path:B})).exists?(c(B),g(u??""),y(null),o()):y(d("sources.import.wildcard_path_not_found"))}catch(L){y(L instanceof Error?L.message:String(L))}finally{x(!1)}}},[h,l,d,c,o]),k=w.useCallback(()=>{g(u??""),y(null),o()},[o,u]);return s?m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",children:m.jsxDEV("div",{className:"w-full max-w-md rounded-lg border border-c4a-border-default bg-c4a-bg-surface p-5 shadow-xl",children:[m.jsxDEV("div",{className:"flex items-center justify-between",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-medium text-c4a-text-primary",children:d("sources.import.wildcard_go_title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:61,columnNumber:11},this),m.jsxDEV("button",{onClick:k,className:"rounded p-1 text-c4a-text-muted transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-secondary",children:m.jsxDEV(Zf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:68,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:64,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:60,columnNumber:9},this),m.jsxDEV("div",{className:"mt-3 flex items-center gap-2",children:[m.jsxDEV("input",{ref:N,type:"text",value:h,onChange:B=>{g(B.target.value),y(null)},onKeyDown:B=>{B.key==="Enter"&&R()},placeholder:d("sources.import.wildcard_path_placeholder"),autoFocus:!0,className:"flex-1 rounded border border-c4a-border-default bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-text-primary outline-none transition-colors focus:border-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:72,columnNumber:11},this),m.jsxDEV("button",{onClick:R,disabled:D||!h.trim(),className:"flex shrink-0 items-center gap-1.5 rounded bg-c4a-accent px-3 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[D?m.jsxDEV(Oa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:88,columnNumber:15},this):m.jsxDEV(o4,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:90,columnNumber:15},this),d("sources.import.wildcard_go")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:82,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:71,columnNumber:9},this),b&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:59,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:58,columnNumber:5},this):null}function v4(s){const o=s.match(/^[\w.-]+@([\w.-]+):([\w./-]+?)(?:\.git)?$/);if(o){const l=o[1],c=o[2];return{slug:c,repoUrl:`https://${l}/${c}`,host:l}}try{const l=new URL(s),c=l.hostname,u=l.pathname.replace(/^\//,"").replace(/\.git$/,"");return u?{slug:u,repoUrl:`https://${c}/${u}`,host:c}:null}catch{return null}}function s3(s,o){return`${s}/tree/${encodeURIComponent(o)}`}function o3(s,o){return`${s}/commit/${o}`}function r3({rpc:s,selectedPath:o,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:d}=Ge(),h=!!c&&c.length>0,g=h&&c.length===1&&c[0]==="*",[b,y]=w.useState(h),[D,x]=w.useState(h&&!g?"":"/"),[N,R]=w.useState([]),[k,B]=w.useState(!1),[L,F]=w.useState(null),[Q,ee]=w.useState(null);w.useEffect(()=>{if(h&&!g)return;let K=!1;return(async()=>{try{const xe=await s("fs/homeDir",{});K||ee(xe.home_dir)}catch{K||ee("/")}})(),()=>{K=!0}},[h,g,s]);const[ue,re]=w.useState(!1),ne=w.useCallback(async K=>{B(!0),F(null);try{const xe=await s("fs/listTree",{path:K,depth:1});R(xe.entries||[]),x(K),y(!1)}catch(xe){const G=xe instanceof Error?xe.message:String(xe);F(G)}finally{B(!1)}},[s]);w.useEffect(()=>{h&&!g||Q!==null&&ne(Q)},[Q]);const[te,_]=w.useState(null),[P,H]=w.useState(null),[me,W]=w.useState(!1);w.useEffect(()=>{if(!o){H(null),W(!1);return}H(null),W(!0);let K=!1;return(async()=>{try{const xe=await s("fs/repoStatus",{path:o});K||(H({branch:xe.branch,hash:xe.head_hash,remoteUrl:xe.remote_url}),W(!1))}catch{K||(H(null),W(!1))}})(),()=>{K=!0}},[o,s]);const X=w.useMemo(()=>P?.remoteUrl?v4(P.remoteUrl):null,[P?.remoteUrl]),ie=w.useMemo(()=>new Set(u??[]),[u]),Ee=w.useCallback(K=>{if(K.type==="directory")if(K.is_git_repo){if(ie.has(K.path))return;_(null),l(K.path,K.name)}else _(K.path),ne(K.path)},[l,ne,ie]),J=w.useCallback(()=>{if(h&&!g&&c.some(G=>G===D)){y(!0),x(""),R([]),F(null),_(null);return}const K=D.split("/").slice(0,-1).join("/")||"/";_(null),ne(K)},[D,ne,h,g,c]),de=w.useMemo(()=>N.filter(K=>K.type==="directory").sort((K,xe)=>K.is_git_repo&&!xe.is_git_repo?-1:!K.is_git_repo&&xe.is_git_repo?1:K.name.localeCompare(xe.name)),[N]),ge=w.useMemo(()=>N.filter(K=>K.type==="file").sort((K,xe)=>K.name.localeCompare(xe.name)),[N]);return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1",children:[b?m.jsxDEV("p",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:d("sources.import.allowed_dirs")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:212,columnNumber:13},this),m.jsxDEV(b4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:213,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:211,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 shrink truncate font-mono text-xs text-c4a-text-muted",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:216,columnNumber:11},this),o&&me?m.jsxDEV("div",{className:"flex shrink-0 items-center gap-1.5 font-mono text-xs text-c4a-accent",children:[m.jsxDEV(Oa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:222,columnNumber:13},this),m.jsxDEV("span",{children:d("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:223,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:221,columnNumber:11},this):o&&P?m.jsxDEV("div",{className:"flex min-w-0 shrink items-center gap-1.5 font-mono text-xs leading-none text-c4a-accent flex-wrap",children:[X?m.jsxDEV("a",{href:X.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 truncate hover:underline",title:X.repoUrl,children:[m.jsxDEV(nb,{size:12,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:235,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:X.slug},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:236,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:228,columnNumber:15},this):m.jsxDEV("span",{className:"flex items-center gap-1 truncate",children:[m.jsxDEV(nb,{size:12,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:240,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:o.split("/").pop()||o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:241,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:239,columnNumber:15},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"/"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:244,columnNumber:13},this),X?m.jsxDEV("a",{href:s3(X.repoUrl,P.branch),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:underline",children:[m.jsxDEV(Yf,{size:10,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:252,columnNumber:17},this),m.jsxDEV("span",{children:P.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:253,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:246,columnNumber:15},this):m.jsxDEV("span",{className:"flex items-center gap-1",children:[m.jsxDEV(Yf,{size:10,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:257,columnNumber:17},this),m.jsxDEV("span",{children:P.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:258,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:256,columnNumber:15},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"/"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:261,columnNumber:13},this),X?m.jsxDEV("a",{href:o3(X.repoUrl,P.hash),target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:P.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:263,columnNumber:15},this):m.jsxDEV("span",{children:P.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:272,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:226,columnNumber:11},this):!o&&g&&b?m.jsxDEV("button",{onClick:()=>re(!0),className:"flex shrink-0 items-center gap-1.5 rounded border border-c4a-accent/40 bg-c4a-accent/10 px-2.5 py-1 text-xs text-c4a-accent transition-colors hover:bg-c4a-accent/20",children:d("sources.import.wildcard_goto")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:276,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:209,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:285,columnNumber:7},this),b?g?m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:Q&&m.jsxDEV("button",{onClick:()=>ne(Q),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(Yn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:296,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[Q,m.jsxDEV("span",{className:"ml-1.5 text-c4a-text-muted",children:["(",d("sources.import.wildcard_home"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:299,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:297,columnNumber:17},this),m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:303,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:292,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:290,columnNumber:11},this):m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:c.map(K=>m.jsxDEV("button",{onClick:()=>ne(K),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(Yn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:316,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:K},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:317,columnNumber:17},this),m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:318,columnNumber:17},this)]},K,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:311,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:309,columnNumber:11},this):L&&!k?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:327,columnNumber:9},this):m.jsxDEV("div",{className:"relative min-h-[5rem] min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:[k&&m.jsxDEV("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-c4a-bg-surface/60",children:m.jsxDEV(Oa,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:332,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:331,columnNumber:13},this),D!=="/"&&m.jsxDEV("button",{onClick:J,disabled:k,className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover disabled:pointer-events-none",children:[m.jsxDEV(Yn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:342,columnNumber:15},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:343,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:337,columnNumber:13},this),de.map(K=>{const xe=K.is_git_repo&&ie.has(K.path),G=K.is_git_repo?yb:Yn;return m.jsxDEV("div",{className:`flex w-full items-center rounded pl-2 pr-4 text-left text-sm transition-colors ${xe?"cursor-not-allowed text-c4a-accent/60":o===K.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-accent/10 hover:text-c4a-accent"}`,children:[m.jsxDEV("button",{onClick:()=>Ee(K),disabled:xe||k,className:"flex flex-1 items-center gap-2 px-2 py-1.5",children:[m.jsxDEV(G,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:367,columnNumber:17},this),m.jsxDEV("span",{className:"flex-1 truncate text-left",children:K.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:368,columnNumber:17},this),xe&&m.jsxDEV("span",{className:"rounded bg-c4a-accent/10 px-1.5 py-0.5 font-mono text-[10px] text-c4a-accent/60",children:d("sources.import.already_imported")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:370,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:362,columnNumber:15},this),!xe&&m.jsxDEV("button",{onClick:ve=>{ve.stopPropagation(),ne(K.path)},disabled:k,className:"shrink-0 rounded p-1.5 text-c4a-text-muted transition-colors hover:bg-c4a-accent/10 hover:text-c4a-accent disabled:pointer-events-none",title:K.path,children:m.jsxDEV(So,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:382,columnNumber:19},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:376,columnNumber:17},this)]},K.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:352,columnNumber:13},this)}),ge.map(K=>m.jsxDEV("div",{className:"flex w-full items-center gap-2 pl-2 pr-4 py-1.5 text-sm text-c4a-text-muted",children:[m.jsxDEV(r4,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:395,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:K.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:396,columnNumber:15},this)]},K.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:391,columnNumber:13},this)),N.length===0&&!k&&m.jsxDEV("p",{className:"py-4 text-center text-xs text-c4a-text-muted",children:d("sources.import.no_entries")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:401,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:329,columnNumber:9},this),te&&!o&&m.jsxDEV("p",{className:"mt-3 text-xs text-c4a-warning",children:d("sources.import.not_git")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:410,columnNumber:9},this),m.jsxDEV(y4,{open:ue,onClose:()=>re(!1),rpc:s,onNavigate:ne,defaultPath:Q??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:416,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:208,columnNumber:5},this)}function uw({value:s,options:o,onChange:l,icon:c,maxHeight:u="max-h-60"}){const[d,h]=w.useState(!1),g=w.useRef(null),b=w.useRef(null),y=w.useCallback(R=>{g.current&&!g.current.contains(R.target)&&h(!1)},[]);w.useEffect(()=>{if(d)return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[d,y]);const D=w.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!0)},[]),x=w.useCallback(()=>{b.current=setTimeout(()=>h(!1),150)},[]),N=o.find(R=>R.value===s);return m.jsxDEV("div",{ref:g,className:"relative",onMouseEnter:D,onMouseLeave:x,children:[m.jsxDEV("button",{onClick:()=>h(R=>!R),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[c,m.jsxDEV("span",{className:"max-w-[200px] truncate",children:N?.label??s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:62,columnNumber:9},this),m.jsxDEV(Qf,{size:12,className:`shrink-0 transition-transform ${d?"rotate-180":""}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:63,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:57,columnNumber:7},this),d&&m.jsxDEV("div",{className:`absolute left-0 top-full z-20 mt-1 min-w-[180px] max-w-[360px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg ${u} c4a-scrollbar overflow-y-auto`,children:o.map(R=>m.jsxDEV("button",{onClick:()=>{l(R.value),h(!1)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-xs transition-colors hover:bg-c4a-bg-hover ${R.value===s?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:[m.jsxDEV(ul,{size:12,className:`shrink-0 ${R.value===s?"opacity-100":"opacity-0"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:80,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:R.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:81,columnNumber:15},this)]},R.value,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:68,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:66,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:56,columnNumber:5},this)}const i3=/\.md$/i,Ig=100,l3=(s,o)=>{const l=s.toLowerCase();try{if(l.endsWith("package.json")){const c=JSON.parse(o);if(typeof c.name=="string"&&c.name.trim())return c.name.trim()}if(l.endsWith("pyproject.toml"))return o.match(/^\s*name\s*=\s*["']([^"']+)["']/m)?.[1]??null;if(l.endsWith("go.mod"))return o.match(/^\s*module\s+([^\s]+)\s*$/m)?.[1]??null;if(l.endsWith("cargo.toml"))return o.match(/^\s*name\s*=\s*["']([^"']+)["']/m)?.[1]??null;if(l.endsWith("pom.xml"))return o.match(/<artifactId>([^<]+)<\/artifactId>/)?.[1]?.trim()??null;if(l.endsWith("build.gradle"))return o.match(/rootProject\.name\s*=\s*["']([^"']+)["']/)?.[1]??null}catch{return null}return null};function c3({rpc:s,repoPath:o,onReady:l,onBusyChange:c}){const{t:u}=Ge(),[d,h]=w.useState(""),[g,b]=w.useState([]),[y,D]=w.useState(""),[x,N]=w.useState([]),[R,k]=w.useState(!1),[B,L]=w.useState(!0),[F,Q]=w.useState(!1),[ee,ue]=w.useState(!1),[re,ne]=w.useState([]),[te,_]=w.useState([]),[,P]=w.useState([]),[H,me]=w.useState(),W=w.useMemo(()=>H?v4(H):null,[H]),[X,ie]=w.useState("packages"),[Ee,J]=w.useState(Ig),de=w.useRef(null),ge=w.useRef(null);w.useEffect(()=>{if(!B){Q(!1);return}const Se=setTimeout(()=>Q(!0),2e3);return()=>clearTimeout(Se)},[B]),w.useEffect(()=>{J(Ig),ge.current?.scrollTo(0,0)},[X]),w.useEffect(()=>{const Se=de.current;if(!Se)return;const Mt=X==="packages"?re.length:te.length;if(Ee>=Mt)return;const he=new IntersectionObserver(Yt=>{Yt[0]?.isIntersecting&&J(pt=>Math.min(pt+Ig,Mt))},{root:ge.current,threshold:.1});return he.observe(Se),()=>he.disconnect()},[X,Ee,re.length,te.length]);const K=w.useCallback(async(Se,Mt)=>{ue(!0),c?.(!0);try{const he=await s("fs/repoScan",{path:o,hash:Se}),Yt=he.files||[],pt=he.manifests||[];P(Yt);const Ft=[];for(const oa of pt){const wn=oa.path.split("/"),we=wn.slice(0,-1).join("/")||".",En=wn.length===1||oa.path==="package.json",va=we==="."?o.split("/").pop()||"root":wn[wn.length-2]||we,Xa=l3(oa.path,oa.content);Ft.push({name:Xa||va,path:we,isRoot:En})}const ya=Yt.filter(oa=>i3.test(oa.path)).map(oa=>oa.path);_(ya),ne(Ft);const ut=Mt?.branch??d,St=Mt?.isDirty??R;l({branch:ut,commit:Se,isDirty:St,repoFiles:Yt,packages:Ft,mdFiles:ya,repoFileContents:pt})}catch{}finally{ue(!1),c?.(!1)}},[s,o,d,R,l,c]);w.useEffect(()=>{(async()=>{L(!0),c?.(!0);try{const Se=await s("fs/repoStatus",{path:o});h(Se.branch),b(Se.branches||[Se.branch]),D(Se.head_hash),k(Se.is_dirty),me(Se.remote_url),N(Se.commits||[{hash:Se.head_hash,message:"HEAD"}]),await K(Se.head_hash,{branch:Se.branch,isDirty:Se.is_dirty})}catch{}finally{L(!1),c?.(!1)}})()},[o]),w.useEffect(()=>{l({branch:d,commit:y,isDirty:R,packages:re,mdFiles:te,repoFileContents:[]})},[d,y,R]);const xe=w.useCallback(async Se=>{h(Se);try{const Mt=await s("fs/repoStatus",{path:o});D(Mt.head_hash),await K(Mt.head_hash)}catch{}},[o,s,K]),G=d&&d!=="main"&&d!=="master",ve=o.split("/").pop()||o;if(B)return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col items-center justify-center",children:[m.jsxDEV(Oa,{size:20,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:222,columnNumber:9},this),F&&m.jsxDEV("p",{className:"mt-3 font-mono text-xs text-c4a-accent",children:u("sources.import.loading_repo_slow")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:224,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:221,columnNumber:7},this);const je=g.map(Se=>({value:Se,label:Se})),_e=x.map(Se=>({value:Se.hash,label:`${Se.hash.slice(0,7)} ${Se.message!=="HEAD"?`— ${Se.message.slice(0,50)}`:""}`.trim()})),mt=x.length<=1,Rt=X==="packages"?re:te,nt=Rt.slice(0,Ee),$t=Ee<Rt.length;return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col",children:[m.jsxDEV("div",{className:"shrink-0",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:[m.jsxDEV("span",{className:"flex items-center gap-1.5",children:W?m.jsxDEV("a",{href:W.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 font-mono text-sm font-bold text-c4a-accent hover:underline",children:[m.jsxDEV(nb,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:257,columnNumber:17},this),ve]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:251,columnNumber:15},this):m.jsxDEV("span",{className:"font-mono text-sm font-bold text-c4a-accent",children:ve},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:261,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:249,columnNumber:11},this),m.jsxDEV("span",{className:"hidden font-mono text-xs text-c4a-text-muted sm:inline",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:265,columnNumber:11},this),m.jsxDEV("div",{className:"ml-auto flex items-center gap-2",children:[m.jsxDEV(uw,{value:d,options:je,onChange:xe,icon:m.jsxDEV(Yf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:272,columnNumber:21},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:268,columnNumber:13},this),mt?m.jsxDEV("span",{className:"hidden items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs text-c4a-text-muted sm:flex",children:[m.jsxDEV(ab,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:276,columnNumber:17},this),y.slice(0,7)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:275,columnNumber:15},this):m.jsxDEV("div",{className:"hidden sm:block",children:m.jsxDEV(uw,{value:y,options:_e,onChange:Se=>{D(Se),K(Se)},icon:m.jsxDEV(ab,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:285,columnNumber:25},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:281,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:280,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:267,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:247,columnNumber:9},this),(G||R)&&m.jsxDEV("div",{className:"mt-2 flex flex-wrap gap-x-4 gap-y-1",children:[G&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-info",children:[m.jsxDEV(ET,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:297,columnNumber:17},this),u("sources.import.branch_warning",{branch:d})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:296,columnNumber:15},this),R&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-warning",children:[m.jsxDEV(bb,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:303,columnNumber:17},this),u("sources.import.uncommitted_warning")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:302,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:294,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:246,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface",children:[m.jsxDEV("div",{className:"flex shrink-0 items-center justify-between px-4 py-3",children:[m.jsxDEV("p",{className:"hidden font-mono text-xs text-c4a-text-primary sm:block",children:ee?m.jsxDEV("span",{className:"flex items-center gap-2",children:[m.jsxDEV(Oa,{size:12,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:318,columnNumber:17},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"Analyzing repository..."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:319,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:317,columnNumber:15},this):re.length>0?u("sources.import.recognized",{packages:re.length,docs:te.length}):u("sources.import.no_packages")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:315,columnNumber:11},this),!ee&&(re.length>0||te.length>0)&&m.jsxDEV("div",{className:"flex rounded border border-c4a-border-subtle",children:[m.jsxDEV("button",{onClick:()=>ie("packages"),className:`flex items-center gap-1 px-2.5 py-1 text-xs transition-colors ${X==="packages"?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:[m.jsxDEV(dl,{size:13},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:338,columnNumber:17},this),m.jsxDEV("span",{className:"font-mono",children:re.length},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:339,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:330,columnNumber:15},this),m.jsxDEV("button",{onClick:()=>ie("docs"),className:`flex items-center gap-1 border-l border-c4a-border-subtle px-2.5 py-1 text-xs transition-colors ${X==="docs"?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:[m.jsxDEV(pr,{size:13},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:349,columnNumber:17},this),m.jsxDEV("span",{className:"font-mono",children:te.length},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:350,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:341,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:329,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:314,columnNumber:9},this),m.jsxDEV("hr",{className:"border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:356,columnNumber:9},this),m.jsxDEV("div",{ref:ge,className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto px-2 py-1",children:ee?m.jsxDEV("div",{className:"flex items-center justify-center py-8",children:m.jsxDEV(Oa,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:362,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:361,columnNumber:13},this):Rt.length===0?m.jsxDEV("p",{className:"py-8 text-center text-xs text-c4a-text-muted",children:X==="packages"?u("sources.import.no_packages"):"—"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:365,columnNumber:13},this):m.jsxDEV(m.Fragment,{children:[X==="packages"?nt.map(Se=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded pl-2 pr-4 py-1 text-xs",children:[m.jsxDEV(dl,{size:14,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:373,columnNumber:23},this),m.jsxDEV("span",{className:"text-c4a-text-primary",children:Se.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:374,columnNumber:23},this),m.jsxDEV("span",{className:"hidden truncate text-c4a-text-muted sm:inline",children:Se.path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:375,columnNumber:23},this),Se.isRoot&&m.jsxDEV("span",{className:"rounded bg-c4a-bg-active px-1 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:"root"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:377,columnNumber:25},this)]},Se.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:372,columnNumber:21},this)):nt.map(Se=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded pl-2 pr-4 py-1 text-xs",children:[m.jsxDEV(pr,{size:14,className:"shrink-0 text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:383,columnNumber:23},this),m.jsxDEV("span",{className:"truncate text-c4a-text-primary",children:Se},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:384,columnNumber:23},this)]},Se,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:382,columnNumber:21},this)),$t&&m.jsxDEV("div",{ref:de,className:"h-4"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:388,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:369,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:359,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:312,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:244,columnNumber:5},this)}function u3({importState:s,libraryName:o,importing:l}){const{t:c}=Ge(),u=s.repoName||s.repoPath.split("/").pop()||"";return m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[m.jsxDEV("p",{className:"text-sm text-c4a-text-secondary",children:c("sources.import.confirm_heading",{name:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:21,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex flex-wrap items-center gap-x-3 gap-y-1",children:[m.jsxDEV("span",{className:"font-mono text-sm font-bold text-c4a-accent",children:u},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:27,columnNumber:9},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:s.repoPath},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:28,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:26,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-4",children:[m.jsxDEV(Of,{icon:m.jsxDEV(Yf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:34,columnNumber:17},this),label:c("sources.import.branch"),value:s.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:33,columnNumber:9},this),m.jsxDEV(Of,{icon:m.jsxDEV(ab,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:39,columnNumber:17},this),label:c("sources.import.commit"),value:s.commit.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:38,columnNumber:9},this),m.jsxDEV(Of,{icon:m.jsxDEV(dl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:44,columnNumber:17},this),label:c("sources.import.packages"),value:String(s.packages.length),tooltip:c("sources.import.dir_code_packages_tip")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:43,columnNumber:9},this),m.jsxDEV(Of,{icon:m.jsxDEV(pr,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:50,columnNumber:17},this),label:c("sources.import.documents"),value:String(s.mdFiles.length),tooltip:c("sources.import.dir_doc_files_tip")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:49,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:32,columnNumber:7},this),l&&m.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[m.jsxDEV(Oa,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:60,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:c("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:61,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:59,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:20,columnNumber:5},this)}function Of({icon:s,label:o,value:l,tooltip:c}){return m.jsxDEV("div",{className:"group/stat relative rounded border border-c4a-border-subtle bg-c4a-bg-base p-3",children:[m.jsxDEV("div",{className:"flex items-center gap-1.5 text-c4a-text-muted",children:[s,m.jsxDEV("span",{className:"font-mono text-[10px] uppercase",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:83,columnNumber:7},this),m.jsxDEV("p",{className:"mt-1 truncate font-mono text-sm font-bold text-c4a-text-primary",title:l,children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:87,columnNumber:7},this),c&&m.jsxDEV("div",{className:"pointer-events-none absolute bottom-full left-0 z-30 mb-1.5 hidden w-max max-w-[260px] rounded border border-c4a-border-default bg-c4a-bg-elevated px-2.5 py-1.5 text-[11px] leading-relaxed text-c4a-text-secondary shadow-c4a-lg group-hover/stat:block",children:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:91,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:82,columnNumber:5},this)}function d3(){const{t:s}=Ge(),o=hr(),{libId:l}=Ff(),u=Aa(ml(mu)).find(_=>_.id===l),d=Kf(_=>_.createSource),[h,g]=w.useState(1),[b,y]=w.useState(!1),[D,x]=w.useState(!1),[N,R]=w.useState({repoPath:"",repoName:"",branch:"",branches:[],commit:"",commits:[],isDirty:!1,repoFiles:[],packages:[],mdFiles:[],repoFileContents:[]}),k=u?.is_online??!1,[B,L]=w.useState([]);w.useEffect(()=>{if(!l)return;let _=!1;return(async()=>{try{const P=await ba.get("/sources",{library_id:l,limit:"500"});if(_)return;const H=P.items.map(me=>{const W=me.metadata;return typeof W?.local_path=="string"?W.local_path:null}).filter(me=>me!==null);L(H)}catch{}})(),()=>{_=!0}},[l]);const F=w.useMemo(()=>{const _=u?.config;return!_||!Array.isArray(_.allowed_paths)?[]:_.allowed_paths},[u]),Q=w.useCallback(async(_,P)=>{if(!l)throw new Error("No library");const H=await ba.post(`/libraries/${l}/rpc`,{method:_,params:P});if(H.error){const me=H.error;throw new Error(me.message??JSON.stringify(H.error))}return H.result??H},[l]),ee=w.useCallback((_,P)=>{R(H=>({...H,repoPath:_,repoName:P}))},[]),ue=w.useCallback(_=>{R(P=>({...P,..._}))},[]),re=w.useCallback(async()=>{if(l){y(!0);try{const _=await d({library_id:l,repo_name:N.repoName,repo_root_path:N.repoPath,repo_branch:N.branch,repo_commit:N.commit,repo_files:N.repoFiles.map(H=>H.path),repo_file_contents:N.repoFileContents}),P=Array.isArray(_)?_[0]:_;P?.id?o(`/studio/sources/${l}?rootId=${P.id}`):o(`/studio/sources/${l}`)}catch{y(!1)}}},[l,N,d,o]),ne=w.useMemo(()=>h===1?!!N.repoPath:h===2?!!N.commit:!0,[h,N]),te=w.useMemo(()=>u?[{label:u.id===ru?s("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:s("sources.import.title")}]:[],[u,s]);return u?m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"shrink-0",children:m.jsxDEV(pu,{segments:te},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:191,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:190,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-2 font-mono text-sm sm:mt-6 md:gap-3",children:[m.jsxDEV(Fg,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:196,columnNumber:9},this),m.jsxDEV("span",{className:h===1?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.select")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:197,columnNumber:9},this),m.jsxDEV(dw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:200,columnNumber:9},this),m.jsxDEV(Fg,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:201,columnNumber:9},this),m.jsxDEV("span",{className:h===2?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.version")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:202,columnNumber:9},this),m.jsxDEV(dw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:205,columnNumber:9},this),m.jsxDEV(Fg,{active:h>=3,current:h===3},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:206,columnNumber:9},this),m.jsxDEV("span",{className:h===3?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:207,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:195,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex min-h-0 flex-1 flex-col sm:mt-6",children:k?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(r3,{rpc:Q,selectedPath:N.repoPath,onSelect:ee,allowedPaths:F,importedPaths:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:221,columnNumber:15},this),h===2&&m.jsxDEV(c3,{rpc:Q,repoPath:N.repoPath,onReady:ue,onBusyChange:x},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:230,columnNumber:15},this),h===3&&m.jsxDEV(u3,{importState:N,libraryName:u.name,importing:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:238,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:219,columnNumber:11},this):m.jsxDEV(f3,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:215,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:213,columnNumber:7},this),k&&m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-4 sm:mt-6",children:[m.jsxDEV("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-c4a-text-muted line-clamp-1 sm:line-clamp-none",title:s("sources.safety.notice.repo"),onClick:_=>_.currentTarget.classList.toggle("line-clamp-1"),children:s("sources.safety.notice.repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:251,columnNumber:11},this),m.jsxDEV("div",{className:"flex shrink-0 gap-2",children:[h>1&&m.jsxDEV("button",{onClick:()=>g(_=>_-1),disabled:b||D,className:"rounded border border-c4a-border-default px-4 py-2 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover disabled:opacity-40",children:s("common.previous")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:260,columnNumber:15},this),h<3?m.jsxDEV("button",{onClick:()=>g(_=>_+1),disabled:!ne||D,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:s("common.next")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:269,columnNumber:15},this):m.jsxDEV("button",{onClick:re,disabled:b||D,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[b&&m.jsxDEV(Oa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:282,columnNumber:31},this),s(b?"sources.import.importing":"sources.import.step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:277,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:258,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:250,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:189,columnNumber:5},this):m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:183,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:182,columnNumber:7},this)}function Fg({active:s,current:o}){return m.jsxDEV("span",{className:`inline-block h-2.5 w-2.5 rounded-full border-2 ${o?"border-c4a-accent bg-c4a-accent":s?"border-c4a-accent bg-transparent":"border-c4a-border-default bg-transparent"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:303,columnNumber:5},this)}function dw(){return m.jsxDEV("span",{className:"h-px flex-1 bg-c4a-border-default"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:316,columnNumber:10},this)}function f3({libraryName:s}){const{t:o}=Ge();return m.jsxDEV("div",{className:"rounded border border-c4a-warning/30 bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("p",{className:"text-sm text-c4a-warning",children:o("sources.import.daemon_offline",{name:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:327,columnNumber:7},this),m.jsxDEV(sn,{to:"/studio/sources/add-client",className:"mt-4 inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("sources.import.view_guide")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:330,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:326,columnNumber:5},this)}const fw=(s,o)=>{let l=0,c=0,u=0;const d=[],h=g=>{for(const b of g)if(b.type==="directory")c++,b.is_git_repo&&u++,b.children&&h(b.children);else if(l++,/\.md$/i.test(b.name)){const y=b.path.startsWith(o)?b.path.slice(o.length).replace(/^\//,""):b.name;d.push(y)}};return h(s),{files:l,dirs:c,gitRepos:u,mdFiles:d}};function m3({rpc:s,selectedPath:o,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:d}=Ge(),h=!!c&&c.length>0,g=h&&c.length===1&&c[0]==="*",[b,y]=w.useState(h),[D,x]=w.useState(h&&!g?"":"/"),[N,R]=w.useState([]),[k,B]=w.useState(!1),[L,F]=w.useState(null),Q=w.useMemo(()=>new Set(u??[]),[u]),[ee,ue]=w.useState(null);w.useEffect(()=>{if(h&&!g)return;let X=!1;return(async()=>{try{const ie=await s("fs/homeDir",{});X||ue(ie.home_dir)}catch{X||ue("/")}})(),()=>{X=!0}},[h,g,s]);const[re,ne]=w.useState(!1),te=w.useCallback(async X=>{B(!0),F(null);try{const ie=await s("fs/listTree",{path:X,depth:1});R(ie.entries||[]),x(X),y(!1)}catch(ie){const Ee=ie instanceof Error?ie.message:String(ie);F(Ee)}finally{B(!1)}},[s]);w.useEffect(()=>{h&&!g||ee!==null&&te(ee)},[ee]);const _=w.useCallback(X=>{if(X.type!=="directory"||Q.has(X.path))return;const ie=fw(X.children||[],X.path);l(X.path,X.name,ie),te(X.path)},[l,te,Q]),P=w.useCallback(()=>{if(h&&!g&&c.some(Ee=>Ee===D)){y(!0),x(""),R([]),F(null);return}const X=D.split("/").slice(0,-1).join("/")||"/";te(X)},[D,te,h,g,c]);w.useEffect(()=>{if(D&&!b&&N.length>=0&&!k){const X=D.split("/").pop()||D,ie=fw(N,D);l(D,X,ie)}},[D,b,N,k]);const H=w.useMemo(()=>o?o.split("/").pop()||o:"",[o]),me=w.useMemo(()=>N.filter(X=>X.type==="directory").sort((X,ie)=>X.is_git_repo&&!ie.is_git_repo?-1:!X.is_git_repo&&ie.is_git_repo?1:X.name.localeCompare(ie.name)),[N]),W=w.useMemo(()=>N.filter(X=>X.type==="file").sort((X,ie)=>X.name.localeCompare(ie.name)),[N]);return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("div",{className:"flex items-center justify-between gap-4",children:[b?m.jsxDEV("p",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:d("sources.import.allowed_dirs")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:201,columnNumber:13},this),m.jsxDEV(b4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:202,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:200,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 truncate font-mono text-xs text-c4a-text-muted",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:205,columnNumber:11},this),o?m.jsxDEV("p",{className:"flex shrink-0 items-center gap-2 font-mono text-xs text-c4a-accent",children:[m.jsxDEV(Yn,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:211,columnNumber:13},this),m.jsxDEV("span",{children:H},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:212,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:210,columnNumber:11},this):g&&b?m.jsxDEV("button",{onClick:()=>ne(!0),className:"flex shrink-0 items-center gap-1.5 rounded border border-c4a-accent/40 bg-c4a-accent/10 px-2.5 py-1 text-xs text-c4a-accent transition-colors hover:bg-c4a-accent/20",children:d("sources.import.wildcard_goto")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:215,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:198,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:224,columnNumber:7},this),b?g?m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:ee&&m.jsxDEV("button",{onClick:()=>te(ee),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(Yn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:235,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[ee,m.jsxDEV("span",{className:"ml-1.5 text-c4a-text-muted",children:["(",d("sources.import.wildcard_home"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:238,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:236,columnNumber:17},this),m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:242,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:231,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:229,columnNumber:11},this):m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:c.map(X=>m.jsxDEV("button",{onClick:()=>te(X),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(Yn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:255,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:X},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:256,columnNumber:17},this),m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:257,columnNumber:17},this)]},X,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:250,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:248,columnNumber:11},this):L&&!k?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:266,columnNumber:9},this):m.jsxDEV("div",{className:"relative min-h-[5rem] min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:[k&&m.jsxDEV("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-c4a-bg-surface/60",children:m.jsxDEV(Oa,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:271,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:270,columnNumber:13},this),D!=="/"&&m.jsxDEV("button",{onClick:P,disabled:k,className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover disabled:pointer-events-none",children:[m.jsxDEV(Yn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:280,columnNumber:15},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:281,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:275,columnNumber:13},this),me.map(X=>{const ie=Q.has(X.path),Ee=X.is_git_repo?yb:Yn;return m.jsxDEV("button",{onClick:()=>_(X),disabled:ie||k,className:`flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm transition-colors ${ie?"cursor-not-allowed text-c4a-accent/60":o===X.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:[m.jsxDEV(Ee,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:301,columnNumber:15},this),m.jsxDEV("span",{className:"flex-1 truncate",children:X.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:302,columnNumber:15},this),ie&&m.jsxDEV("span",{className:"rounded bg-c4a-accent/10 px-1.5 py-0.5 font-mono text-[10px] text-c4a-accent/60",children:d("sources.import.already_imported")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:304,columnNumber:17},this),m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:308,columnNumber:15},this)]},X.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:289,columnNumber:13},this)}),W.map(X=>m.jsxDEV("div",{className:"flex w-full items-center gap-2 pl-2 pr-4 py-1.5 text-sm text-c4a-text-muted",children:[m.jsxDEV(r4,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:321,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:X.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:322,columnNumber:15},this)]},X.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:317,columnNumber:13},this)),N.length===0&&!k&&m.jsxDEV("p",{className:"py-4 text-center text-xs text-c4a-text-muted",children:d("sources.import.no_entries")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:327,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:268,columnNumber:9},this),m.jsxDEV(y4,{open:re,onClose:()=>ne(!1),rpc:s,onNavigate:te,defaultPath:ee??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:335,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:197,columnNumber:5},this)}const p3=new Set(["package.json","pyproject.toml","setup.py","go.mod","cargo.toml","pom.xml","build.gradle"]),h3=s=>{let o=0,l=0,c=0,u=0,d=0;const h=new Set;for(const g of s)if(g.type==="directory")l++,g.is_git_repo&&d++;else{o++,g.path.toLowerCase().endsWith(".md")&&u++;const y=g.path.split("/").pop();if(y&&p3.has(y.toLowerCase())){const D=g.path.split("/").slice(0,-1).join("/");s.some(N=>N.type==="directory"&&N.is_git_repo&&(D===N.path||D.startsWith(`${N.path}/`)))||h.add(D)}}return c=h.size,{totalFiles:o,totalDirs:l,codePackages:c,docFiles:u,gitRepos:d}};function g3({dirPath:s,rpc:o,importing:l,onScanComplete:c,onBusyChange:u}){const{t:d}=Ge(),[h,g]=w.useState(!1),[b,y]=w.useState(null),[D,x]=w.useState(null),N=w.useCallback(async()=>{g(!0),u?.(!0),y(null),x(null);try{const R=await o("fs/dirScan",{path:s}),k=R.entries||[],B=R.manifests||[],L=h3(k);x(L),c(k,L,B)}catch(R){const k=R instanceof Error?R.message:String(R);y(k)}finally{g(!1),u?.(!1)}},[s,o,c,u]);return w.useEffect(()=>{N()},[N]),m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[m.jsxDEV("p",{className:"shrink-0 font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:129,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 shrink-0 border-t border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:130,columnNumber:7},this),m.jsxDEV("div",{className:"c4a-scrollbar min-h-0 flex-1 overflow-y-auto",children:[h&&m.jsxDEV("div",{className:"mt-6 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-4",children:[m.jsxDEV(Oa,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:135,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:d("sources.import.dir_scanning")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:136,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:134,columnNumber:9},this),b&&m.jsxDEV("div",{className:"mt-6",children:[m.jsxDEV("p",{className:"flex items-start gap-2 text-xs text-c4a-error",children:[m.jsxDEV(bb,{size:14,className:"mt-0.5 shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:145,columnNumber:13},this),d("sources.import.dir_scan_error")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:144,columnNumber:11},this),m.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:148,columnNumber:11},this),m.jsxDEV("button",{onClick:N,className:"mt-3 flex items-center gap-1.5 rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(BT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:153,columnNumber:13},this),d("sources.import.dir_scan_retry")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:149,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:143,columnNumber:9},this),D&&!h&&!b&&m.jsxDEV("div",{className:"mt-6 space-y-3",children:[m.jsxDEV("p",{className:"font-mono text-sm uppercase text-c4a-accent",children:[d("sources.import.dir_scan_complete"),"!"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:161,columnNumber:11},this),m.jsxDEV("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[m.jsxDEV(Xc,{icon:m.jsxDEV(pr,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:167,columnNumber:21},this),label:d("sources.import.dir_doc_files"),value:D.docFiles,tooltip:d("sources.import.dir_doc_files_tip")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:166,columnNumber:13},this),m.jsxDEV(Xc,{icon:m.jsxDEV(dl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:173,columnNumber:21},this),label:d("sources.import.dir_code_packages"),value:D.codePackages,tooltip:d("sources.import.dir_code_packages_tip")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:172,columnNumber:13},this),D.gitRepos>0&&m.jsxDEV(Xc,{icon:m.jsxDEV(yb,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:180,columnNumber:23},this),label:d("sources.import.dir_git_repos"),value:D.gitRepos},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:179,columnNumber:15},this),m.jsxDEV(Xc,{icon:m.jsxDEV(Yn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:186,columnNumber:21},this),label:d("sources.import.dir_total_dirs"),value:D.totalDirs},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:185,columnNumber:13},this),m.jsxDEV(Xc,{icon:m.jsxDEV(uT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:191,columnNumber:21},this),label:d("sources.import.dir_total_files"),value:D.totalFiles},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:190,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:165,columnNumber:11},this),D.gitRepos>0&&m.jsxDEV("p",{className:"text-xs text-c4a-warning",children:d("sources.import.dir_git_skip_hint",{count:D.gitRepos})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:198,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:160,columnNumber:9},this),l&&m.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[m.jsxDEV(Oa,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:208,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:d("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:209,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:207,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:132,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:128,columnNumber:5},this)}function Xc({icon:s,label:o,value:l,tooltip:c}){return m.jsxDEV("div",{className:"group/stat relative rounded border border-c4a-border-subtle bg-c4a-bg-base p-3",children:[m.jsxDEV("div",{className:"flex items-center gap-1.5 text-c4a-text-muted",children:[s,m.jsxDEV("span",{className:"font-mono text-[10px] uppercase",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:234,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:232,columnNumber:7},this),m.jsxDEV("p",{className:"mt-1 font-mono text-lg font-bold text-c4a-text-primary",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:236,columnNumber:7},this),c&&m.jsxDEV("div",{className:"pointer-events-none absolute bottom-full left-0 z-30 mb-1.5 hidden w-max max-w-[260px] rounded border border-c4a-border-default bg-c4a-bg-elevated px-2.5 py-1.5 text-[11px] leading-relaxed text-c4a-text-secondary shadow-c4a-lg group-hover/stat:block",children:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:240,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:231,columnNumber:5},this)}function b3(){const{t:s}=Ge(),o=hr(),{libId:l}=Ff(),u=Aa(ml(mu)).find(_=>_.id===l),d=Kf(_=>_.createSource),[h,g]=w.useState(1),[b,y]=w.useState(!1),[D,x]=w.useState(!1),[N,R]=w.useState({dirPath:"",dirName:"",fileCount:0,subDirCount:0,gitRepoCount:0,mdFiles:[],scanEntries:[],scanStats:null,manifests:[]}),k=u?.is_online??!1,[B,L]=w.useState([]);w.useEffect(()=>{if(!l)return;let _=!1;return(async()=>{try{const P=await ba.get("/sources",{library_id:l,limit:"500"});if(_)return;const H=P.items.map(me=>{const W=me.metadata;return typeof W?.local_path=="string"?W.local_path:null}).filter(me=>me!==null);L(H)}catch{}})(),()=>{_=!0}},[l]);const F=w.useMemo(()=>{const _=u?.config;return!_||!Array.isArray(_.allowed_paths)?[]:_.allowed_paths},[u]),Q=w.useCallback(async(_,P)=>{if(!l)throw new Error("No library");const H=await ba.post(`/libraries/${l}/rpc`,{method:_,params:P});if(H.error){const me=H.error;throw new Error(me.message??JSON.stringify(H.error))}return H.result??H},[l]),ee=w.useCallback((_,P,H)=>{R(me=>({...me,dirPath:_,dirName:P,fileCount:H.files,subDirCount:H.dirs,gitRepoCount:H.gitRepos,mdFiles:H.mdFiles}))},[]),ue=w.useCallback((_,P,H)=>{R(me=>({...me,scanEntries:_,scanStats:P,manifests:H}))},[]),re=w.useCallback(async()=>{if(l){y(!0);try{const _=await d({library_id:l,dir_files:N.scanEntries,dir_name:N.dirName,dir_path:N.dirPath,dir_file_contents:N.manifests}),P=Array.isArray(_)?_[0]:_;P?.id?o(`/studio/sources/${l}?rootId=${P.id}`):o(`/studio/sources/${l}`)}catch{y(!1)}}},[l,N,d,o]),ne=w.useMemo(()=>h===1?!!N.dirPath:h===2?N.scanEntries.length>0:!0,[h,N]),te=w.useMemo(()=>u?[{label:u.id===ru?s("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:s("sources.import.dir_title")}]:[],[u,s]);return u?m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"shrink-0",children:m.jsxDEV(pu,{segments:te},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:192,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:191,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-2 font-mono text-sm sm:mt-6 md:gap-3",children:[m.jsxDEV(mw,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:197,columnNumber:9},this),m.jsxDEV("span",{className:h===1?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.dir_step.select")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:198,columnNumber:9},this),m.jsxDEV(y3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:201,columnNumber:9},this),m.jsxDEV(mw,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:202,columnNumber:9},this),m.jsxDEV("span",{className:h===2?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.dir_step.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:203,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:196,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex min-h-0 flex-1 flex-col sm:mt-6",children:k?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(m3,{rpc:Q,selectedPath:N.dirPath,onSelect:ee,allowedPaths:F,importedPaths:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:215,columnNumber:15},this),h===2&&m.jsxDEV(g3,{dirPath:N.dirPath,rpc:Q,importing:b,onScanComplete:ue,onBusyChange:x},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:224,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:213,columnNumber:11},this):m.jsxDEV(v3,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:211,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:209,columnNumber:7},this),k&&m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-4 sm:mt-6",children:[m.jsxDEV("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-c4a-text-muted line-clamp-1 sm:line-clamp-none",title:s("sources.safety.notice.dir"),onClick:_=>_.currentTarget.classList.toggle("line-clamp-1"),children:s("sources.safety.notice.dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:239,columnNumber:11},this),m.jsxDEV("div",{className:"flex shrink-0 gap-2",children:[h>1&&m.jsxDEV("button",{onClick:()=>g(_=>_-1),disabled:b||D,className:"rounded border border-c4a-border-default px-4 py-2 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover disabled:opacity-40",children:s("common.previous")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:248,columnNumber:15},this),h<2?m.jsxDEV("button",{onClick:()=>g(_=>_+1),disabled:!ne||D,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:s("common.next")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:257,columnNumber:15},this):m.jsxDEV("button",{onClick:re,disabled:b||D||!ne,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[b&&m.jsxDEV(Oa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:270,columnNumber:31},this),s(b?"sources.import.importing":"sources.import.dir_step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:265,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:246,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:238,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:190,columnNumber:5},this):m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:184,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:183,columnNumber:7},this)}function mw({active:s,current:o}){return m.jsxDEV("span",{className:`inline-block h-2.5 w-2.5 rounded-full border-2 ${o?"border-c4a-accent bg-c4a-accent":s?"border-c4a-accent bg-transparent":"border-c4a-border-default bg-transparent"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:291,columnNumber:5},this)}function y3(){return m.jsxDEV("span",{className:"h-px flex-1 bg-c4a-border-default"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:304,columnNumber:10},this)}function v3({libraryName:s}){const{t:o}=Ge();return m.jsxDEV("div",{className:"rounded border border-c4a-warning/30 bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("p",{className:"text-sm text-c4a-warning",children:o("sources.import.daemon_offline",{name:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:311,columnNumber:7},this),m.jsxDEV(sn,{to:"/studio/sources/add-client",className:"mt-4 inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("sources.import.view_guide")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:314,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:310,columnNumber:5},this)}function x3(){const{t:s}=Ge(),o=hr(),l=Aa(N=>N.createLibrary),[c,u]=w.useState("waiting"),[d,h]=w.useState(null),[g,b]=w.useState(""),[y,D]=w.useState(!1);w.useEffect(()=>Gs.on("ws:daemon:connected",R=>{const k=R;h(k),b(k.machine_id),u(k.needs_registration?"new_client":"reconnected")}),[]),w.useEffect(()=>{let N=!1;return(async()=>{try{const R=await ba.get("/daemons/pending");if(N||R.pending.length===0)return;const k=R.pending[0];h({machine_id:k.machine_id,needs_registration:!0}),b(k.machine_id),u("new_client")}catch{}})(),()=>{N=!0}},[]);const x=w.useCallback(async()=>{if(d){D(!0);try{const N=await l({type:"daemon",name:g||d.machine_id,config:{machine_id:d.machine_id,os:d.os||"",daemon_version:d.daemon_version||""}});o(`/studio/sources/${N.id}`)}catch{D(!1)}}},[d,g,l,o]);return m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(pu,{segments:[{label:s("sources.add_client.title")}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:86,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:s("sources.add_client.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:90,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:m.jsxDEV("ol",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["1. ",s("sources.add_client.step1")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:98,columnNumber:13},this),m.jsxDEV("pre",{className:"mt-1 rounded bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-accent",children:"npm install -g @c4a/daemon"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:101,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:97,columnNumber:11},this),m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["2. ",s("sources.add_client.step2")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:106,columnNumber:13},this),m.jsxDEV("pre",{className:"mt-1 rounded bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-accent",children:`c4a-daemon --server ${window.location.host}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:109,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:105,columnNumber:11},this),m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["3. ",s("sources.add_client.step3")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:114,columnNumber:13},this),m.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:s("sources.add_client.step3_desc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:96,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:95,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:[c==="waiting"&&m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(Oa,{size:16,className:"animate-spin text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:128,columnNumber:13},this),m.jsxDEV("span",{className:"text-sm text-c4a-warning",children:s("sources.add_client.waiting")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:127,columnNumber:11},this),c==="new_client"&&d&&m.jsxDEV("div",{className:"space-y-4",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-bold text-c4a-accent",children:s("sources.add_client.detected")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:137,columnNumber:13},this),m.jsxDEV("div",{className:"space-y-2 text-sm",children:[m.jsxDEV(Xg,{label:s("sources.add_client.machine_name"),value:d.machine_id},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:141,columnNumber:15},this),d.os&&m.jsxDEV(Xg,{label:s("sources.add_client.os"),value:d.os},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:146,columnNumber:17},this),d.daemon_version&&m.jsxDEV(Xg,{label:s("sources.add_client.daemon_version"),value:d.daemon_version},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:152,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:140,columnNumber:13},this),m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-32 font-mono text-xs text-c4a-text-muted",children:s("sources.add_client.client_name")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:159,columnNumber:15},this),m.jsxDEV("input",{value:g,onChange:N=>b(N.target.value),className:"min-w-0 flex-1 rounded border border-c4a-border-default bg-c4a-bg-base px-2 py-1 font-mono text-xs text-c4a-text-primary outline-none focus:border-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:162,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:158,columnNumber:13},this),m.jsxDEV("div",{className:"flex justify-end gap-2 pt-2",children:[m.jsxDEV("button",{onClick:()=>o("/studio/sources"),className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:s("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:169,columnNumber:15},this),m.jsxDEV("button",{onClick:x,disabled:y||!g.trim(),className:"flex items-center gap-1.5 rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-50",children:[y&&m.jsxDEV(Oa,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:181,columnNumber:19},this),s("sources.add_client.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:175,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:168,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:136,columnNumber:11},this),c==="reconnected"&&d&&m.jsxDEV("div",{className:"space-y-4",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(ul,{size:16,className:"text-c4a-success"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:192,columnNumber:15},this),m.jsxDEV("span",{className:"text-sm text-c4a-text-primary",children:s("sources.add_client.reconnected",{name:d.machine_id})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:193,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:191,columnNumber:13},this),d.lib_id&&m.jsxDEV(sn,{to:`/studio/sources/${d.lib_id}`,className:"inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:s("sources.add_client.go_to",{name:d.machine_id})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:200,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:190,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:125,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:85,columnNumber:5},this)}function Xg({label:s,value:o}){return m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-32 font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:219,columnNumber:7},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:222,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:218,columnNumber:5},this)}function N3(){const{t:s}=Ge(),{sourceUuid:o}=Ff(),[l]=n4(),c=l.get("path")||"",{currentRoot:u,loading:d,fetchRootSource:h}=Kf(),g=Aa(ml(mu)),[b,y]=w.useState("original");w.useEffect(()=>{o&&h(o)},[o,h]);const D=w.useMemo(()=>!u||!c?null:Jf(u.tree,c),[u,c]),x=g.find(ee=>ee.id===u?.library_id),N=D?.metadata,R=N?Object.fromEntries(Object.entries(N).map(([ee,ue])=>[ee,String(ue??"")])):null,k=D?.source_type==="code",B=D?.name??u?.name??"",L=D?.source_type??null,F=w.useMemo(()=>{if(!u||!x)return[];const ee=[{label:x.id===ru?s("sources.library.default_cloud_name"):x.name,to:`/studio/sources/${x.id}`},{label:u.name,to:`/studio/sources/${x.id}?rootId=${u.id}`}];if(c){const ue=h4(u.tree,c);for(let re=0;re<ue.length-1;re++){const ne=ue[re];ee.push({label:ne.name,to:`/studio/sources/${x.id}?rootId=${u.id}&path=${encodeURIComponent(ne.path)}`})}ue.length>0&&ee.push({label:ue[ue.length-1].name})}return ee},[u,x,c,s]),Q=[{key:"original",label:s(k?"sources.detail.tab.overview":"sources.detail.tab.original")},{key:"digest",label:s("sources.detail.tab.digest")},{key:"modeling",label:s("sources.detail.tab.modeling")}];return d||!u||!D?m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:103,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:102,columnNumber:7},this):m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(pu,{segments:F},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:110,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex flex-wrap items-baseline gap-x-6 gap-y-2",children:[m.jsxDEV("div",{className:"flex min-w-0 items-center gap-2",children:[k?m.jsxDEV(dl,{size:20,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:116,columnNumber:13},this):m.jsxDEV(pr,{size:20,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:118,columnNumber:13},this),m.jsxDEV("h1",{className:"min-w-0 break-all font-mono text-xl font-bold leading-none text-c4a-text-primary",children:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:120,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:114,columnNumber:9},this),m.jsxDEV("div",{className:"flex flex-wrap items-baseline gap-4 text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:[s("sources.detail.type"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:s(L==="code"?"sources.type.code":"sources.type.doc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:128,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:126,columnNumber:11},this),k&&R?.relative_path&&m.jsxDEV("span",{children:[s("sources.detail.path"),":"," ",m.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:R.relative_path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:137,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:135,columnNumber:13},this),!k&&m.jsxDEV("span",{children:[s("sources.detail.origin"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:x?.type==="daemon"?s("sources.detail.origin.local"):s("sources.detail.origin.upload")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:145,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:143,columnNumber:13},this),m.jsxDEV("span",{children:[s("sources.detail.status"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:s(`sources.status.${D.index_status??"none"}`)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:154,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:152,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:125,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:113,columnNumber:7},this),k&&R&&m.jsxDEV("div",{className:"mt-4 rounded border border-c4a-border-subtle bg-c4a-bg-surface p-4",children:m.jsxDEV("div",{className:"grid grid-cols-2 gap-x-8 gap-y-2 text-xs md:grid-cols-4",children:[R.repo_name&&m.jsxDEV(Af,{label:s("sources.detail.repo"),value:R.repo_name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:166,columnNumber:15},this),R.pinned_branch&&m.jsxDEV(Af,{label:s("sources.detail.branch"),value:R.pinned_branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:172,columnNumber:15},this),R.pinned_hash&&m.jsxDEV(Af,{label:s("sources.detail.commit"),value:R.pinned_hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:178,columnNumber:15},this),R.tech_stack&&m.jsxDEV(Af,{label:s("sources.detail.tech_stack"),value:R.tech_stack},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:184,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:164,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:163,columnNumber:9},this),m.jsxDEV("div",{className:"mt-3 flex border-b border-c4a-border-subtle",children:Q.map(ee=>m.jsxDEV("button",{onClick:()=>y(ee.key),className:`border-b-2 px-4 py-2 font-mono text-xs uppercase transition-colors ${b===ee.key?"border-c4a-accent text-c4a-accent":"border-transparent text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:ee.label},ee.key,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:196,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:194,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex-1",children:[b==="original"&&m.jsxDEV(S3,{node:D,isCode:k},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:213,columnNumber:11},this),b==="digest"&&m.jsxDEV(pw,{message:s("sources.detail.digest_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:216,columnNumber:11},this),b==="modeling"&&m.jsxDEV(pw,{message:s("sources.detail.modeling_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:219,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:211,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:109,columnNumber:5},this)}function Af({label:s,value:o}){return m.jsxDEV("div",{children:[m.jsxDEV("span",{className:"text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:231,columnNumber:7},this),m.jsxDEV("p",{className:"mt-0.5 font-mono text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:232,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:230,columnNumber:5},this)}function S3({node:s,isCode:o}){const{t:l}=Ge(),c=s.metadata;return o?m.jsxDEV("div",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[!!c?.description&&m.jsxDEV("p",{children:String(c.description)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:251,columnNumber:11},this),!!c?.dependencies&&m.jsxDEV("div",{children:[m.jsxDEV("h4",{className:"font-mono text-xs font-bold uppercase text-c4a-text-primary",children:l("sources.detail.dependencies")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:255,columnNumber:13},this),m.jsxDEV("div",{className:"mt-2 rounded bg-c4a-bg-surface p-3 font-mono text-xs",children:Object.entries(c.dependencies).map(([u,d])=>m.jsxDEV("div",{className:"flex justify-between py-0.5",children:[m.jsxDEV("span",{className:"text-c4a-text-primary",children:u},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:263,columnNumber:19},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:d},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:264,columnNumber:19},this)]},u,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:262,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:258,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:254,columnNumber:11},this),!c?.description&&!c?.dependencies&&m.jsxDEV("p",{className:"text-c4a-text-muted",children:l("sources.detail.original_code_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:271,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:249,columnNumber:7},this):m.jsxDEV("div",{className:"prose prose-invert max-w-none text-sm text-c4a-text-secondary",children:m.jsxDEV("p",{className:"text-c4a-text-muted",children:l("sources.detail.original_doc_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:281,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:280,columnNumber:5},this)}function pw({message:s}){return m.jsxDEV("div",{className:"flex items-center justify-center rounded border border-dashed border-c4a-border-subtle p-12",children:m.jsxDEV("p",{className:"text-center text-sm text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:291,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:290,columnNumber:5},this)}const w3="lib_cloud_default",E3=CC([{element:m.jsxDEV(Sj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:29,columnNumber:14},void 0),children:[{path:"/",element:m.jsxDEV(kj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:31,columnNumber:29},void 0)},{path:"/login",element:m.jsxDEV(Uj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:32,columnNumber:34},void 0)},{path:"/docs",element:m.jsxDEV(Cj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:33,columnNumber:33},void 0)}]},{path:"/studio",element:m.jsxDEV(_j,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:40,columnNumber:14},void 0),children:[{index:!0,element:m.jsxDEV(FS,{to:"/studio/sources",replace:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:42,columnNumber:31},void 0)},{path:"sources",element:m.jsxDEV(FS,{to:`/studio/sources/${w3}`,replace:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:46,columnNumber:11},void 0)},{path:"sources/add-client",element:m.jsxDEV(x3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:52,columnNumber:46},void 0)},{path:"sources/import/:libId",element:m.jsxDEV(d3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:53,columnNumber:49},void 0)},{path:"sources/import-dir/:libId",element:m.jsxDEV(b3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:54,columnNumber:53},void 0)},{path:"sources/:libId",element:m.jsxDEV(n3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:55,columnNumber:42},void 0)},{path:"source/:sourceUuid",element:m.jsxDEV(N3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:56,columnNumber:46},void 0)},{path:"modeling",element:m.jsxDEV(jj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:57,columnNumber:36},void 0)},{path:"modeling/code/setup",element:m.jsxDEV(Lj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:58,columnNumber:47},void 0)},{path:"modeling/code/compile",element:m.jsxDEV(Hj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:59,columnNumber:49},void 0)},{path:"modeling/code/review",element:m.jsxDEV(Bj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:60,columnNumber:48},void 0)},{path:"modeling/code/result",element:m.jsxDEV($j,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:61,columnNumber:48},void 0)},{path:"brain",element:m.jsxDEV(Oj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:62,columnNumber:33},void 0)},{path:"discovery",element:m.jsxDEV(Aj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:63,columnNumber:37},void 0)},{path:"sharing",element:m.jsxDEV(Vj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:64,columnNumber:35},void 0)},{path:"collaboration",element:m.jsxDEV(Mj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:65,columnNumber:41},void 0)},{path:"settings",element:m.jsxDEV(zj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:66,columnNumber:36},void 0)}]},{path:"*",element:m.jsxDEV(Tj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:71,columnNumber:25},void 0)}]);function D3(){return w.useEffect(()=>{const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;return Gs.connect(o),()=>{Gs.disconnect()}},[]),m.jsxDEV(aC,{router:E3},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/App.tsx",lineNumber:17,columnNumber:10},this)}gk.createRoot(document.getElementById("root")).render(m.jsxDEV(w.StrictMode,{children:m.jsxDEV(D3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/main.tsx",lineNumber:9,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/main.tsx",lineNumber:8,columnNumber:3},void 0));