@c4a/server-cli 0.4.11 → 0.4.12-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +795 -3402
- package/package.json +1 -1
- package/serve.js +3223 -4193
- package/web/assets/index--UyZtsHr.js +238 -0
- package/web/assets/index-15FuETM5.js +238 -0
- package/web/assets/index-1O90ZcBt.js +238 -0
- package/web/assets/index-2ZaXHlEm.js +12 -0
- package/web/assets/index-5SgaIe6K.js +238 -0
- package/web/assets/index-69TE-Dt9.js +238 -0
- package/web/assets/index-6qWMAJjW.js +12 -0
- package/web/assets/index-8bavzcKH.js +238 -0
- package/web/assets/index-B2JcVRax.js +238 -0
- package/web/assets/index-B3a1j3cz.js +238 -0
- package/web/assets/index-B6EqO_Cg.js +12 -0
- package/web/assets/index-B7OJ5sV_.js +238 -0
- package/web/assets/index-B9YWtkC-.js +12 -0
- package/web/assets/index-BD162a_1.js +238 -0
- package/web/assets/index-BF50bkqY.css +1 -0
- package/web/assets/index-BPMcNaXa.css +1 -0
- package/web/assets/index-BPlwhwPb.css +1 -0
- package/web/assets/index-BW9aouHt.js +238 -0
- package/web/assets/index-BbZvxZvZ.css +1 -0
- package/web/assets/index-BkYFml7g.css +1 -0
- package/web/assets/index-Bnn0CunM.js +238 -0
- package/web/assets/index-BosC7CbW.css +1 -0
- package/web/assets/index-BrJa-9jA.css +1 -0
- package/web/assets/index-C63Z-8cw.js +238 -0
- package/web/assets/index-C6ydhyiL.js +238 -0
- package/web/assets/index-CAXoXe3-.css +1 -0
- package/web/assets/index-CDG7D9Wo.css +1 -0
- package/web/assets/index-CNruo9jb.js +238 -0
- package/web/assets/index-CUGq5bZG.js +12 -0
- package/web/assets/index-CVB_F0xd.js +238 -0
- package/web/assets/index-CVct6UjO.css +1 -0
- package/web/assets/index-CX2QKHgP.js +12 -0
- package/web/assets/index-Cok56quU.css +1 -0
- package/web/assets/index-Ct-X2M8U.js +12 -0
- package/web/assets/index-CtnVCeI7.css +1 -0
- package/web/assets/index-Cu6ttPtz.js +12 -0
- package/web/assets/index-CvTLDILA.css +1 -0
- package/web/assets/index-D0x9zuj2.js +238 -0
- package/web/assets/index-D3-qG0Hp.js +238 -0
- package/web/assets/index-D3UsEQTE.css +1 -0
- package/web/assets/index-D5WvCk3U.js +238 -0
- package/web/assets/index-D6QqUdMz.css +1 -0
- package/web/assets/index-D7EkgIsu.js +12 -0
- package/web/assets/index-DB_YWOXK.js +12 -0
- package/web/assets/index-DBaysFVi.css +1 -0
- package/web/assets/index-DGYdHfUt.js +238 -0
- package/web/assets/index-DIzfj2PR.css +1 -0
- package/web/assets/index-DJiYLRIW.css +1 -0
- package/web/assets/index-DQcztEye.js +238 -0
- package/web/assets/index-DSnxWXVs.css +1 -0
- package/web/assets/index-DX1UQEJF.css +1 -0
- package/web/assets/index-DgtV8nwc.js +238 -0
- package/web/assets/index-DqdyIshw.js +12 -0
- package/web/assets/index-DyF2kEj9.js +238 -0
- package/web/assets/index-H6Rs5Fbq.js +12 -0
- package/web/assets/index-O5LI2GNV.js +238 -0
- package/web/assets/index-SnFvyzm_.css +1 -0
- package/web/assets/index-bnfl0N-T.css +1 -0
- package/web/assets/index-cMgxghVE.css +1 -0
- package/web/assets/index-dDuVahj-.js +12 -0
- package/web/assets/index-fG23cf-l.js +238 -0
- package/web/assets/index-it-5oMch.css +1 -0
- package/web/assets/index-yq497d-W.js +12 -0
- package/web/index.html +2 -2
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
function GR(s,r){for(var l=0;l<r.length;l++){const c=r[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 r=document.createElement("link").relList;if(r&&r.supports&&r.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 IR(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Dg={exports:{}},Ef={},Rg={exports:{}},Xc={exports:{}};Xc.exports;var V1;function FR(){return V1||(V1=1,(function(s,r){(function(){function l(w,M){Object.defineProperty(d.prototype,w,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",M[0],M[1])}})}function c(w){return w===null||typeof w!="object"?null:(w=$n&&w[$n]||w["@@iterator"],typeof w=="function"?w:null)}function u(w,M){w=(w=w.constructor)&&(w.displayName||w.name)||"ReactClass";var ne=w+"."+M;Et[ne]||(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,w),Et[ne]=!0)}function d(w,M,ne){this.props=w,this.context=M,this.refs=ft,this.updater=ne||xa}function h(){}function g(w,M,ne){this.props=w,this.context=M,this.refs=ft,this.updater=ne||xa}function y(){}function x(w){return""+w}function D(w){try{x(w);var M=!1}catch{M=!0}if(M){M=console;var ne=M.error,de=typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object";return ne.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",de),x(w)}}function v(w){if(w==null)return null;if(typeof w=="function")return w.$$typeof===He?null:w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case B:return"Fragment";case he:return"Profiler";case ve:return"StrictMode";case qe:return"Suspense";case Mt:return"SuspenseList";case Se:return"Activity"}if(typeof w=="object")switch(typeof w.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),w.$$typeof){case ae:return"Portal";case nt:return w.displayName||"Context";case Ee:return(w._context.displayName||"Context")+".Consumer";case Vt:var M=w.render;return w=w.displayName,w||(w=M.displayName||M.name||"",w=w!==""?"ForwardRef("+w+")":"ForwardRef"),w;case zt:return M=w.displayName||null,M!==null?M:v(w.type)||"Memo";case Ka:M=w._payload,w=w._init;try{return v(w(M))}catch{}}return null}function S(w){if(w===B)return"<>";if(typeof w=="object"&&w!==null&&w.$$typeof===Ka)return"<...>";try{var M=v(w);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function R(){var w=le.A;return w===null?null:w.getOwner()}function j(){return Error("react-stack-top-frame")}function H(w){if(We.call(w,"key")){var M=Object.getOwnPropertyDescriptor(w,"key").get;if(M&&M.isReactWarning)return!1}return w.key!==void 0}function L(w,M){function ne(){Yn||(Yn=!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))}ne.isReactWarning=!0,Object.defineProperty(w,"key",{get:ne,configurable:!0})}function Q(){var w=v(this.type);return Ya[w]||(Ya[w]=!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.")),w=this.props.ref,w!==void 0?w:null}function Z(w,M,ne,de,De,Be){var ke=ne.ref;return w={$$typeof:pe,type:w,key:M,props:ne,_owner:de},(ke!==void 0?ke:null)!==null?Object.defineProperty(w,"ref",{enumerable:!1,get:Q}):Object.defineProperty(w,"ref",{enumerable:!1,value:null}),w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(w,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(w,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:De}),Object.defineProperty(w,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Be}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w}function se(w,M){return M=Z(w.type,M,w.props,w._owner,w._debugStack,w._debugTask),w._store&&(M._store.validated=w._store.validated),M}function fe(w){be(w)?w._store&&(w._store.validated=1):typeof w=="object"&&w!==null&&w.$$typeof===Ka&&(w._payload.status==="fulfilled"?be(w._payload.value)&&w._payload.value._store&&(w._payload.value._store.validated=1):w._store&&(w._store.validated=1))}function be(w){return typeof w=="object"&&w!==null&&w.$$typeof===pe}function J(w){var M={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(ne){return M[ne]})}function ee(w,M){return typeof w=="object"&&w!==null&&w.key!=null?(D(w.key),J(""+w.key)):M.toString(36)}function _(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(y,y):(w.status="pending",w.then(function(M){w.status==="pending"&&(w.status="fulfilled",w.value=M)},function(M){w.status==="pending"&&(w.status="rejected",w.reason=M)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function X(w,M,ne,de,De){var Be=typeof w;(Be==="undefined"||Be==="boolean")&&(w=null);var ke=!1;if(w===null)ke=!0;else switch(Be){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(w.$$typeof){case pe:case ae:ke=!0;break;case Ka:return ke=w._init,X(ke(w._payload),M,ne,de,De)}}if(ke){ke=w,De=De(ke);var st=de===""?"."+ee(ke,0):de;return os(De)?(ne="",st!=null&&(ne=st.replace(qa,"$&/")+"/"),X(De,M,ne,"",function(oa){return oa})):De!=null&&(be(De)&&(De.key!=null&&(ke&&ke.key===De.key||D(De.key)),ne=se(De,ne+(De.key==null||ke&&ke.key===De.key?"":(""+De.key).replace(qa,"$&/")+"/")+st),de!==""&&ke!=null&&be(ke)&&ke.key==null&&ke._store&&!ke._store.validated&&(ne._store.validated=2),De=ne),M.push(De)),1}if(ke=0,st=de===""?".":de+":",os(w))for(var Ge=0;Ge<w.length;Ge++)de=w[Ge],Be=st+ee(de,Ge),ke+=X(de,M,ne,Be,De);else if(Ge=c(w),typeof Ge=="function")for(Ge===w.entries&&(xn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),xn=!0),w=Ge.call(w),Ge=0;!(de=w.next()).done;)de=de.value,Be=st+ee(de,Ge++),ke+=X(de,M,ne,Be,De);else if(Be==="object"){if(typeof w.then=="function")return X(_(w),M,ne,de,De);throw M=String(w),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return ke}function q(w,M,ne){if(w==null)return w;var de=[],De=0;return X(w,de,"","",function(Be){return M.call(ne,Be,De++)}),de}function te(w){if(w._status===-1){var M=w._ioInfo;M!=null&&(M.start=M.end=performance.now()),M=w._result;var ne=M();if(ne.then(function(De){if(w._status===0||w._status===-1){w._status=1,w._result=De;var Be=w._ioInfo;Be!=null&&(Be.end=performance.now()),ne.status===void 0&&(ne.status="fulfilled",ne.value=De)}},function(De){if(w._status===0||w._status===-1){w._status=2,w._result=De;var Be=w._ioInfo;Be!=null&&(Be.end=performance.now()),ne.status===void 0&&(ne.status="rejected",ne.reason=De)}}),M=w._ioInfo,M!=null){M.value=ne;var de=ne.displayName;typeof de=="string"&&(M.name=de)}w._status===-1&&(w._status=0,w._result=ne)}if(w._status===1)return M=w._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 w._result}function Y(){var w=le.H;return w===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.`),w}function ce(){le.asyncTransitions--}function K(w){if(Bs===null)try{var M=("require"+Math.random()).slice(0,7);Bs=(s&&s[M]).call(s,"timers").setImmediate}catch{Bs=function(de){Sr===!1&&(Sr=!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=de,De.port2.postMessage(void 0)}}return Bs(w)}function ie(w){return 1<w.length&&typeof AggregateError=="function"?new AggregateError(w):w[0]}function W(w,M){M!==Nn-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. "),Nn=M}function me(w,M,ne){var de=le.actQueue;if(de!==null)if(de.length!==0)try{ye(de),K(function(){return me(w,M,ne)});return}catch(De){le.thrownErrors.push(De)}else le.actQueue=null;0<le.thrownErrors.length?(de=ie(le.thrownErrors),le.thrownErrors.length=0,ne(de)):M(w)}function ye(w){if(!Na){Na=!0;var M=0;try{for(;M<w.length;M++){var ne=w[M];do{le.didUsePromise=!1;var de=ne(!1);if(de!==null){if(le.didUsePromise){w[M]=ne,w.splice(0,M);return}ne=de}else break}while(!0)}w.length=0}catch(De){w.splice(0,M+1),le.thrownErrors.push(De)}finally{Na=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var pe=Symbol.for("react.transitional.element"),ae=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),Ee=Symbol.for("react.consumer"),nt=Symbol.for("react.context"),Vt=Symbol.for("react.forward_ref"),qe=Symbol.for("react.suspense"),Mt=Symbol.for("react.suspense_list"),zt=Symbol.for("react.memo"),Ka=Symbol.for("react.lazy"),Se=Symbol.for("react.activity"),$n=Symbol.iterator,Et={},xa={isMounted:function(){return!1},enqueueForceUpdate:function(w){u(w,"forceUpdate")},enqueueReplaceState:function(w){u(w,"replaceState")},enqueueSetState:function(w){u(w,"setState")}},Wa=Object.assign,ft={};Object.freeze(ft),d.prototype.isReactComponent={},d.prototype.setState=function(w,M){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,M,"setState")},d.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};var Dt={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(qn in Dt)Dt.hasOwnProperty(qn)&&l(qn,Dt[qn]);h.prototype=d.prototype,Dt=g.prototype=new h,Dt.constructor=g,Wa(Dt,d.prototype),Dt.isPureReactComponent=!0;var os=Array.isArray,He=Symbol.for("react.client.reference"),le={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},We=Object.prototype.hasOwnProperty,Qt=console.createTask?console.createTask:function(){return null};Dt={react_stack_bottom_frame:function(w){return w()}};var Yn,vn,Ya={},Lt=Dt.react_stack_bottom_frame.bind(Dt,j)(),Nr=Qt(S(j)),xn=!1,qa=/\/+/g,Ca=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},Sr=!1,Bs=null,Nn=0,$s=!1,Na=!1,Ys=typeof queueMicrotask=="function"?function(w){queueMicrotask(function(){return queueMicrotask(w)})}:K;Dt=Object.freeze({__proto__:null,c:function(w){return Y().useMemoCache(w)}});var qn={map:q,forEach:function(w,M,ne){q(w,function(){M.apply(this,arguments)},ne)},count:function(w){var M=0;return q(w,function(){M++}),M},toArray:function(w){return q(w,function(M){return M})||[]},only:function(w){if(!be(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};r.Activity=Se,r.Children=qn,r.Component=d,r.Fragment=B,r.Profiler=he,r.PureComponent=g,r.StrictMode=ve,r.Suspense=qe,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,r.__COMPILER_RUNTIME=Dt,r.act=function(w){var M=le.actQueue,ne=Nn;Nn++;var de=le.actQueue=M!==null?M:[],De=!1;try{var Be=w()}catch(Ge){le.thrownErrors.push(Ge)}if(0<le.thrownErrors.length)throw W(M,ne),w=ie(le.thrownErrors),le.thrownErrors.length=0,w;if(Be!==null&&typeof Be=="object"&&typeof Be.then=="function"){var ke=Be;return Ys(function(){De||$s||($s=!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(Ge,oa){De=!0,ke.then(function(Ua){if(W(M,ne),ne===0){try{ye(de),K(function(){return me(Ua,Ge,oa)})}catch(Gs){le.thrownErrors.push(Gs)}if(0<le.thrownErrors.length){var qs=ie(le.thrownErrors);le.thrownErrors.length=0,oa(qs)}}else Ge(Ua)},function(Ua){W(M,ne),0<le.thrownErrors.length&&(Ua=ie(le.thrownErrors),le.thrownErrors.length=0),oa(Ua)})}}}var st=Be;if(W(M,ne),ne===0&&(ye(de),de.length!==0&&Ys(function(){De||$s||($s=!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(() => ...)"))}),le.actQueue=null),0<le.thrownErrors.length)throw w=ie(le.thrownErrors),le.thrownErrors.length=0,w;return{then:function(Ge,oa){De=!0,ne===0?(le.actQueue=de,K(function(){return me(st,Ge,oa)})):Ge(st)}}},r.cache=function(w){return function(){return w.apply(null,arguments)}},r.cacheSignal=function(){return null},r.captureOwnerStack=function(){var w=le.getCurrentStack;return w===null?null:w()},r.cloneElement=function(w,M,ne){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var de=Wa({},w.props),De=w.key,Be=w._owner;if(M!=null){var ke;e:{if(We.call(M,"ref")&&(ke=Object.getOwnPropertyDescriptor(M,"ref").get)&&ke.isReactWarning){ke=!1;break e}ke=M.ref!==void 0}ke&&(Be=R()),H(M)&&(D(M.key),De=""+M.key);for(st in M)!We.call(M,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&M.ref===void 0||(de[st]=M[st])}var st=arguments.length-2;if(st===1)de.children=ne;else if(1<st){ke=Array(st);for(var Ge=0;Ge<st;Ge++)ke[Ge]=arguments[Ge+2];de.children=ke}for(de=Z(w.type,De,de,Be,w._debugStack,w._debugTask),De=2;De<arguments.length;De++)fe(arguments[De]);return de},r.createContext=function(w){return w={$$typeof:nt,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:Ee,_context:w},w._currentRenderer=null,w._currentRenderer2=null,w},r.createElement=function(w,M,ne){for(var de=2;de<arguments.length;de++)fe(arguments[de]);de={};var De=null;if(M!=null)for(Ge in vn||!("__self"in M)||"key"in M||(vn=!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")),H(M)&&(D(M.key),De=""+M.key),M)We.call(M,Ge)&&Ge!=="key"&&Ge!=="__self"&&Ge!=="__source"&&(de[Ge]=M[Ge]);var Be=arguments.length-2;if(Be===1)de.children=ne;else if(1<Be){for(var ke=Array(Be),st=0;st<Be;st++)ke[st]=arguments[st+2];Object.freeze&&Object.freeze(ke),de.children=ke}if(w&&w.defaultProps)for(Ge in Be=w.defaultProps,Be)de[Ge]===void 0&&(de[Ge]=Be[Ge]);De&&L(de,typeof w=="function"?w.displayName||w.name||"Unknown":w);var Ge=1e4>le.recentlyCreatedOwnerStacks++;return Z(w,De,de,R(),Ge?Error("react-stack-top-frame"):Lt,Ge?Qt(S(w)):Nr)},r.createRef=function(){var w={current:null};return Object.seal(w),w},r.forwardRef=function(w){w!=null&&w.$$typeof===zt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof w!="function"?console.error("forwardRef requires a render function but was given %s.",w===null?"null":typeof w):w.length!==0&&w.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",w.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),w!=null&&w.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var M={$$typeof:Vt,render:w},ne;return Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return ne},set:function(de){ne=de,w.name||w.displayName||(Object.defineProperty(w,"name",{value:de}),w.displayName=de)}}),M},r.isValidElement=be,r.lazy=function(w){w={_status:-1,_result:w};var M={$$typeof:Ka,_payload:w,_init:te},ne={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return w._ioInfo=ne,M._debugInfo=[{awaited:ne}],M},r.memo=function(w,M){w==null&&console.error("memo: The first argument must be a component. Instead received: %s",w===null?"null":typeof w),M={$$typeof:zt,type:w,compare:M===void 0?null:M};var ne;return Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return ne},set:function(de){ne=de,w.name||w.displayName||(Object.defineProperty(w,"name",{value:de}),w.displayName=de)}}),M},r.startTransition=function(w){var M=le.T,ne={};ne._updatedFibers=new Set,le.T=ne;try{var de=w(),De=le.S;De!==null&&De(ne,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&(le.asyncTransitions++,de.then(ce,ce),de.then(y,Ca))}catch(Be){Ca(Be)}finally{M===null&&ne._updatedFibers&&(w=ne._updatedFibers.size,ne._updatedFibers.clear(),10<w&&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&&ne.types!==null&&(M.types!==null&&M.types!==ne.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=ne.types),le.T=M}},r.unstable_useCacheRefresh=function(){return Y().useCacheRefresh()},r.use=function(w){return Y().use(w)},r.useActionState=function(w,M,ne){return Y().useActionState(w,M,ne)},r.useCallback=function(w,M){return Y().useCallback(w,M)},r.useContext=function(w){var M=Y();return w.$$typeof===Ee&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),M.useContext(w)},r.useDebugValue=function(w,M){return Y().useDebugValue(w,M)},r.useDeferredValue=function(w,M){return Y().useDeferredValue(w,M)},r.useEffect=function(w,M){return w==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Y().useEffect(w,M)},r.useEffectEvent=function(w){return Y().useEffectEvent(w)},r.useId=function(){return Y().useId()},r.useImperativeHandle=function(w,M,ne){return Y().useImperativeHandle(w,M,ne)},r.useInsertionEffect=function(w,M){return w==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Y().useInsertionEffect(w,M)},r.useLayoutEffect=function(w,M){return w==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Y().useLayoutEffect(w,M)},r.useMemo=function(w,M){return Y().useMemo(w,M)},r.useOptimistic=function(w,M){return Y().useOptimistic(w,M)},r.useReducer=function(w,M,ne){return Y().useReducer(w,M,ne)},r.useRef=function(w){return Y().useRef(w)},r.useState=function(w){return Y().useState(w)},r.useSyncExternalStore=function(w,M,ne){return Y().useSyncExternalStore(w,M,ne)},r.useTransition=function(){return Y().useTransition()},r.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Xc,Xc.exports)),Xc.exports}var M1;function su(){return M1||(M1=1,Rg.exports=FR()),Rg.exports}var z1;function XR(){if(z1)return Ef;z1=1;return(function(){function s(B){if(B==null)return null;if(typeof B=="function")return B.$$typeof===te?null:B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case L:return"Fragment";case Z:return"Profiler";case Q:return"StrictMode";case J:return"Suspense";case ee:return"SuspenseList";case q:return"Activity"}if(typeof B=="object")switch(typeof B.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),B.$$typeof){case H:return"Portal";case fe:return B.displayName||"Context";case se:return(B._context.displayName||"Context")+".Consumer";case be:var ve=B.render;return B=B.displayName,B||(B=ve.displayName||ve.name||"",B=B!==""?"ForwardRef("+B+")":"ForwardRef"),B;case _:return ve=B.displayName||null,ve!==null?ve:s(B.type)||"Memo";case X:ve=B._payload,B=B._init;try{return s(B(ve))}catch{}}return null}function r(B){return""+B}function l(B){try{r(B);var ve=!1}catch{ve=!0}if(ve){ve=console;var he=ve.error,Ee=typeof Symbol=="function"&&Symbol.toStringTag&&B[Symbol.toStringTag]||B.constructor.name||"Object";return he.call(ve,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ee),r(B)}}function c(B){if(B===L)return"<>";if(typeof B=="object"&&B!==null&&B.$$typeof===X)return"<...>";try{var ve=s(B);return ve?"<"+ve+">":"<...>"}catch{return"<...>"}}function u(){var B=Y.A;return B===null?null:B.getOwner()}function d(){return Error("react-stack-top-frame")}function h(B){if(ce.call(B,"key")){var ve=Object.getOwnPropertyDescriptor(B,"key").get;if(ve&&ve.isReactWarning)return!1}return B.key!==void 0}function g(B,ve){function he(){W||(W=!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))}he.isReactWarning=!0,Object.defineProperty(B,"key",{get:he,configurable:!0})}function y(){var B=s(this.type);return me[B]||(me[B]=!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.")),B=this.props.ref,B!==void 0?B:null}function x(B,ve,he,Ee,nt,Vt){var qe=he.ref;return B={$$typeof:j,type:B,key:ve,props:he,_owner:Ee},(qe!==void 0?qe:null)!==null?Object.defineProperty(B,"ref",{enumerable:!1,get:y}):Object.defineProperty(B,"ref",{enumerable:!1,value:null}),B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(B,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(B,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:nt}),Object.defineProperty(B,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Vt}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B}function D(B,ve,he,Ee,nt,Vt){var qe=ve.children;if(qe!==void 0)if(Ee)if(K(qe)){for(Ee=0;Ee<qe.length;Ee++)v(qe[Ee]);Object.freeze&&Object.freeze(qe)}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 v(qe);if(ce.call(ve,"key")){qe=s(B);var Mt=Object.keys(ve).filter(function(Ka){return Ka!=="key"});Ee=0<Mt.length?"{key: someKey, "+Mt.join(": ..., ")+": ...}":"{key: someKey}",ae[qe+Ee]||(Mt=0<Mt.length?"{"+Mt.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} />`,Ee,qe,Mt,qe),ae[qe+Ee]=!0)}if(qe=null,he!==void 0&&(l(he),qe=""+he),h(ve)&&(l(ve.key),qe=""+ve.key),"key"in ve){he={};for(var zt in ve)zt!=="key"&&(he[zt]=ve[zt])}else he=ve;return qe&&g(he,typeof B=="function"?B.displayName||B.name||"Unknown":B),x(B,qe,he,u(),nt,Vt)}function v(B){S(B)?B._store&&(B._store.validated=1):typeof B=="object"&&B!==null&&B.$$typeof===X&&(B._payload.status==="fulfilled"?S(B._payload.value)&&B._payload.value._store&&(B._payload.value._store.validated=1):B._store&&(B._store.validated=1))}function S(B){return typeof B=="object"&&B!==null&&B.$$typeof===j}var R=su(),j=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),fe=Symbol.for("react.context"),be=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),te=Symbol.for("react.client.reference"),Y=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,K=Array.isArray,ie=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(B){return B()}};var W,me={},ye=R.react_stack_bottom_frame.bind(R,d)(),pe=ie(c(d)),ae={};Ef.Fragment=L,Ef.jsxDEV=function(B,ve,he,Ee){var nt=1e4>Y.recentlyCreatedOwnerStacks++;return D(B,ve,he,Ee,nt?Error("react-stack-top-frame"):ye,nt?ie(c(B)):pe)}})(),Ef}var L1;function QR(){return L1||(L1=1,Dg.exports=XR()),Dg.exports}var m=QR();const Ie=s=>typeof s=="string",$c=()=>{let s,r;const l=new Promise((c,u)=>{s=c,r=u});return l.resolve=s,l.reject=r,l},H1=s=>s==null?"":""+s,ZR=(s,r,l)=>{s.forEach(c=>{r[c]&&(l[c]=r[c])})},JR=/###/g,B1=s=>s&&s.indexOf("###")>-1?s.replace(JR,"."):s,$1=s=>!s||Ie(s),Jc=(s,r,l)=>{const c=Ie(r)?r.split("."):r;let u=0;for(;u<c.length-1;){if($1(s))return{};const d=B1(c[u]);!s[d]&&l&&(s[d]=new l),Object.prototype.hasOwnProperty.call(s,d)?s=s[d]:s={},++u}return $1(s)?{}:{obj:s,k:B1(c[u])}},Y1=(s,r,l)=>{const{obj:c,k:u}=Jc(s,r,Object);if(c!==void 0||r.length===1){c[u]=l;return}let d=r[r.length-1],h=r.slice(0,r.length-1),g=Jc(s,h,Object);for(;g.obj===void 0&&h.length;)d=`${h[h.length-1]}.${d}`,h=h.slice(0,h.length-1),g=Jc(s,h,Object),g?.obj&&typeof g.obj[`${g.k}.${d}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${d}`]=l},PR=(s,r,l,c)=>{const{obj:u,k:d}=Jc(s,r,Object);u[d]=u[d]||[],u[d].push(l)},Mf=(s,r)=>{const{obj:l,k:c}=Jc(s,r);if(l&&Object.prototype.hasOwnProperty.call(l,c))return l[c]},KR=(s,r,l)=>{const c=Mf(s,l);return c!==void 0?c:Mf(r,l)},i4=(s,r,l)=>{for(const c in r)c!=="__proto__"&&c!=="constructor"&&(c in s?Ie(s[c])||s[c]instanceof String||Ie(r[c])||r[c]instanceof String?l&&(s[c]=r[c]):i4(s[c],r[c],l):s[c]=r[c]);return s},ei=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var WR={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const e_=s=>Ie(s)?s.replace(/[&<>"'\/]/g,r=>WR[r]):s;class t_{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){const l=this.regExpMap.get(r);if(l!==void 0)return l;const c=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,c),this.regExpQueue.push(r),c}}const a_=[" ",",","?","!",";"],n_=new t_(20),s_=(s,r,l)=>{r=r||"",l=l||"";const c=a_.filter(h=>r.indexOf(h)<0&&l.indexOf(h)<0);if(c.length===0)return!0;const u=n_.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},Ig=(s,r,l=".")=>{if(!s)return;if(s[r])return Object.prototype.hasOwnProperty.call(s,r)?s[r]:void 0;const c=r.split(l);let u=s;for(let d=0;d<c.length;){if(!u||typeof u!="object")return;let h,g="";for(let y=d;y<c.length;++y)if(y!==d&&(g+=l),g+=c[y],h=u[g],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&y<c.length-1)continue;d+=y-d+1;break}u=h}return u},Wc=s=>s?.replace("_","-"),r_={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,r){console?.[s]?.apply?.(console,r)}};class zf{constructor(r,l={}){this.init(r,l)}init(r,l={}){this.prefix=l.prefix||"i18next:",this.logger=r||r_,this.options=l,this.debug=l.debug}log(...r){return this.forward(r,"log","",!0)}warn(...r){return this.forward(r,"warn","",!0)}error(...r){return this.forward(r,"error","")}deprecate(...r){return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(r,l,c,u){return u&&!this.debug?null:(Ie(r[0])&&(r[0]=`${c}${this.prefix} ${r[0]}`),this.logger[l](r))}create(r){return new zf(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new zf(this.logger,r)}}var zs=new zf;class $f{constructor(){this.observers={}}on(r,l){return r.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(r,l){if(this.observers[r]){if(!l){delete this.observers[r];return}this.observers[r].delete(l)}}emit(r,...l){this.observers[r]&&Array.from(this.observers[r].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,[r,...l])})}}class q1 extends $f{constructor(r,l={ns:["translation"],defaultNS:"translation"}){super(),this.data=r||{},this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}removeNamespaces(r){const l=this.options.ns.indexOf(r);l>-1&&this.options.ns.splice(l,1)}getResource(r,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;r.indexOf(".")>-1?g=r.split("."):(g=[r,l],c&&(Array.isArray(c)?g.push(...c):Ie(c)&&d?g.push(...c.split(d)):g.push(c)));const y=Mf(this.data,g);return!y&&!l&&!c&&r.indexOf(".")>-1&&(r=g[0],l=g[1],c=g.slice(2).join(".")),y||!h||!Ie(c)?y:Ig(this.data?.[r]?.[l],c,d)}addResource(r,l,c,u,d={silent:!1}){const h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let g=[r,l];c&&(g=g.concat(h?c.split(h):c)),r.indexOf(".")>-1&&(g=r.split("."),u=l,l=g[1]),this.addNamespaces(l),Y1(this.data,g,u),d.silent||this.emit("added",r,l,c,u)}addResources(r,l,c,u={silent:!1}){for(const d in c)(Ie(c[d])||Array.isArray(c[d]))&&this.addResource(r,l,d,c[d],{silent:!0});u.silent||this.emit("added",r,l,c)}addResourceBundle(r,l,c,u,d,h={silent:!1,skipCopy:!1}){let g=[r,l];r.indexOf(".")>-1&&(g=r.split("."),u=c,c=l,l=g[1]),this.addNamespaces(l);let y=Mf(this.data,g)||{};h.skipCopy||(c=JSON.parse(JSON.stringify(c))),u?i4(y,c,d):y={...y,...c},Y1(this.data,g,y),h.silent||this.emit("added",r,l,c)}removeResourceBundle(r,l){this.hasResourceBundle(r,l)&&delete this.data[r][l],this.removeNamespaces(l),this.emit("removed",r,l)}hasResourceBundle(r,l){return this.getResource(r,l)!==void 0}getResourceBundle(r,l){return l||(l=this.options.defaultNS),this.getResource(r,l)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){const l=this.getDataByLanguage(r);return!!(l&&Object.keys(l)||[]).find(u=>l[u]&&Object.keys(l[u]).length>0)}toJSON(){return this.data}}var l4={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,r,l,c,u){return s.forEach(d=>{r=this.processors[d]?.process(r,l,c,u)??r}),r}};const c4=Symbol("i18next/PATH_KEY");function o_(){const s=[],r=Object.create(null);let l;return r.get=(c,u)=>(l?.revoke?.(),u===c4?s:(s.push(u),l=Proxy.revocable(c,r),l.proxy)),Proxy.revocable(Object.create(null),r).proxy}function Fg(s,r){const{[c4]:l}=s(o_());return l.join(r?.keySeparator??".")}const G1={},_g=s=>!Ie(s)&&typeof s!="boolean"&&typeof s!="number";class Lf extends $f{constructor(r,l={}){super(),ZR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=zs.create("translator")}changeLanguage(r){r&&(this.language=r)}exists(r,l={interpolation:{}}){const c={...l};if(r==null)return!1;const u=this.resolve(r,c);if(u?.res===void 0)return!1;const d=_g(u.res);return!(c.returnObjects===!1&&d)}extractFromKey(r,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&&r.indexOf(c)>-1,g=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!s_(r,c,u);if(h&&!g){const y=r.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:r,namespaces:Ie(d)?[d]:d};const x=r.split(c);(c!==u||c===u&&this.options.ns.indexOf(x[0])>-1)&&(d=x.shift()),r=x.join(u)}return{key:r,namespaces:Ie(d)?[d]:d}}translate(r,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={}),r==null)return"";typeof r=="function"&&(r=Fg(r,{...this.options,...u})),Array.isArray(r)||(r=[String(r)]);const d=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,h=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:g,namespaces:y}=this.extractFromKey(r[r.length-1],u),x=y[y.length-1];let D=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;D===void 0&&(D=":");const v=u.lng||this.language,S=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return S?d?{res:`${x}${D}${g}`,usedKey:g,exactUsedKey:g,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(u)}:`${x}${D}${g}`:d?{res:g,usedKey:g,exactUsedKey:g,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(u)}:g;const R=this.resolve(r,u);let j=R?.res;const H=R?.usedKey||g,L=R?.exactUsedKey||g,Q=["[object Number]","[object Function]","[object RegExp]"],Z=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,se=!this.i18nFormat||this.i18nFormat.handleAsObject,fe=u.count!==void 0&&!Ie(u.count),be=Lf.hasDefaultValue(u),J=fe?this.pluralResolver.getSuffix(v,u.count,u):"",ee=u.ordinal&&fe?this.pluralResolver.getSuffix(v,u.count,{ordinal:!1}):"",_=fe&&!u.ordinal&&u.count===0,X=_&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${J}`]||u[`defaultValue${ee}`]||u.defaultValue;let q=j;se&&!j&&be&&(q=X);const te=_g(q),Y=Object.prototype.toString.apply(q);if(se&&q&&te&&Q.indexOf(Y)<0&&!(Ie(Z)&&Array.isArray(q))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ce=this.options.returnedObjectHandler?this.options.returnedObjectHandler(H,q,{...u,ns:y}):`key '${g} (${this.language})' returned an object instead of string.`;return d?(R.res=ce,R.usedParams=this.getUsedParamsDetails(u),R):ce}if(h){const ce=Array.isArray(q),K=ce?[]:{},ie=ce?L:H;for(const W in q)if(Object.prototype.hasOwnProperty.call(q,W)){const me=`${ie}${h}${W}`;be&&!j?K[W]=this.translate(me,{...u,defaultValue:_g(X)?X[W]:void 0,joinArrays:!1,ns:y}):K[W]=this.translate(me,{...u,joinArrays:!1,ns:y}),K[W]===me&&(K[W]=q[W])}j=K}}else if(se&&Ie(Z)&&Array.isArray(j))j=j.join(Z),j&&(j=this.extendTranslation(j,r,u,c));else{let ce=!1,K=!1;!this.isValidLookup(j)&&be&&(ce=!0,j=X),this.isValidLookup(j)||(K=!0,j=g);const W=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&K?void 0:j,me=be&&X!==j&&this.options.updateMissing;if(K||ce||me){if(this.logger.log(me?"updateKey":"missingKey",v,x,g,me?X:j),h){const B=this.resolve(g,{...u,keySeparator:!1});B&&B.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 ye=[];const pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let B=0;B<pe.length;B++)ye.push(pe[B]);else this.options.saveMissingTo==="all"?ye=this.languageUtils.toResolveHierarchy(u.lng||this.language):ye.push(u.lng||this.language);const ae=(B,ve,he)=>{const Ee=be&&he!==j?he:W;this.options.missingKeyHandler?this.options.missingKeyHandler(B,x,ve,Ee,me,u):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(B,x,ve,Ee,me,u),this.emit("missingKey",B,x,ve,j)};this.options.saveMissing&&(this.options.saveMissingPlurals&&fe?ye.forEach(B=>{const ve=this.pluralResolver.getSuffixes(B,u);_&&u[`defaultValue${this.options.pluralSeparator}zero`]&&ve.indexOf(`${this.options.pluralSeparator}zero`)<0&&ve.push(`${this.options.pluralSeparator}zero`),ve.forEach(he=>{ae([B],g+he,u[`defaultValue${he}`]||X)})}):ae(ye,g,X))}j=this.extendTranslation(j,r,u,R,c),K&&j===g&&this.options.appendNamespaceToMissingKey&&(j=`${x}${D}${g}`),(K||ce)&&this.options.parseMissingKeyHandler&&(j=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${x}${D}${g}`:g,ce?j:void 0,u))}return d?(R.res=j,R.usedParams=this.getUsedParamsDetails(u),R):j}extendTranslation(r,l,c,u,d){if(this.i18nFormat?.parse)r=this.i18nFormat.parse(r,{...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 y=Ie(r)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let x;if(y){const v=r.match(this.interpolator.nestingRegexp);x=v&&v.length}let D=c.replace&&!Ie(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(D={...this.options.interpolation.defaultVariables,...D}),r=this.interpolator.interpolate(r,D,c.lng||this.language||u.usedLng,c),y){const v=r.match(this.interpolator.nestingRegexp),S=v&&v.length;x<S&&(c.nest=!1)}!c.lng&&u&&u.res&&(c.lng=this.language||u.usedLng),c.nest!==!1&&(r=this.interpolator.nest(r,(...v)=>d?.[0]===v[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${l[0]}`),null):this.translate(...v,l),c)),c.interpolation&&this.interpolator.reset()}const h=c.postProcess||this.options.postProcess,g=Ie(h)?[h]:h;return r!=null&&g?.length&&c.applyPostProcessor!==!1&&(r=l4.handle(g,r,l,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),r}resolve(r,l={}){let c,u,d,h,g;return Ie(r)&&(r=[r]),r.forEach(y=>{if(this.isValidLookup(c))return;const x=this.extractFromKey(y,l),D=x.key;u=D;let v=x.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const S=l.count!==void 0&&!Ie(l.count),R=S&&!l.ordinal&&l.count===0,j=l.context!==void 0&&(Ie(l.context)||typeof l.context=="number")&&l.context!=="",H=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);v.forEach(L=>{this.isValidLookup(c)||(g=L,!G1[`${H[0]}-${L}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(g)&&(G1[`${H[0]}-${L}`]=!0,this.logger.warn(`key "${u}" for languages "${H.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!!!")),H.forEach(Q=>{if(this.isValidLookup(c))return;h=Q;const Z=[D];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(Z,D,Q,L,l);else{let fe;S&&(fe=this.pluralResolver.getSuffix(Q,l.count,l));const be=`${this.options.pluralSeparator}zero`,J=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(l.ordinal&&fe.indexOf(J)===0&&Z.push(D+fe.replace(J,this.options.pluralSeparator)),Z.push(D+fe),R&&Z.push(D+be)),j){const ee=`${D}${this.options.contextSeparator||"_"}${l.context}`;Z.push(ee),S&&(l.ordinal&&fe.indexOf(J)===0&&Z.push(ee+fe.replace(J,this.options.pluralSeparator)),Z.push(ee+fe),R&&Z.push(ee+be))}}let se;for(;se=Z.pop();)this.isValidLookup(c)||(d=se,c=this.getResource(Q,L,se,l))}))})}),{res:c,usedKey:u,exactUsedKey:d,usedLng:h,usedNS:g}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,l,c,u={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(r,l,c,u):this.resourceStore.getResource(r,l,c,u)}getUsedParamsDetails(r={}){const l=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=r.replace&&!Ie(r.replace);let u=c?r.replace:r;if(c&&typeof r.count<"u"&&(u.count=r.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(r){const l="defaultValue";for(const c in r)if(Object.prototype.hasOwnProperty.call(r,c)&&l===c.substring(0,l.length)&&r[c]!==void 0)return!0;return!1}}class I1{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=zs.create("languageUtils")}getScriptPartFromCode(r){if(r=Wc(r),!r||r.indexOf("-")<0)return null;const l=r.split("-");return l.length===2||(l.pop(),l[l.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(r){if(r=Wc(r),!r||r.indexOf("-")<0)return r;const l=r.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(r){if(Ie(r)&&r.indexOf("-")>-1){let l;try{l=Intl.getCanonicalLocales(r)[0]}catch{}return l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l||(this.options.lowerCaseLng?r.toLowerCase():r)}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}getBestMatchFromCodes(r){if(!r)return null;let l;return r.forEach(c=>{if(l)return;const u=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(u))&&(l=u)}),!l&&this.options.supportedLngs&&r.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(r,l){if(!r)return[];if(typeof r=="function"&&(r=r(l)),Ie(r)&&(r=[r]),Array.isArray(r))return r;if(!l)return r.default||[];let c=r[l];return c||(c=r[this.getScriptPartFromCode(l)]),c||(c=r[this.formatLanguageCode(l)]),c||(c=r[this.getLanguagePartFromCode(l)]),c||(c=r.default),c||[]}toResolveHierarchy(r,l){const c=this.getFallbackCodes((l===!1?[]:l)||this.options.fallbackLng||[],r),u=[],d=h=>{h&&(this.isSupportedCode(h)?u.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return Ie(r)&&(r.indexOf("-")>-1||r.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(r))):Ie(r)&&d(this.formatLanguageCode(r)),c.forEach(h=>{u.indexOf(h)<0&&d(this.formatLanguageCode(h))}),u}}const F1={zero:0,one:1,two:2,few:3,many:4,other:5},X1={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class i_{constructor(r,l={}){this.languageUtils=r,this.options=l,this.logger=zs.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(r,l={}){const c=Wc(r==="dev"?"en":r),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!"),X1;if(!r.match(/-|_/))return X1;const y=this.languageUtils.getLanguagePartFromCode(r);h=this.getRule(y,l)}return this.pluralRulesCache[d]=h,h}needsPlural(r,l={}){let c=this.getRule(r,l);return c||(c=this.getRule("dev",l)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(r,l,c={}){return this.getSuffixes(r,c).map(u=>`${l}${u}`)}getSuffixes(r,l={}){let c=this.getRule(r,l);return c||(c=this.getRule("dev",l)),c?c.resolvedOptions().pluralCategories.sort((u,d)=>F1[u]-F1[d]).map(u=>`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(r,l,c={}){const u=this.getRule(r,c);return u?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${u.select(l)}`:(this.logger.warn(`no plural rule found for: ${r}`),this.getSuffix("dev",l,c))}}const Q1=(s,r,l,c=".",u=!0)=>{let d=KR(s,r,l);return!d&&u&&Ie(l)&&(d=Ig(s,l,c),d===void 0&&(d=Ig(r,l,c))),d},kg=s=>s.replace(/\$/g,"$$$$");class Z1{constructor(r={}){this.logger=zs.create("interpolator"),this.options=r,this.format=r?.interpolation?.format||(l=>l),this.init(r)}init(r={}){r.interpolation||(r.interpolation={escapeValue:!0});const{escape:l,escapeValue:c,useRawValueToEscape:u,prefix:d,prefixEscaped:h,suffix:g,suffixEscaped:y,formatSeparator:x,unescapeSuffix:D,unescapePrefix:v,nestingPrefix:S,nestingPrefixEscaped:R,nestingSuffix:j,nestingSuffixEscaped:H,nestingOptionsSeparator:L,maxReplaces:Q,alwaysFormat:Z}=r.interpolation;this.escape=l!==void 0?l:e_,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):y||"}}",this.formatSeparator=x||",",this.unescapePrefix=D?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":D||"",this.nestingPrefix=S?ei(S):R||ei("$t("),this.nestingSuffix=j?ei(j):H||ei(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=Q||1e3,this.alwaysFormat=Z!==void 0?Z:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const r=(l,c)=>l?.source===c?(l.lastIndex=0,l):new RegExp(c,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(r,l,c,u){let d,h,g;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},x=R=>{if(R.indexOf(this.formatSeparator)<0){const Q=Q1(l,y,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Q,void 0,c,{...u,...l,interpolationkey:R}):Q}const j=R.split(this.formatSeparator),H=j.shift().trim(),L=j.join(this.formatSeparator).trim();return this.format(Q1(l,y,H,this.options.keySeparator,this.options.ignoreJSONStructure),L,c,{...u,...l,interpolationkey:H})};this.resetRegExp();const D=u?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=u?.interpolation?.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>kg(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?kg(this.escape(R)):kg(R)}].forEach(R=>{for(g=0;d=R.regex.exec(r);){const j=d[1].trim();if(h=x(j),h===void 0)if(typeof D=="function"){const L=D(r,d,u);h=Ie(L)?L:""}else if(u&&Object.prototype.hasOwnProperty.call(u,j))h="";else if(v){h=d[0];continue}else this.logger.warn(`missed to pass in variable ${j} for interpolating ${r}`),h="";else!Ie(h)&&!this.useRawValueToEscape&&(h=H1(h));const H=R.safeValue(h);if(r=r.replace(d[0],H),v?(R.regex.lastIndex+=h.length,R.regex.lastIndex-=d[0].length):R.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),r}nest(r,l,c={}){let u,d,h;const g=(y,x)=>{const D=this.nestingOptionsSeparator;if(y.indexOf(D)<0)return y;const v=y.split(new RegExp(`${ei(D)}[ ]*{`));let S=`{${v[1]}`;y=v[0],S=this.interpolate(S,h);const R=S.match(/'/g),j=S.match(/"/g);((R?.length??0)%2===0&&!j||(j?.length??0)%2!==0)&&(S=S.replace(/'/g,'"'));try{h=JSON.parse(S),x&&(h={...x,...h})}catch(H){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,H),`${y}${D}${S}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,y};for(;u=this.nestingRegexp.exec(r);){let y=[];h={...c},h=h.replace&&!Ie(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const x=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(x!==-1&&(y=u[1].slice(x).split(this.formatSeparator).map(D=>D.trim()).filter(Boolean),u[1]=u[1].slice(0,x)),d=l(g.call(this,u[1].trim(),h),h),d&&u[0]===r&&!Ie(d))return d;Ie(d)||(d=H1(d)),d||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${r}`),d=""),y.length&&(d=y.reduce((D,v)=>this.format(D,v,c.lng,{...c,interpolationkey:u[1].trim()}),d.trim())),r=r.replace(u[0],d),this.regexp.lastIndex=0}return r}}const l_=s=>{let r=s.toLowerCase().trim();const l={};if(s.indexOf("(")>-1){const c=s.split("(");r=c[0].toLowerCase().trim();const u=c[1].substring(0,c[1].length-1);r==="currency"&&u.indexOf(":")<0?l.currency||(l.currency=u.trim()):r==="relativetime"&&u.indexOf(":")<0?l.range||(l.range=u.trim()):u.split(";").forEach(h=>{if(h){const[g,...y]=h.split(":"),x=y.join(":").trim().replace(/^'+|'+$/g,""),D=g.trim();l[D]||(l[D]=x),x==="false"&&(l[D]=!1),x==="true"&&(l[D]=!0),isNaN(x)||(l[D]=parseInt(x,10))}})}return{formatName:r,formatOptions:l}},J1=s=>{const r={};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=r[h];return g||(g=s(Wc(c),u),r[h]=g),g(l)}},c_=s=>(r,l,c)=>s(Wc(l),c)(r);class u_{constructor(r={}){this.logger=zs.create("formatter"),this.options=r,this.init(r)}init(r,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const c=l.cacheInBuiltFormats?J1:c_;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(r,l){this.formats[r.toLowerCase().trim()]=l}addCached(r,l){this.formats[r.toLowerCase().trim()]=J1(l)}format(r,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(y=>y.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,g)].join(this.formatSeparator)}return d.reduce((g,y)=>{const{formatName:x,formatOptions:D}=l_(y);if(this.formats[x]){let v=g;try{const S=u?.formatParams?.[u.interpolationkey]||{},R=S.locale||S.lng||u.locale||u.lng||c;v=this.formats[x](g,R,{...D,...u,...S})}catch(S){this.logger.warn(S)}return v}else this.logger.warn(`there was no format function for ${x}`);return g},r)}}const d_=(s,r)=>{s.pending[r]!==void 0&&(delete s.pending[r],s.pendingCount--)};class f_ extends $f{constructor(r,l,c,u={}){super(),this.backend=r,this.store=l,this.services=c,this.languageUtils=c.languageUtils,this.options=u,this.logger=zs.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(r,l,c,u){const d={},h={},g={},y={};return r.forEach(x=>{let D=!0;l.forEach(v=>{const S=`${x}|${v}`;!c.reload&&this.store.hasResourceBundle(x,v)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?h[S]===void 0&&(h[S]=!0):(this.state[S]=1,D=!1,h[S]===void 0&&(h[S]=!0),d[S]===void 0&&(d[S]=!0),y[v]===void 0&&(y[v]=!0)))}),D||(g[x]=!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(y)}}loaded(r,l,c){const u=r.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[r]=l?-1:2,l&&c&&(this.state[r]=0);const g={};this.queue.forEach(y=>{PR(y.loaded,[d],h),d_(y,r),l&&y.errors.push(l),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(x=>{g[x]||(g[x]={});const D=y.loaded[x];D.length&&D.forEach(v=>{g[x][v]===void 0&&(g[x][v]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(y=>!y.done)}read(r,l,c,u=0,d=this.retryTimeout,h){if(!r.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:l,fcName:c,tried:u,wait:d,callback:h});return}this.readingCalls++;const g=(x,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(x&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,r,l,c,u+1,d*2,h)},d);return}h(x,D)},y=this.backend[c].bind(this.backend);if(y.length===2){try{const x=y(r,l);x&&typeof x.then=="function"?x.then(D=>g(null,D)).catch(g):g(null,x)}catch(x){g(x)}return}return y(r,l,g)}prepareLoading(r,l,c={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();Ie(r)&&(r=this.languageUtils.toResolveHierarchy(r)),Ie(l)&&(l=[l]);const d=this.queueLoad(r,l,c,u);if(!d.toLoad.length)return d.pending.length||u(),null;d.toLoad.forEach(h=>{this.loadOne(h)})}load(r,l,c){this.prepareLoading(r,l,{},c)}reload(r,l,c){this.prepareLoading(r,l,{reload:!0},c)}loadOne(r,l=""){const c=r.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(r,h,g)})}saveMissing(r,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 y={...h,isUpdate:d},x=this.backend.create.bind(this.backend);if(x.length<6)try{let D;x.length===5?D=x(r,l,c,u,y):D=x(r,l,c,u),D&&typeof D.then=="function"?D.then(v=>g(null,v)).catch(g):g(null,D)}catch(D){g(D)}else x(r,l,c,u,g,y)}!r||!r[0]||this.store.addResource(r[0],l,c,u)}}}const Cg=()=>({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 r={};if(typeof s[1]=="object"&&(r=s[1]),Ie(s[1])&&(r.defaultValue=s[1]),Ie(s[2])&&(r.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const l=s[3]||s[2];Object.keys(l).forEach(c=>{r[c]=l[c]})}return r},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),P1=s=>(Ie(s.ns)&&(s.ns=[s.ns]),Ie(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),Ie(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),Df=()=>{},m_=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(l=>{typeof s[l]=="function"&&(s[l]=s[l].bind(s))})},u4="__i18next_supportNoticeShown",p_=()=>typeof globalThis<"u"&&!!globalThis[u4],h_=()=>{typeof globalThis<"u"&&(globalThis[u4]=!0)},g_=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(r=>r?.name?.indexOf("Locize")>0||r?.constructor?.name?.indexOf("Locize")>0)||s?.options?.backend?.projectId||s?.options?.backend?.backendOptions&&s.options.backend.backendOptions.some(r=>r?.projectId));class Pc extends $f{constructor(r={},l){if(super(),this.options=P1(r),this.services={},this.logger=zs,this.modules={external:[]},m_(this),l&&!this.isInitialized&&!r.isClone){if(!this.options.initAsync)return this.init(r,l),this;setTimeout(()=>{this.init(r,l)},0)}}init(r={},l){this.isInitializing=!0,typeof r=="function"&&(l=r,r={}),r.defaultNS==null&&r.ns&&(Ie(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const c=Cg();this.options={...c,...this.options,...P1(r)},this.options.interpolation={...c.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!g_(this)&&!p_()&&(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 💙"),h_());const u=x=>x?typeof x=="function"?new x:x:null;if(!this.options.isClone){this.modules.logger?zs.init(u(this.modules.logger),this.options):zs.init(null,this.options);let x;this.modules.formatter?x=this.modules.formatter:x=u_;const D=new I1(this.options);this.store=new q1(this.options.resources,this.options);const v=this.services;v.logger=zs,v.resourceStore=this.store,v.languageUtils=D,v.pluralResolver=new i_(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"),x&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(v.formatter=u(x),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new Z1(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new f_(u(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(R,...j)=>{this.emit(R,...j)}),this.modules.languageDetector&&(v.languageDetector=u(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=u(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Lf(this.services,this.options),this.translator.on("*",(R,...j)=>{this.emit(R,...j)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,l||(l=Df),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[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(x=>{this[x]=(...D)=>this.store[x](...D)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(x=>{this[x]=(...D)=>(this.store[x](...D),this)});const g=$c(),y=()=>{const x=(D,v)=>{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(v),l(D,v)};if(this.languages&&!this.isInitialized)return x(null,this.t.bind(this));this.changeLanguage(this.options.lng,x)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),g}loadResources(r,l=Df){let c=l;const u=Ie(r)?r:this.language;if(typeof r=="function"&&(c=r),!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(x=>{x!=="cimode"&&d.indexOf(x)<0&&d.push(x)})};u?h(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>h(y)),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(r,l,c){const u=$c();return typeof r=="function"&&(c=r,r=void 0),typeof l=="function"&&(c=l,l=void 0),r||(r=this.languages),l||(l=this.options.ns),c||(c=Df),this.services.backendConnector.reload(r,l,d=>{u.resolve(),c(d)}),u}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&l4.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-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(r)<0&&this.store.hasLanguageSomeTranslations(r)&&(this.resolvedLanguage=r,this.languages.unshift(r))}}changeLanguage(r,l){this.isLanguageChangingTo=r;const c=$c();this.emit("languageChanging",r);const u=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},d=(g,y)=>{y?this.isLanguageChangingTo===r&&(u(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,c.resolve((...x)=>this.t(...x)),l&&l(g,(...x)=>this.t(...x))},h=g=>{!r&&!g&&this.services.languageDetector&&(g=[]);const y=Ie(g)?g:g&&g[0],x=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(Ie(g)?[g]:g);x&&(this.language||u(x),this.translator.language||this.translator.changeLanguage(x),this.services.languageDetector?.cacheUserLanguage?.(x)),this.loadResources(x,D=>{d(D,x)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!r&&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(r),c}getFixedT(r,l,c){const u=(d,h,...g)=>{let y;typeof h!="object"?y=this.options.overloadTranslationOptionHandler([d,h].concat(g)):y={...h},y.lng=y.lng||u.lng,y.lngs=y.lngs||u.lngs,y.ns=y.ns||u.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||c||u.keyPrefix);const x=this.options.keySeparator||".";let D;return y.keyPrefix&&Array.isArray(d)?D=d.map(v=>(typeof v=="function"&&(v=Fg(v,{...this.options,...h})),`${y.keyPrefix}${x}${v}`)):(typeof d=="function"&&(d=Fg(d,{...this.options,...h})),D=y.keyPrefix?`${y.keyPrefix}${x}${d}`:d),this.t(D,y)};return Ie(r)?u.lng=r:u.lngs=r,u.ns=l,u.keyPrefix=c,u}t(...r){return this.translator?.translate(...r)}exists(...r){return this.translator?.exists(...r)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r,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,y)=>{const x=this.services.backendConnector.state[`${g}|${y}`];return x===-1||x===0||x===2};if(l.precheck){const g=l.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(c,r)&&(!u||h(d,r)))}loadNamespaces(r,l){const c=$c();return this.options.ns?(Ie(r)&&(r=[r]),r.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(r,l){const c=$c();Ie(r)&&(r=[r]);const u=this.options.preload||[],d=r.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(r){if(r||(r=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!r)return"rtl";try{const u=new Intl.Locale(r);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 I1(Cg());return r.toLowerCase().indexOf("-latn")>1?"ltr":l.indexOf(c.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(r={},l){const c=new Pc(r,l);return c.createInstance=Pc.createInstance,c}cloneInstance(r={},l=Df){const c=r.forkResourceStore;c&&delete r.forkResourceStore;const u={...this.options,...r,isClone:!0},d=new Pc(u);if((r.debug!==void 0||r.prefix!==void 0)&&(d.logger=d.logger.clone(r)),["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((y,x)=>(y[x]={...this.store.data[x]},y[x]=Object.keys(y[x]).reduce((D,v)=>(D[v]={...y[x][v]},D),y[x]),y),{});d.store=new q1(g,u),d.services.resourceStore=d.store}if(r.interpolation){const y={...Cg().interpolation,...this.options.interpolation,...r.interpolation},x={...u,interpolation:y};d.services.interpolator=new Z1(x)}return d.translator=new Lf(d.services,u),d.translator.on("*",(g,...y)=>{d.emit(g,...y)}),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 $a=Pc.createInstance();$a.createInstance;$a.dir;$a.init;$a.loadResources;$a.reloadResources;$a.use;$a.changeLanguage;$a.getFixedT;$a.t;$a.exists;$a.setDefaultNamespace;$a.hasLoadedNamespace;$a.loadNamespaces;$a.loadLanguages;var E=su();const il=IR(E),b_=GR({__proto__:null,default:il},[E]),y_=(s,r,l,c)=>{const u=[l,{code:r,...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)},K1={},d4=(s,r,l,c)=>{ai(l)&&K1[l]||(ai(l)&&(K1[l]=new Date),y_(s,r,l,c))},f4=(s,r)=>()=>{if(s.isInitialized)r();else{const l=()=>{setTimeout(()=>{s.off("initialized",l)},0),r()};s.on("initialized",l)}},Xg=(s,r,l)=>{s.loadNamespaces(r,f4(s,l))},W1=(s,r,l,c)=>{if(ai(l)&&(l=[l]),s.options.preload&&s.options.preload.indexOf(r)>-1)return Xg(s,l,c);l.forEach(u=>{s.options.ns.indexOf(u)<0&&s.options.ns.push(u)}),s.loadLanguages(r,f4(s,c))},v_=(s,r,l={})=>!r.languages||!r.languages.length?(d4(r,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:r.languages}),!0):r.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",x_=s=>typeof s=="object"&&s!==null,N_=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,S_={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},w_=s=>S_[s],E_=s=>s.replace(N_,w_);let Qg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:E_,transDefaultProps:void 0};const D_=(s={})=>{Qg={...Qg,...s}},R_=()=>Qg;let m4;const __=s=>{m4=s},k_=()=>m4,C_={type:"3rdParty",init(s){D_(s.options.react),__(s)}},U_=E.createContext();class T_{constructor(){this.usedNamespaces={}}addUsedNamespaces(r){r.forEach(l=>{this.usedNamespaces[l]||(this.usedNamespaces[l]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Ug={exports:{}},Tg={},eS;function j_(){if(eS)return Tg;eS=1;return(function(){function s(R,j){return R===j&&(R!==0||1/R===1/j)||R!==R&&j!==j}function r(R,j){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 H=j();if(!v){var L=j();d(H,L)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),v=!0)}L=h({inst:{value:H,getSnapshot:j}});var Q=L[0].inst,Z=L[1];return y(function(){Q.value=H,Q.getSnapshot=j,l(Q)&&Z({inst:Q})},[R,H,j]),g(function(){return l(Q)&&Z({inst:Q}),R(function(){l(Q)&&Z({inst:Q})})},[R]),x(H),H}function l(R){var j=R.getSnapshot;R=R.value;try{var H=j();return!d(R,H)}catch{return!0}}function c(R,j){return j()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=su(),d=typeof Object.is=="function"?Object.is:s,h=u.useState,g=u.useEffect,y=u.useLayoutEffect,x=u.useDebugValue,D=!1,v=!1,S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:r;Tg.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:S,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Tg}var tS;function O_(){return tS||(tS=1,Ug.exports=j_()),Ug.exports}var A_=O_();const V_=(s,r)=>ai(r)?r:x_(r)&&ai(r.defaultValue)?r.defaultValue:Array.isArray(s)?s[s.length-1]:s,M_={t:V_,ready:!1},z_=()=>()=>{},Le=(s,r={})=>{const{i18n:l}=r,{i18n:c,defaultNS:u}=E.useContext(U_)||{},d=l||c||k_();d&&!d.reportNamespaces&&(d.reportNamespaces=new T_),d||d4(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=E.useMemo(()=>({...R_(),...d?.options?.react,...r}),[d,r]),{useSuspense:g,keyPrefix:y}=h,x=u||d?.options?.defaultNS,D=ai(x)?[x]:x||["translation"],v=E.useMemo(()=>D,D);d?.reportNamespaces?.addUsedNamespaces?.(v);const S=E.useRef(0),R=E.useCallback(X=>{if(!d)return z_;const{bindI18n:q,bindI18nStore:te}=h,Y=()=>{S.current+=1,X()};return q&&d.on(q,Y),te&&d.store.on(te,Y),()=>{q&&q.split(" ").forEach(ce=>d.off(ce,Y)),te&&te.split(" ").forEach(ce=>d.store.off(ce,Y))}},[d,h]),j=E.useRef(),H=E.useCallback(()=>{if(!d)return M_;const X=!!(d.isInitialized||d.initializedStoreOnce)&&v.every(ie=>v_(ie,d,h)),q=r.lng||d.language,te=S.current,Y=j.current;if(Y&&Y.ready===X&&Y.lng===q&&Y.keyPrefix===y&&Y.revision===te)return Y;const K={t:d.getFixedT(q,h.nsMode==="fallback"?v:v[0],y),ready:X,lng:q,keyPrefix:y,revision:te};return j.current=K,K},[d,v,y,h,r.lng]),[L,Q]=E.useState(0),{t:Z,ready:se}=A_.useSyncExternalStore(R,H,H);E.useEffect(()=>{if(d&&!se&&!g){const X=()=>Q(q=>q+1);r.lng?W1(d,r.lng,v,X):Xg(d,v,X)}},[d,r.lng,v,se,g,L]);const fe=d||{},be=E.useRef(null),J=E.useRef(),ee=X=>{const q=Object.getOwnPropertyDescriptors(X);q.__original&&delete q.__original;const te=Object.create(Object.getPrototypeOf(X),q);if(!Object.prototype.hasOwnProperty.call(te,"__original"))try{Object.defineProperty(te,"__original",{value:X,writable:!1,enumerable:!1,configurable:!1})}catch{}return te},_=E.useMemo(()=>{const X=fe,q=X?.language;let te=X;X&&(be.current&&be.current.__original===X?J.current!==q?(te=ee(X),be.current=te,J.current=q):te=be.current:(te=ee(X),be.current=te,J.current=q));const Y=[Z,te,se];return Y.t=Z,Y.i18n=te,Y.ready=se,Y},[Z,fe,se,fe.resolvedLanguage,fe.language,fe.languages]);if(d&&g&&!se)throw new Promise(X=>{const q=()=>X();r.lng?W1(d,r.lng,v,q):Xg(d,v,q)});return _},{slice:L_,forEach:H_}=[];function B_(s){return H_.call(L_.call(arguments,1),r=>{if(r)for(const l in r)s[l]===void 0&&(s[l]=r[l])}),s}function $_(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 aS=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Y_=function(s,r){const c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},u=encodeURIComponent(r);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(!aS.test(c.domain))throw new TypeError("option domain is invalid");d+=`; Domain=${c.domain}`}if(c.path){if(!aS.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},nS={create(s,r,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=Y_(s,r,u)},read(s){const r=`${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(r)===0)return u.substring(r.length,u.length)}return null},remove(s,r){this.create(s,"",-1,r)}};var q_={name:"cookie",lookup(s){let{lookupCookie:r}=s;if(r&&typeof document<"u")return nS.read(r)||void 0},cacheUserLanguage(s,r){let{lookupCookie:l,cookieMinutes:c,cookieDomain:u,cookieOptions:d}=r;l&&typeof document<"u"&&nS.create(l,s,c,u,d)}},G_={name:"querystring",lookup(s){let{lookupQuerystring:r}=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)===r&&(l=d[h].substring(g+1))}}return l}},I_={name:"hash",lookup(s){let{lookupHash:r,lookupFromHashIndex:l}=s,c;if(typeof window<"u"){const{hash:u}=window.location;if(u&&u.length>2){const d=u.substring(1);if(r){const h=d.split("&");for(let g=0;g<h.length;g++){const y=h[g].indexOf("=");y>0&&h[g].substring(0,y)===r&&(c=h[g].substring(y+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 sS=()=>{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 F_={name:"localStorage",lookup(s){let{lookupLocalStorage:r}=s;if(r&&sS())return window.localStorage.getItem(r)||void 0},cacheUserLanguage(s,r){let{lookupLocalStorage:l}=r;l&&sS()&&window.localStorage.setItem(l,s)}};let rl=null;const rS=()=>{if(rl!==null)return rl;try{if(rl=typeof window<"u"&&window.sessionStorage!==null,!rl)return!1;const s="i18next.translate.boo";window.sessionStorage.setItem(s,"foo"),window.sessionStorage.removeItem(s)}catch{rl=!1}return rl};var X_={name:"sessionStorage",lookup(s){let{lookupSessionStorage:r}=s;if(r&&rS())return window.sessionStorage.getItem(r)||void 0},cacheUserLanguage(s,r){let{lookupSessionStorage:l}=r;l&&rS()&&window.sessionStorage.setItem(l,s)}},Q_={name:"navigator",lookup(s){const r=[];if(typeof navigator<"u"){const{languages:l,userLanguage:c,language:u}=navigator;if(l)for(let d=0;d<l.length;d++)r.push(l[d]);c&&r.push(c),u&&r.push(u)}return r.length>0?r:void 0}},Z_={name:"htmlTag",lookup(s){let{htmlTag:r}=s,l;const c=r||(typeof document<"u"?document.documentElement:null);return c&&typeof c.getAttribute=="function"&&(l=c.getAttribute("lang")),l}},J_={name:"path",lookup(s){let{lookupFromPathIndex:r}=s;if(typeof window>"u")return;const l=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof r=="number"?r:0]?.replace("/",""):void 0}},P_={name:"subdomain",lookup(s){let{lookupFromSubdomainIndex:r}=s;const l=typeof r=="number"?r+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 p4=!1;try{document.cookie,p4=!0}catch{}const h4=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];p4||h4.splice(1,1);const K_=()=>({order:h4,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:s=>s});class g4{constructor(r){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(r,l)}init(){let r=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=r,this.options=B_(l,this.options||{},K_()),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(q_),this.addDetector(G_),this.addDetector(F_),this.addDetector(X_),this.addDetector(Q_),this.addDetector(Z_),this.addDetector(J_),this.addDetector(P_),this.addDetector(I_)}addDetector(r){return this.detectors[r.name]=r,this}detect(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,l=[];return r.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&&!$_(c)).map(c=>this.options.convertDetectedLanguage(c)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null}cacheUserLanguage(r){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;l&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||l.forEach(c=>{this.detectors[c]&&this.detectors[c].cacheUserLanguage(r,this.options)}))}}g4.type="languageDetector";const W_={"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.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.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.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 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":"Git Repositories","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_doc_files":"Documents","sources.import.dir_total_files":"Total Files","sources.import.dir_total_dirs":"Directories","sources.import.dir_git_skip_hint":"{{count}} Git repo(s) will be skipped. Import them via 'Import Repository'.","sources.actions.upload":"Upload","sources.actions.upload_md":"Markdown 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."},ek={"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.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.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.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":"Git 仓库","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_doc_files":"文档","sources.import.dir_total_files":"文件总数","sources.import.dir_total_dirs":"目录","sources.import.dir_git_skip_hint":"{{count}} 个 Git 仓库将被跳过,请通过「导入仓库」单独导入。","sources.actions.upload":"上传","sources.actions.upload_md":"Markdown 文档","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 版本中推出,敬请期待。"};$a.use(g4).use(C_).init({resources:{en:{translation:W_},zh:{translation:ek}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage"],caches:["localStorage"],lookupLocalStorage:"lang"}});var jg={exports:{}},Yc={},Og={exports:{}},Ag={},oS;function tk(){return oS||(oS=1,(function(s){(function(){function r(){if(be=!1,X){var W=s.unstable_now();Y=W;var me=!0;try{e:{se=!1,fe&&(fe=!1,ee(q),q=-1),Z=!0;var ye=Q;try{t:{for(h(W),L=c(R);L!==null&&!(L.expirationTime>W&&y());){var pe=L.callback;if(typeof pe=="function"){L.callback=null,Q=L.priorityLevel;var ae=pe(L.expirationTime<=W);if(W=s.unstable_now(),typeof ae=="function"){L.callback=ae,h(W),me=!0;break t}L===c(R)&&u(R),h(W)}else u(R);L=c(R)}if(L!==null)me=!0;else{var B=c(j);B!==null&&x(g,B.startTime-W),me=!1}}break e}finally{L=null,Q=ye,Z=!1}me=void 0}}finally{me?ce():X=!1}}}function l(W,me){var ye=W.length;W.push(me);e:for(;0<ye;){var pe=ye-1>>>1,ae=W[pe];if(0<d(ae,me))W[pe]=me,W[ye]=ae,ye=pe;else break e}}function c(W){return W.length===0?null:W[0]}function u(W){if(W.length===0)return null;var me=W[0],ye=W.pop();if(ye!==me){W[0]=ye;e:for(var pe=0,ae=W.length,B=ae>>>1;pe<B;){var ve=2*(pe+1)-1,he=W[ve],Ee=ve+1,nt=W[Ee];if(0>d(he,ye))Ee<ae&&0>d(nt,he)?(W[pe]=nt,W[Ee]=ye,pe=Ee):(W[pe]=he,W[ve]=ye,pe=ve);else if(Ee<ae&&0>d(nt,ye))W[pe]=nt,W[Ee]=ye,pe=Ee;else break e}}return me}function d(W,me){var ye=W.sortIndex-me.sortIndex;return ye!==0?ye:W.id-me.id}function h(W){for(var me=c(j);me!==null;){if(me.callback===null)u(j);else if(me.startTime<=W)u(j),me.sortIndex=me.expirationTime,l(R,me);else break;me=c(j)}}function g(W){if(fe=!1,h(W),!se)if(c(R)!==null)se=!0,X||(X=!0,ce());else{var me=c(j);me!==null&&x(g,me.startTime-W)}}function y(){return be?!0:!(s.unstable_now()-Y<te)}function x(W,me){q=J(function(){W(s.unstable_now())},me)}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 v=Date,S=v.now();s.unstable_now=function(){return v.now()-S}}var R=[],j=[],H=1,L=null,Q=3,Z=!1,se=!1,fe=!1,be=!1,J=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null,X=!1,q=-1,te=5,Y=-1;if(typeof _=="function")var ce=function(){_(r)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,ie=K.port2;K.port1.onmessage=r,ce=function(){ie.postMessage(null)}}else ce=function(){J(r,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(W){W.callback=null},s.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<W?Math.floor(1e3/W):5},s.unstable_getCurrentPriorityLevel=function(){return Q},s.unstable_next=function(W){switch(Q){case 1:case 2:case 3:var me=3;break;default:me=Q}var ye=Q;Q=me;try{return W()}finally{Q=ye}},s.unstable_requestPaint=function(){be=!0},s.unstable_runWithPriority=function(W,me){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var ye=Q;Q=W;try{return me()}finally{Q=ye}},s.unstable_scheduleCallback=function(W,me,ye){var pe=s.unstable_now();switch(typeof ye=="object"&&ye!==null?(ye=ye.delay,ye=typeof ye=="number"&&0<ye?pe+ye:pe):ye=pe,W){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=ye+ae,W={id:H++,callback:me,priorityLevel:W,startTime:ye,expirationTime:ae,sortIndex:-1},ye>pe?(W.sortIndex=ye,l(j,W),c(R)===null&&W===c(j)&&(fe?(ee(q),q=-1):fe=!0,x(g,ye-pe))):(W.sortIndex=ae,l(R,W),se||Z||(se=!0,X||(X=!0,ce()))),W},s.unstable_shouldYield=y,s.unstable_wrapCallback=function(W){var me=Q;return function(){var ye=Q;Q=me;try{return W.apply(this,arguments)}finally{Q=ye}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Ag)),Ag}var iS;function ak(){return iS||(iS=1,Og.exports=tk()),Og.exports}var Vg={exports:{}},Ra={},lS;function nk(){if(lS)return Ra;lS=1;return(function(){function s(){}function r(v){return""+v}function l(v,S,R){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(j);var H=!1}catch{H=!0}return H&&(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&&j[Symbol.toStringTag]||j.constructor.name||"Object"),r(j)),{$$typeof:x,key:j==null?null:""+j,children:v,containerInfo:S,implementation:R}}function c(v,S){if(v==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}function u(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":'something with type "'+typeof v+'"'}function d(v){return v===null?"`null`":v===void 0?"`undefined`":v===""?"an empty string":typeof v=="string"?JSON.stringify(v):typeof v=="number"?"`"+v+"`":'something with type "'+typeof v+'"'}function h(){var v=D.H;return v===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.`),v}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g=su(),y={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},x=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"),Ra.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,Ra.createPortal=function(v,S){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error("Target container is not a DOM element.");return l(v,S,null,R)},Ra.flushSync=function(v){var S=D.T,R=y.p;try{if(D.T=null,y.p=2,v)return v()}finally{D.T=S,y.p=R,y.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.")}},Ra.preconnect=function(v,S){typeof v=="string"&&v?S!=null&&typeof S!="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(S)):S!=null&&typeof S.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(S.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v)),typeof v=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,y.d.C(v,S))},Ra.prefetchDNS=function(v){if(typeof v!="string"||!v)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v));else if(1<arguments.length){var S=arguments[1];typeof S=="object"&&S.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(S)):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(S))}typeof v=="string"&&y.d.D(v)},Ra.preinit=function(v,S){if(typeof v=="string"&&v?S==null||typeof S!="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(S)):S.as!=="style"&&S.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(S.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(v)),typeof v=="string"&&S&&typeof S.as=="string"){var R=S.as,j=c(R,S.crossOrigin),H=typeof S.integrity=="string"?S.integrity:void 0,L=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;R==="style"?y.d.S(v,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:j,integrity:H,fetchPriority:L}):R==="script"&&y.d.X(v,{crossOrigin:j,integrity:H,fetchPriority:L,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},Ra.preinitModule=function(v,S){var R="";typeof v=="string"&&v||(R+=" The `href` argument encountered was "+u(v)+"."),S!==void 0&&typeof S!="object"?R+=" The `options` argument encountered was "+u(S)+".":S&&"as"in S&&S.as!=="script"&&(R+=" The `as` option encountered was "+d(S.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=S&&typeof S.as=="string"?S.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,v)),typeof v=="string"&&(typeof S=="object"&&S!==null?(S.as==null||S.as==="script")&&(R=c(S.as,S.crossOrigin),y.d.M(v,{crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})):S==null&&y.d.M(v))},Ra.preload=function(v,S){var R="";if(typeof v=="string"&&v||(R+=" The `href` argument encountered was "+u(v)+"."),S==null||typeof S!="object"?R+=" The `options` argument encountered was "+u(S)+".":typeof S.as=="string"&&S.as||(R+=" The `as` option encountered was "+u(S.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 v=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){R=S.as;var j=c(R,S.crossOrigin);y.d.L(v,R,{crossOrigin:j,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},Ra.preloadModule=function(v,S){var R="";typeof v=="string"&&v||(R+=" The `href` argument encountered was "+u(v)+"."),S!==void 0&&typeof S!="object"?R+=" The `options` argument encountered was "+u(S)+".":S&&"as"in S&&typeof S.as!="string"&&(R+=" The `as` option encountered was "+u(S.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 v=="string"&&(S?(R=c(S.as,S.crossOrigin),y.d.m(v,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0})):y.d.m(v))},Ra.requestFormReset=function(v){y.d.r(v)},Ra.unstable_batchedUpdates=function(v,S){return v(S)},Ra.useFormState=function(v,S,R){return h().useFormState(v,S,R)},Ra.useFormStatus=function(){return h().useHostTransitionStatus()},Ra.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ra}var cS;function sk(){return cS||(cS=1,Vg.exports=nk()),Vg.exports}var uS;function rk(){if(uS)return Yc;uS=1;return(function(){function s(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function r(e,t,a,n){if(a>=t.length)return n;var o=t[a],i=na(e)?e.slice():Ke({},e);return i[o]=r(e[o],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 o=t[n],i=na(e)?e.slice():Ke({},e);return n+1===t.length?(i[a[n]]=i[o],na(i)?i.splice(o,1):delete i[o]):i[o]=c(e[o],t,a,n+1),i}function u(e,t,a){var n=t[a],o=na(e)?e.slice():Ke({},e);return a+1===t.length?(na(o)?o.splice(n,1):delete o[n],o):(o[n]=u(e[n],t,a+1),o)}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 y(){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 x(){}function D(){}function v(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function S(e,t,a,n){return new Tw(e,t,a,n)}function R(e,t){e.context===Gr&&(Gp(e.current,2,t,e,null,null),hi())}function j(e,t){if(_n!==null){var a=t.staleFamilies;t=t.updatedFamilies,Ml(),$b(e.current,t,a),hi()}}function H(e){_n=e}function L(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Q(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 Z(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 se(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 fe(e){if(Q(e)!==e)throw Error("Unable to find node on an unmounted component.")}function be(e){var t=e.alternate;if(!t){if(t=Q(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 o=a.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){a=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===a)return fe(o),e;if(i===n)return fe(o),t;i=i.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==n.return)a=o,n=i;else{for(var f=!1,p=o.child;p;){if(p===a){f=!0,a=o,n=i;break}if(p===n){f=!0,n=o,a=i;break}p=p.sibling}if(!f){for(p=i.child;p;){if(p===a){f=!0,a=i,n=o;break}if(p===n){f=!0,n=i,a=o;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 J(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=J(e),t!==null)return t;e=e.sibling}return null}function ee(e){return e===null||typeof e!="object"?null:(e=Qx&&e[Qx]||e["@@iterator"],typeof e=="function"?e:null)}function _(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===WE?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Si:return"Fragment";case Pp:return"Profiler";case bd:return"StrictMode";case Wp:return"Suspense";case eh:return"SuspenseList";case th: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 _s:return e.displayName||"Context";case Kp:return(e._context.displayName||"Context")+".Consumer";case Fl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yd:return t=e.displayName||null,t!==null?t:_(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return _(e(t))}catch{}}return null}function X(e){return typeof e.tag=="number"?q(e):typeof e.name=="string"?e.name:null}function q(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===bd?"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 q(e.return)}return null}function te(e){return{current:e}}function Y(e,t){0>er?console.error("Unexpected pop."):(t!==nh[er]&&console.error("Unexpected Fiber popped."),e.current=ah[er],ah[er]=null,nh[er]=null,er--)}function ce(e,t,a){er++,ah[er]=e.current,nh[er]=a,e.current=t}function K(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 ie(e,t){ce(Lr,t,e),ce(Xl,e,e),ce(zr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?yx(t):hr;break;default:if(a=t.tagName,t=t.namespaceURI)t=yx(t),t=vx(t,a);else switch(a){case"svg":t=al;break;case"math":t=bf;break;default:t=hr}}a=a.toLowerCase(),a=fu(null,a),a={context:t,ancestorInfo:a},Y(zr,e),ce(zr,a,e)}function W(e){Y(zr,e),Y(Xl,e),Y(Lr,e)}function me(){return K(zr.current)}function ye(e){e.memoizedState!==null&&ce(vd,e,e);var t=K(zr.current),a=e.type,n=vx(t.context,a);a=fu(t.ancestorInfo,a),n={context:n,ancestorInfo:a},t!==n&&(ce(Xl,e,e),ce(zr,n,e))}function pe(e){Xl.current===e&&(Y(zr,e),Y(Xl,e)),vd.current===e&&(Y(vd,e),Lc._currentValue=Wo)}function ae(){}function B(){if(Ql===0){Zx=console.log,Jx=console.info,Px=console.warn,Kx=console.error,Wx=console.group,e0=console.groupCollapsed,t0=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ae,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ql++}function ve(){if(Ql--,Ql===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},e,{value:Zx}),info:Ke({},e,{value:Jx}),warn:Ke({},e,{value:Px}),error:Ke({},e,{value:Kx}),group:Ke({},e,{value:Wx}),groupCollapsed:Ke({},e,{value:e0}),groupEnd:Ke({},e,{value:t0})})}0>Ql&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function he(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 Ee(e){if(sh===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);sh=t&&t[1]||"",a0=-1<a.stack.indexOf(`
|
|
26
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
+
`+sh+e+a0}function nt(e,t){if(!e||rh)return"";var a=oh.get(e);if(a!==void 0)return a;rh=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=F.H,F.H=null,B();try{var o={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(ge){var $=ge}Reflect.construct(e,[],U)}else{try{U.call()}catch(ge){$=ge}e.call(U.prototype)}}else{try{throw Error()}catch(ge){$=ge}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(ge){if(ge&&$&&typeof ge.stack=="string")return[ge.stack,$.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),p=f[0],b=f[1];if(p&&b){var N=p.split(`
|
|
28
|
+
`),A=b.split(`
|
|
29
|
+
`);for(f=i=0;i<N.length&&!N[i].includes("DetermineComponentFrameRoot");)i++;for(;f<A.length&&!A[f].includes("DetermineComponentFrameRoot");)f++;if(i===N.length||f===A.length)for(i=N.length-1,f=A.length-1;1<=i&&0<=f&&N[i]!==A[f];)f--;for(;1<=i&&0<=f;i--,f--)if(N[i]!==A[f]){if(i!==1||f!==1)do if(i--,f--,0>f||N[i]!==A[f]){var V=`
|
|
30
|
+
`+N[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),typeof e=="function"&&oh.set(e,V),V}while(1<=i&&0<=f);break}}}finally{rh=!1,F.H=n,ve(),Error.prepareStackTrace=a}return N=(N=e?e.displayName||e.name:"")?Ee(N):"",typeof e=="function"&&oh.set(e,N),N}function Vt(e,t){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee("Lazy");case 13:return e.child!==t&&t!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return nt(e.type,!1);case 11:return nt(e.type.render,!1);case 1:return nt(e.type,!0);case 31:return Ee("Activity");default:return""}}function qe(e){try{var t="",a=null;do{t+=Vt(e,a);var n=e._debugInfo;if(n)for(var o=n.length-1;0<=o;o--){var i=n[o];if(typeof i.name=="string"){var f=t;e:{var p=i.name,b=i.env,N=i.debugLocation;if(N!=null){var A=he(N),V=A.lastIndexOf(`
|
|
31
|
+
`),U=V===-1?A:A.slice(V+1);if(U.indexOf(p)!==-1){var $=`
|
|
32
|
+
`+U;break e}}$=Ee(p+(b?" ["+b+"]":""))}t=f+$}}a=e,e=e.return}while(e);return t}catch(ge){return`
|
|
33
|
+
Error generating stack: `+ge.message+`
|
|
34
|
+
`+ge.stack}}function Mt(e){return(e=e?e.displayName||e.name:"")?Ee(e):""}function zt(){if(cn===null)return null;var e=cn._debugOwner;return e!=null?X(e):null}function Ka(){if(cn===null)return"";var e=cn;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Ee(e.type);break;case 13:t+=Ee("Suspense");break;case 19:t+=Ee("SuspenseList");break;case 31:t+=Ee("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Mt(e.type));break;case 11:e._debugOwner||t!==""||(t+=Mt(e.type.render))}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var n=a._debugStack;if(e&&n){var o=he(n);o!==""&&(t+=`
|
|
35
|
+
`+o)}}else if(e.debugStack!=null){var i=e.debugStack;(e=e.owner)&&i&&(t+=`
|
|
36
|
+
`+he(i))}else break;var f=t}catch(p){f=`
|
|
37
|
+
Error generating stack: `+p.message+`
|
|
38
|
+
`+p.stack}return f}function Se(e,t,a,n,o,i,f){var p=cn;$n(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,n,o,i,f)):t(a,n,o,i,f)}finally{$n(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function $n(e){F.getCurrentStack=e===null?null:Ka,ks=!1,cn=e}function Et(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function xa(e){try{return Wa(e),!1}catch{return!0}}function Wa(e){return""+e}function ft(e,t){if(xa(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,Et(e)),Wa(e)}function Dt(e,t){if(xa(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,Et(e)),Wa(e)}function os(e){if(xa(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.",Et(e)),Wa(e)}function He(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),Ea=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function le(e){if(typeof oD=="function"&&iD(e),Ea&&typeof Ea.setStrictMode=="function")try{Ea.setStrictMode(Ei,e)}catch(t){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",t))}}function We(e){return e>>>=0,e===0?32:31-(lD(e)/cD|0)|0}function Qt(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 Yn(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var o=0,i=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=n&134217727;return p!==0?(n=p&~i,n!==0?o=Qt(n):(f&=p,f!==0?o=Qt(f):a||(a=p&~e,a!==0&&(o=Qt(a))))):(p=n&~i,p!==0?o=Qt(p):f!==0?o=Qt(f):a||(a=n&~e,a!==0&&(o=Qt(a)))),o===0?0:t!==0&&t!==o&&(t&i)===0&&(i=o&-o,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:o}function vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ya(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 Lt(){var e=Sd;return Sd<<=1,(Sd&62914560)===0&&(Sd=4194304),e}function Nr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function xn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qa(e,t,a,n,o,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,b=e.expirationTimes,N=e.hiddenUpdates;for(a=f&~a;0<a;){var A=31-Oa(a),V=1<<A;p[A]=0,b[A]=-1;var U=N[A];if(U!==null)for(N[A]=null,A=0;A<U.length;A++){var $=U[A];$!==null&&($.lane&=-536870913)}a&=~V}n!==0&&Ca(e,n,0),i!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=i&~(f&~t))}function Ca(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Oa(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Sr(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Oa(a),o=1<<n;o&t|e[n]&t&&(e[n]|=t),a&=~o}}function Bs(e,t){var a=t&-t;return a=(a&42)!==0?1:Nn(a),(a&(e.suspendedLanes|t))!==0?0:a}function Nn(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 $s(e,t,a){if(Us)for(e=e.pendingUpdatersLaneMap;0<a;){var n=31-Oa(a),o=1<<n;e[n].add(t),a&=~o}}function Na(e,t){if(Us)for(var a=e.pendingUpdatersLaneMap,n=e.memoizedUpdaters;0<t;){var o=31-Oa(t);e=1<<o,o=a[o],0<o.size&&(o.forEach(function(i){var f=i.alternate;f!==null&&n.has(f)||n.add(i)}),o.clear()),t&=~e}}function Ys(e){return e&=-e,En<e?Ts<e?(e&134217727)!==0?tr:wd:Ts:En}function qn(){var e=gt.p;return e!==0?e:(e=window.event,e===void 0?tr:$x(e.type))}function w(e,t){var a=gt.p;try{return gt.p=e,t()}finally{gt.p=a}}function M(e){delete e[ba],delete e[Aa],delete e[dh],delete e[uD],delete e[dD]}function ne(e){var t=e[ba];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Br]||a[ba]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=_x(e);e!==null;){if(a=e[ba])return a;e=_x(e)}return t}e=a,a=e.parentNode}return null}function de(e){if(e=e[ba]||e[Br]){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[n0];return t||(t=e[n0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ke(e){e[Zl]=!0}function st(e,t){Ge(e,t),Ge(e+"Capture",t)}function Ge(e,t){Uo[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Uo[e]=t;var a=e.toLowerCase();for(fh[a]=e,e==="onDoubleClick"&&(fh.ondblclick=e),e=0;e<t.length;e++)s0.add(t[e])}function oa(e,t){fD[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 Ua(e){return Pn.call(o0,e)?!0:Pn.call(r0,e)?!1:mD.test(e)?o0[e]=!0:(r0[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function qs(e,t,a){if(Ua(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:(ft(a,t),e===""+a?a:e)}}function Gs(e,t,a){if(Ua(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}}ft(a,t),e.setAttribute(t,""+a)}}function ri(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}ft(a,t),e.setAttribute(t,""+a)}}function Gn(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}ft(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 os(e),e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function I(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(f){os(f),a=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){os(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=I(e,t,""+e[t])}}function ue(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 Ne(e){return e.replace(pD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Te(e,t){t.checked===void 0||t.defaultChecked===void 0||l0||(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",zt()||"A component",t.type),l0=!0),t.value===void 0||t.defaultValue===void 0||i0||(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",zt()||"A component",t.type),i0=!0)}function Re(e,t,a,n,o,i,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?(ft(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?Ae(e,f,C(t)):a!=null?Ae(e,f,C(a)):n!=null&&e.removeAttribute("value"),o==null&&i!=null&&(e.defaultChecked=!!i),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?(ft(p,"name"),e.name=""+C(p)):e.removeAttribute("name")}function Ve(e,t,a,n,o,i,f,p){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(ft(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??o,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"&&(ft(f,"name"),e.name=f),oe(e)}function Ae(e,t,a){t==="number"&&Ce(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ue(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Jp.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||u0||(u0=!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||d0||(d0=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||c0||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),c0=!0)}function mt(){var e=zt();return e?`
|
|
39
|
+
|
|
40
|
+
Check the render method of \``+e+"`.":""}function et(e,t,a,n){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&n&&(e[a].defaultSelected=!0)}else{for(a=""+C(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Rt(e,t){for(e=0;e<m0.length;e++){var a=m0[e];if(t[a]!=null){var n=na(t[a]);t.multiple&&!n?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,mt()):!t.multiple&&n&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,mt())}}t.value===void 0||t.defaultValue===void 0||f0||(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"),f0=!0)}function Gt(e,t){t.value===void 0||t.defaultValue===void 0||p0||(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",zt()||"A component"),p0=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ia(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 pt(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(na(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 Ta(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Ta(e.children[0],t):e}function It(e){return" "+" ".repeat(e)}function Sn(e){return"+ "+" ".repeat(e)}function Sa(e){return"- "+" ".repeat(e)}function en(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 Is(e,t){return h0.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 is(e,t,a){var n=120-2*a;if(t===null)return Sn(a)+Is(e,n)+`
|
|
41
|
+
`;if(typeof t=="string"){for(var o=0;o<t.length&&o<e.length&&t.charCodeAt(o)===e.charCodeAt(o);o++);return o>n-8&&10<o&&(e="..."+e.slice(o-8),t="..."+t.slice(o-8)),Sn(a)+Is(e,n)+`
|
|
42
|
+
`+Sa(a)+Is(t,n)+`
|
|
43
|
+
`}return It(a)+Is(e,n)+`
|
|
44
|
+
`}function In(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function ls(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(na(e))return"[...]";if(e.$$typeof===Rs)return(t=_(e.type))?"<"+t+">":"<...>";var a=In(e);if(a==="Object"){a="",t-=2;for(var n in e)if(e.hasOwnProperty(n)){var o=JSON.stringify(n);if(o!=='"'+n+'"'&&(n=o),t-=n.length-2,o=ls(e[n],15>t?t:15),t-=o.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+n+":"+o}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Fn(e,t){return typeof e!="string"||h0.test(e)?"{"+ls(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function ot(e,t,a){var n=120-a.length-e.length,o=[],i;for(i in t)if(t.hasOwnProperty(i)&&i!=="children"){var f=Fn(t[i],120-a.length-i.length-1);n-=i.length+f.length+2,o.push(i+"="+f)}return o.length===0?a+"<"+e+`>
|
|
45
|
+
`:0<n?a+"<"+e+" "+o.join(" ")+`>
|
|
46
|
+
`:a+"<"+e+`
|
|
47
|
+
`+a+" "+o.join(`
|
|
48
|
+
`+a+" ")+`
|
|
49
|
+
`+a+`>
|
|
50
|
+
`}function la(e,t,a){var n="",o=Ke({},t),i;for(i in e)if(e.hasOwnProperty(i)){delete o[i];var f=120-2*a-i.length-2,p=ls(e[i],f);t.hasOwnProperty(i)?(f=ls(t[i],f),n+=Sn(a)+i+": "+p+`
|
|
51
|
+
`,n+=Sa(a)+i+": "+f+`
|
|
52
|
+
`):n+=Sn(a)+i+": "+p+`
|
|
53
|
+
`}for(var b in o)o.hasOwnProperty(b)&&(e=ls(o[b],120-2*a-b.length-2),n+=Sa(a)+b+": "+e+`
|
|
54
|
+
`);return n}function wr(e,t,a,n){var o="",i=new Map;for(N in a)a.hasOwnProperty(N)&&i.set(N.toLowerCase(),N);if(i.size===1&&i.has("children"))o+=ot(e,t,It(n));else{for(var f in t)if(t.hasOwnProperty(f)&&f!=="children"){var p=120-2*(n+1)-f.length-1,b=i.get(f.toLowerCase());if(b!==void 0){i.delete(f.toLowerCase());var N=t[f];b=a[b];var A=Fn(N,p);p=Fn(b,p),typeof N=="object"&&N!==null&&typeof b=="object"&&b!==null&&In(N)==="Object"&&In(b)==="Object"&&(2<Object.keys(N).length||2<Object.keys(b).length||-1<A.indexOf("...")||-1<p.indexOf("..."))?o+=It(n+1)+f+`={{
|
|
55
|
+
`+la(N,b,n+2)+It(n+1)+`}}
|
|
56
|
+
`:(o+=Sn(n+1)+f+"="+A+`
|
|
57
|
+
`,o+=Sa(n+1)+f+"="+p+`
|
|
58
|
+
`)}else o+=It(n+1)+f+"="+Fn(t[f],p)+`
|
|
59
|
+
`}i.forEach(function(V){if(V!=="children"){var U=120-2*(n+1)-V.length-1;o+=Sa(n+1)+V+"="+Fn(a[V],U)+`
|
|
60
|
+
`}}),o=o===""?It(n)+"<"+e+`>
|
|
61
|
+
`:It(n)+"<"+e+`
|
|
62
|
+
`+o+It(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),o+=is(i,""+e,n+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(o=e==null?o+is(""+t,null,n+1):o+is(""+t,void 0,n+1)),o}function cs(e,t){var a=en(e);if(a===null){for(a="",e=e.child;e;)a+=cs(e,t),e=e.sibling;return a}return It(t)+"<"+a+`>
|
|
64
|
+
`}function _t(e,t){var a=Ta(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return It(t)+`...
|
|
65
|
+
`+_t(a,t+1);a="";var n=e.fiber._debugInfo;if(n)for(var o=0;o<n.length;o++){var i=n[o].name;typeof i=="string"&&(a+=It(t)+"<"+i+`>
|
|
66
|
+
`,t++)}if(n="",o=e.fiber.pendingProps,e.fiber.tag===6)n=is(o,e.serverProps,t),t++;else if(i=en(e.fiber),i!==null)if(e.serverProps===void 0){n=t;var f=120-2*n-i.length-2,p="";for(N in o)if(o.hasOwnProperty(N)&&N!=="children"){var b=Fn(o[N],15);if(f-=N.length+b.length+2,0>f){p+=" ...";break}p+=" "+N+"="+b}n=It(n)+"<"+i+p+`>
|
|
67
|
+
`,t++}else e.serverProps===null?(n=ot(i,o,Sn(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=wr(i,o,e.serverProps,t),t++);var N="";for(o=e.fiber.child,i=0;o&&i<e.children.length;)f=e.children[i],f.fiber===o?(N+=_t(f,t),i++):N+=cs(o,t),o=o.sibling;for(o&&0<e.children.length&&(N+=It(t)+`...
|
|
68
|
+
`),o=e.serverTail,e.serverProps===null&&t--,e=0;e<o.length;e++)i=o[e],N=typeof i=="string"?N+(Sa(t)+Is(i,120-2*t)+`
|
|
69
|
+
`):N+ot(i.type,i.props,Sa(t));return a+n+N}function Er(e){try{return`
|
|
70
|
+
|
|
71
|
+
`+_t(e,0)}catch{return""}}function ml(e,t,a){for(var n=t,o=null,i=0;n;)n===e&&(i=0),o={fiber:n,children:o!==null?[o]:[],serverProps:n===t?a:n===e?null:void 0,serverTail:[],distanceFromLeaf:i},i++,n=n.return;return o!==null?Er(o).replaceAll(/^[+-]/gm,">"):""}function fu(e,t){var a=Ke({},e||b0),n={tag:t};return g0.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),gD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),hD.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 mb(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 bD.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 dw(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 pb(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 Pf(e,t){t=t||b0;var a=t.current;if(t=(a=mb(e,a&&a.tag,t.implicitRootScope)?null:a)?null:dw(e,t),t=a||t,!t)return!0;var n=t.tag;if(t=String(!!a)+"|"+e+"|"+n,Ed[t])return!1;Ed[t]=!0;var o=(t=cn)?pb(t.return,n):null,i=t!==null&&o!==null?ml(o,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,o===null||e===null||o===e&&e._debugOwner===t._debugOwner||Se(o,function(){console.error(`<%s> cannot contain a nested %s.
|
|
74
|
+
See this log for the ancestor stack trace.`,n,f)})),!1}function mu(e,t,a){if(a||mb("#text",t,!1))return!0;if(a="#text|"+t,Ed[a])return!1;Ed[a]=!0;var n=(a=cn)?pb(a,t):null;return a=a!==null&&n!==null?ml(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 pl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function fw(e){return e.replace(xD,function(t,a){return a.toUpperCase()})}function hb(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,fw(t.replace(vD,"ms-")))):yD.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))):!x0.test(a)||ph.hasOwnProperty(a)&&ph[a]||(ph[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(x0,""))),typeof a=="number"&&(isNaN(a)?N0||(N0=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||S0||(S0=!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||w0.has(t)?t==="float"?e.cssFloat=a:(Dt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function gb(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 o in a)if(a.hasOwnProperty(o)&&!t.hasOwnProperty(o))for(var i=mh[o]||[o],f=0;f<i.length;f++)n[i[f]]=o}for(var p in t)if(t.hasOwnProperty(p)&&(!a||a[p]!==t[p]))for(o=mh[p]||[p],i=0;i<o.length;i++)n[o[i]]=p;p={};for(var b in t)for(o=mh[b]||[b],i=0;i<o.length;i++)p[o[i]]=b;b={};for(var N in n)if(o=n[N],(i=p[N])&&o!==i&&(f=o+","+i,!b[f])){b[f]=!0,f=console;var A=t[o];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",o,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 U in t)N=t[U],t.hasOwnProperty(U)&&a[U]!==N&&hb(e,U,N)}else for(n in t)t.hasOwnProperty(n)&&hb(e,n,t[n])}function hl(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 bb(e){return ND.get(e)||e}function mw(e,t){if(Pn.call(_i,t)&&_i[t])return!0;if(wD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=E0.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(SD.test(t)){if(e=t.toLowerCase(),e=E0.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 pw(e,t){var a=[],n;for(n in t)mw(e,n)||a.push(n);t=a.map(function(o){return"`"+o+"`"}).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 hw(e,t,a,n){if(Pn.call(Va,t)&&Va[t])return!0;var o=t.toLowerCase();if(o==="onfocusin"||o==="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."),Va[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(o)?e[o]:null,n!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,n),Va[t]=!0;if(R0.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Va[t]=!0}else if(R0.test(t))return ED.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Va[t]=!0;if(DD.test(t)||RD.test(t))return!0;if(o==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Va[t]=!0;if(o==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Va[t]=!0;if(o==="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),Va[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),Va[t]=!0;if(Rd.hasOwnProperty(o)){if(o=Rd[o],o!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,o),Va[t]=!0}else if(t!==o)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,o),Va[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 o=t.toLowerCase().slice(0,5),o==="data-"||o==="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),Va[t]=!0)}case"function":case"symbol":return Va[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),Va[t]=!0}}return!0}function gw(e,t,a){var n=[],o;for(o in t)hw(e,o,t[o],a)||n.push(o);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 gl(e){return _D.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fs(){}function Kf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function yb(e){var t=de(e);if(t&&(e=t.stateNode)){var a=e[Aa]||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(ft(t,"name"),a=a.querySelectorAll('input[name="'+Ne(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var o=n[Aa]||null;if(!o)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Re(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&ue(n)}break e;case"textarea":ia(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&et(e,!!a.multiple,t,!1)}}}function vb(e,t,a){if(hh)return e(t,a);hh=!0;try{var n=e(t);return n}finally{if(hh=!1,(ki!==null||Ci!==null)&&(hi(),ki&&(t=ki,e=Ci,Ci=ki=null,yb(t),e)))for(t=0;t<e.length;t++)yb(e[t])}}function bl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[Aa]||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 xb(){if(_d)return _d;var e,t=bh,a=t.length,n,o="value"in $r?$r.value:$r.textContent,i=o.length;for(e=0;e<a&&t[e]===o[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===o[i-n];n++);return _d=o.slice(e,1<n?1-n:void 0)}function pu(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 hu(){return!0}function Nb(){return!1}function Ga(e){function t(a,n,o,i,f){this._reactName=a,this._targetInst=o,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)?hu:Nb,this.isPropagationStopped=Nb,this}return Ke(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=hu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=hu)},persist:function(){},isPersistent:hu}),t}function bw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=BD[e])?!!t[e]:!1}function Wf(){return bw}function Sb(e,t){switch(e){case"keyup":return KD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==U0;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function yw(e,t){switch(e){case"compositionend":return wb(t);case"keypress":return t.which!==j0?null:(A0=!0,O0);case"textInput":return e=t.data,e===O0&&A0?null:e;default:return null}}function vw(e,t){if(Ui)return e==="compositionend"||!Nh&&Sb(e,t)?(e=xb(),_d=bh=$r=null,Ui=!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 T0&&t.locale!=="ko"?null:t.data;default:return null}}function Eb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!eR[e.type]:t==="textarea"}function xw(e){if(!js)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 Db(e,t,a,n){ki?Ci?Ci.push(n):Ci=[n]:ki=n,t=id(t,"onChange"),0<t.length&&(a=new kd("onChange","change",null,a,n),e.push({event:a,listeners:t}))}function Nw(e){ix(e,0)}function gu(e){var t=De(e);if(ue(t))return e}function Rb(e,t){if(e==="change")return t}function _b(){tc&&(tc.detachEvent("onpropertychange",kb),ac=tc=null)}function kb(e){if(e.propertyName==="value"&&gu(ac)){var t=[];Db(t,ac,e,Kf(e)),vb(Nw,t)}}function Sw(e,t,a){e==="focusin"?(_b(),tc=t,ac=a,tc.attachEvent("onpropertychange",kb)):e==="focusout"&&_b()}function ww(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gu(ac)}function Ew(e,t){if(e==="click")return gu(t)}function Dw(e,t){if(e==="input"||e==="change")return gu(t)}function Rw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function yl(e,t){if(Ma(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 o=a[n];if(!Pn.call(t,o)||!Ma(e[o],t[o]))return!1}return!0}function Cb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ub(e,t){var a=Cb(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=Cb(a)}}function Tb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jb(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 em(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 Ob(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;wh||Ti==null||Ti!==Ce(n)||(n=Ti,"selectionStart"in n&&em(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}),nc&&yl(nc,n)||(nc=n,n=id(Sh,"onSelect"),0<n.length&&(t=new kd("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Ti)))}function go(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function bo(e){if(Eh[e])return Eh[e];if(!ji[e])return e;var t=ji[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in M0)return Eh[e]=t[a];return e}function Xn(e,t){$0.set(e,t),st(t,[e])}function _w(e){for(var t=Ud,a=0;a<e.length;a++){var n=e[a];if(typeof n=="object"&&n!==null)if(na(n)&&n.length===2&&typeof n[0]=="string"){if(t!==Ud&&t!==Ch)return _h;t=Ch}else return _h;else{if(typeof n=="function"||typeof n=="string"&&50<n.length||t!==Ud&&t!==kh)return _h;t=kh}}return t}function tm(e,t,a,n){for(var o in e)Pn.call(e,o)&&o[0]!=="_"&&us(o,e[o],t,a,n)}function us(e,t,a,n,o){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Rs){var i=_(t.type)||"…",f=t.key;t=t.props;var p=Object.keys(t),b=p.length;if(f==null&&b===0){t="<"+i+" />";break}if(3>n||b===1&&p[0]==="children"&&f==null){t="<"+i+" … />";break}a.push([o+" ".repeat(n)+e,"<"+i]),f!==null&&us("key",f,a,n+1,o),e=!1;for(var N in t)N==="children"?t.children!=null&&(!na(t.children)||0<t.children.length)&&(e=!0):Pn.call(t,N)&&N[0]!=="_"&&us(N,t[N],a,n+1,o);a.push(["",e?">…</"+i+">":"/>"]);return}if(i=Object.prototype.toString.call(t),i=i.slice(8,i.length-1),i==="Array"){if(N=_w(t),N===kh||N===Ud){t=JSON.stringify(t);break}else if(N===Ch){for(a.push([o+" ".repeat(n)+e,""]),e=0;e<t.length;e++)i=t[e],us(i[0],i[1],a,n+1,o);return}}if(i==="Promise"){if(t.status==="fulfilled"){if(i=a.length,us(e,t.value,a,n,o),a.length>i){a=a[i],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(i=a.length,us(e,t.reason,a,n,o),a.length>i)){a=a[i],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(n)+e,"Promise"]);return}i==="Object"&&(N=Object.getPrototypeOf(t))&&typeof N.constructor=="function"&&(i=N.constructor.name),a.push([o+" ".repeat(n)+e,i==="Object"?3>n?"":"…":i]),3>n&&tm(t,a,n+1,o);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===iR?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([o+" ".repeat(n)+e,t])}function Ab(e,t,a,n){var o=!0;for(f in e)f in t||(a.push([Td+" ".repeat(n)+f,"…"]),o=!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")o=" ".repeat(n)+i,a.push([Td+o,"…"],[jd+o,"…"]);else{if(!(3<=n)){if(typeof f=="object"&&typeof p=="object"&&f!==null&&p!==null&&f.$$typeof===p.$$typeof)if(p.$$typeof===Rs){if(f.type===p.type&&f.key===p.key){f=_(p.type)||"…",o=" ".repeat(n)+i,f="<"+f+" … />",a.push([Td+o,f],[jd+o,f]),o=!1;continue}}else{var b=Object.prototype.toString.call(f),N=Object.prototype.toString.call(p);if(b===N&&(N==="[object Object]"||N==="[object Array]")){b=[G0+" ".repeat(n)+i,N==="[object Array]"?"Array":""],a.push(b),N=a.length,Ab(f,p,a,n+1)?N===a.length&&(b[1]="Referentially unequal but deeply equal objects. Consider memoization."):o=!1;continue}}else if(typeof f=="function"&&typeof p=="function"&&f.name===p.name&&f.length===p.length&&(b=Function.prototype.toString.call(f),N=Function.prototype.toString.call(p),b===N)){f=p.name===""?"() => {}":p.name+"() {}",a.push([G0+" ".repeat(n)+i,f+" Referentially unequal function closure. Consider memoization."]);continue}}us(i,f,a,n,Td),us(i,p,a,n,jd)}o=!1}}else a.push([jd+" ".repeat(n)+i,"…"]),o=!1;return o}function Qn(e){ut=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function ds(e,t,a,n){kt&&(qr.start=t,qr.end=a,ar.color="warning",ar.tooltipText=n,ar.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,n,qr)):performance.measure(n,qr))}function bu(e,t,a){ds(e,t,a,"Reconnect")}function yu(e,t,a,n,o){var i=q(e);if(i!==null&&kt){var f=e.alternate,p=e.actualDuration;if(f===null||f.child!==e.child)for(var b=e.child;b!==null;b=b.sibling)p-=b.actualDuration;n=.5>p?n?"tertiary-light":"primary-light":10>p?n?"tertiary":"primary":100>p?n?"tertiary-dark":"primary-dark":"error";var N=e.memoizedProps;p=e._debugTask,N!==null&&f!==null&&f.memoizedProps!==N?(b=[lR],N=Ab(f.memoizedProps,N,b,0),1<b.length&&(N&&!Yr&&(f.lanes&o)===0&&100<e.actualDuration?(Yr=!0,b[0]=cR,ar.color="warning",ar.tooltipText=I0):(ar.color=n,ar.tooltipText=i),ar.properties=b,qr.start=t,qr.end=a,p!=null?p.run(performance.measure.bind(performance,""+i,qr)):performance.measure(""+i,qr))):p!=null?p.run(console.timeStamp.bind(console,i,t,a,Dn,void 0,n)):console.timeStamp(i,t,a,Dn,void 0,n)}}function am(e,t,a,n){if(kt){var o=q(e);if(o!==null){for(var i=null,f=[],p=0;p<n.length;p++){var b=n[p];i==null&&b.source!==null&&(i=b.source._debugTask),b=b.value,f.push(["Error",typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b)])}e.key!==null&&us("key",e.key,f,0,""),e.memoizedProps!==null&&tm(e.memoizedProps,f,0,""),i==null&&(i=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Dn,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:f}}},i?i.run(performance.measure.bind(performance,""+o,e)):performance.measure(""+o,e)}}}function fs(e,t,a,n,o){if(o!==null){if(kt){var i=q(e);if(i!==null){n=[];for(var f=0;f<o.length;f++){var p=o[f].value;n.push(["Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e.key!==null&&us("key",e.key,n,0,""),e.memoizedProps!==null&&tm(e.memoizedProps,n,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Dn,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=q(e),i!==null&&kt&&(o=1>n?"secondary-light":100>n?"secondary":500>n?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,i,t,a,Dn,void 0,o)):console.timeStamp(i,t,a,Dn,void 0,o))}function kw(e,t,a,n){if(kt&&!(t<=e)){var o=(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,ut,lt,o)):console.timeStamp(a,e,t,ut,lt,o)}}function Vb(e,t,a,n){!kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",n?n.run(console.timeStamp.bind(console,"Prewarm",e,t,ut,lt,a)):console.timeStamp("Prewarm",e,t,ut,lt,a))}function Mb(e,t,a,n){!kt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",n?n.run(console.timeStamp.bind(console,"Suspended",e,t,ut,lt,a)):console.timeStamp("Suspended",e,t,ut,lt,a))}function Cw(e,t,a,n,o,i){if(kt&&!(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:ut,trackGroup:lt,tooltipText:o?"Hydration Failed":"Recovered after Error",properties:a}}},i?i.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function nm(e,t,a,n){!kt||t<=e||(n?n.run(console.timeStamp.bind(console,"Errored",e,t,ut,lt,"error")):console.timeStamp("Errored",e,t,ut,lt,"error"))}function Uw(e,t,a,n){!kt||t<=e||(n?n.run(console.timeStamp.bind(console,a,e,t,ut,lt,"secondary-light")):console.timeStamp(a,e,t,ut,lt,"secondary-light"))}function zb(e,t,a,n,o){if(kt&&!(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:ut,trackGroup:lt,tooltipText:n?"Remaining Effects Errored":"Commit Errored",properties:i}}},o?o.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function sm(e,t,a){!kt||t<=e||console.timeStamp("Animating",e,t,ut,lt,"secondary-dark")}function vu(){for(var e=Oi,t=Uh=Oi=0;t<e;){var a=Rn[t];Rn[t++]=null;var n=Rn[t];Rn[t++]=null;var o=Rn[t];Rn[t++]=null;var i=Rn[t];if(Rn[t++]=null,n!==null&&o!==null){var f=n.pending;f===null?o.next=o:(o.next=f.next,f.next=o),n.pending=o}i!==0&&Lb(a,o,i)}}function xu(e,t,a,n){Rn[Oi++]=e,Rn[Oi++]=t,Rn[Oi++]=a,Rn[Oi++]=n,Uh|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function rm(e,t,a,n){return xu(e,t,a,n),Nu(e)}function wa(e,t){return xu(e,null,null,t),Nu(e)}function Lb(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var o=!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&sc||(o=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,o&&t!==null&&(o=31-Oa(a),e=i.hiddenUpdates,n=e[o],n===null?e[o]=[t]:n.push(t),t.lane=a|536870912),i):null}function Nu(e){if(Tc>DR)throw Xo=Tc=0,jc=cg=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.");Xo>RR&&(Xo=0,jc=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&&ex(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&ex(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function yo(e){if(_n===null)return e;var t=_n(e);return t===void 0?e:t.current}function om(e){if(_n===null)return e;var t=_n(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=yo(e.render),e.render!==t)?(t={$$typeof:Fl,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Hb(e,t){if(_n===null)return!1;var a=e.elementType;t=t.type;var n=!1,o=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(n=!0);break;case 0:(typeof t=="function"||o===ln)&&(n=!0);break;case 11:(o===Fl||o===ln)&&(n=!0);break;case 14:case 15:(o===yd||o===ln)&&(n=!0);break;default:return!1}return!!(n&&(e=_n(a),e!==void 0&&e===_n(t)))}function Bb(e){_n!==null&&typeof WeakSet=="function"&&(Ai===null&&(Ai=new WeakSet),Ai.add(e))}function $b(e,t,a){do{var n=e,o=n.alternate,i=n.child,f=n.sibling,p=n.tag;n=n.type;var b=null;switch(p){case 0:case 15:case 1:b=n;break;case 11:b=n.render}if(_n===null)throw Error("Expected resolveFamily to be set during hot reload.");var N=!1;if(n=!1,b!==null&&(b=_n(b),b!==void 0&&(a.has(b)?n=!0:t.has(b)&&(p===1?n=!0:N=!0))),Ai!==null&&(Ai.has(e)||o!==null&&Ai.has(o))&&(n=!0),n&&(e._debugNeedsRemount=!0),(n||N)&&(o=wa(e,2),o!==null&&Ht(o,e,2)),i===null||n||$b(i,t,a),f===null)break;e=f}while(!0)}function Tw(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,F0||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function im(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xs(e,t){var a=e.alternate;switch(a===null?(a=S(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=yo(e.type);break;case 1:a.type=yo(e.type);break;case 11:a.type=om(e.type)}return a}function Yb(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 lm(e,t,a,n,o,i){var f=0,p=e;if(typeof e=="function")im(e)&&(f=1),p=yo(p);else if(typeof e=="string")f=me(),f=BE(e,a,f)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case th:return t=S(31,a,t,o),t.elementType=th,t.lanes=i,t;case Si:return vo(a.children,o,i,t);case bd:f=8,o|=Da,o|=Kn;break;case Pp:return e=a,n=o,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=S(12,e,t,n|Xe),t.elementType=Pp,t.lanes=i,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Wp:return t=S(13,a,t,o),t.elementType=Wp,t.lanes=i,t;case eh:return t=S(19,a,t,o),t.elementType=eh,t.lanes=i,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _s:f=10;break e;case Kp:f=9;break e;case Fl:f=11,p=om(p);break e;case yd:f=14;break e;case ln: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":na(e)?a="array":e!==void 0&&e.$$typeof===Rs?(a="<"+(_(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(f=n?X(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=S(f,a,t,o),t.elementType=e,t.type=p,t.lanes=i,t._debugOwner=n,t}function Su(e,t,a){return t=lm(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function vo(e,t,a,n){return e=S(7,e,n,t),e.lanes=a,e}function cm(e,t,a){return e=S(6,e,null,t),e.lanes=a,e}function qb(e){var t=S(18,null,null,ze);return t.stateNode=e,t}function um(e,t,a){return t=S(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tn(e,t){if(typeof e=="object"&&e!==null){var a=Th.get(e);return a!==void 0?a:(t={value:e,source:t,stack:qe(t)},Th.set(e,t),t)}return{value:e,source:t,stack:qe(t)}}function Qs(e,t){Dr(),Vi[Mi++]=rc,Vi[Mi++]=Od,Od=e,rc=t}function Gb(e,t,a){Dr(),kn[Cn++]=sr,kn[Cn++]=rr,kn[Cn++]=jo,jo=e;var n=sr;e=rr;var o=32-Oa(n)-1;n&=~(1<<o),a+=1;var i=32-Oa(t)+o;if(30<i){var f=o-o%5;i=(n&(1<<f)-1).toString(32),n>>=f,o-=f,sr=1<<32-Oa(t)+o|a<<o|n,rr=i+e}else sr=1<<i|a<<o|n,rr=e}function dm(e){Dr(),e.return!==null&&(Qs(e,1),Gb(e,1,0))}function fm(e){for(;e===Od;)Od=Vi[--Mi],Vi[Mi]=null,rc=Vi[--Mi],Vi[Mi]=null;for(;e===jo;)jo=kn[--Cn],kn[Cn]=null,rr=kn[--Cn],kn[Cn]=null,sr=kn[--Cn],kn[Cn]=null}function Ib(){return Dr(),jo!==null?{id:sr,overflow:rr}:null}function Fb(e,t){Dr(),kn[Cn++]=sr,kn[Cn++]=rr,kn[Cn++]=jo,sr=t.id,rr=t.overflow,jo=e}function Dr(){rt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function xo(e,t){if(e.return===null){if(un===null)un={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(un.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");un.distanceFromLeaf>t&&(un.distanceFromLeaf=t)}return un}var a=xo(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 Xb(){rt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function wu(e,t){Os||(e=xo(e,0),e.serverProps=null,t!==null&&(t=Dx(t),e.serverTail.push(t)))}function Rr(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",n=un;throw n!==null&&(un=null,a=Er(n)),vl(tn(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)),jh}function Qb(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ba]=e,t[Aa]=n,jp(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<Oc.length;a++)it(Oc[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":oa("input",n),it("invalid",t),Te(t,n),Ve(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"option":Ue(t,n);break;case"select":oa("select",n),it("invalid",t),Rt(t,n);break;case"textarea":oa("textarea",n),it("invalid",t),Gt(t,n),pt(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||dx(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=Fs),t=!0):t=!1,t||Rr(e,!0)}function Zb(e){for(ya=e.return;ya;)switch(ya.tag){case 5:case 31:case 13:Un=!1;return;case 27:case 3:Un=!0;return;default:ya=ya.return}}function oi(e){if(e!==ya)return!1;if(!rt)return Zb(e),rt=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||zp(e.type,e.memoizedProps)),a=!a),a&&Ct){for(a=Ct;a;){var n=xo(e,0),o=Dx(a);n.serverTail.push(o),a=o.type==="Suspense"?$p(a):on(a.nextSibling)}Rr(e)}if(Zb(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.");Ct=$p(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.");Ct=$p(e)}else t===27?(t=Ct,Mr(e.type)?(e=Ng,Ng=null,Ct=e):Ct=t):Ct=ya?on(e.stateNode.nextSibling):null;return!0}function No(){Ct=ya=null,Os=rt=!1}function mm(){var e=Ir;return e!==null&&(Ba===null?Ba=e:Ba.push.apply(Ba,e),Ir=null),e}function vl(e){Ir===null?Ir=[e]:Ir.push(e)}function pm(){var e=un;if(e!==null){un=null;for(var t=Er(e);0<e.children.length;)e=e.children[0];Se(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 Eu(){zi=Ad=null,Li=!1}function _r(e,t,a){ce(Oh,t._currentValue,e),t._currentValue=a,ce(Ah,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Q0&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Q0}function Zs(e,t){e._currentValue=Oh.current;var a=Ah.current;Y(Ah,t),e._currentRenderer=a,Y(Oh,t)}function hm(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 gm(e,t,a,n){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var i=o.dependencies;if(i!==null){var f=o.child;i=i.firstContext;e:for(;i!==null;){var p=i;i=o;for(var b=0;b<t.length;b++)if(p.context===t[b]){i.lanes|=a,p=i.alternate,p!==null&&(p.lanes|=a),hm(i.return,a,e),n||(f=null);break e}i=p.next}}else if(o.tag===18){if(f=o.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),hm(f,a,e),f=null}else f=o.child;if(f!==null)f.return=o;else for(f=o;f!==null;){if(f===e){f=null;break}if(o=f.sibling,o!==null){o.return=f.return,f=o;break}f=f.return}o=f}}function ii(e,t,a,n){e=null;for(var o=t,i=!1;o!==null;){if(!i){if((o.flags&524288)!==0)i=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var f=o.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=o.type;Ma(o.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(o===vd.current){if(f=o.alternate,f===null)throw Error("Should have a current fiber. This is a bug in React.");f.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Lc):e=[Lc])}o=o.return}e!==null&&gm(t,e,a,n),t.flags|=262144}function Du(e){for(e=e.firstContext;e!==null;){if(!Ma(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function So(e){Ad=e,zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(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()."),Jb(Ad,e)}function Ru(e,t){return Ad===null&&So(e),Jb(e,t)}function Jb(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 bm(){return{controller:new fR,data:new Map,refCount:0}}function wo(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 xl(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&&mR(pR,function(){e.controller.abort()})}function ms(e,t,a){(e&127)!==0?0>As&&(As=Pt(),ic=Vd(t),Vh=t,a!=null&&(Mh=q(a)),(dt&(ra|mn))!==ma&&(Bt=!0,Xr=oc),e=$l(),t=Bl(),e!==Hi||t!==lc?Hi=-1.1:t!==null&&(Xr=oc),Vo=e,lc=t):(e&4194048)!==0&&0>Tn&&(Tn=Pt(),cc=Vd(t),Z0=t,a!=null&&(J0=q(a)),0>cr)&&(e=$l(),t=Bl(),(e!==Zr||t!==Mo)&&(Zr=-1.1),Qr=e,Mo=t)}function jw(e){if(0>As){As=Pt(),ic=e._debugTask!=null?e._debugTask:null,(dt&(ra|mn))!==ma&&(Xr=oc);var t=$l(),a=Bl();t!==Hi||a!==lc?Hi=-1.1:a!==null&&(Xr=oc),Vo=t,lc=a}0>Tn&&(Tn=Pt(),cc=e._debugTask!=null?e._debugTask:null,0>cr)&&(e=$l(),t=Bl(),(e!==Zr||t!==Mo)&&(Zr=-1.1),Qr=e,Mo=t)}function Js(){var e=Oo;return Oo=0,e}function _u(e){var t=Oo;return Oo=e,t}function Nl(e){var t=Oo;return Oo+=e,t}function ku(){Me=Oe=-1.1}function an(){var e=Oe;return Oe=-1.1,e}function nn(e){0<=e&&(Oe=e)}function ps(){var e=Ot;return Ot=-0,e}function hs(e){0<=e&&(Ot=e)}function gs(){var e=jt;return jt=null,e}function bs(){var e=Bt;return Bt=!1,e}function ym(e){za=Pt(),0>e.actualStartTime&&(e.actualStartTime=za)}function vm(e){if(0<=za){var t=Pt()-za;e.actualDuration+=t,e.selfBaseDuration=t,za=-1}}function Pb(e){if(0<=za){var t=Pt()-za;e.actualDuration+=t,za=-1}}function ys(){if(0<=za){var e=Pt(),t=e-za;za=-1,Oo+=t,Ot+=t,Me=e}}function Kb(e){jt===null&&(jt=[]),jt.push(e),ir===null&&(ir=[]),ir.push(e)}function vs(){za=Pt(),0>Oe&&(Oe=za)}function Sl(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Ow(e,t){if(dc===null){var a=dc=[];Lh=0,zo=kp(),Bi={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Lh++,t.then(Wb,Wb),t}function Wb(){if(--Lh===0&&(-1<Tn||(cr=-1.1),dc!==null)){Bi!==null&&(Bi.status="fulfilled");var e=dc;dc=null,zo=0,Bi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Aw(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(n.status="rejected",n.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),n}function xm(){var e=Lo.current;return e!==null?e:Nt.pooledCache}function Cu(e,t){t===null?ce(Lo,Lo.current,e):ce(Lo,t.pool,e)}function ey(){var e=xm();return e===null?null:{parent:Jt._currentValue,pool:e}}function ty(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function ay(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ny(e,t,a){F.actQueue!==null&&(F.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(Fs,Fs),t=a),t._debugInfo===void 0){e=performance.now(),n=t.displayName;var o={name:typeof n=="string"?n:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:o}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){o.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ry(e),e;default:if(typeof t.status=="string")t.then(Fs,Fs);else{if(e=Nt,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,ry(e),e}throw Bo=t,yc=!0,$i}}function kr(e){try{return vR(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Bo=t,yc=!0,$i):t}}function sy(){if(Bo===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Bo;return Bo=null,yc=!1,e}function ry(e){if(e===$i||e===qd)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 pa(e){var t=Qe;return e!=null&&(Qe=t===null?e:t.concat(e)),t}function Nm(){var e=Qe;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 Uu(e,t,a){for(var n=Object.keys(e.props),o=0;o<n.length;o++){var i=n[o];if(i!=="children"&&i!=="key"){t===null&&(t=Su(e,a.mode,0),t._debugInfo=Qe,t.return=a),Se(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 Tu(e){var t=vc;return vc+=1,Yi===null&&(Yi=ty()),ny(Yi,e,t)}function wl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function oy(e,t){throw t.$$typeof===PE?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 ju(e,t){var a=Nm();a!==null?a.run(oy.bind(null,e,t)):oy(e,t)}function iy(e,t){var a=q(e)||"Component";gN[a]||(gN[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 Ou(e,t){var a=Nm();a!==null?a.run(iy.bind(null,e,t)):iy(e,t)}function ly(e,t){var a=q(e)||"Component";bN[a]||(bN[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 Au(e,t){var a=Nm();a!==null?a.run(ly.bind(null,e,t)):ly(e,t)}function cy(e){function t(k,T){if(e){var O=k.deletions;O===null?(k.deletions=[T],k.flags|=16):O.push(T)}}function a(k,T){if(!e)return null;for(;T!==null;)t(k,T),T=T.sibling;return null}function n(k){for(var T=new Map;k!==null;)k.key!==null?T.set(k.key,k):T.set(k.index,k),k=k.sibling;return T}function o(k,T){return k=Xs(k,T),k.index=0,k.sibling=null,k}function i(k,T,O){return k.index=O,e?(O=k.alternate,O!==null?(O=O.index,O<T?(k.flags|=67108866,T):O):(k.flags|=67108866,T)):(k.flags|=1048576,T)}function f(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function p(k,T,O,P){return T===null||T.tag!==6?(T=cm(O,k.mode,P),T.return=k,T._debugOwner=k,T._debugTask=k._debugTask,T._debugInfo=Qe,T):(T=o(T,O),T.return=k,T._debugInfo=Qe,T)}function b(k,T,O,P){var xe=O.type;return xe===Si?(T=A(k,T,O.props.children,P,O.key),Uu(O,T,k),T):T!==null&&(T.elementType===xe||Hb(T,O)||typeof xe=="object"&&xe!==null&&xe.$$typeof===ln&&kr(xe)===T.type)?(T=o(T,O.props),wl(T,O),T.return=k,T._debugOwner=O._owner,T._debugInfo=Qe,T):(T=Su(O,k.mode,P),wl(T,O),T.return=k,T._debugInfo=Qe,T)}function N(k,T,O,P){return T===null||T.tag!==4||T.stateNode.containerInfo!==O.containerInfo||T.stateNode.implementation!==O.implementation?(T=um(O,k.mode,P),T.return=k,T._debugInfo=Qe,T):(T=o(T,O.children||[]),T.return=k,T._debugInfo=Qe,T)}function A(k,T,O,P,xe){return T===null||T.tag!==7?(T=vo(O,k.mode,P,xe),T.return=k,T._debugOwner=k,T._debugTask=k._debugTask,T._debugInfo=Qe,T):(T=o(T,O),T.return=k,T._debugInfo=Qe,T)}function V(k,T,O){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=cm(""+T,k.mode,O),T.return=k,T._debugOwner=k,T._debugTask=k._debugTask,T._debugInfo=Qe,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Rs:return O=Su(T,k.mode,O),wl(O,T),O.return=k,k=pa(T._debugInfo),O._debugInfo=Qe,Qe=k,O;case Ni:return T=um(T,k.mode,O),T.return=k,T._debugInfo=Qe,T;case ln:var P=pa(T._debugInfo);return T=kr(T),k=V(k,T,O),Qe=P,k}if(na(T)||ee(T))return O=vo(T,k.mode,O,null),O.return=k,O._debugOwner=k,O._debugTask=k._debugTask,k=pa(T._debugInfo),O._debugInfo=Qe,Qe=k,O;if(typeof T.then=="function")return P=pa(T._debugInfo),k=V(k,Tu(T),O),Qe=P,k;if(T.$$typeof===_s)return V(k,Ru(k,T),O);ju(k,T)}return typeof T=="function"&&Ou(k,T),typeof T=="symbol"&&Au(k,T),null}function U(k,T,O,P){var xe=T!==null?T.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return xe!==null?null:p(k,T,""+O,P);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Rs:return O.key===xe?(xe=pa(O._debugInfo),k=b(k,T,O,P),Qe=xe,k):null;case Ni:return O.key===xe?N(k,T,O,P):null;case ln:return xe=pa(O._debugInfo),O=kr(O),k=U(k,T,O,P),Qe=xe,k}if(na(O)||ee(O))return xe!==null?null:(xe=pa(O._debugInfo),k=A(k,T,O,P,null),Qe=xe,k);if(typeof O.then=="function")return xe=pa(O._debugInfo),k=U(k,T,Tu(O),P),Qe=xe,k;if(O.$$typeof===_s)return U(k,T,Ru(k,O),P);ju(k,O)}return typeof O=="function"&&Ou(k,O),typeof O=="symbol"&&Au(k,O),null}function $(k,T,O,P,xe){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return k=k.get(O)||null,p(T,k,""+P,xe);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Rs:return O=k.get(P.key===null?O:P.key)||null,k=pa(P._debugInfo),T=b(T,O,P,xe),Qe=k,T;case Ni:return k=k.get(P.key===null?O:P.key)||null,N(T,k,P,xe);case ln:var Ye=pa(P._debugInfo);return P=kr(P),T=$(k,T,O,P,xe),Qe=Ye,T}if(na(P)||ee(P))return O=k.get(O)||null,k=pa(P._debugInfo),T=A(T,O,P,xe,null),Qe=k,T;if(typeof P.then=="function")return Ye=pa(P._debugInfo),T=$(k,T,O,Tu(P),xe),Qe=Ye,T;if(P.$$typeof===_s)return $(k,T,O,Ru(T,P),xe);ju(T,P)}return typeof P=="function"&&Ou(T,P),typeof P=="symbol"&&Au(T,P),null}function ge(k,T,O,P){if(typeof O!="object"||O===null)return P;switch(O.$$typeof){case Rs:case Ni:D(k,T,O);var xe=O.key;if(typeof xe!="string")break;if(P===null){P=new Set,P.add(xe);break}if(!P.has(xe)){P.add(xe);break}Se(T,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.",xe)});break;case ln:O=kr(O),ge(k,T,O,P)}return P}function we(k,T,O,P){for(var xe=null,Ye=null,je=null,_e=T,Fe=T=0,Ut=null;_e!==null&&Fe<O.length;Fe++){_e.index>Fe?(Ut=_e,_e=null):Ut=_e.sibling;var Xt=U(k,_e,O[Fe],P);if(Xt===null){_e===null&&(_e=Ut);break}xe=ge(k,Xt,O[Fe],xe),e&&_e&&Xt.alternate===null&&t(k,_e),T=i(Xt,T,Fe),je===null?Ye=Xt:je.sibling=Xt,je=Xt,_e=Ut}if(Fe===O.length)return a(k,_e),rt&&Qs(k,Fe),Ye;if(_e===null){for(;Fe<O.length;Fe++)_e=V(k,O[Fe],P),_e!==null&&(xe=ge(k,_e,O[Fe],xe),T=i(_e,T,Fe),je===null?Ye=_e:je.sibling=_e,je=_e);return rt&&Qs(k,Fe),Ye}for(_e=n(_e);Fe<O.length;Fe++)Ut=$(_e,k,Fe,O[Fe],P),Ut!==null&&(xe=ge(k,Ut,O[Fe],xe),e&&Ut.alternate!==null&&_e.delete(Ut.key===null?Fe:Ut.key),T=i(Ut,T,Fe),je===null?Ye=Ut:je.sibling=Ut,je=Ut);return e&&_e.forEach(function(br){return t(k,br)}),rt&&Qs(k,Fe),Ye}function wt(k,T,O,P){if(O==null)throw Error("An iterable object provided no iterator.");for(var xe=null,Ye=null,je=T,_e=T=0,Fe=null,Ut=null,Xt=O.next();je!==null&&!Xt.done;_e++,Xt=O.next()){je.index>_e?(Fe=je,je=null):Fe=je.sibling;var br=U(k,je,Xt.value,P);if(br===null){je===null&&(je=Fe);break}Ut=ge(k,br,Xt.value,Ut),e&&je&&br.alternate===null&&t(k,je),T=i(br,T,_e),Ye===null?xe=br:Ye.sibling=br,Ye=br,je=Fe}if(Xt.done)return a(k,je),rt&&Qs(k,_e),xe;if(je===null){for(;!Xt.done;_e++,Xt=O.next())je=V(k,Xt.value,P),je!==null&&(Ut=ge(k,je,Xt.value,Ut),T=i(je,T,_e),Ye===null?xe=je:Ye.sibling=je,Ye=je);return rt&&Qs(k,_e),xe}for(je=n(je);!Xt.done;_e++,Xt=O.next())Fe=$(je,k,_e,Xt.value,P),Fe!==null&&(Ut=ge(k,Fe,Xt.value,Ut),e&&Fe.alternate!==null&&je.delete(Fe.key===null?_e:Fe.key),T=i(Fe,T,_e),Ye===null?xe=Fe:Ye.sibling=Fe,Ye=Fe);return e&&je.forEach(function(qR){return t(k,qR)}),rt&&Qs(k,_e),xe}function ct(k,T,O,P){if(typeof O=="object"&&O!==null&&O.type===Si&&O.key===null&&(Uu(O,null,k),O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Rs:var xe=pa(O._debugInfo);e:{for(var Ye=O.key;T!==null;){if(T.key===Ye){if(Ye=O.type,Ye===Si){if(T.tag===7){a(k,T.sibling),P=o(T,O.props.children),P.return=k,P._debugOwner=O._owner,P._debugInfo=Qe,Uu(O,P,k),k=P;break e}}else if(T.elementType===Ye||Hb(T,O)||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===ln&&kr(Ye)===T.type){a(k,T.sibling),P=o(T,O.props),wl(P,O),P.return=k,P._debugOwner=O._owner,P._debugInfo=Qe,k=P;break e}a(k,T);break}else t(k,T);T=T.sibling}O.type===Si?(P=vo(O.props.children,k.mode,P,O.key),P.return=k,P._debugOwner=k,P._debugTask=k._debugTask,P._debugInfo=Qe,Uu(O,P,k),k=P):(P=Su(O,k.mode,P),wl(P,O),P.return=k,P._debugInfo=Qe,k=P)}return k=f(k),Qe=xe,k;case Ni:e:{for(xe=O,O=xe.key;T!==null;){if(T.key===O)if(T.tag===4&&T.stateNode.containerInfo===xe.containerInfo&&T.stateNode.implementation===xe.implementation){a(k,T.sibling),P=o(T,xe.children||[]),P.return=k,k=P;break e}else{a(k,T);break}else t(k,T);T=T.sibling}P=um(xe,k.mode,P),P.return=k,k=P}return f(k);case ln:return xe=pa(O._debugInfo),O=kr(O),k=ct(k,T,O,P),Qe=xe,k}if(na(O))return xe=pa(O._debugInfo),k=we(k,T,O,P),Qe=xe,k;if(ee(O)){if(xe=pa(O._debugInfo),Ye=ee(O),typeof Ye!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var je=Ye.call(O);return je===O?(k.tag!==0||Object.prototype.toString.call(k.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(je)!=="[object Generator]")&&(pN||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."),pN=!0):O.entries!==Ye||Yh||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Yh=!0),k=wt(k,T,je,P),Qe=xe,k}if(typeof O.then=="function")return xe=pa(O._debugInfo),k=ct(k,T,Tu(O),P),Qe=xe,k;if(O.$$typeof===_s)return ct(k,T,Ru(k,O),P);ju(k,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(xe=""+O,T!==null&&T.tag===6?(a(k,T.sibling),P=o(T,xe),P.return=k,k=P):(a(k,T),P=cm(xe,k.mode,P),P.return=k,P._debugOwner=k,P._debugTask=k._debugTask,P._debugInfo=Qe,k=P),f(k)):(typeof O=="function"&&Ou(k,O),typeof O=="symbol"&&Au(k,O),a(k,T))}return function(k,T,O,P){var xe=Qe;Qe=null;try{vc=0;var Ye=ct(k,T,O,P);return Yi=null,Ye}catch(Ut){if(Ut===$i||Ut===qd)throw Ut;var je=S(29,Ut,null,k.mode);je.lanes=P,je.return=k;var _e=je._debugInfo=Qe;if(je._debugOwner=k._debugOwner,je._debugTask=k._debugTask,_e!=null){for(var Fe=_e.length-1;0<=Fe;Fe--)if(typeof _e[Fe].stack=="string"){je._debugOwner=_e[Fe],je._debugTask=_e[Fe].debugTask;break}}return je}finally{Qe=xe}}}function uy(e,t){var a=na(e);return e=!a&&typeof ee(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 Sm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wm(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 Cr(e){return{lane:e,tag:vN,payload:null,callback:null,next:null}}function Ur(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Gh===n&&!SN){var o=q(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`,o),SN=!0}return(dt&ra)!==ma?(o=n.pending,o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,t=Nu(e),Lb(e,null,a),t):(xu(e,n,t,a),Nu(e))}function El(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,Sr(e,a)}}function Vu(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var o=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?o=i=f:i=i.next=f,a=a.next}while(a!==null);i===null?o=i=t:i=i.next=t}else o=i=t;a={baseState:n.baseState,firstBaseUpdate:o,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 Dl(){if(Ih){var e=Bi;if(e!==null)throw e}}function Rl(e,t,a,n){Ih=!1;var o=e.updateQueue;Jr=!1,Gh=o.shared;var i=o.firstBaseUpdate,f=o.lastBaseUpdate,p=o.shared.pending;if(p!==null){o.shared.pending=null;var b=p,N=b.next;b.next=null,f===null?i=N:f.next=N,f=b;var A=e.alternate;A!==null&&(A=A.updateQueue,p=A.lastBaseUpdate,p!==f&&(p===null?A.firstBaseUpdate=N:p.next=N,A.lastBaseUpdate=b))}if(i!==null){var V=o.baseState;f=0,A=N=b=null,p=i;do{var U=p.lane&-536870913,$=U!==p.lane;if($?(Ze&U)===U:(n&U)===U){U!==0&&U===zo&&(Ih=!0),A!==null&&(A=A.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{U=e;var ge=p,we=t,wt=a;switch(ge.tag){case xN:if(ge=ge.payload,typeof ge=="function"){Li=!0;var ct=ge.call(wt,V,we);if(U.mode&Da){le(!0);try{ge.call(wt,V,we)}finally{le(!1)}}Li=!1,V=ct;break e}V=ge;break e;case qh:U.flags=U.flags&-65537|128;case vN:if(ct=ge.payload,typeof ct=="function"){if(Li=!0,ge=ct.call(wt,V,we),U.mode&Da){le(!0);try{ct.call(wt,V,we)}finally{le(!1)}}Li=!1}else ge=ct;if(ge==null)break e;V=Ke({},V,ge);break e;case NN:Jr=!0}}U=p.callback,U!==null&&(e.flags|=64,$&&(e.flags|=8192),$=o.callbacks,$===null?o.callbacks=[U]:$.push(U))}else $={lane:U,tag:p.tag,payload:p.payload,callback:p.callback,next:null},A===null?(N=A=$,b=V):A=A.next=$,f|=U;if(p=p.next,p===null){if(p=o.shared.pending,p===null)break;$=p,p=$.next,$.next=null,o.lastBaseUpdate=$,o.shared.pending=null}}while(!0);A===null&&(b=V),o.baseState=b,o.firstBaseUpdate=N,o.lastBaseUpdate=A,i===null&&(o.shared.lanes=0),Wr|=f,e.lanes=f,e.memoizedState=V}Gh=null}function dy(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Vw(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)dy(a[e],t)}function fy(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)dy(a[e],t)}function my(e,t){var a=Ms;ce(Id,a,e),ce(qi,t,e),Ms=a|t.baseLanes}function Em(e){ce(Id,Ms,e),ce(qi,qi.current,e)}function Dm(e){Ms=Id.current,Y(qi,e),Y(Id,e)}function Tr(e){var t=e.alternate;ce(Ft,Ft.current&Gi,e),ce(dn,e,e),jn===null&&(t===null||qi.current!==null||t.memoizedState!==null)&&(jn=e)}function Rm(e){ce(Ft,Ft.current,e),ce(dn,e,e),jn===null&&(jn=e)}function py(e){e.tag===22?(ce(Ft,Ft.current,e),ce(dn,e,e),jn===null&&(jn=e)):jr(e)}function jr(e){ce(Ft,Ft.current,e),ce(dn,dn.current,e)}function sn(e){Y(dn,e),jn===e&&(jn=null),Y(Ft,e)}function Mu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Hp(a)||Bp(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 Pe(){var e=G;An===null?An=[e]:An.push(e)}function re(){var e=G;if(An!==null&&(fr++,An[fr]!==e)){var t=q($e);if(!wN.has(t)&&(wN.add(t),An!==null)){for(var a="",n=0;n<=fr;n++){var o=An[n],i=n===fr?e:o;for(o=n+1+". "+o;30>o.length;)o+=" ";o+=i+`
|
|
108
|
+
`,a+=o}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||na(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.",G,typeof e)}function zu(){var e=q($e);DN.has(e)||(DN.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function $t(){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 _m(e,t){if(Sc)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.",G),!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`,G,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Ma(e[a],t[a]))return!1;return!0}function km(e,t,a,n,o,i){ur=i,$e=t,An=e!==null?e._debugHookTypes:null,fr=-1,Sc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(i=q($e),Fh.has(i)||(Fh.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,F.H=e!==null&&e.memoizedState!==null?Qh:An!==null?RN:Xh,Yo=i=(t.mode&Da)!==ze;var f=Hh(a,n,o);if(Yo=!1,Fi&&(f=Cm(t,a,n,o)),i){le(!0);try{f=Cm(t,a,n,o)}finally{le(!1)}}return hy(e,t),f}function hy(e,t){t._debugHookTypes=An,t.dependencies===null?dr!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:dr}):t.dependencies._debugThenableState=dr,F.H=wc;var a=xt!==null&&xt.next!==null;if(ur=0,An=G=Kt=xt=$e=null,fr=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Xd=!1,Nc=0,dr=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Wt||(e=e.dependencies,e!==null&&Du(e)&&(Wt=!0)),yc?(yc=!1,e=!0):e=!1,e&&(t=q(t)||"Unknown",EN.has(t)||Fh.has(t)||(EN.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 Cm(e,t,a,n){$e=e;var o=0;do{if(Fi&&(dr=null),Nc=0,Fi=!1,o>=NR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(o+=1,Sc=!1,Kt=xt=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}fr=-1,F.H=_N,i=Hh(t,a,n)}while(Fi);return i}function Mw(){var e=F.H,t=e.useState()[0];return t=typeof t.then=="function"?_l(t):t,e=e.useState()[0],(xt!==null?xt.memoizedState:null)!==e&&($e.flags|=1024),t}function Um(){var e=Qd!==0;return Qd=0,e}function Tm(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Kn)!==ze?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function jm(e){if(Xd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xd=!1}ur=0,An=Kt=xt=$e=null,fr=-1,G=null,Fi=!1,Nc=Qd=0,dr=null}function ja(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?$e.memoizedState=Kt=e:Kt=Kt.next=e,Kt}function bt(){if(xt===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=xt.next;var t=Kt===null?$e.memoizedState:Kt.next;if(t!==null)Kt=t,xt=e;else{if(e===null)throw $e.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.");xt=e,e={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},Kt===null?$e.memoizedState=Kt=e:Kt=Kt.next=e}return Kt}function Lu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _l(e){var t=Nc;return Nc+=1,dr===null&&(dr=ty()),e=ny(dr,e,t),t=$e,(Kt===null?t.memoizedState:Kt.next)===null&&(t=t.alternate,F.H=t!==null&&t.memoizedState!==null?Qh:Xh),e}function Or(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return _l(e);if(e.$$typeof===_s)return Tt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Eo(e){var t=null,a=$e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=$e.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Lu(),$e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Sc)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=KE;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 Zn(e,t){return typeof t=="function"?t(e):t}function Om(e,t,a){var n=ja();if(a!==void 0){var o=a(t);if(Yo){le(!0);try{a(t)}finally{le(!1)}}}else o=t;return n.memoizedState=n.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},n.queue=e,e=e.dispatch=$w.bind(null,$e,e),[n.memoizedState,e]}function ci(e){var t=bt();return Am(t,xt,e)}function Am(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 o=e.baseQueue,i=n.pending;if(i!==null){if(o!==null){var f=o.next;o.next=i.next,i.next=f}t.baseQueue!==o&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=o=i,n.pending=null}if(i=e.baseState,o===null)e.memoizedState=i;else{t=o.next;var p=f=null,b=null,N=t,A=!1;do{var V=N.lane&-536870913;if(V!==N.lane?(Ze&V)===V:(ur&V)===V){var U=N.revertLane;if(U===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),V===zo&&(A=!0);else if((ur&U)===U){N=N.next,U===zo&&(A=!0);continue}else V={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(p=b=V,f=i):b=b.next=V,$e.lanes|=U,Wr|=U;V=N.action,Yo&&a(i,V),i=N.hasEagerState?N.eagerState:a(i,V)}else U={lane:V,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(p=b=U,f=i):b=b.next=U,$e.lanes|=V,Wr|=V;N=N.next}while(N!==null&&N!==t);if(b===null?f=i:b.next=p,!Ma(i,e.memoizedState)&&(Wt=!0,A&&(a=Bi,a!==null)))throw a;e.memoizedState=i,e.baseState=f,e.baseQueue=b,n.lastRenderedState=i}return o===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function kl(e){var t=bt(),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,o=a.pending,i=t.memoizedState;if(o!==null){a.pending=null;var f=o=o.next;do i=e(i,f.action),f=f.next;while(f!==o);Ma(i,t.memoizedState)||(Wt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,n]}function Vm(e,t,a){var n=$e,o=ja();if(rt){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(),Ma(i,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ii=!0)),Nt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ze&127)!==0||gy(n,t,i)}return o.memoizedState=i,a={value:i,getSnapshot:t},o.queue=a,Yu(yy.bind(null,n,a,e),[e]),n.flags|=2048,di(On|Ha,{destroy:void 0},by.bind(null,n,a,i,t),null),i}function Hu(e,t,a){var n=$e,o=bt(),i=rt;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();Ma(a,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ii=!0)}(f=!Ma((xt||o).memoizedState,a))&&(o.memoizedState=a,Wt=!0),o=o.queue;var p=yy.bind(null,n,o,e);if(Ia(2048,Ha,p,[e]),o.getSnapshot!==t||f||Kt!==null&&Kt.memoizedState.tag&On){if(n.flags|=2048,di(On|Ha,{destroy:void 0},by.bind(null,n,o,a,t),null),Nt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i||(ur&127)!==0||gy(n,t,a)}return a}function gy(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=$e.updateQueue,t===null?(t=Lu(),$e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function by(e,t,a,n){t.value=a,t.getSnapshot=n,vy(t)&&xy(e)}function yy(e,t,a){return a(function(){vy(t)&&(ms(2,"updateSyncExternalStore()",e),xy(e))})}function vy(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ma(e,a)}catch{return!0}}function xy(e){var t=wa(e,2);t!==null&&Ht(t,e,2)}function Mm(e){var t=ja();if(typeof e=="function"){var a=e;if(e=a(),Yo){le(!0);try{a()}finally{le(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:e},t}function zm(e){e=Mm(e);var t=e.queue,a=Hy.bind(null,$e,t);return t.dispatch=a,[e.memoizedState,a]}function Lm(e){var t=ja();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Km.bind(null,$e,!0,a),a.dispatch=t,[e,t]}function Ny(e,t){var a=bt();return Sy(a,xt,e,t)}function Sy(e,t,a,n){return e.baseState=a,Am(e,xt,typeof n=="function"?n:Zn)}function wy(e,t){var a=bt();return xt!==null?Sy(a,xt,e,t):(a.baseState=e,[e,a.queue.dispatch])}function zw(e,t,a,n,o){if(Qu(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};F.T!==null?a(!0):i.isTransition=!1,n(i),a=t.pending,a===null?(i.next=t.pending=i,Ey(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Ey(e,t){var a=t.action,n=t.payload,o=e.state;if(t.isTransition){var i=F.T,f={};f._updatedFibers=new Set,F.T=f;try{var p=a(o,n),b=F.S;b!==null&&b(f,p),Dy(e,t,p)}catch(N){Hm(e,t,N)}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),F.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(o,n),Dy(e,t,f)}catch(N){Hm(e,t,N)}}function Dy(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(F.asyncTransitions++,a.then(Xu,Xu),a.then(function(n){Ry(e,t,n)},function(n){return Hm(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.")):Ry(e,t,a)}function Ry(e,t,a){t.status="fulfilled",t.value=a,_y(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ey(e,a)))}function Hm(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,_y(t),t=t.next;while(t!==n)}e.action=null}function _y(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ky(e,t){return t}function ui(e,t){if(rt){var a=Nt.formState;if(a!==null){e:{var n=$e;if(rt){if(Ct){t:{for(var o=Ct,i=Un;o.nodeType!==8;){if(!i){o=null;break t}if(o=on(o.nextSibling),o===null){o=null;break t}}i=o.data,o=i===bg||i===f1?o:null}if(o){Ct=on(o.nextSibling),n=o.data===bg;break e}}Rr(n)}n=!1}n&&(t=a[0])}}return a=ja(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ky,lastRenderedState:t},a.queue=n,a=Hy.bind(null,$e,n),n.dispatch=a,n=Mm(!1),i=Km.bind(null,$e,!1,n.queue),n=ja(),o={state:t,dispatch:null,action:e,pending:null},n.queue=o,a=zw.bind(null,$e,o,i,a),o.dispatch=a,n.memoizedState=e,[t,a,!1]}function Bu(e){var t=bt();return Cy(t,xt,e)}function Cy(e,t,a){if(t=Am(e,t,ky)[0],e=ci(Zn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=_l(t)}catch(f){throw f===$i?qd:f}else n=t;t=bt();var o=t.queue,i=o.dispatch;return a!==t.memoizedState&&($e.flags|=2048,di(On|Ha,{destroy:void 0},Lw.bind(null,o,a),null)),[n,i,e]}function Lw(e,t){e.action=t}function $u(e){var t=bt(),a=xt;if(a!==null)return Cy(t,a,e);bt(),t=t.memoizedState,a=bt();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=$e.updateQueue,t===null&&(t=Lu(),$e.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 Bm(e){var t=ja();return e={current:e},t.memoizedState=e}function Do(e,t,a,n){var o=ja();$e.flags|=e,o.memoizedState=di(On|t,{destroy:void 0},a,n===void 0?null:n)}function Ia(e,t,a,n){var o=bt();n=n===void 0?null:n;var i=o.memoizedState.inst;xt!==null&&n!==null&&_m(n,xt.memoizedState.deps)?o.memoizedState=di(t,i,a,n):($e.flags|=e,o.memoizedState=di(On|t,i,a,n))}function Yu(e,t){($e.mode&Kn)!==ze?Do(276826112,Ha,e,t):Do(8390656,Ha,e,t)}function Hw(e){$e.flags|=4;var t=$e.updateQueue;if(t===null)t=Lu(),$e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function $m(e){var t=ja(),a={impl:e};return t.memoizedState=a,function(){if((dt&ra)!==ma)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function qu(e){var t=bt().memoizedState;return Hw({ref:t,nextImpl:e}),function(){if((dt&ra)!==ma)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Ym(e,t){var a=4194308;return($e.mode&Kn)!==ze&&(a|=134217728),Do(a,fn,e,t)}function Uy(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 qm(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;($e.mode&Kn)!==ze&&(n|=134217728),Do(n,fn,Uy.bind(null,t,e),a)}function Gu(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,Ia(4,fn,Uy.bind(null,t,e),a)}function Gm(e,t){return ja().memoizedState=[e,t===void 0?null:t],e}function Iu(e,t){var a=bt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&_m(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Im(e,t){var a=ja();t=t===void 0?null:t;var n=e();if(Yo){le(!0);try{e()}finally{le(!1)}}return a.memoizedState=[n,t],n}function Fu(e,t){var a=bt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&_m(t,n[1]))return n[0];if(n=e(),Yo){le(!0);try{e()}finally{le(!1)}}return a.memoizedState=[n,t],n}function Fm(e,t){var a=ja();return Xm(a,e,t)}function Ty(e,t){var a=bt();return Oy(a,xt.memoizedState,e,t)}function jy(e,t){var a=bt();return xt===null?Xm(a,e,t):Oy(a,xt.memoizedState,e,t)}function Xm(e,t,a){return a===void 0||(ur&1073741824)!==0&&(Ze&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Av(),$e.lanes|=e,Wr|=e,a)}function Oy(e,t,a,n){return Ma(a,t)?a:qi.current!==null?(e=Xm(e,a,n),Ma(e,t)||(Wt=!0),e):(ur&42)===0||(ur&1073741824)!==0&&(Ze&261930)===0?(Wt=!0,e.memoizedState=a):(e=Av(),$e.lanes|=e,Wr|=e,t)}function Xu(){F.asyncTransitions--}function Ay(e,t,a,n,o){var i=gt.p;gt.p=i!==0&&i<Ts?i:Ts;var f=F.T,p={};p._updatedFibers=new Set,F.T=p,Km(e,!1,t,a);try{var b=o(),N=F.S;if(N!==null&&N(p,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){F.asyncTransitions++,b.then(Xu,Xu);var A=Aw(b,n);Cl(e,t,A,rn(e))}else Cl(e,t,n,rn(e))}catch(V){Cl(e,t,{then:function(){},status:"rejected",reason:V},rn(e))}finally{gt.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),F.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 Qm(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 o=Vy(e).queue;jw(e),Ay(e,o,t,Wo,a===null?x:function(){return My(e),a(n)})}function Vy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Wo,baseState:Wo,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:Wo},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function My(e){F.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Vy(e);t.next===null&&(t=e.alternate.memoizedState),Cl(e,t.next.queue,{},rn(e))}function Zm(){var e=Mm(!1);return e=Ay.bind(null,$e,e.queue,!0,!1),ja().memoizedState=e,[!1,e]}function zy(){var e=ci(Zn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:_l(e),t]}function Ly(){var e=kl(Zn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:_l(e),t]}function Ro(){return Tt(Lc)}function Jm(){var e=ja(),t=Nt.identifierPrefix;if(rt){var a=rr,n=sr;a=(n&~(1<<32-Oa(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Qd++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=xR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Pm(){return ja().memoizedState=Bw.bind(null,$e)}function Bw(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var n=rn(a),o=Cr(n),i=Ur(a,o,n);i!==null&&(ms(n,"refresh()",e),Ht(i,a,n),El(i,a,n)),e=bm(),t!=null&&i!==null&&console.error("The seed argument is not enabled outside experimental channels."),o.payload={cache:e};return}a=a.return}}function $w(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=rn(e);var o={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Qu(e)?By(t,o):(o=rm(e,t,o,n),o!==null&&(ms(n,"dispatch()",e),Ht(o,e,n),$y(o,t,n)))}function Hy(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=rn(e),Cl(e,t,a,n)&&ms(n,"setState()",e)}function Cl(e,t,a,n){var o={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Qu(e))By(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null)){var f=F.H;F.H=es;try{var p=t.lastRenderedState,b=i(p,a);if(o.hasEagerState=!0,o.eagerState=b,Ma(b,p))return xu(e,t,o,0),Nt===null&&vu(),!1}catch{}finally{F.H=f}}if(a=rm(e,t,o,n),a!==null)return Ht(a,e,n),$y(a,t,n),!0}return!1}function Km(e,t,a,n){if(F.T===null&&zo===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:kp(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Qu(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=rm(e,a,n,2),t!==null&&(ms(2,"setOptimistic()",e),Ht(t,e,2))}function Qu(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function By(e,t){Fi=Xd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function $y(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Sr(e,a)}}function Wm(e){if(e!==null&&typeof e!="function"){var t=String(e);LN.has(t)||(LN.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function ep(e,t,a,n){var o=e.memoizedState,i=a(n,o);if(e.mode&Da){le(!0);try{i=a(n,o)}finally{le(!1)}}i===void 0&&(t=_(t)||"Component",AN.has(t)||(AN.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),o=i==null?o:Ke({},o,i),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}function Yy(e,t,a,n,o,i,f){var p=e.stateNode;if(typeof p.shouldComponentUpdate=="function"){if(a=p.shouldComponentUpdate(n,i,f),e.mode&Da){le(!0);try{a=p.shouldComponentUpdate(n,i,f)}finally{le(!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?!yl(a,n)||!yl(o,i):!0}function qy(e,t,a,n){var o=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==o&&(e=q(e)||"Component",CN.has(e)||(CN.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Zh.enqueueReplaceState(t,t.state,null))}function _o(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=Ke({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Gy(e){Rh(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 Iy(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, "+((Jh||"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,x1+" "+e[0],N1,xf+n+xf,S1):e.splice(0,0,x1,N1,xf+n+xf,S1),e.unshift(console),n=$R.apply(console.error,e),n()}else console.error(`%o
|
|
130
|
+
|
|
131
|
+
%s
|
|
132
|
+
|
|
133
|
+
%s
|
|
134
|
+
`,e,t,a)}function Fy(e){Rh(e)}function Zu(e,t){try{Xi=t.source?q(t.source):null,Jh=null;var a=t.value;if(F.actQueue!==null)F.thrownErrors.push(a);else{var n=e.onUncaughtError;n(a,{componentStack:t.stack})}}catch(o){setTimeout(function(){throw o})}}function Xy(e,t,a){try{Xi=a.source?q(a.source):null,Jh=q(t);var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function tp(e,t,a){return a=Cr(a),a.tag=qh,a.payload={element:null},a.callback=function(){Se(t.source,Zu,e,t)},a}function ap(e){return e=Cr(e),e.tag=qh,e}function np(e,t,a,n){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var i=n.value;e.payload=function(){return o(i)},e.callback=function(){Bb(a),Se(n.source,Xy,t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Bb(a),Se(n.source,Xy,t,a,n),typeof o!="function"&&(to===null?to=new Set([this]):to.add(this)),gR(this,n),typeof o=="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.",q(a)||"Unknown")})}function Yw(e,t,a,n,o){if(a.flags|=32768,Us&&zl(e,o),n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&ii(t,a,o,!0),rt&&(Os=!0),a=dn.current,a!==null){switch(a.tag){case 31:case 13:return jn===null?sd():a.alternate===null&&At===pr&&(At=Pd),a.flags&=-257,a.flags|=65536,a.lanes=o,n===Gd?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Ep(e,n,o)),!1;case 22:return a.flags|=65536,n===Gd?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)),Ep(e,n,o)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return Ep(e,n,o),sd(),!1}if(rt)return Os=!0,t=dn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,n!==jh&&vl(tn(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!==jh&&vl(tn(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,o&=-o,e.lanes|=o,n=tn(n,a),o=tp(e.stateNode,n,o),Vu(e,o),At!==Pr&&(At=qo)),!1;var i=tn(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),At!==Pr&&(At=qo),t===null)return!0;n=tn(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=tp(a.stateNode,n,e),Vu(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"&&(to===null||!to.has(i))))return a.flags|=65536,o&=-o,a.lanes|=o,o=ap(o),np(o,e,a,n),Vu(a,o),!1}a=a.return}while(a!==null);return!1}function ha(e,t,a,n){t.child=e===null?yN(t,null,a,n):$o(t,e.child,a,n)}function Qy(e,t,a,n,o){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 So(t),n=km(e,t,a,f,i,o),p=Um(),e!==null&&!Wt?(Tm(e,t,o),Ps(e,t,o)):(rt&&p&&dm(t),t.flags|=1,ha(e,t,n,o),t.child)}function Zy(e,t,a,n,o){if(e===null){var i=a.type;return typeof i=="function"&&!im(i)&&i.defaultProps===void 0&&a.compare===null?(a=yo(i),t.tag=15,t.type=a,rp(t,i),Jy(e,t,a,n,o)):(e=lm(a.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!dp(e,o)){var f=i.memoizedProps;if(a=a.compare,a=a!==null?a:yl,a(f,n)&&e.ref===t.ref)return Ps(e,t,o)}return t.flags|=1,e=Xs(i,n),e.ref=t.ref,e.return=t,t.child=e}function Jy(e,t,a,n,o){if(e!==null){var i=e.memoizedProps;if(yl(i,n)&&e.ref===t.ref&&t.type===e.type)if(Wt=!1,t.pendingProps=n=i,dp(e,o))(e.flags&131072)!==0&&(Wt=!0);else return t.lanes=e.lanes,Ps(e,t,o)}return sp(e,t,a,n,o)}function Py(e,t,a,n){var o=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:sc,_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,o=0;n!==null;)o=o|n.lanes|n.childLanes,n=n.sibling;n=o&~i}else n=0,t.child=null;return Ky(e,t,i,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Cu(t,i!==null?i.cachePool:null),i!==null?my(t,i):Em(t),py(t);else return n=t.lanes=536870912,Ky(e,t,i!==null?i.baseLanes|a:a,a,n)}else i!==null?(Cu(t,i.cachePool),my(t,i),jr(t),t.memoizedState=null):(e!==null&&Cu(t,null),Em(t),jr(t));return ha(e,t,o,a),t.child}function Ul(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:sc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ky(e,t,a,n,o){var i=xm();return i=i===null?null:{parent:Jt._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Cu(t,null),Em(t),py(t),e!==null&&ii(e,t,n,!0),t.childLanes=o,null}function Ju(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=Ku({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wy(e,t,a){return $o(t,e.child,null,a),e=Ju(t,t.pendingProps),e.flags|=2,sn(t),t.memoizedState=null,e}function qw(e,t,a){var n=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(rt){if(n.mode==="hidden")return e=Ju(t,n),t.lanes=536870912,Ul(null,e);if(Rm(t),(e=Ct)?(a=Ex(e,Un),a=a!==null&&a.data===Zo?a:null,a!==null&&(n={dehydrated:a,treeContext:Ib(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=qb(a),n.return=t,t.child=n,ya=t,Ct=null)):a=null,a===null)throw wu(t,e),Rr(t);return t.lanes=536870912,null}return Ju(t,n)}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(Rm(t),o)if(t.flags&256)t.flags&=-257,t=Wy(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(Xb(),(a&536870912)!==0&&nd(t),Wt||ii(e,t,a,!1),o=(a&e.childLanes)!==0,Wt||o){if(n=Nt,n!==null&&(f=Bs(n,a),f!==0&&f!==i.retryLane))throw i.retryLane=f,wa(e,f),Ht(n,e,f),Ph;sd(),t=Wy(e,t,a)}else e=i.treeContext,Ct=on(f.nextSibling),ya=t,rt=!0,Ir=null,Os=!1,un=null,Un=!1,e!==null&&Fb(t,e),t=Ju(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&&nd(t),e=Xs(i,n),e.ref=t.ref,t.child=e,e.return=t,e}function Pu(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 sp(e,t,a,n,o){if(a.prototype&&typeof a.prototype.render=="function"){var i=_(a)||"Unknown";HN[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),HN[i]=!0)}return t.mode&Da&&Wn.recordLegacyContextWarning(t,null),e===null&&(rp(t,t.type),a.contextTypes&&(i=_(a)||"Unknown",$N[i]||($N[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)))),So(t),a=km(e,t,a,n,void 0,o),n=Um(),e!==null&&!Wt?(Tm(e,t,o),Ps(e,t,o)):(rt&&n&&dm(t),t.flags|=1,ha(e,t,a,o),t.child)}function ev(e,t,a,n,o,i){return So(t),fr=-1,Sc=e!==null&&e.type!==t.type,t.updateQueue=null,a=Cm(t,n,a,o),hy(e,t),n=Um(),e!==null&&!Wt?(Tm(e,t,i),Ps(e,t,i)):(rt&&n&&dm(t),t.flags|=1,ha(e,t,a,i),t.child)}function tv(e,t,a,n,o){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=o&-o;if(t.lanes|=p,f=Nt,f===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=ap(p),np(p,f,t,tn(i,t)),Vu(t,p)}if(So(t),t.stateNode===null){if(f=Gr,i=a.contextType,"contextType"in a&&i!==null&&(i===void 0||i.$$typeof!==_s)&&!zN.has(a)&&(zN.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===Kp?" 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=Tt(i)),i=new a(n,f),t.mode&Da){le(!0);try{i=new a(n,f)}finally{le(!1)}}if(f=t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Zh,t.stateNode=i,i._reactInternals=t,i._reactInternalInstance=kN,typeof a.getDerivedStateFromProps=="function"&&f===null&&(f=_(a)||"Component",UN.has(f)||(UN.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 b=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?b="componentWillUpdate":typeof i.UNSAFE_componentWillUpdate=="function"&&(b="UNSAFE_componentWillUpdate"),f!==null||p!==null||b!==null){i=_(a)||"Component";var N=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";jN.has(i)||(jN.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,N,f!==null?`
|
|
142
|
+
`+f:"",p!==null?`
|
|
143
|
+
`+p:"",b!==null?`
|
|
144
|
+
`+b:""))}}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&&!MN.has(a)&&(MN.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&&!VN.has(a)&&(VN.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"||TN.has(a)||(TN.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"||na(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={},Sm(t),f=a.contextType,i.context=typeof f=="object"&&f!==null?Tt(f):Gr,i.state===n&&(f=_(a)||"Component",ON.has(f)||(ON.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&Da&&Wn.recordLegacyContextWarning(t,i),Wn.recordUnsafeLifecycleWarnings(t,i),i.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(ep(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.",q(t)||"Component"),Zh.enqueueReplaceState(i,i.state,null)),Rl(t,n,i,o),Dl(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Kn)!==ze&&(t.flags|=134217728),i=!0}else if(e===null){i=t.stateNode;var A=t.memoizedProps;p=_o(a,A),i.props=p;var V=i.context;b=a.contextType,f=Gr,typeof b=="object"&&b!==null&&(f=Tt(b)),N=a.getDerivedStateFromProps,b=typeof N=="function"||typeof i.getSnapshotBeforeUpdate=="function",A=t.pendingProps!==A,b||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(A||V!==f)&&qy(t,i,n,f),Jr=!1;var U=t.memoizedState;i.state=U,Rl(t,n,i,o),Dl(),V=t.memoizedState,A||U!==V||Jr?(typeof N=="function"&&(ep(t,a,N,n),V=t.memoizedState),(p=Jr||Yy(t,a,p,n,U,V,f))?(b||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&Kn)!==ze&&(t.flags|=134217728)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&Kn)!==ze&&(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&Kn)!==ze&&(t.flags|=134217728),i=!1)}else{i=t.stateNode,wm(e,t),f=t.memoizedProps,b=_o(a,f),i.props=b,N=t.pendingProps,U=i.context,V=a.contextType,p=Gr,typeof V=="object"&&V!==null&&(p=Tt(V)),A=a.getDerivedStateFromProps,(V=typeof A=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==N||U!==p)&&qy(t,i,n,p),Jr=!1,U=t.memoizedState,i.state=U,Rl(t,n,i,o),Dl();var $=t.memoizedState;f!==N||U!==$||Jr||e!==null&&e.dependencies!==null&&Du(e.dependencies)?(typeof A=="function"&&(ep(t,a,A,n),$=t.memoizedState),(b=Jr||Yy(t,a,b,n,U,$,p)||e!==null&&e.dependencies!==null&&Du(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&&U===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=$),i.props=n,i.state=$,i.context=p,i=b):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),i=!1)}if(p=i,Pu(e,t),f=(t.flags&128)!==0,p||f){if(p=t.stateNode,$n(t),f&&typeof a.getDerivedStateFromError!="function")a=null,za=-1;else if(a=sN(p),t.mode&Da){le(!0);try{sN(p)}finally{le(!1)}}t.flags|=1,e!==null&&f?(t.child=$o(t,e.child,null,o),t.child=$o(t,null,a,o)):ha(e,t,a,o),t.memoizedState=p.state,e=t.child}else e=Ps(e,t,o);return o=t.stateNode,i&&o.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.",q(t)||"a component"),Qi=!0),e}function av(e,t,a,n){return No(),t.flags|=256,ha(e,t,a,n),t.child}function rp(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",YN[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),YN[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=_(t)||"Unknown",BN[t]||(console.error("%s: Function components do not support contextType.",t),BN[t]=!0))}function op(e){return{baseLanes:e,cachePool:ey()}}function ip(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ja),e}function nv(e,t,a){var n,o=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:(Ft.current&xc)!==0),n&&(i=!0,t.flags&=-129),n=(t.flags&32)!==0,t.flags&=-33,e===null){if(rt){if(i?Tr(t):jr(t),(e=Ct)?(a=Ex(e,Un),a=a!==null&&a.data!==Zo?a:null,a!==null&&(n={dehydrated:a,treeContext:Ib(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=qb(a),n.return=t,t.child=n,ya=t,Ct=null)):a=null,a===null)throw wu(t,e),Rr(t);return Bp(a)?t.lanes=32:t.lanes=536870912,null}var p=o.children;if(o=o.fallback,i){jr(t);var b=t.mode;return p=Ku({mode:"hidden",children:p},b),o=vo(o,b,a,null),p.return=t,o.return=t,p.sibling=o,t.child=p,o=t.child,o.memoizedState=op(a),o.childLanes=ip(e,n,a),t.memoizedState=Kh,Ul(null,o)}return Tr(t),lp(t,p)}var N=e.memoizedState;if(N!==null){var A=N.dehydrated;if(A!==null){if(f)t.flags&256?(Tr(t),t.flags&=-257,t=cp(e,t,a)):t.memoizedState!==null?(jr(t),t.child=e.child,t.flags|=128,t=null):(jr(t),p=o.fallback,b=t.mode,o=Ku({mode:"visible",children:o.children},b),p=vo(p,b,a,null),p.flags|=2,o.return=t,p.return=t,o.sibling=p,t.child=o,$o(t,e.child,null,a),o=t.child,o.memoizedState=op(a),o.childLanes=ip(e,n,a),t.memoizedState=Kh,t=Ul(null,o));else if(Tr(t),Xb(),(a&536870912)!==0&&nd(t),Bp(A)){if(n=A.nextSibling&&A.nextSibling.dataset,n){p=n.dgst;var V=n.msg;b=n.stck;var U=n.cstck}i=V,n=p,o=b,A=U,p=i,b=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=o||"",p.digest=n,n=b===void 0?null:b,o={value:p,source:null,stack:n},typeof n=="string"&&Th.set(p,o),vl(o),t=cp(e,t,a)}else if(Wt||ii(e,t,a,!1),n=(a&e.childLanes)!==0,Wt||n){if(n=Nt,n!==null&&(o=Bs(n,a),o!==0&&o!==N.retryLane))throw N.retryLane=o,wa(e,o),Ht(n,e,o),Ph;Hp(A)||sd(),t=cp(e,t,a)}else Hp(A)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Ct=on(A.nextSibling),ya=t,rt=!0,Ir=null,Os=!1,un=null,Un=!1,e!==null&&Fb(t,e),t=lp(t,o.children),t.flags|=4096);return t}}return i?(jr(t),p=o.fallback,b=t.mode,U=e.child,A=U.sibling,o=Xs(U,{mode:"hidden",children:o.children}),o.subtreeFlags=U.subtreeFlags&65011712,A!==null?p=Xs(A,p):(p=vo(p,b,a,null),p.flags|=2),p.return=t,o.return=t,o.sibling=p,t.child=o,Ul(null,o),o=t.child,p=e.child.memoizedState,p===null?p=op(a):(b=p.cachePool,b!==null?(U=Jt._currentValue,b=b.parent!==U?{parent:U,pool:U}:b):b=ey(),p={baseLanes:p.baseLanes|a,cachePool:b}),o.memoizedState=p,o.childLanes=ip(e,n,a),t.memoizedState=Kh,Ul(e.child,o)):(N!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&nd(t),Tr(t),a=e.child,e=a.sibling,a=Xs(a,{mode:"visible",children:o.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 lp(e,t){return t=Ku({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ku(e,t){return e=S(22,e,null,t),e.lanes=0,e}function cp(e,t,a){return $o(t,e.child,null,a),e=lp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sv(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),hm(e.return,t,a)}function up(e,t,a,n,o,i){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:o,treeForkCount:i}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=o,f.treeForkCount=i)}function rv(e,t,a){var n=t.pendingProps,o=n.revealOrder,i=n.tail,f=n.children,p=Ft.current;if((n=(p&xc)!==0)?(p=p&Gi|xc,t.flags|=128):p&=Gi,ce(Ft,p,t),p=o??"null",o!=="forwards"&&o!=="unstable_legacy-backwards"&&o!=="together"&&o!=="independent"&&!qN[p])if(qN[p]=!0,o==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(o==="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 o=="string")switch(o.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.',o,o.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.',o,o.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',o)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',o);p=i??"null",Jd[p]||(i==null?(o==="forwards"||o==="backwards"||o==="unstable_legacy-backwards")&&(Jd[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"?(Jd[p]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',i)):o!=="forwards"&&o!=="backwards"&&o!=="unstable_legacy-backwards"&&(Jd[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((o==="forwards"||o==="backwards"||o==="unstable_legacy-backwards")&&f!==void 0&&f!==null&&f!==!1)if(na(f)){for(p=0;p<f.length;p++)if(!uy(f[p],p))break e}else if(p=ee(f),typeof p=="function"){if(p=p.call(f))for(var b=p.next(),N=0;!b.done;b=p.next()){if(!uy(b.value,N))break e;N++}}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?',o);if(ha(e,t,f,a),rt?(Dr(),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&&sv(e,a,t);else if(e.tag===19)sv(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(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Mu(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),up(t,!1,o,a,i,f);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Mu(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}up(t,!0,a,null,i,f);break;case"together":up(t,!1,null,null,void 0,f);break;default:t.memoizedState=null}return t.child}function Ps(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),za=-1,Wr|=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=Xs(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Xs(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function dp(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Du(e)))}function Gw(e,t,a){switch(t.tag){case 3:ie(t,t.stateNode.containerInfo),_r(t,Jt,e.memoizedState.cache),No();break;case 27:case 5:ye(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:_r(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,Rm(t),null;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Tr(t),t.flags|=128,null):(a&t.child.childLanes)!==0?nv(e,t,a):(Tr(t),e=Ps(e,t,a),e!==null?e.sibling:null);Tr(t);break;case 19:var o=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(ii(e,t,a,!1),n=(a&t.childLanes)!==0),o){if(n)return rv(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ce(Ft,Ft.current,t),n)break;return null;case 22:return t.lanes=0,Py(e,t,a,t.pendingProps);case 24:_r(t,Jt,e.memoizedState.cache)}return Ps(e,t,a)}function fp(e,t,a){if(t._debugNeedsRemount&&e!==null){a=lm(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 o=n.child;if(o===null)throw Error("Expected parent to have a child.");for(;o.sibling!==t;)if(o=o.sibling,o===null)throw Error("Expected to find the previous sibling.");o.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)Wt=!0;else{if(!dp(e,a)&&(t.flags&128)===0)return Wt=!1,Gw(e,t,a);Wt=(e.flags&131072)!==0}else Wt=!1,(n=rt)&&(Dr(),n=(t.flags&1048576)!==0),n&&(n=t.index,Dr(),Gb(t,rc,n));switch(t.lanes=0,t.tag){case 16:e:if(n=t.pendingProps,e=kr(t.elementType),t.type=e,typeof e=="function")im(e)?(n=_o(e,n),t.tag=1,t.type=e=yo(e),t=tv(null,t,e,n,a)):(t.tag=0,rp(t,e),t.type=e=yo(e),t=sp(null,t,e,n,a));else{if(e!=null){if(o=e.$$typeof,o===Fl){t.tag=11,t.type=e=om(e),t=Qy(null,t,e,n,a);break e}else if(o===yd){t.tag=14,t=Zy(null,t,e,n,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===ln&&(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 sp(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,o=_o(n,t.pendingProps),tv(e,t,n,o,a);case 3:e:{if(ie(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;o=i.element,wm(e,t),Rl(t,n,null,a);var f=t.memoizedState;if(n=f.cache,_r(t,Jt,n),n!==i.cache&&gm(t,[Jt],a,!0),Dl(),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=av(e,t,n,a);break e}else if(n!==o){o=tn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),vl(o),t=av(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,Ct=on(e.firstChild),ya=t,rt=!0,Ir=null,Os=!1,un=null,Un=!0,a=yN(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(No(),n===o){t=Ps(e,t,a);break e}ha(e,t,n,a)}t=t.child}return t;case 26:return Pu(e,t),e===null?(a=Ux(t.type,null,t.pendingProps,null))?t.memoizedState=a:rt||(a=t.type,e=t.pendingProps,n=K(Lr.current),n=ld(n).createElement(a),n[ba]=t,n[Aa]=e,ga(n,a,e),ke(n),t.stateNode=n):t.memoizedState=Ux(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ye(t),e===null&&rt&&(n=K(Lr.current),o=me(),n=t.stateNode=kx(t.type,t.pendingProps,n,o,!1),Os||(o=gx(n,t.type,t.pendingProps,o),o!==null&&(xo(t,0).serverProps=o)),ya=t,Un=!0,o=Ct,Mr(t.type)?(Ng=o,Ct=on(n.firstChild)):Ct=o),ha(e,t,t.pendingProps.children,a),Pu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&rt&&(i=me(),n=Pf(t.type,i.ancestorInfo),o=Ct,(f=!o)||(f=jE(o,t.type,t.pendingProps,Un),f!==null?(t.stateNode=f,Os||(i=gx(f,t.type,t.pendingProps,i),i!==null&&(xo(t,0).serverProps=i)),ya=t,Ct=on(f.firstChild),Un=!1,i=!0):i=!1,f=!i),f&&(n&&wu(t,o),Rr(t))),ye(t),o=t.type,i=t.pendingProps,f=e!==null?e.memoizedProps:null,n=i.children,zp(o,i)?n=null:f!==null&&zp(o,f)&&(t.flags|=32),t.memoizedState!==null&&(o=km(e,t,Mw,null,null,a),Lc._currentValue=o),Pu(e,t),ha(e,t,n,a),t.child;case 6:return e===null&&rt&&(a=t.pendingProps,e=me(),n=e.ancestorInfo.current,a=n!=null?mu(a,n.tag,e.ancestorInfo.implicitRootScope):!0,e=Ct,(n=!e)||(n=OE(e,t.pendingProps,Un),n!==null?(t.stateNode=n,ya=t,Ct=null,n=!0):n=!1,n=!n),n&&(a&&wu(t,e),Rr(t))),null;case 13:return nv(e,t,a);case 4:return ie(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=$o(t,null,n,a):ha(e,t,n,a),t.child;case 11:return Qy(e,t,t.type,t.pendingProps,a);case 7:return ha(e,t,t.pendingProps,a),t.child;case 8:return ha(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,ha(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.type,o=t.pendingProps,i=o.value,"value"in o||GN||(GN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),_r(t,n,i),ha(e,t,o.children,a),t.child;case 9:return o=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."),So(t),o=Tt(o),n=Hh(n,o,void 0),t.flags|=1,ha(e,t,n,a),t.child;case 14:return Zy(e,t,t.type,t.pendingProps,a);case 15:return Jy(e,t,t.type,t.pendingProps,a);case 19:return rv(e,t,a);case 31:return qw(e,t,a);case 22:return Py(e,t,a,t.pendingProps);case 24:return So(t),n=Tt(Jt),e===null?(o=xm(),o===null&&(o=Nt,i=bm(),o.pooledCache=i,wo(i),i!==null&&(o.pooledCacheLanes|=a),o=i),t.memoizedState={parent:n,cache:o},Sm(t),_r(t,Jt,o)):((e.lanes&a)!==0&&(wm(e,t),Rl(t,null,null,a),Dl()),o=e.memoizedState,i=t.memoizedState,o.parent!==n?(o={parent:n,cache:n},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),_r(t,Jt,n)):(n=i.cache,_r(t,Jt,n),n!==o.cache&&gm(t,[Jt],a,!0))),ha(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 Ks(e){e.flags|=4}function mp(e,t,a,n,o){if((t=(e.mode&dR)!==ze)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Lv())e.flags|=8192;else throw Bo=Gd,$h}else e.flags&=-16777217}function ov(e,t){if(t.type!=="stylesheet"||(t.state.loading&Vn)!==Ko)e.flags&=-16777217;else if(e.flags|=16777216,!Vx(t))if(Lv())e.flags|=8192;else throw Bo=Gd,$h}function Wu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Lt():536870912,e.lanes|=t,Fo|=t)}function Tl(e,t){if(!rt)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 St(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)if((e.mode&Xe)!==ze){for(var o=e.selfBaseDuration,i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,o+=i.treeBaseDuration,i=i.sibling;e.treeBaseDuration=o}else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,n|=o.subtreeFlags&65011712,n|=o.flags&65011712,o.return=e,o=o.sibling;else if((e.mode&Xe)!==ze){o=e.actualDuration,i=e.selfBaseDuration;for(var f=e.child;f!==null;)a|=f.lanes|f.childLanes,n|=f.subtreeFlags,n|=f.flags,o+=f.actualDuration,i+=f.treeBaseDuration,f=f.sibling;e.actualDuration=o,e.treeBaseDuration=i}else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Iw(e,t,a){var n=t.pendingProps;switch(fm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(t),null;case 1:return St(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zs(Jt,t),W(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(oi(t)?(pm(),Ks(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,mm())),St(t),null;case 26:var o=t.type,i=t.memoizedState;return e===null?(Ks(t),i!==null?(St(t),ov(t,i)):(St(t),mp(t,o,null,n,a))):i?i!==e.memoizedState?(Ks(t),St(t),ov(t,i)):(St(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Ks(t),St(t),mp(t,o,e,n,a)),null;case 27:if(pe(t),a=K(Lr.current),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ks(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 St(t),null}e=me(),oi(t)?Qb(t):(e=kx(o,n,a,e,!0),t.stateNode=e,Ks(t))}return St(t),null;case 5:if(pe(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ks(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 St(t),null}var f=me();if(oi(t))Qb(t);else{switch(i=K(Lr.current),Pf(o,f.ancestorInfo),f=f.context,i=ld(i),f){case al:i=i.createElementNS(Ri,o);break;case bf:i=i.createElementNS(Dd,o);break;default:switch(o){case"svg":i=i.createElementNS(Ri,o);break;case"math":i=i.createElementNS(Dd,o);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(o,{is:n.is}):i.createElement(o),o.indexOf("-")===-1&&(o!==o.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",o),Object.prototype.toString.call(i)!=="[object HTMLUnknownElement]"||Pn.call(p1,o)||(p1[o]=!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.",o)))}}i[ba]=t,i[Aa]=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(ga(i,o,n),o){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Ks(t)}}return St(t),mp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Ks(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=K(Lr.current),a=me(),oi(t)){if(e=t.stateNode,a=t.memoizedProps,o=!Os,n=null,i=ya,i!==null)switch(i.tag){case 3:o&&(o=Rx(e,a,n),o!==null&&(xo(t,0).serverProps=o));break;case 27:case 5:n=i.memoizedProps,o&&(o=Rx(e,a,n),o!==null&&(xo(t,0).serverProps=o))}e[ba]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||dx(e.nodeValue,a)),e||Rr(t,!0)}else o=a.ancestorInfo.current,o!=null&&mu(n,o.tag,a.ancestorInfo.implicitRootScope),e=ld(e).createTextNode(n),e[ba]=t,t.stateNode=e}return St(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=oi(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[ba]=t,St(t),(t.mode&Xe)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else pm(),No(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,St(t),(t.mode&Xe)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=mm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(sn(t),t):(sn(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return St(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=n,i=oi(t),o!==null&&o.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[ba]=t,St(t),(t.mode&Xe)!==ze&&o!==null&&(o=t.child,o!==null&&(t.treeBaseDuration-=o.treeBaseDuration))}else pm(),No(),(t.flags&128)===0&&(o=t.memoizedState=null),t.flags|=4,St(t),(t.mode&Xe)!==ze&&o!==null&&(o=t.child,o!==null&&(t.treeBaseDuration-=o.treeBaseDuration));o=!1}else o=mm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(sn(t),t):(sn(t),null)}return sn(t),(t.flags&128)!==0?(t.lanes=a,(t.mode&Xe)!==ze&&Sl(t),t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,o=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(o=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==o&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Wu(t,t.updateQueue),St(t),(t.mode&Xe)!==ze&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return W(t),e===null&&Up(t.stateNode.containerInfo),St(t),null;case 10:return Zs(t.type,t),St(t),null;case 19:if(Y(Ft,t),n=t.memoizedState,n===null)return St(t),null;if(o=(t.flags&128)!==0,i=n.rendering,i===null)if(o)Tl(n,!1);else{if(At!==pr||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Mu(e),i!==null){for(t.flags|=128,Tl(n,!1),e=i.updateQueue,t.updateQueue=e,Wu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Yb(a,e),a=a.sibling;return ce(Ft,Ft.current&Gi|xc,t),rt&&Qs(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ua()>nf&&(t.flags|=128,o=!0,Tl(n,!1),t.lanes=4194304)}else{if(!o)if(e=Mu(i),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Wu(t,e),Tl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!rt)return St(t),null}else 2*ua()-n.renderingStartTime>nf&&a!==536870912&&(t.flags|=128,o=!0,Tl(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=ua(),e.sibling=null,a=Ft.current,a=o?a&Gi|xc:a&Gi,ce(Ft,a,t),rt&&Qs(t,n.treeForkCount),e):(St(t),null);case 22:case 23:return sn(t),Dm(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&&(St(t),t.subtreeFlags&6&&(t.flags|=8192)):St(t),a=t.updateQueue,a!==null&&Wu(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&&Y(Lo,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Zs(Jt,t),St(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 Fw(e,t){switch(fm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==ze&&Sl(t),t):null;case 3:return Zs(Jt,t),W(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(sn(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");No()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==ze&&Sl(t),t):null;case 13:if(sn(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.");No()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==ze&&Sl(t),t):null;case 19:return Y(Ft,t),null;case 4:return W(t),null;case 10:return Zs(t.type,t),null;case 22:case 23:return sn(t),Dm(t),e!==null&&Y(Lo,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Xe)!==ze&&Sl(t),t):null;case 24:return Zs(Jt,t),null;case 25:return null;default:return null}}function iv(e,t){switch(fm(t),t.tag){case 3:Zs(Jt,t),W(t);break;case 26:case 27:case 5:pe(t);break;case 4:W(t);break;case 31:t.memoizedState!==null&&sn(t);break;case 13:sn(t);break;case 19:Y(Ft,t);break;case 10:Zs(t.type,t);break;case 22:case 23:sn(t),Dm(t),e!==null&&Y(Lo,t);break;case 24:Zs(Jt,t)}}function xs(e){return(e.mode&Xe)!==ze}function lv(e,t){xs(e)?(vs(),jl(t,e),ys()):jl(t,e)}function pp(e,t,a){xs(e)?(vs(),fi(a,e,t),ys()):fi(a,e,t)}function jl(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var o=n.next;a=o;do{if((a.tag&e)===e&&(n=void 0,(e&La)!==Fd&&(Wi=!0),n=Se(t,bR,a),(e&La)!==Fd&&(Wi=!1),n!==void 0&&typeof n!="function")){var i=void 0;i=(a.tag&fn)!==0?"useLayoutEffect":(a.tag&La)!==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,Se(t,function(p,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,b)},i,f)}a=a.next}while(a!==o)}}catch(p){ht(t,t.return,p)}}function fi(e,t,a){try{var n=t.updateQueue,o=n!==null?n.lastEffect:null;if(o!==null){var i=o.next;n=i;do{if((n.tag&e)===e){var f=n.inst,p=f.destroy;p!==void 0&&(f.destroy=void 0,(e&La)!==Fd&&(Wi=!0),o=t,Se(o,yR,o,a,p),(e&La)!==Fd&&(Wi=!1))}n=n.next}while(n!==i)}}catch(b){ht(t,t.return,b)}}function cv(e,t){xs(e)?(vs(),jl(t,e),ys()):jl(t,e)}function hp(e,t,a){xs(e)?(vs(),fi(a,e,t),ys()):fi(a,e,t)}function uv(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.",q(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.",q(e)||"instance"));try{Se(e,fy,t,a)}catch(n){ht(e,e.return,n)}}}function Xw(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function Qw(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.",q(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.",q(e)||"instance"));try{var o=_o(e.type,a),i=Se(e,Xw,t,o,n);a=IN,i!==void 0||a.has(e.type)||(a.add(e.type),Se(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",q(e))})),t.__reactInternalSnapshotBeforeUpdate=i}catch(f){ht(e,e.return,f)}}function dv(e,t,a){a.props=_o(e.type,e.memoizedProps),a.state=e.memoizedState,xs(e)?(vs(),Se(e,uN,e,t,a),ys()):Se(e,uN,e,t,a)}function Zw(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(xs(e))try{vs(),e.refCleanup=t(a)}finally{ys()}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().",q(e)),t.current=a}}function Ol(e,t){try{Se(e,Zw,e)}catch(a){ht(e,t,a)}}function Ns(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{if(xs(e))try{vs(),Se(e,n)}finally{ys(e)}else Se(e,n)}catch(o){ht(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(xs(e))try{vs(),Se(e,a,null)}finally{ys(e)}else Se(e,a,null)}catch(o){ht(e,t,o)}else a.current=null}function fv(e,t,a,n){var o=e.memoizedProps,i=o.id,f=o.onCommit;o=o.onRender,t=t===null?"mount":"update",Bd&&(t="nested-update"),typeof o=="function"&&o(i,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof f=="function"&&f(i,t,n,a)}function Jw(e,t,a,n){var o=e.memoizedProps;e=o.id,o=o.onPostCommit,t=t===null?"mount":"update",Bd&&(t="nested-update"),typeof o=="function"&&o(e,t,n,a)}function mv(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{Se(e,xE,n,t,a,e)}catch(o){ht(e,e.return,o)}}function gp(e,t,a){try{Se(e,SE,e.stateNode,e.type,a,t,e)}catch(n){ht(e,e.return,n)}}function pv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Mr(e.type)||e.tag===4}function bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pv(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&&Mr(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 yp(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(Nx(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(Nx(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=Fs));else if(n!==4&&(n===27&&Mr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(yp(e,t,a),e=e.sibling;e!==null;)yp(e,t,a),e=e.sibling}function ed(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&&Mr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ed(e,t,a),e=e.sibling;e!==null;)ed(e,t,a),e=e.sibling}function Pw(e){for(var t,a=e.return;a!==null;){if(pv(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=bp(e),ed(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(xx(a),t.flags&=-33),t=bp(e),ed(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=bp(e),yp(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 hv(e){var t=e.stateNode,a=e.memoizedProps;try{Se(e,LE,e.type,a,t,e)}catch(n){ht(e,e.return,n)}}function gv(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 Kw(e,t){if(e=e.containerInfo,yg=Nf,e=jb(e),em(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 o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var f=0,p=-1,b=-1,N=0,A=0,V=e,U=null;t:for(;;){for(var $;V!==a||o!==0&&V.nodeType!==3||(p=f+o),V!==i||n!==0&&V.nodeType!==3||(b=f+n),V.nodeType===3&&(f+=V.nodeValue.length),($=V.firstChild)!==null;)U=V,V=$;for(;;){if(V===e)break t;if(U===a&&++N===o&&(p=f),U===i&&++A===n&&(b=f),($=V.nextSibling)!==null)break;V=U,U=V.parentNode}V=$}a=p===-1||b===-1?null:{start:p,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(vg={focusedElem:e,selectionRange:a},Nf=!1,fa=t;fa!==null;)if(t=fa,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,fa=e;else for(;fa!==null;){switch(e=t=fa,a=e.alternate,o=e.flags,e.tag){case 0:if((o&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:(o&1024)!==0&&a!==null&&Qw(e,a);break;case 3:if((o&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Lp(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Lp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&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,fa=e;break}fa=t.return}}function bv(e,t,a){var n=an(),o=ps(),i=gs(),f=bs(),p=a.flags;switch(a.tag){case 0:case 11:case 15:Ss(e,a),p&4&&lv(a,fn|On);break;case 1:if(Ss(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.",q(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.",q(a)||"instance")),xs(a)?(vs(),Se(a,Bh,a,e),ys()):Se(a,Bh,a,e);else{var b=_o(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.",q(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.",q(a)||"instance")),xs(a)?(vs(),Se(a,iN,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate),ys()):Se(a,iN,a,e,b,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&uv(a),p&512&&Ol(a,a.return);break;case 3:if(t=Js(),Ss(e,a),p&64&&(p=a.updateQueue,p!==null)){if(b=null,a.child!==null)switch(a.child.tag){case 27:case 5:b=a.child.stateNode;break;case 1:b=a.child.stateNode}try{Se(a,fy,p,b)}catch(A){ht(a,a.return,A)}}e.effectDuration+=_u(t);break;case 27:t===null&&p&4&&hv(a);case 26:case 5:if(Ss(e,a),t===null){if(p&4)mv(a);else if(p&64){e=a.type,t=a.memoizedProps,b=a.stateNode;try{Se(a,NE,b,e,t,a)}catch(A){ht(a,a.return,A)}}}p&512&&Ol(a,a.return);break;case 12:if(p&4){p=Js(),Ss(e,a),e=a.stateNode,e.effectDuration+=Nl(p);try{Se(a,fv,a,t,Fr,e.effectDuration)}catch(A){ht(a,a.return,A)}}else Ss(e,a);break;case 31:Ss(e,a),p&4&&xv(e,a);break;case 13:Ss(e,a),p&4&&Nv(e,a),p&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=iE.bind(null,a),AE(e,p))));break;case 22:if(p=a.memoizedState!==null||mr,!p){t=t!==null&&t.memoizedState!==null||ea,b=mr;var N=ea;mr=p,(ea=t)&&!N?(ws(e,a,(a.subtreeFlags&8772)!==0),(a.mode&Xe)!==ze&&0<=Oe&&0<=Me&&.05<Me-Oe&&bu(a,Oe,Me)):Ss(e,a),mr=b,ea=N}break;case 30:break;default:Ss(e,a)}(a.mode&Xe)!==ze&&0<=Oe&&0<=Me&&((Bt||.05<Ot)&&fs(a,Oe,Me,Ot,jt),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Me-Oe&&(gv(a.return.alternate,a.return)||ds(a,Oe,Me,"Mount"))),nn(n),hs(o),jt=i,Bt=f}function yv(e){var t=e.alternate;t!==null&&(e.alternate=null,yv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&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 Ws(e,t,a){for(a=a.child;a!==null;)vv(e,t,a),a=a.sibling}function vv(e,t,a){if(Ea&&typeof Ea.onCommitFiberUnmount=="function")try{Ea.onCommitFiberUnmount(Ei,a)}catch(N){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",N))}var n=an(),o=ps(),i=gs(),f=bs();switch(a.tag){case 26:ea||Ns(a,t),Ws(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:ea||Ns(a,t);var p=ta,b=Qa;Mr(a.type)&&(ta=a.stateNode,Qa=!1),Ws(e,t,a),Se(a,Yl,a.stateNode),ta=p,Qa=b;break;case 5:ea||Ns(a,t);case 6:if(p=ta,b=Qa,ta=null,Ws(e,t,a),ta=p,Qa=b,ta!==null)if(Qa)try{Se(a,DE,ta,a.stateNode)}catch(N){ht(a,t,N)}else try{Se(a,EE,ta,a.stateNode)}catch(N){ht(a,t,N)}break;case 18:ta!==null&&(Qa?(e=ta,Sx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),xi(e)):Sx(ta,a.stateNode));break;case 4:p=ta,b=Qa,ta=a.stateNode.containerInfo,Qa=!0,Ws(e,t,a),ta=p,Qa=b;break;case 0:case 11:case 14:case 15:fi(La,a,t),ea||pp(a,t,fn),Ws(e,t,a);break;case 1:ea||(Ns(a,t),p=a.stateNode,typeof p.componentWillUnmount=="function"&&dv(a,t,p)),Ws(e,t,a);break;case 21:Ws(e,t,a);break;case 22:ea=(p=ea)||a.memoizedState!==null,Ws(e,t,a),ea=p;break;default:Ws(e,t,a)}(a.mode&Xe)!==ze&&0<=Oe&&0<=Me&&(Bt||.05<Ot)&&fs(a,Oe,Me,Ot,jt),nn(n),hs(o),jt=i,Bt=f}function xv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Se(t,ME,e)}catch(a){ht(t,t.return,a)}}}function Nv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Se(t,zE,e)}catch(a){ht(t,t.return,a)}}function Ww(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new FN),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new FN),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function td(e,t){var a=Ww(e);t.forEach(function(n){if(!a.has(n)){if(a.add(n),Us)if(Zi!==null&&Ji!==null)zl(Ji,Zi);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var o=lE.bind(null,e,n);n.then(o,o)}})}function Fa(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var o=e,i=t,f=a[n],p=an(),b=i;e:for(;b!==null;){switch(b.tag){case 27:if(Mr(b.type)){ta=b.stateNode,Qa=!1;break e}break;case 5:ta=b.stateNode,Qa=!1;break e;case 3:case 4:ta=b.stateNode.containerInfo,Qa=!0;break e}b=b.return}if(ta===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");vv(o,i,f),ta=null,Qa=!1,(f.mode&Xe)!==ze&&0<=Oe&&0<=Me&&.05<Me-Oe&&ds(f,Oe,Me,"Unmount"),nn(p),o=f,i=o.alternate,i!==null&&(i.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sv(t,e),t=t.sibling}function Sv(e,t){var a=an(),n=ps(),o=gs(),i=bs(),f=e.alternate,p=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Fa(t,e),Xa(e),p&4&&(fi(La|On,e,e.return),jl(La|On,e),pp(e,e.return,fn|On));break;case 1:if(Fa(t,e),Xa(e),p&512&&(ea||f===null||Ns(f,f.return)),p&64&&mr&&(p=e.updateQueue,p!==null&&(f=p.callbacks,f!==null))){var b=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=b===null?f:b.concat(f)}break;case 26:if(b=ts,Fa(t,e),Xa(e),p&512&&(ea||f===null||Ns(f,f.return)),p&4){var N=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,b=b.ownerDocument||b;t:switch(p){case"title":N=b.getElementsByTagName("title")[0],(!N||N[Zl]||N[ba]||N.namespaceURI===Ri||N.hasAttribute("itemprop"))&&(N=b.createElement(p),b.head.insertBefore(N,b.querySelector("head > title"))),ga(N,p,f),N[ba]=e,ke(N),p=N;break e;case"link":var A=Ox("link","href",b).get(p+(f.href||""));if(A){for(var V=0;V<A.length;V++)if(N=A[V],N.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&N.getAttribute("rel")===(f.rel==null?null:f.rel)&&N.getAttribute("title")===(f.title==null?null:f.title)&&N.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){A.splice(V,1);break t}}N=b.createElement(p),ga(N,p,f),b.head.appendChild(N);break;case"meta":if(A=Ox("meta","content",b).get(p+(f.content||""))){for(V=0;V<A.length;V++)if(N=A[V],ft(f.content,"content"),N.getAttribute("content")===(f.content==null?null:""+f.content)&&N.getAttribute("name")===(f.name==null?null:f.name)&&N.getAttribute("property")===(f.property==null?null:f.property)&&N.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&N.getAttribute("charset")===(f.charSet==null?null:f.charSet)){A.splice(V,1);break t}}N=b.createElement(p),ga(N,p,f),b.head.appendChild(N);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}N[ba]=e,ke(N),p=N}e.stateNode=p}else Ax(b,e.type,e.stateNode);else e.stateNode=jx(b,p,e.memoizedProps);else N!==p?(N===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):N.count--,p===null?Ax(b,e.type,e.stateNode):jx(b,p,e.memoizedProps)):p===null&&e.stateNode!==null&&gp(e,e.memoizedProps,f.memoizedProps)}break;case 27:Fa(t,e),Xa(e),p&512&&(ea||f===null||Ns(f,f.return)),f!==null&&p&4&&gp(e,e.memoizedProps,f.memoizedProps);break;case 5:if(Fa(t,e),Xa(e),p&512&&(ea||f===null||Ns(f,f.return)),e.flags&32){b=e.stateNode;try{Se(e,xx,b)}catch(we){ht(e,e.return,we)}}p&4&&e.stateNode!=null&&(b=e.memoizedProps,gp(e,b,f!==null?f.memoizedProps:b)),p&1024&&(Wh=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Fa(t,e),Xa(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,b=e.stateNode;try{Se(e,wE,b,f,p)}catch(we){ht(e,e.return,we)}}break;case 3:if(b=Js(),yf=null,N=ts,ts=cd(t.containerInfo),Fa(t,e),ts=N,Xa(e),p&4&&f!==null&&f.memoizedState.isDehydrated)try{Se(e,VE,t.containerInfo)}catch(we){ht(e,e.return,we)}Wh&&(Wh=!1,wv(e)),t.effectDuration+=_u(b);break;case 4:p=ts,ts=cd(e.stateNode.containerInfo),Fa(t,e),Xa(e),ts=p;break;case 12:p=Js(),Fa(t,e),Xa(e),e.stateNode.effectDuration+=Nl(p);break;case 31:Fa(t,e),Xa(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,td(e,p)));break;case 13:Fa(t,e),Xa(e),e.child.flags&8192&&e.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(af=ua()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,td(e,p)));break;case 22:b=e.memoizedState!==null;var U=f!==null&&f.memoizedState!==null,$=mr,ge=ea;if(mr=$||b,ea=ge||U,Fa(t,e),ea=ge,mr=$,U&&!b&&!$&&!ge&&(e.mode&Xe)!==ze&&0<=Oe&&0<=Me&&.05<Me-Oe&&bu(e,Oe,Me),Xa(e),p&8192)e:for(t=e.stateNode,t._visibility=b?t._visibility&~sc:t._visibility|sc,!b||f===null||U||mr||ea||(ko(e),(e.mode&Xe)!==ze&&0<=Oe&&0<=Me&&.05<Me-Oe&&ds(e,Oe,Me,"Disconnect")),f=null,t=e;;){if(t.tag===5||t.tag===26){if(f===null){U=f=t;try{N=U.stateNode,b?Se(U,_E,N):Se(U,UE,U.stateNode,U.memoizedProps)}catch(we){ht(U,U.return,we)}}}else if(t.tag===6){if(f===null){U=t;try{A=U.stateNode,b?Se(U,kE,A):Se(U,TE,A,U.memoizedProps)}catch(we){ht(U,U.return,we)}}}else if(t.tag===18){if(f===null){U=t;try{V=U.stateNode,b?Se(U,RE,V):Se(U,CE,U.stateNode)}catch(we){ht(U,U.return,we)}}}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,td(e,f))));break;case 19:Fa(t,e),Xa(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,td(e,p)));break;case 30:break;case 21:break;default:Fa(t,e),Xa(e)}(e.mode&Xe)!==ze&&0<=Oe&&0<=Me&&((Bt||.05<Ot)&&fs(e,Oe,Me,Ot,jt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Me-Oe&&(gv(e.return.alternate,e.return)||ds(e,Oe,Me,"Mount"))),nn(a),hs(n),jt=o,Bt=i}function Xa(e){var t=e.flags;if(t&2){try{Se(e,Pw,e)}catch(a){ht(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ss(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bv(e,t.alternate,t),t=t.sibling}function Ev(e){var t=an(),a=ps(),n=gs(),o=bs();switch(e.tag){case 0:case 11:case 14:case 15:pp(e,e.return,fn),ko(e);break;case 1:Ns(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&dv(e,e.return,i),ko(e);break;case 27:Se(e,Yl,e.stateNode);case 26:case 5:Ns(e,e.return),ko(e);break;case 22:e.memoizedState===null&&ko(e);break;case 30:ko(e);break;default:ko(e)}(e.mode&Xe)!==ze&&0<=Oe&&0<=Me&&(Bt||.05<Ot)&&fs(e,Oe,Me,Ot,jt),nn(t),hs(a),jt=n,Bt=o}function ko(e){for(e=e.child;e!==null;)Ev(e),e=e.sibling}function Dv(e,t,a,n){var o=an(),i=ps(),f=gs(),p=bs(),b=a.flags;switch(a.tag){case 0:case 11:case 15:ws(e,a,n),lv(a,fn);break;case 1:if(ws(e,a,n),t=a.stateNode,typeof t.componentDidMount=="function"&&Se(a,Bh,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{Se(a,Vw,t,e)}catch(N){ht(a,a.return,N)}}n&&b&64&&uv(a),Ol(a,a.return);break;case 27:hv(a);case 26:case 5:ws(e,a,n),n&&t===null&&b&4&&mv(a),Ol(a,a.return);break;case 12:if(n&&b&4){b=Js(),ws(e,a,n),n=a.stateNode,n.effectDuration+=Nl(b);try{Se(a,fv,a,t,Fr,n.effectDuration)}catch(N){ht(a,a.return,N)}}else ws(e,a,n);break;case 31:ws(e,a,n),n&&b&4&&xv(e,a);break;case 13:ws(e,a,n),n&&b&4&&Nv(e,a);break;case 22:a.memoizedState===null&&ws(e,a,n),Ol(a,a.return);break;case 30:break;default:ws(e,a,n)}(a.mode&Xe)!==ze&&0<=Oe&&0<=Me&&(Bt||.05<Ot)&&fs(a,Oe,Me,Ot,jt),nn(o),hs(i),jt=f,Bt=p}function ws(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Dv(e,t.alternate,t,a),t=t.sibling}function vp(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&&wo(e),a!=null&&xl(a))}function xp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(wo(t),e!=null&&xl(e))}function Jn(e,t,a,n,o){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;Rv(e,t,a,n,i!==null?i.actualStartTime:o),t=i}}function Rv(e,t,a,n,o){var i=an(),f=ps(),p=gs(),b=bs(),N=Yr,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Xe)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&yu(t,t.actualStartTime,o,sa,a),Jn(e,t,a,n,o),A&2048&&cv(t,Ha|On);break;case 1:(t.mode&Xe)!==ze&&0<t.actualStartTime&&((t.flags&128)!==0?am(t,t.actualStartTime,o,[]):(t.flags&1)!==0&&yu(t,t.actualStartTime,o,sa,a)),Jn(e,t,a,n,o);break;case 3:var V=Js(),U=sa;sa=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Jn(e,t,a,n,o),sa=U,A&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),n=t.memoizedState.cache,n!==a&&(wo(n),a!=null&&xl(a))),e.passiveEffectDuration+=_u(V);break;case 12:if(A&2048){A=Js(),Jn(e,t,a,n,o),e=t.stateNode,e.passiveEffectDuration+=Nl(A);try{Se(t,Jw,t,t.alternate,Fr,e.passiveEffectDuration)}catch($){ht(t,t.return,$)}}else Jn(e,t,a,n,o);break;case 31:A=sa,V=t.alternate!==null?t.alternate.memoizedState:null,U=t.memoizedState,V!==null&&U===null?(U=t.deletions,U!==null&&0<U.length&&U[0].tag===18?(sa=!1,V=V.hydrationErrors,V!==null&&am(t,t.actualStartTime,o,V)):sa=!0):sa=!1,Jn(e,t,a,n,o),sa=A;break;case 13:A=sa,V=t.alternate!==null?t.alternate.memoizedState:null,U=t.memoizedState,V===null||V.dehydrated===null||U!==null&&U.dehydrated!==null?sa=!1:(U=t.deletions,U!==null&&0<U.length&&U[0].tag===18?(sa=!1,V=V.hydrationErrors,V!==null&&am(t,t.actualStartTime,o,V)):sa=!0),Jn(e,t,a,n,o),sa=A;break;case 23:break;case 22:U=t.stateNode,V=t.alternate,t.memoizedState!==null?U._visibility&nr?Jn(e,t,a,n,o):Al(e,t,a,n,o):U._visibility&nr?Jn(e,t,a,n,o):(U._visibility|=nr,mi(e,t,a,n,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),o),(t.mode&Xe)===ze||sa||(e=t.actualStartTime,0<=e&&.05<o-e&&bu(t,e,o),0<=Oe&&0<=Me&&.05<Me-Oe&&bu(t,Oe,Me))),A&2048&&vp(V,t);break;case 24:Jn(e,t,a,n,o),A&2048&&xp(t.alternate,t);break;default:Jn(e,t,a,n,o)}(t.mode&Xe)!==ze&&((e=!sa&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<o-a&&ds(t,a,o,"Mount")),0<=Oe&&0<=Me&&((Bt||.05<Ot)&&fs(t,Oe,Me,Ot,jt),e&&.05<Me-Oe&&ds(t,Oe,Me,"Mount"))),nn(i),hs(f),jt=p,Bt=b,Yr=N}function mi(e,t,a,n,o,i){for(o=o&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var f=t.sibling;_v(e,t,a,n,o,f!==null?f.actualStartTime:i),t=f}}function _v(e,t,a,n,o,i){var f=an(),p=ps(),b=gs(),N=bs(),A=Yr;o&&(t.mode&Xe)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&yu(t,t.actualStartTime,i,sa,a);var V=t.flags;switch(t.tag){case 0:case 11:case 15:mi(e,t,a,n,o,i),cv(t,Ha);break;case 23:break;case 22:var U=t.stateNode;t.memoizedState!==null?U._visibility&nr?mi(e,t,a,n,o,i):Al(e,t,a,n,i):(U._visibility|=nr,mi(e,t,a,n,o,i)),o&&V&2048&&vp(t.alternate,t);break;case 24:mi(e,t,a,n,o,i),o&&V&2048&&xp(t.alternate,t);break;default:mi(e,t,a,n,o,i)}(t.mode&Xe)!==ze&&0<=Oe&&0<=Me&&(Bt||.05<Ot)&&fs(t,Oe,Me,Ot,jt),nn(f),hs(p),jt=b,Bt=N,Yr=A}function Al(e,t,a,n,o){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,b=n,N=t!==null?t.actualStartTime:o,A=Yr;(i.mode&Xe)!==ze&&0<i.actualStartTime&&(i.flags&1)!==0&&yu(i,i.actualStartTime,N,sa,p);var V=i.flags;switch(i.tag){case 22:Al(f,i,p,b,N),V&2048&&vp(i.alternate,i);break;case 24:Al(f,i,p,b,N),V&2048&&xp(i.alternate,i);break;default:Al(f,i,p,b,N)}Yr=A,i=t}}function pi(e,t,a){if(e.subtreeFlags&Ec)for(e=e.child;e!==null;)kv(e,t,a),e=e.sibling}function kv(e,t,a){switch(e.tag){case 26:pi(e,t,a),e.flags&Ec&&e.memoizedState!==null&&$E(a,ts,e.memoizedState,e.memoizedProps);break;case 5:pi(e,t,a);break;case 3:case 4:var n=ts;ts=cd(e.stateNode.containerInfo),pi(e,t,a),ts=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ec,Ec=16777216,pi(e,t,a),Ec=n):pi(e,t,a));break;default:pi(e,t,a)}}function Cv(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 Vl(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],o=an();fa=n,jv(n,e),(n.mode&Xe)!==ze&&0<=Oe&&0<=Me&&.05<Me-Oe&&ds(n,Oe,Me,"Unmount"),nn(o)}Cv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Uv(e),e=e.sibling}function Uv(e){var t=an(),a=ps(),n=gs(),o=bs();switch(e.tag){case 0:case 11:case 15:Vl(e),e.flags&2048&&hp(e,e.return,Ha|On);break;case 3:var i=Js();Vl(e),e.stateNode.passiveEffectDuration+=_u(i);break;case 12:i=Js(),Vl(e),e.stateNode.passiveEffectDuration+=Nl(i);break;case 22:i=e.stateNode,e.memoizedState!==null&&i._visibility&nr&&(e.return===null||e.return.tag!==13)?(i._visibility&=~nr,ad(e),(e.mode&Xe)!==ze&&0<=Oe&&0<=Me&&.05<Me-Oe&&ds(e,Oe,Me,"Disconnect")):Vl(e);break;default:Vl(e)}(e.mode&Xe)!==ze&&0<=Oe&&0<=Me&&(Bt||.05<Ot)&&fs(e,Oe,Me,Ot,jt),nn(t),hs(a),Bt=o,jt=n}function ad(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],o=an();fa=n,jv(n,e),(n.mode&Xe)!==ze&&0<=Oe&&0<=Me&&.05<Me-Oe&&ds(n,Oe,Me,"Unmount"),nn(o)}Cv(e)}for(e=e.child;e!==null;)Tv(e),e=e.sibling}function Tv(e){var t=an(),a=ps(),n=gs(),o=bs();switch(e.tag){case 0:case 11:case 15:hp(e,e.return,Ha),ad(e);break;case 22:var i=e.stateNode;i._visibility&nr&&(i._visibility&=~nr,ad(e));break;default:ad(e)}(e.mode&Xe)!==ze&&0<=Oe&&0<=Me&&(Bt||.05<Ot)&&fs(e,Oe,Me,Ot,jt),nn(t),hs(a),Bt=o,jt=n}function jv(e,t){for(;fa!==null;){var a=fa,n=a,o=t,i=an(),f=ps(),p=gs(),b=bs();switch(n.tag){case 0:case 11:case 15:hp(n,o,Ha);break;case 23:case 22:n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool,o!=null&&wo(o));break;case 24:xl(n.memoizedState.cache)}if((n.mode&Xe)!==ze&&0<=Oe&&0<=Me&&(Bt||.05<Ot)&&fs(n,Oe,Me,Ot,jt),nn(i),hs(f),Bt=b,jt=p,n=a.child,n!==null)n.return=a,fa=n;else e:for(a=e;fa!==null;){if(n=fa,i=n.sibling,f=n.return,yv(n),n===a){fa=null;break e}if(i!==null){i.return=f,fa=i;break e}fa=f}}}function eE(){wR.forEach(function(e){return e()})}function Ov(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||F.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function rn(e){if((dt&ra)!==ma&&Ze!==0)return Ze&-Ze;var t=F.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),kp()):qn()}function Av(){if(Ja===0)if((Ze&536870912)===0||rt){var e=Nd;Nd<<=1,(Nd&3932160)===0&&(Nd=262144),Ja=e}else Ja=536870912;return e=dn.current,e!==null&&(e.flags|=32),Ja}function Ht(e,t,a){if(Wi&&console.error("useInsertionEffect must not schedule updates."),ug&&(of=!0),(e===Nt&&(yt===Go||yt===Io)||e.cancelPendingCommit!==null)&&(gi(e,0),Ar(e,Ze,Ja,!1)),xn(e,a),(dt&ra)!==ma&&e===Nt){if(ks)switch(t.tag){case 0:case 11:case 15:e=Je&&q(Je)||"Unknown",i1.has(e)||(i1.add(e),t=q(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:o1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),o1=!0)}}else Us&&$s(e,t,a),uE(t),e===Nt&&((dt&ra)===ma&&(eo|=a),At===Pr&&Ar(e,Ze,Ja,!1)),Es(e)}function Vv(e,t,a){if((dt&(ra|mn))!==ma)throw Error("Should not already be working.");if(Ze!==0&&Je!==null){var n=Je,o=ua();switch(W0){case _c:case Go:var i=uc;kt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Suspended",i,o,Dn,void 0,"primary-light")):console.timeStamp("Suspended",i,o,Dn,void 0,"primary-light"));break;case Io:i=uc,kt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Action",i,o,Dn,void 0,"primary-light")):console.timeStamp("Action",i,o,Dn,void 0,"primary-light"));break;default:kt&&(n=o-uc,3>n||console.timeStamp("Blocked",uc,o,Dn,void 0,5>n?"primary-light":10>n?"primary":100>n?"primary-dark":"error"))}}i=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||vn(e,t))?aE(e,t):Sp(e,t,!0);var f=a;do{if(i===pr){Pi&&!a&&Ar(e,t,0,!1),t=yt,uc=Pt(),W0=t;break}else{if(n=ua(),o=e.current.alternate,f&&!tE(o)){Qn(t),o=da,i=n,!kt||i<=o||(Yt?Yt.run(console.timeStamp.bind(console,"Teared Render",o,i,ut,lt,"error")):console.timeStamp("Teared Render",o,i,ut,lt,"error")),Co(t,n),i=Sp(e,t,!1),f=!1;continue}if(i===qo){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){Qn(t),nm(da,n,t,Yt),Co(t,n),t=p;e:{n=e,i=f,f=Cc;var b=n.current.memoizedState.isDehydrated;if(b&&(gi(n,p).flags|=256),p=Sp(n,p,!1),p!==qo){if(ag&&!b){n.errorRecoveryDisabledLanes|=i,eo|=i,i=Pr;break e}n=Ba,Ba=f,n!==null&&(Ba===null?Ba=n:Ba.push.apply(Ba,n))}i=p}if(f=!1,i!==qo)continue;n=ua()}}if(i===Rc){Qn(t),nm(da,n,t,Yt),Co(t,n),gi(e,0),Ar(e,t,0,!0);break}e:{switch(a=e,i){case pr:case Rc:throw Error("Root did not complete. This is a bug in React.");case Pr:if((t&4194048)!==t)break;case Kd:Qn(t),Vb(da,n,t,Yt),Co(t,n),o=t,(o&127)!==0?zd=n:(o&4194048)!==0&&(Ld=n),Ar(a,t,Ja,!Kr);break e;case qo:Ba=null;break;case Pd:case XN:break;default:throw Error("Unknown root exit status.")}if(F.actQueue!==null)wp(a,o,t,Ba,Uc,tf,Ja,eo,Fo,i,null,null,da,n);else{if((t&62914560)===t&&(f=af+JN-ua(),10<f)){if(Ar(a,t,Ja,!Kr),Yn(a,0,!0)!==0)break e;as=t,a.timeoutHandle=h1(Mv.bind(null,a,o,Ba,Uc,tf,t,Ja,eo,Fo,Kr,i,"Throttled",da,n),f);break e}Mv(a,o,Ba,Uc,tf,t,Ja,eo,Fo,Kr,i,null,da,n)}}}break}while(!0);Es(e)}function Mv(e,t,a,n,o,i,f,p,b,N,A,V,U,$){e.timeoutHandle=Po;var ge=t.subtreeFlags,we=null;if((ge&8192||(ge&16785408)===16785408)&&(we={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fs},kv(t,i,we),ge=(i&62914560)===i?af-ua():(i&4194048)===i?ZN-ua():0,ge=YE(we,ge),ge!==null)){as=i,e.cancelPendingCommit=ge(wp.bind(null,e,t,i,a,n,o,f,p,b,A,we,we.waitingForViewTransition?"Waiting for the previous Animation":0<we.count?0<we.imgCount?"Suspended on CSS and Images":"Suspended on CSS":we.imgCount===1?"Suspended on an Image":0<we.imgCount?"Suspended on Images":null,U,$)),Ar(e,i,f,!N);return}wp(e,t,i,a,n,o,f,p,b,A,we,V,U,$)}function tE(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 o=a[n],i=o.getSnapshot;o=o.value;try{if(!Ma(i(),o))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 Ar(e,t,a,n){t&=~ng,t&=~eo,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var o=t;0<o;){var i=31-Oa(o),f=1<<i;n[i]=-1,o&=~f}a!==0&&Ca(e,a,t)}function hi(){return(dt&(ra|mn))===ma?(Ll(0),!1):!0}function Np(){if(Je!==null){if(yt===Za)var e=Je.return;else e=Je,Eu(),jm(e),Yi=null,vc=0,e=Je;for(;e!==null;)iv(e.alternate,e),e=e.return;Je=null}}function Co(e,t){(e&127)!==0&&(Ao=t),(e&4194048)!==0&&(lr=t),(e&62914560)!==0&&(P0=t),(e&2080374784)!==0&&(K0=t)}function gi(e,t){kt&&(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=da;if(da=Pt(),Ze!==0&&0<a){if(Qn(Ze),At===Pd||At===Pr)Vb(a,da,t,Yt);else{var n=da,o=Yt;if(kt&&!(n<=a)){var i=(t&738197653)===t?"tertiary-dark":"primary-dark",f=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";o?o.run(console.timeStamp.bind(console,f,a,n,ut,lt,i)):console.timeStamp(f,a,n,ut,lt,i)}}Co(Ze,da)}if(a=Yt,Yt=null,(t&127)!==0){Yt=ic,o=0<=As&&As<Ao?Ao:As,n=0<=Vo&&Vo<Ao?Ao:Vo,i=0<=n?n:0<=o?o:da,0<=zd?(Qn(2),Mb(zd,i,t,a)):Hd&127,a=o;var p=n,b=lc,N=0<Hi,A=Xr===oc,V=Xr===Md;if(o=da,n=ic,i=Vh,f=Mh,kt){if(ut="Blocking",0<a?a>o&&(a=o):a=o,0<p?p>a&&(p=a):p=a,b!==null&&a>p){var U=N?"secondary-light":"warning";n?n.run(console.timeStamp.bind(console,N?"Consecutive":"Event: "+b,p,a,ut,lt,U)):console.timeStamp(N?"Consecutive":"Event: "+b,p,a,ut,lt,U)}o>a&&(p=A?"error":(t&738197653)===t?"tertiary-light":"primary-light",A=V?"Promise Resolved":A?"Cascading Update":5<o-a?"Update Blocked":"Update",V=[],f!=null&&V.push(["Component name",f]),i!=null&&V.push(["Method name",i]),a={start:a,end:o,detail:{devtools:{properties:V,track:ut,trackGroup:lt,color:p}}},n?n.run(performance.measure.bind(performance,A,a)):performance.measure(A,a))}As=-1.1,Xr=0,Mh=Vh=null,zd=-1.1,Hi=Vo,Vo=-1.1,Ao=Pt()}if((t&4194048)!==0&&(Yt=cc,o=0<=cr&&cr<lr?lr:cr,a=0<=Tn&&Tn<lr?lr:Tn,n=0<=Qr&&Qr<lr?lr:Qr,i=0<=n?n:0<=a?a:da,0<=Ld?(Qn(256),Mb(Ld,i,t,Yt)):Hd&4194048,V=n,p=Mo,b=0<Zr,N=zh===Md,i=da,n=cc,f=Z0,A=J0,kt&&(ut="Transition",0<a?a>i&&(a=i):a=i,0<o?o>a&&(o=a):o=a,0<V?V>o&&(V=o):V=o,o>V&&p!==null&&(U=b?"secondary-light":"warning",n?n.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+p,V,o,ut,lt,U)):console.timeStamp(b?"Consecutive":"Event: "+p,V,o,ut,lt,U)),a>o&&(n?n.run(console.timeStamp.bind(console,"Action",o,a,ut,lt,"primary-dark")):console.timeStamp("Action",o,a,ut,lt,"primary-dark")),i>a&&(o=N?"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:ut,trackGroup:lt,color:"primary-light"}}},n?n.run(performance.measure.bind(performance,o,a)):performance.measure(o,a))),Tn=cr=-1.1,zh=0,Ld=-1.1,Zr=Qr,Qr=-1.1,lr=Pt()),(t&62914560)!==0&&(Hd&62914560)!==0&&(Qn(4194304),sm(P0,da)),(t&2080374784)!==0&&(Hd&2080374784)!==0&&(Qn(268435456),sm(K0,da)),a=e.timeoutHandle,a!==Po&&(e.timeoutHandle=Po,MR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),as=0,Np(),Nt=e,Je=a=Xs(e.current,null),Ze=t,yt=Za,pn=null,Kr=!1,Pi=vn(e,t),ag=!1,At=pr,Fo=Ja=ng=eo=Wr=0,Ba=Cc=null,tf=!1,(t&8)!==0&&(t|=t&32),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=t;0<n;)o=31-Oa(n),i=1<<o,t|=e[o],n&=~i;return Ms=t,vu(),e=q0(),1e3<e-Y0&&(F.recentlyCreatedOwnerStacks=0,Y0=e),Wn.discardPendingWarnings(),a}function zv(e,t){$e=null,F.H=wc,F.getCurrentStack=null,ks=!1,cn=null,t===$i||t===qd?(t=sy(),yt=_c):t===$h?(t=sy(),yt=QN):yt=t===Ph?tg:t!==null&&typeof t=="object"&&typeof t.then=="function"?kc:Wd,pn=t;var a=Je;a===null?(At=Rc,Zu(e,tn(t,e.current))):a.mode&Xe&&vm(a)}function Lv(){var e=dn.current;return e===null?!0:(Ze&4194048)===Ze?jn===null:(Ze&62914560)===Ze||(Ze&536870912)!==0?e===jn:!1}function Hv(){var e=F.H;return F.H=wc,e===null?wc:e}function Bv(){var e=F.A;return F.A=SR,e}function nd(e){Yt===null&&(Yt=e._debugTask==null?null:e._debugTask)}function sd(){At=Pr,Kr||(Ze&4194048)!==Ze&&dn.current!==null||(Pi=!0),(Wr&134217727)===0&&(eo&134217727)===0||Nt===null||Ar(Nt,Ze,Ja,!1)}function Sp(e,t,a){var n=dt;dt|=ra;var o=Hv(),i=Bv();if(Nt!==e||Ze!==t){if(Us){var f=e.memoizedUpdaters;0<f.size&&(zl(e,Ze),f.clear()),Na(e,t)}Uc=null,gi(e,t)}t=!1,f=At;e:do try{if(yt!==Za&&Je!==null){var p=Je,b=pn;switch(yt){case tg:Np(),f=Kd;break e;case _c:case Go:case Io:case kc:dn.current===null&&(t=!0);var N=yt;if(yt=Za,pn=null,bi(e,p,b,N),a&&Pi){f=pr;break e}break;default:N=yt,yt=Za,pn=null,bi(e,p,b,N)}}$v(),f=At;break}catch(A){zv(e,A)}while(!0);return t&&e.shellSuspendCounter++,Eu(),dt=n,F.H=o,F.A=i,Je===null&&(Nt=null,Ze=0,vu()),f}function $v(){for(;Je!==null;)Yv(Je)}function aE(e,t){var a=dt;dt|=ra;var n=Hv(),o=Bv();if(Nt!==e||Ze!==t){if(Us){var i=e.memoizedUpdaters;0<i.size&&(zl(e,Ze),i.clear()),Na(e,t)}Uc=null,nf=ua()+PN,gi(e,t)}else Pi=vn(e,t);e:do try{if(yt!==Za&&Je!==null)t:switch(t=Je,i=pn,yt){case Wd:yt=Za,pn=null,bi(e,t,i,Wd);break;case Go:case Io:if(ay(i)){yt=Za,pn=null,qv(t);break}t=function(){yt!==Go&&yt!==Io||Nt!==e||(yt=ef),Es(e)},i.then(t,t);break e;case _c:yt=ef;break e;case QN:yt=eg;break e;case ef:ay(i)?(yt=Za,pn=null,qv(t)):(yt=Za,pn=null,bi(e,t,i,ef));break;case eg:var f=null;switch(Je.tag){case 26:f=Je.memoizedState;case 5:case 27:var p=Je;if(f?Vx(f):p.stateNode.complete){yt=Za,pn=null;var b=p.sibling;if(b!==null)Je=b;else{var N=p.return;N!==null?(Je=N,rd(N)):Je=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}yt=Za,pn=null,bi(e,t,i,eg);break;case kc:yt=Za,pn=null,bi(e,t,i,kc);break;case tg:Np(),At=Kd;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}F.actQueue!==null?$v():nE();break}catch(A){zv(e,A)}while(!0);return Eu(),F.H=n,F.A=o,dt=a,Je!==null?pr:(Nt=null,Ze=0,vu(),At)}function nE(){for(;Je!==null&&!aD();)Yv(Je)}function Yv(e){var t=e.alternate;(e.mode&Xe)!==ze?(ym(e),t=Se(e,fp,t,e,Ms),vm(e)):t=Se(e,fp,t,e,Ms),e.memoizedProps=e.pendingProps,t===null?rd(e):Je=t}function qv(e){var t=Se(e,sE,e);e.memoizedProps=e.pendingProps,t===null?rd(e):Je=t}function sE(e){var t=e.alternate,a=(e.mode&Xe)!==ze;switch(a&&ym(e),e.tag){case 15:case 0:t=ev(t,e,e.pendingProps,e.type,void 0,Ze);break;case 11:t=ev(t,e,e.pendingProps,e.type.render,e.ref,Ze);break;case 5:jm(e);default:iv(t,e),e=Je=Yb(e,Ms),t=fp(t,e,Ms)}return a&&vm(e),t}function bi(e,t,a,n){Eu(),jm(t),Yi=null,vc=0;var o=t.return;try{if(Yw(e,o,t,a,Ze)){At=Rc,Zu(e,tn(a,e.current)),Je=null;return}}catch(i){if(o!==null)throw Je=o,i;At=Rc,Zu(e,tn(a,e.current)),Je=null;return}t.flags&32768?(rt||n===Wd?e=!0:Pi||(Ze&536870912)!==0?e=!1:(Kr=e=!0,(n===Go||n===Io||n===_c||n===kc)&&(n=dn.current,n!==null&&n.tag===13&&(n.flags|=16384))),Gv(t,e)):rd(t)}function rd(e){var t=e;do{if((t.flags&32768)!==0){Gv(t,Kr);return}var a=t.alternate;if(e=t.return,ym(t),a=Se(t,Iw,a,t,Ms),(t.mode&Xe)!==ze&&Pb(t),a!==null){Je=a;return}if(t=t.sibling,t!==null){Je=t;return}Je=t=e}while(t!==null);At===pr&&(At=XN)}function Gv(e,t){do{var a=Fw(e.alternate,e);if(a!==null){a.flags&=32767,Je=a;return}if((e.mode&Xe)!==ze){Pb(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)){Je=e;return}Je=e=a}while(e!==null);At=Kd,Je=null}function wp(e,t,a,n,o,i,f,p,b,N,A,V,U,$){e.cancelPendingCommit=null;do Ml();while(aa!==ao);if(Wn.flushLegacyContextWarning(),Wn.flushPendingUnsafeLifecycleWarnings(),(dt&(ra|mn))!==ma)throw Error("Should not already be working.");if(Qn(a),N===qo?nm(U,$,a,Yt):n!==null?Cw(U,$,a,n,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Yt):kw(U,$,a,Yt),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|=Uh,qa(e,a,i,f,p,b),e===Nt&&(Je=Nt=null,Ze=0),Ki=t,no=e,as=a,og=i,lg=o,n1=n,ig=$,s1=V,ns=sf,r1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cE(wi,function(){return Mc=window.event,ns===sf&&(ns=rg),Zv(),null})):(e.callbackNode=null,e.callbackPriority=0),ir=null,Fr=Pt(),V!==null&&Uw($,Fr,V,Yt),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=F.T,F.T=null,o=gt.p,gt.p=En,f=dt,dt|=mn;try{Kw(e,t,a)}finally{dt=f,gt.p=o,F.T=n}}aa=WN,Iv(),Fv(),Xv()}}function Iv(){if(aa===WN){aa=ao;var e=no,t=Ki,a=as,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=F.T,F.T=null;var o=gt.p;gt.p=En;var i=dt;dt|=mn;try{Zi=a,Ji=e,ku(),Sv(t,e),Ji=Zi=null,a=vg;var f=jb(e.containerInfo),p=a.focusedElem,b=a.selectionRange;if(f!==p&&p&&p.ownerDocument&&Tb(p.ownerDocument.documentElement,p)){if(b!==null&&em(p)){var N=b.start,A=b.end;if(A===void 0&&(A=N),"selectionStart"in p)p.selectionStart=N,p.selectionEnd=Math.min(A,p.value.length);else{var V=p.ownerDocument||document,U=V&&V.defaultView||window;if(U.getSelection){var $=U.getSelection(),ge=p.textContent.length,we=Math.min(b.start,ge),wt=b.end===void 0?we:Math.min(b.end,ge);!$.extend&&we>wt&&(f=wt,wt=we,we=f);var ct=Ub(p,we),k=Ub(p,wt);if(ct&&k&&($.rangeCount!==1||$.anchorNode!==ct.node||$.anchorOffset!==ct.offset||$.focusNode!==k.node||$.focusOffset!==k.offset)){var T=V.createRange();T.setStart(ct.node,ct.offset),$.removeAllRanges(),we>wt?($.addRange(T),$.extend(k.node,k.offset)):(T.setEnd(k.node,k.offset),$.addRange(T))}}}}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}}Nf=!!yg,vg=yg=null}finally{dt=i,gt.p=o,F.T=n}}e.current=t,aa=e1}}function Fv(){if(aa===e1){aa=ao;var e=r1;if(e!==null){Fr=Pt();var t=or,a=Fr;!kt||a<=t||console.timeStamp(e,t,a,ut,lt,"secondary-light")}e=no,t=Ki,a=as;var n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=F.T,F.T=null;var o=gt.p;gt.p=En;var i=dt;dt|=mn;try{Zi=a,Ji=e,ku(),bv(e,t.alternate,t),Ji=Zi=null}finally{dt=i,gt.p=o,F.T=n}}e=ig,t=s1,or=Pt(),e=t===null?e:Fr,t=or,a=ns===sg,n=Yt,ir!==null?zb(e,t,ir,!1,n):!kt||t<=e||(n?n.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,ut,lt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,ut,lt,a?"error":"secondary-dark")),aa=t1}}function Xv(){if(aa===a1||aa===t1){if(aa===a1){var e=or;or=Pt();var t=or,a=ns===sg;!kt||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,ut,lt,a?" error":"secondary-light"),ns!==sg&&(ns=KN)}aa=ao,nD(),e=no;var n=Ki;t=as,a=n1;var o=n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0;o?aa=rf:(aa=ao,Ki=no=null,Qv(e,e.pendingLanes),Xo=0,jc=null);var i=e.pendingLanes;if(i===0&&(to=null),o||Wv(e),i=Ys(t),n=n.stateNode,Ea&&typeof Ea.onCommitFiberRoot=="function")try{var f=(n.current.flags&128)===128;switch(i){case En:var p=lh;break;case Ts:p=ch;break;case tr:p=wi;break;case wd:p=uh;break;default:p=wi}Ea.onCommitFiberRoot(Ei,n,p,f)}catch(V){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",V))}if(Us&&e.memoizedUpdaters.clear(),eE(),a!==null){f=F.T,p=gt.p,gt.p=En,F.T=null;try{var b=e.onRecoverableError;for(n=0;n<a.length;n++){var N=a[n],A=rE(N.stack);Se(N.source,b,N.value,A)}}finally{F.T=f,gt.p=p}}(as&3)!==0&&Ml(),Es(e),i=e.pendingLanes,(t&261930)!==0&&(i&42)!==0?($d=!0,e===cg?Tc++:(Tc=0,cg=e)):Tc=0,o||Co(t,or),Ll(0)}}function rE(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 Qv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xl(t)))}function Ml(){return Iv(),Fv(),Xv(),Zv()}function Zv(){if(aa!==rf)return!1;var e=no,t=og;og=0;var a=Ys(as),n=tr>a?tr:a;a=F.T;var o=gt.p;try{gt.p=n,F.T=null;var i=lg;lg=null,n=no;var f=as;if(aa=ao,Ki=no=null,as=0,(dt&(ra|mn))!==ma)throw Error("Cannot flush passive effects while already rendering.");Qn(f),ug=!0,of=!1;var p=0;if(ir=null,p=ua(),ns===KN)sm(or,p,hR);else{var b=or,N=p,A=ns===rg;!kt||N<=b||(Yt?Yt.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",b,N,ut,lt,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",b,N,ut,lt,"secondary-light"))}b=dt,dt|=mn;var V=n.current;ku(),Uv(V);var U=n.current;V=ig,ku(),Rv(n,U,f,i,V),Wv(n),dt=b;var $=ua();if(U=p,V=Yt,ir!==null?zb(U,$,ir,!0,V):!kt||$<=U||(V?V.run(console.timeStamp.bind(console,"Remaining Effects",U,$,ut,lt,"secondary-dark")):console.timeStamp("Remaining Effects",U,$,ut,lt,"secondary-dark")),Co(f,$),Ll(0,!1),of?n===jc?Xo++:(Xo=0,jc=n):Xo=0,of=ug=!1,Ea&&typeof Ea.onPostCommitFiberRoot=="function")try{Ea.onPostCommitFiberRoot(Ei,n)}catch(we){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",we))}var ge=n.current.stateNode;return ge.effectDuration=0,ge.passiveEffectDuration=0,!0}finally{gt.p=o,F.T=a,Qv(e,t)}}function Jv(e,t,a){t=tn(a,t),Kb(t),t=tp(e.stateNode,t,2),e=Ur(e,t,2),e!==null&&(xn(e,2),Es(e))}function ht(e,t,a){if(Wi=!1,e.tag===3)Jv(e,e,a);else{for(;t!==null;){if(t.tag===3){Jv(t,e,a);return}if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(to===null||!to.has(n))){e=tn(a,e),Kb(e),a=ap(2),n=Ur(t,a,2),n!==null&&(np(a,n,t,e),xn(n,2),Es(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 Ep(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new ER;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(a)||(ag=!0,o.add(a),n=oE.bind(null,e,t,a),Us&&zl(e,a),t.then(n,n))}function oE(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>As&&(Ao=As=Pt(),ic=Vd("Promise Resolved"),Xr=Md):(a&4194048)!==0&&0>Tn&&(lr=Tn=Pt(),cc=Vd("Promise Resolved"),zh=Md),Ov()&&F.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`),Nt===e&&(Ze&a)===a&&(At===Pr||At===Pd&&(Ze&62914560)===Ze&&ua()-af<JN?(dt&ra)===ma&&gi(e,0):ng|=a,Fo===Ze&&(Fo=0)),Es(e)}function Pv(e,t){t===0&&(t=Lt()),e=wa(e,t),e!==null&&(xn(e,t),Es(e))}function iE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Pv(e,a)}function lE(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(a=o.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),Pv(e,a)}function Dp(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var n=e,o=t,i=o.type===bd;i=a||i,o.tag!==22?o.flags&67108864?i&&Se(o,Kv,n,o):Dp(n,o,i):o.memoizedState===null&&(i&&o.flags&8192?Se(o,Kv,n,o):o.subtreeFlags&67108864&&Se(o,Dp,n,o,i)),t=t.sibling}}function Kv(e,t){le(!0);try{Ev(t),Tv(t),Dv(e,t.alternate,t,!1),_v(e,t,0,null,!1,0)}finally{le(!1)}}function Wv(e){var t=!0;e.current.mode&(Da|Kn)||(t=!1),Dp(e,e.current,t)}function ex(e){if((dt&ra)===ma){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=q(e)||"ReactComponent",lf!==null){if(lf.has(t))return;lf.add(t)}else lf=new Set([t]);Se(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 zl(e,t){Us&&e.memoizedUpdaters.forEach(function(a){$s(e,a,t)})}function cE(e,t){var a=F.actQueue;return a!==null?(a.push(t),_R):ih(e,t)}function uE(e){Ov()&&F.actQueue===null&&Se(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`,q(e))})}function Es(e){e!==el&&e.next===null&&(el===null?cf=el=e:el=el.next=e),uf=!0,F.actQueue!==null?fg||(fg=!0,sx()):dg||(dg=!0,sx())}function Ll(e,t){if(!mg&&uf){mg=!0;do for(var a=!1,n=cf;n!==null;){if(e!==0){var o=n.pendingLanes;if(o===0)var i=0;else{var f=n.suspendedLanes,p=n.pingedLanes;i=(1<<31-Oa(42|e)+1)-1,i&=o&~(f&~p),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,nx(n,i))}else i=Ze,i=Yn(n,n===Nt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==Po),(i&3)===0||vn(n,i)||(a=!0,nx(n,i));n=n.next}while(a);mg=!1}}function dE(){Mc=window.event,Rp()}function Rp(){uf=fg=dg=!1;var e=0;so!==0&&yE()&&(e=so);for(var t=ua(),a=null,n=cf;n!==null;){var o=n.next,i=tx(n,t);i===0?(n.next=null,a===null?cf=o:a.next=o,o===null&&(el=a)):(a=n,(e!==0||(i&3)!==0)&&(uf=!0)),n=o}aa!==ao&&aa!==rf||Ll(e),so!==0&&(so=0)}function tx(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var f=31-Oa(i),p=1<<f,b=o[f];b===-1?((p&a)===0||(p&n)!==0)&&(o[f]=Ya(p,t)):b<=t&&(e.expiredLanes|=p),i&=~p}if(t=Nt,a=Ze,a=Yn(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Po),n=e.callbackNode,a===0||e===t&&(yt===Go||yt===Io)||e.cancelPendingCommit!==null)return n!==null&&_p(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||vn(e,a)){if(t=a&-a,t!==e.callbackPriority||F.actQueue!==null&&n!==pg)_p(n);else return t;switch(Ys(a)){case En:case Ts:a=ch;break;case tr:a=wi;break;case wd:a=uh;break;default:a=wi}return n=ax.bind(null,e),F.actQueue!==null?(F.actQueue.push(n),a=pg):a=ih(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&_p(n),e.callbackPriority=2,e.callbackNode=null,2}function ax(e,t){if($d=Bd=!1,Mc=window.event,aa!==ao&&aa!==rf)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ns===sf&&(ns=rg),Ml()&&e.callbackNode!==a)return null;var n=Ze;return n=Yn(e,e===Nt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Po),n===0?null:(Vv(e,n,t),tx(e,ua()),e.callbackNode!=null&&e.callbackNode===a?ax.bind(null,e):null)}function nx(e,t){if(Ml())return null;Bd=$d,$d=!1,Vv(e,t,!0)}function _p(e){e!==pg&&e!==null&&tD(e)}function sx(){F.actQueue!==null&&F.actQueue.push(function(){return Rp(),null}),zR(function(){(dt&(ra|mn))!==ma?ih(lh,dE):Rp()})}function kp(){if(so===0){var e=zo;e===0&&(e=xd,xd<<=1,(xd&261888)===0&&(xd=256)),so=e}return so}function rx(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(ft(e,"action"),gl(""+e))}function ox(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 fE(e,t,a,n,o){if(t==="submit"&&a&&a.stateNode===o){var i=rx((o[Aa]||null).action),f=n.submitter;f&&(t=(t=f[Aa]||null)?rx(t.formAction):f.getAttribute("formAction"),t!==null&&(i=t,f=null));var p=new kd("action","action",null,n,o);e.push({event:p,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(so!==0){var b=f?ox(o,f):new FormData(o),N={pending:!0,data:b,method:o.method,action:i};Object.freeze(N),Qm(a,N,null,b)}}else typeof i=="function"&&(p.preventDefault(),b=f?ox(o,f):new FormData(o),N={pending:!0,data:b,method:o.method,action:i},Object.freeze(N),Qm(a,N,i,b))},currentTarget:o}]})}}function od(e,t,a){e.currentTarget=a;try{t(e)}catch(n){Rh(n)}e.currentTarget=null}function ix(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a];e:{var o=void 0,i=n.event;if(n=n.listeners,t)for(var f=n.length-1;0<=f;f--){var p=n[f],b=p.instance,N=p.currentTarget;if(p=p.listener,b!==o&&i.isPropagationStopped())break e;b!==null?Se(b,od,i,p,N):od(i,p,N),o=b}else for(f=0;f<n.length;f++){if(p=n[f],b=p.instance,N=p.currentTarget,p=p.listener,b!==o&&i.isPropagationStopped())break e;b!==null?Se(b,od,i,p,N):od(i,p,N),o=b}}}}function it(e,t){hg.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[dh];a===void 0&&(a=t[dh]=new Set);var n=e+"__bubble";a.has(n)||(lx(t,e,2,!1),a.add(n))}function Cp(e,t,a){hg.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),lx(a,e,n,t)}function Up(e){if(!e[df]){e[df]=!0,s0.forEach(function(a){a!=="selectionchange"&&(hg.has(a)||Cp(a,!1,e),Cp(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[df]||(t[df]=!0,Cp("selectionchange",!1,t))}}function lx(e,t,a,n){switch($x(t)){case En:var o=FE;break;case Ts:o=XE;break;default:o=Fp}a=o.bind(null,t,a,e),o=void 0,!gh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Tp(e,t,a,n,o){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===o)break;if(f===4)for(f=n.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===o)return;f=f.return}for(;p!==null;){if(f=ne(p),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){n=i=f;continue e}p=p.parentNode}}n=n.return}vb(function(){var N=i,A=Kf(a),V=[];e:{var U=$0.get(e);if(U!==void 0){var $=kd,ge=e;switch(e){case"keypress":if(pu(a)===0)break e;case"keydown":case"keyup":$=YD;break;case"focusin":ge="focus",$=xh;break;case"focusout":ge="blur",$=xh;break;case"beforeblur":case"afterblur":$=xh;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":$=_0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=UD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=ID;break;case z0:case L0:case H0:$=OD;break;case B0:$=XD;break;case"scroll":case"scrollend":$=kD;break;case"wheel":$=ZD;break;case"copy":case"cut":case"paste":$=VD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=C0;break;case"toggle":case"beforetoggle":$=PD}var we=(t&4)!==0,wt=!we&&(e==="scroll"||e==="scrollend"),ct=we?U!==null?U+"Capture":null:U;we=[];for(var k=N,T;k!==null;){var O=k;if(T=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||T===null||ct===null||(O=bl(k,ct),O!=null&&we.push(Hl(k,O,T))),wt)break;k=k.return}0<we.length&&(U=new $(U,ge,null,a,A),V.push({event:U,listeners:we}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",U&&a!==Jl&&(ge=a.relatedTarget||a.fromElement)&&(ne(ge)||ge[Br]))break e;if(($||U)&&(U=A.window===A?A:(U=A.ownerDocument)?U.defaultView||U.parentWindow:window,$?(ge=a.relatedTarget||a.toElement,$=N,ge=ge?ne(ge):null,ge!==null&&(wt=Q(ge),we=ge.tag,ge!==wt||we!==5&&we!==27&&we!==6)&&(ge=null)):($=null,ge=N),$!==ge)){if(we=_0,O="onMouseLeave",ct="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(we=C0,O="onPointerLeave",ct="onPointerEnter",k="pointer"),wt=$==null?U:De($),T=ge==null?U:De(ge),U=new we(O,k+"leave",$,a,A),U.target=wt,U.relatedTarget=T,O=null,ne(A)===N&&(we=new we(ct,k+"enter",ge,a,A),we.target=T,we.relatedTarget=wt,O=we),wt=O,$&&ge)t:{for(we=mE,ct=$,k=ge,T=0,O=ct;O;O=we(O))T++;O=0;for(var P=k;P;P=we(P))O++;for(;0<T-O;)ct=we(ct),T--;for(;0<O-T;)k=we(k),O--;for(;T--;){if(ct===k||k!==null&&ct===k.alternate){we=ct;break t}ct=we(ct),k=we(k)}we=null}else we=null;$!==null&&cx(V,U,$,we,!1),ge!==null&&wt!==null&&cx(V,wt,ge,we,!0)}}e:{if(U=N?De(N):window,$=U.nodeName&&U.nodeName.toLowerCase(),$==="select"||$==="input"&&U.type==="file")var xe=Rb;else if(Eb(U))if(V0)xe=Dw;else{xe=ww;var Ye=Sw}else $=U.nodeName,!$||$.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?N&&hl(N.elementType)&&(xe=Rb):xe=Ew;if(xe&&(xe=xe(e,N))){Db(V,xe,a,A);break e}Ye&&Ye(e,U,N),e==="focusout"&&N&&U.type==="number"&&N.memoizedProps.value!=null&&Ae(U,"number",U.value)}switch(Ye=N?De(N):window,e){case"focusin":(Eb(Ye)||Ye.contentEditable==="true")&&(Ti=Ye,Sh=N,nc=null);break;case"focusout":nc=Sh=Ti=null;break;case"mousedown":wh=!0;break;case"contextmenu":case"mouseup":case"dragend":wh=!1,Ob(V,a,A);break;case"selectionchange":if(tR)break;case"keydown":case"keyup":Ob(V,a,A)}var je;if(Nh)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Ui?Sb(e,a)&&(_e="onCompositionEnd"):e==="keydown"&&a.keyCode===U0&&(_e="onCompositionStart");_e&&(T0&&a.locale!=="ko"&&(Ui||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Ui&&(je=xb()):($r=A,bh="value"in $r?$r.value:$r.textContent,Ui=!0)),Ye=id(N,_e),0<Ye.length&&(_e=new k0(_e,e,null,a,A),V.push({event:_e,listeners:Ye}),je?_e.data=je:(je=wb(a),je!==null&&(_e.data=je)))),(je=WD?yw(e,a):vw(e,a))&&(_e=id(N,"onBeforeInput"),0<_e.length&&(Ye=new zD("onBeforeInput","beforeinput",null,a,A),V.push({event:Ye,listeners:_e}),Ye.data=je)),fE(V,e,N,a,A)}ix(V,t)})}function Hl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function id(e,t){for(var a=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||i===null||(o=bl(e,a),o!=null&&n.unshift(Hl(e,o,i)),o=bl(e,t),o!=null&&n.push(Hl(e,o,i))),e.tag===3)return n;e=e.return}return[]}function mE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cx(e,t,a,n,o){for(var i=t._reactName,f=[];a!==null&&a!==n;){var p=a,b=p.alternate,N=p.stateNode;if(p=p.tag,b!==null&&b===n)break;p!==5&&p!==26&&p!==27||N===null||(b=N,o?(N=bl(a,i),N!=null&&f.unshift(Hl(a,N,b))):o||(N=bl(a,i),N!=null&&f.push(Hl(a,N,b)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}function jp(e,t){pw(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||D0||(D0=!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:Uo,possibleRegistrationNames:fh};hl(e)||typeof t.is=="string"||gw(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 ca(e,t,a,n){t!==a&&(a=Vr(a),Vr(t)!==a&&(n[e]=t))}function pE(e,t,a){t.forEach(function(n){a[fx(n)]=n==="style"?Ap(e):e.getAttribute(n)})}function Ds(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 ux(e,t){return e=e.namespaceURI===Dd||e.namespaceURI===Ri?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Vr(e){return xa(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.",Et(e)),Wa(e)),(typeof e=="string"?e:""+e).replace(kR,`
|
|
181
|
+
`).replace(CR,"")}function dx(e,t){return t=Vr(t),Vr(e)===t}function vt(e,t,a,n,o,i){switch(a){case"children":typeof n=="string"?(mu(n,t,!1),t==="body"||t==="textarea"&&n===""||pl(e,n)):(typeof n=="number"||typeof n=="bigint")&&(mu(""+n,t,!1),t!=="body"&&pl(e,""+n));break;case"className":ri(e,"class",n);break;case"tabIndex":ri(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":ri(e,a,n);break;case"style":gb(e,n,i);break;case"data":if(t!=="object"){ri(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}ft(n,a),n=gl(""+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"&&(o.encType==null&&o.method==null||pf||(pf=!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.")),o.target==null||mf||(mf=!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"||o.type==="submit"||o.type==="image"||ff?t!=="button"||o.type==null||o.type==="submit"||ff?typeof n=="function"&&(o.name==null||u1||(u1=!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.')),o.formEncType==null&&o.formMethod==null||pf||(pf=!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.")),o.formTarget==null||mf||(mf=!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."))):(ff=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(ff=!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"&&vt(e,t,"name",o.name,o,null),vt(e,t,"formEncType",o.formEncType,o,null),vt(e,t,"formMethod",o.formMethod,o,null),vt(e,t,"formTarget",o.formTarget,o,null)):(vt(e,t,"encType",o.encType,o,null),vt(e,t,"method",o.method,o,null),vt(e,t,"target",o.target,o,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}ft(n,a),n=gl(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(typeof n!="function"&&Ds(a,n),e.onclick=Fs);break;case"onScroll":n!=null&&(typeof n!="function"&&Ds(a,n),it("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Ds(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(o.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}ft(n,a),a=gl(""+n),e.setAttributeNS(Qo,"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"?(ft(n,a),e.setAttribute(a,""+n)):e.removeAttribute(a);break;case"inert":n!==""||hf[a]||(hf[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"?(ft(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?(ft(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):(ft(n,a),e.setAttribute(a,n));break;case"popover":it("beforetoggle",e),it("toggle",e),Gs(e,"popover",n);break;case"xlinkActuate":Gn(e,Qo,"xlink:actuate",n);break;case"xlinkArcrole":Gn(e,Qo,"xlink:arcrole",n);break;case"xlinkRole":Gn(e,Qo,"xlink:role",n);break;case"xlinkShow":Gn(e,Qo,"xlink:show",n);break;case"xlinkTitle":Gn(e,Qo,"xlink:title",n);break;case"xlinkType":Gn(e,Qo,"xlink:type",n);break;case"xmlBase":Gn(e,gg,"xml:base",n);break;case"xmlLang":Gn(e,gg,"xml:lang",n);break;case"xmlSpace":Gn(e,gg,"xml:space",n);break;case"is":i!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Gs(e,"is",n);break;case"innerText":case"textContent":break;case"popoverTarget":d1||n==null||typeof n!="object"||(d1=!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=bb(a),Gs(e,a,n)):Uo.hasOwnProperty(a)&&n!=null&&typeof n!="function"&&Ds(a,n)}}function Op(e,t,a,n,o,i){switch(a){case"style":gb(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(o.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof n=="string"?pl(e,n):(typeof n=="number"||typeof n=="bigint")&&pl(e,""+n);break;case"onScroll":n!=null&&(typeof n!="function"&&Ds(a,n),it("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Ds(a,n),it("scrollend",e));break;case"onClick":n!=null&&(typeof n!="function"&&Ds(a,n),e.onclick=Fs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Uo.hasOwnProperty(a))n!=null&&typeof n!="function"&&Ds(a,n);else e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),i=e[Aa]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,o),typeof n=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,o);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Gs(e,a,n)}}}function ga(e,t,a){switch(jp(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,o=!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":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:vt(e,t,i,f,a,null)}}o&&vt(e,t,"srcSet",a.srcSet,a,null),n&&vt(e,t,"src",a.src,a,null);return;case"input":oa("input",a),it("invalid",e);var p=i=f=o=null,b=null,N=null;for(n in a)if(a.hasOwnProperty(n)){var A=a[n];if(A!=null)switch(n){case"name":o=A;break;case"type":f=A;break;case"checked":b=A;break;case"defaultChecked":N=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:vt(e,t,n,A,a,null)}}Te(e,a),Ve(e,i,p,b,N,f,o,!1);return;case"select":oa("select",a),it("invalid",e),n=f=i=null;for(o in a)if(a.hasOwnProperty(o)&&(p=a[o],p!=null))switch(o){case"value":i=p;break;case"defaultValue":f=p;break;case"multiple":n=p;default:vt(e,t,o,p,a,null)}Rt(e,a),t=i,a=f,e.multiple=!!n,t!=null?et(e,!!n,t,!1):a!=null&&et(e,!!n,a,!0);return;case"textarea":oa("textarea",a),it("invalid",e),i=o=n=null;for(f in a)if(a.hasOwnProperty(f)&&(p=a[f],p!=null))switch(f){case"value":n=p;break;case"defaultValue":o=p;break;case"children":i=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:vt(e,t,f,p,a,null)}Gt(e,a),pt(e,n,o,i);return;case"option":Ue(e,a);for(b in a)a.hasOwnProperty(b)&&(n=a[b],n!=null)&&(b==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":vt(e,t,b,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<Oc.length;n++)it(Oc[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(N in a)if(a.hasOwnProperty(N)&&(n=a[N],n!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:vt(e,t,N,n,a,null)}return;default:if(hl(t)){for(A in a)a.hasOwnProperty(A)&&(n=a[A],n!==void 0&&Op(e,t,A,n,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(n=a[p],n!=null&&vt(e,t,p,n,a,null))}function hE(e,t,a,n){switch(jp(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,f=null,p=null,b=null,N=null,A=null;for($ in a){var V=a[$];if(a.hasOwnProperty($)&&V!=null)switch($){case"checked":break;case"value":break;case"defaultValue":b=V;default:n.hasOwnProperty($)||vt(e,t,$,null,n,V)}}for(var U in n){var $=n[U];if(V=a[U],n.hasOwnProperty(U)&&($!=null||V!=null))switch(U){case"type":i=$;break;case"name":o=$;break;case"checked":N=$;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&&vt(e,t,U,$,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||c1||(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"),c1=!0),!t||n||l1||(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"),l1=!0),Re(e,f,p,b,N,A,i,o);return;case"select":$=f=p=U=null;for(i in a)if(b=a[i],a.hasOwnProperty(i)&&b!=null)switch(i){case"value":break;case"multiple":$=b;default:n.hasOwnProperty(i)||vt(e,t,i,null,n,b)}for(o in n)if(i=n[o],b=a[o],n.hasOwnProperty(o)&&(i!=null||b!=null))switch(o){case"value":U=i;break;case"defaultValue":p=i;break;case"multiple":f=i;default:i!==b&&vt(e,t,o,i,n,b)}n=p,t=f,a=$,U!=null?et(e,!!t,U,!1):!!a!=!!t&&(n!=null?et(e,!!t,n,!0):et(e,!!t,t?[]:"",!1));return;case"textarea":$=U=null;for(p in a)if(o=a[p],a.hasOwnProperty(p)&&o!=null&&!n.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:vt(e,t,p,null,n,o)}for(f in n)if(o=n[f],i=a[f],n.hasOwnProperty(f)&&(o!=null||i!=null))switch(f){case"value":U=o;break;case"defaultValue":$=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:o!==i&&vt(e,t,f,o,n,i)}ia(e,U,$);return;case"option":for(var ge in a)U=a[ge],a.hasOwnProperty(ge)&&U!=null&&!n.hasOwnProperty(ge)&&(ge==="selected"?e.selected=!1:vt(e,t,ge,null,n,U));for(b in n)U=n[b],$=a[b],n.hasOwnProperty(b)&&U!==$&&(U!=null||$!=null)&&(b==="selected"?e.selected=U&&typeof U!="function"&&typeof U!="symbol":vt(e,t,b,U,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 we in a)U=a[we],a.hasOwnProperty(we)&&U!=null&&!n.hasOwnProperty(we)&&vt(e,t,we,null,n,U);for(N in n)if(U=n[N],$=a[N],n.hasOwnProperty(N)&&U!==$&&(U!=null||$!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:vt(e,t,N,U,n,$)}return;default:if(hl(t)){for(var wt in a)U=a[wt],a.hasOwnProperty(wt)&&U!==void 0&&!n.hasOwnProperty(wt)&&Op(e,t,wt,void 0,n,U);for(A in n)U=n[A],$=a[A],!n.hasOwnProperty(A)||U===$||U===void 0&&$===void 0||Op(e,t,A,U,n,$);return}}for(var ct in a)U=a[ct],a.hasOwnProperty(ct)&&U!=null&&!n.hasOwnProperty(ct)&&vt(e,t,ct,null,n,U);for(V in n)U=n[V],$=a[V],!n.hasOwnProperty(V)||U===$||U==null&&$==null||vt(e,t,V,U,n,$)}function fx(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Ap(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 mx(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,o=n="",i;for(i in t)if(t.hasOwnProperty(i)){var f=t[i];f!=null&&typeof f!="boolean"&&f!==""&&(i.indexOf("--")===0?(Dt(f,i),n+=o+i+":"+(""+f).trim()):typeof f!="number"||f===0||w0.has(i)?(Dt(f,i),n+=o+i.replace(y0,"-$1").toLowerCase().replace(v0,"-ms-")+":"+(""+f).trim()):n+=o+i.replace(y0,"-$1").toLowerCase().replace(v0,"-ms-")+":"+f+"px",o=";")}n=n||null,t=e.getAttribute("style"),t!==n&&(n=Vr(n),Vr(t)!==n&&(a.style=Ap(e)))}}function wn(e,t,a,n,o,i){if(o.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(ft(n,t),e===""+n)return}ca(t,e,n,i)}function px(e,t,a,n,o,i){if(o.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}ca(t,e,n,i)}function Vp(e,t,a,n,o,i){if(o.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(ft(n,a),e===""+n)return}ca(t,e,n,i)}function hx(e,t,a,n,o,i){if(o.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)&&(ft(n,t),e===""+n))return}ca(t,e,n,i)}function Mp(e,t,a,n,o,i){if(o.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(ft(n,t),a=gl(""+n),e===a)return}ca(t,e,n,i)}function gx(e,t,a,n){for(var o={},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(hl(t)){for(var b in a)if(a.hasOwnProperty(b)){var N=a[b];if(N!=null){if(Uo.hasOwnProperty(b))typeof N!="function"&&Ds(b,N);else if(a.suppressHydrationWarning!==!0)switch(b){case"children":typeof N!="string"&&typeof N!="number"||ca("children",e.textContent,N,o);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=e.innerHTML,N=N?N.__html:void 0,N!=null&&(N=ux(e,N),ca(b,f,N,o));continue;case"style":i.delete(b),mx(e,N,o);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":i.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":i.delete("class"),f=qs(e,"class",N),ca("className",f,N,o);continue;default:n.context===hr&&t!=="svg"&&t!=="math"?i.delete(b.toLowerCase()):i.delete(b),f=qs(e,b,N),ca(b,f,N,o)}}}}else for(N in a)if(a.hasOwnProperty(N)&&(b=a[N],b!=null)){if(Uo.hasOwnProperty(N))typeof b!="function"&&Ds(N,b);else if(a.suppressHydrationWarning!==!0)switch(N){case"children":typeof b!="string"&&typeof b!="number"||ca("children",e.textContent,b,o);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,b=b?b.__html:void 0,b!=null&&(b=ux(e,b),f!==b&&(o[N]={__html:f}));continue;case"className":wn(e,N,"class",b,i,o);continue;case"tabIndex":wn(e,N,"tabindex",b,i,o);continue;case"style":i.delete(N),mx(e,b,o);continue;case"multiple":i.delete(N),ca(N,e.multiple,b,o);continue;case"muted":i.delete(N),ca(N,e.muted,b,o);continue;case"autoFocus":i.delete("autofocus"),ca(N,e.autofocus,b,o);continue;case"data":if(t!=="object"){i.delete(N),f=e.getAttribute("data"),ca(N,f,b,o);continue}case"src":case"href":if(!(b!==""||t==="a"&&N==="href"||t==="object"&&N==="data")){console.error(N==="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.',N,N);continue}Mp(e,N,N,b,i,o);continue;case"action":case"formAction":if(f=e.getAttribute(N),typeof b=="function"){i.delete(N.toLowerCase()),N==="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===UR){i.delete(N.toLowerCase()),ca(N,"function",b,o);continue}Mp(e,N,N.toLowerCase(),b,i,o);continue;case"xlinkHref":Mp(e,N,"xlink:href",b,i,o);continue;case"contentEditable":Vp(e,N,"contenteditable",b,i,o);continue;case"spellCheck":Vp(e,N,"spellcheck",b,i,o);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Vp(e,N,N,b,i,o);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":px(e,N,N.toLowerCase(),b,i,o);continue;case"capture":case"download":e:{p=e;var A=f=N,V=o;if(i.delete(A),p=p.getAttribute(A),p===null)switch(typeof b){case"undefined":case"function":case"symbol":break e;default:if(b===!1)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&p==="")break e;break;default:if(ft(b,f),p===""+b)break e}ca(f,p,b,V)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,A=f=N,V=o,i.delete(A),p=p.getAttribute(A),p===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(b)||1>b)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(ft(b,f),p===""+b))break e}ca(f,p,b,V)}continue;case"rowSpan":hx(e,N,"rowspan",b,i,o);continue;case"start":hx(e,N,N,b,i,o);continue;case"xHeight":wn(e,N,"x-height",b,i,o);continue;case"xlinkActuate":wn(e,N,"xlink:actuate",b,i,o);continue;case"xlinkArcrole":wn(e,N,"xlink:arcrole",b,i,o);continue;case"xlinkRole":wn(e,N,"xlink:role",b,i,o);continue;case"xlinkShow":wn(e,N,"xlink:show",b,i,o);continue;case"xlinkTitle":wn(e,N,"xlink:title",b,i,o);continue;case"xlinkType":wn(e,N,"xlink:type",b,i,o);continue;case"xmlBase":wn(e,N,"xml:base",b,i,o);continue;case"xmlLang":wn(e,N,"xml:lang",b,i,o);continue;case"xmlSpace":wn(e,N,"xml:space",b,i,o);continue;case"inert":b!==""||hf[N]||(hf[N]=!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.",N)),px(e,N,N,b,i,o);continue;default:if(!(2<N.length)||N[0]!=="o"&&N[0]!=="O"||N[1]!=="n"&&N[1]!=="N"){p=bb(N),f=!1,n.context===hr&&t!=="svg"&&t!=="math"?i.delete(p.toLowerCase()):(A=N.toLowerCase(),A=Rd.hasOwnProperty(A)&&Rd[A]||null,A!==null&&A!==N&&(f=!0,i.delete(A)),i.delete(p));e:if(A=e,V=p,p=b,Ua(V))if(A.hasAttribute(V))A=A.getAttribute(V),ft(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||ca(N,p,b,o)}}}return 0<i.size&&a.suppressHydrationWarning!==!0&&pE(e,i,o),Object.keys(o).length===0?null:o}function gE(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 bx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var o=a[n],i=o.transferSize,f=o.initiatorType,p=o.duration;if(i&&p&&bx(f)){for(f=0,p=o.responseEnd,n+=1;n<a.length;n++){var b=a[n],N=b.startTime;if(N>p)break;var A=b.transferSize,V=b.initiatorType;A&&bx(V)&&(b=b.responseEnd,f+=A*(b<p?1:(p-N)/(b-N)))}if(--n,t+=8*(i+f)/(o.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 ld(e){return e.nodeType===9?e:e.ownerDocument}function yx(e){switch(e){case Ri:return al;case Dd:return bf;default:return hr}}function vx(e,t){if(e===hr)switch(t){case"svg":return al;case"math":return bf;default:return hr}return e===al&&t==="foreignObject"?hr:e}function zp(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 yE(){var e=window.event;return e&&e.type==="popstate"?e===xg?!1:(xg=e,!0):(xg=null,!1)}function Bl(){var e=window.event;return e&&e!==Mc?e.type:null}function $l(){var e=window.event;return e&&e!==Mc?e.timeStamp:-1.1}function vE(e){setTimeout(function(){throw e})}function xE(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 NE(){}function SE(e,t,a,n){hE(e,t,a,n),e[Aa]=n}function xx(e){pl(e,"")}function wE(e,t,a){e.nodeValue=a}function Nx(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Aa]||null;if(t!==null){var a=de(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,Se(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,Se(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 Mr(e){return e==="head"}function EE(e,t){e.removeChild(t)}function DE(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function Sx(e,t){var a=t,n=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a===Vc||a===gf){if(n===0){e.removeChild(o),xi(t);return}n--}else if(a===Ac||a===ro||a===Jo||a===tl||a===Zo)n++;else if(a===jR)Yl(e.ownerDocument.documentElement);else if(a===AR){a=e.ownerDocument.head,Yl(a);for(var i=a.firstChild;i;){var f=i.nextSibling,p=i.nodeName;i[Zl]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=f}}else a===OR&&Yl(e.ownerDocument.body);a=o}while(a);xi(t)}function wx(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===Vc){if(e===0)break;e--}else a!==Ac&&a!==ro&&a!==Jo&&a!==tl||e++;a=n}while(a)}function RE(e){wx(e,!0)}function _E(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function kE(e){e.nodeValue=""}function CE(e){wx(e,!1)}function UE(e,t){t=t[VR],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function TE(e,t){e.nodeValue=t}function Lp(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":Lp(a),M(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function jE(e,t,a,n){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Zl])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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){ft(o.name,"name");var i=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=on(e.nextSibling),e===null)break}return null}function OE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=on(e.nextSibling),e===null))return null;return e}function Ex(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=on(e.nextSibling),e===null))return null;return e}function Hp(e){return e.data===ro||e.data===Jo}function Bp(e){return e.data===tl||e.data===ro&&e.ownerDocument.readyState!==m1}function AE(e,t){var a=e.ownerDocument;if(e.data===Jo)e._reactRetry=t;else if(e.data!==ro||a.readyState!==m1)t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function on(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===Ac||t===tl||t===ro||t===Jo||t===Zo||t===bg||t===f1)break;if(t===Vc||t===gf)return null}}return e}function Dx(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},n=e.attributes,o=0;o<n.length;o++){var i=n[o];a[fx(i.name)]=i.name.toLowerCase()==="style"?Ap(e):i.value}return{type:t,props:a}}return e.nodeType===8?e.data===Zo?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function Rx(e,t,a){return a===null||a[TR]!==!0?(e.nodeValue===t?e=null:(t=Vr(t),e=Vr(e.nodeValue)===t?null:e.nodeValue),e):null}function $p(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Vc||a===gf){if(t===0)return on(e.nextSibling);t--}else a!==Ac&&a!==tl&&a!==ro&&a!==Jo&&a!==Zo||t++}e=e.nextSibling}return null}function _x(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Ac||a===tl||a===ro||a===Jo||a===Zo){if(t===0)return e;t--}else a!==Vc&&a!==gf||t++}e=e.previousSibling}return null}function VE(e){xi(e)}function ME(e){xi(e)}function zE(e){xi(e)}function kx(e,t,a,n,o){switch(o&&Pf(e,n.ancestorInfo),t=ld(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 LE(e,t,a,n){if(!a[Br]&&de(a)){var o=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.",o,o,o)}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(o=a.attributes;o.length;)a.removeAttributeNode(o[0]);ga(a,e,t),a[ba]=n,a[Aa]=t}function Yl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);M(e)}function cd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Cx(e,t,a){var n=nl;if(n&&typeof t=="string"&&t){var o=Ne(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),v1.has(o)||(v1.add(o),e={rel:e,crossOrigin:a,href:t},n.querySelector(o)===null&&(t=n.createElement("link"),ga(t,"link",e),ke(t),n.head.appendChild(t)))}}function Ux(e,t,a,n){var o=(o=Lr.current)?cd(o):null;if(!o)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(o).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(o).hoistableStyles,f=i.get(e);if(!f&&(o=o.ownerDocument||o,f={type:"stylesheet",instance:null,count:0,state:{loading:Ko,preload:null}},i.set(e,f),(i=o.querySelector(ql(e)))&&!i._p&&(f.instance=i,f.state.loading=zc|Vn),!Mn.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};Mn.set(e,p),i||HE(o,e,p,f.state)}if(t&&n===null)throw a=`
|
|
182
|
+
|
|
183
|
+
- `+ud(t)+`
|
|
184
|
+
+ `+ud(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
|
+
- `+ud(t)+`
|
|
187
|
+
+ `+ud(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(o).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 ud(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):Pn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):Pn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):Pn.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="'+Ne(e)+'"'}function ql(e){return'link[rel="stylesheet"]['+e+"]"}function Tx(e){return Ke({},e,{"data-precedence":e.precedence,precedence:null})}function HE(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=zc:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=zc}),t.addEventListener("error",function(){return n.loading|=b1}),ga(t,"link",a),ke(t),e.head.appendChild(t))}function vi(e){return'[src="'+Ne(e)+'"]'}function Gl(e){return"script[async]"+e}function jx(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Ne(a.href)+'"]');if(n)return t.instance=n,ke(n),n;var o=Ke({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),ke(n),ga(n,"style",o),dd(n,a.precedence,e),t.instance=n;case"stylesheet":o=yi(a.href);var i=e.querySelector(ql(o));if(i)return t.state.loading|=Vn,t.instance=i,ke(i),i;n=Tx(a),(o=Mn.get(o))&&Yp(n,o),i=(e.ownerDocument||e).createElement("link"),ke(i);var f=i;return f._p=new Promise(function(p,b){f.onload=p,f.onerror=b}),ga(i,"link",n),t.state.loading|=Vn,dd(i,a.precedence,e),t.instance=i;case"script":return i=vi(a.src),(o=e.querySelector(Gl(i)))?(t.instance=o,ke(o),o):(n=a,(o=Mn.get(i))&&(n=Ke({},a),qp(n,o)),e=e.ownerDocument||e,o=e.createElement("script"),ke(o),ga(o,"link",n),e.head.appendChild(o),t.instance=o);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&Vn)===Ko&&(n=t.instance,t.state.loading|=Vn,dd(n,a.precedence,e));return t.instance}function dd(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=n.length?n[n.length-1]:null,i=o,f=0;f<n.length;f++){var p=n[f];if(p.dataset.precedence===t)i=p;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Yp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Ox(e,t,a){if(yf===null){var n=new Map,o=yf=new Map;o.set(a,n)}else o=yf,n=o.get(a),n||(n=new Map,o.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var i=a[o];if(!(i[Zl]||i[ba]||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 Ax(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function BE(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 o=t.onError,i=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),o&&a.push("`onError`"),i!=null&&a.push("`disabled`"),o=gE(a,"and"),o+=a.length===1?" prop":" props",i=a.length===1?"an "+o:"the "+o,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,o)}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 Vx(e){return!(e.type==="stylesheet"&&(e.state.loading&y1)===Ko)}function $E(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&Vn)===Ko){if(a.instance===null){var o=yi(n.href),i=t.querySelector(ql(o));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fd.bind(e),t.then(e,e)),a.state.loading|=Vn,a.instance=i,ke(i);return}i=t.ownerDocument||t,n=Tx(n),(o=Mn.get(o))&&Yp(n,o),i=i.createElement("link"),ke(i);var f=i;f._p=new Promise(function(p,b){f.onload=p,f.onerror=b}),ga(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&y1)===Ko&&(e.count++,a=fd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function YE(e,t){return e.stylesheets&&e.count===0&&md(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&md(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},LR+t);0<e.imgBytes&&Sg===0&&(Sg=125*bE()*BR);var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&md(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Sg?50:HR)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(o)}}:null}function fd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)md(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function md(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vf=new Map,t.forEach(qE,e),vf=null,fd.call(e))}function qE(e,t){if(!(t.state.loading&Vn)){var a=vf.get(e);if(a)var n=a.get(wg);else{a=new Map,vf.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var f=o[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(wg,n)}o=t.instance,f=o.getAttribute("data-precedence"),i=a.get(f)||n,i===n&&a.set(wg,o),a.set(f,o),this.count++,n=fd.bind(this),o.addEventListener("load",n),o.addEventListener("error",n),i?i.parentNode.insertBefore(o,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=Vn}}function GE(e,t,a,n,o,i,f,p,b){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Po,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Nr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nr(0),this.hiddenUpdates=Nr(null),this.identifierPrefix=n,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,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 Mx(e,t,a,n,o,i,f,p,b,N,A,V){return e=new GE(e,t,a,f,b,N,A,V,p),t=uR,i===!0&&(t|=Da|Kn),t|=Xe,i=S(3,null,null,t),e.current=i,i.stateNode=e,t=bm(),wo(t),e.pooledCache=t,wo(t),i.memoizedState={element:n,isDehydrated:a,cache:t},Sm(i),e}function zx(e){return e?(e=Gr,e):Gr}function Gp(e,t,a,n,o,i){if(Ea&&typeof Ea.onScheduleFiberRoot=="function")try{Ea.onScheduleFiberRoot(Ei,n,a)}catch(f){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",f))}o=zx(o),n.context===null?n.context=o:n.pendingContext=o,ks&&cn!==null&&!w1&&(w1=!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.`,q(cn)||"Unknown")),n=Cr(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=Ur(e,n,t),a!==null&&(ms(t,"root.render()",null),Ht(a,e,t),El(a,e,t))}function Lx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ip(e,t){Lx(e,t),(e=e.alternate)&&Lx(e,t)}function Hx(e){if(e.tag===13||e.tag===31){var t=wa(e,67108864);t!==null&&Ht(t,e,67108864),Ip(e,67108864)}}function Bx(e){if(e.tag===13||e.tag===31){var t=rn(e);t=Nn(t);var a=wa(e,t);a!==null&&Ht(a,e,t),Ip(e,t)}}function IE(){return cn}function FE(e,t,a,n){var o=F.T;F.T=null;var i=gt.p;try{gt.p=En,Fp(e,t,a,n)}finally{gt.p=i,F.T=o}}function XE(e,t,a,n){var o=F.T;F.T=null;var i=gt.p;try{gt.p=Ts,Fp(e,t,a,n)}finally{gt.p=i,F.T=o}}function Fp(e,t,a,n){if(Nf){var o=Xp(n);if(o===null)Tp(e,t,n,Sf,a),Yx(e,n);else if(QE(o,e,t,a,n))n.stopPropagation();else if(Yx(e,n),t&4&&-1<YR.indexOf(e)){for(;o!==null;){var i=de(o);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=Qt(i.pendingLanes);if(f!==0){var p=i;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var b=1<<31-Oa(f);p.entanglements[1]|=b,f&=~b}Es(i),(dt&(ra|mn))===ma&&(nf=ua()+PN,Ll(0))}}break;case 31:case 13:p=wa(i,2),p!==null&&Ht(p,i,2),hi(),Ip(i,2)}if(i=Xp(n),i===null&&Tp(e,t,n,Sf,a),i===o)break;o=i}o!==null&&n.stopPropagation()}else Tp(e,t,n,null,a)}}function Xp(e){return e=Kf(e),Qp(e)}function Qp(e){if(Sf=null,e=ne(e),e!==null){var t=Q(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=Z(t),e!==null)return e;e=null}else if(a===31){if(e=se(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 Sf=e,null}function $x(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 En;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 Ts;case"message":switch(sD()){case lh:return En;case ch:return Ts;case wi:case rD:return tr;case uh:return wd;default:return tr}default:return tr}}function Yx(e,t){switch(e){case"focusin":case"focusout":oo=null;break;case"dragenter":case"dragleave":io=null;break;case"mouseover":case"mouseout":lo=null;break;case"pointerover":case"pointerout":Hc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bc.delete(t.pointerId)}}function Il(e,t,a,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=de(t),t!==null&&Hx(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function QE(e,t,a,n,o){switch(t){case"focusin":return oo=Il(oo,e,t,a,n,o),!0;case"dragenter":return io=Il(io,e,t,a,n,o),!0;case"mouseover":return lo=Il(lo,e,t,a,n,o),!0;case"pointerover":var i=o.pointerId;return Hc.set(i,Il(Hc.get(i)||null,e,t,a,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Bc.set(i,Il(Bc.get(i)||null,e,t,a,n,o)),!0}return!1}function qx(e){var t=ne(e.target);if(t!==null){var a=Q(t);if(a!==null){if(t=a.tag,t===13){if(t=Z(a),t!==null){e.blockedOn=t,w(e.priority,function(){Bx(a)});return}}else if(t===31){if(t=se(a),t!==null){e.blockedOn=t,w(e.priority,function(){Bx(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 pd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Xp(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a),o=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=o,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=de(a),t!==null&&Hx(t),e.blockedOn=a,!1;t.shift()}return!0}function Gx(e,t,a){pd(e)&&a.delete(t)}function ZE(){Eg=!1,oo!==null&&pd(oo)&&(oo=null),io!==null&&pd(io)&&(io=null),lo!==null&&pd(lo)&&(lo=null),Hc.forEach(Gx),Bc.forEach(Gx)}function hd(e,t){e.blockedOn===t&&(e.blockedOn=null,Eg||(Eg=!0,Zt.unstable_scheduleCallback(Zt.unstable_NormalPriority,ZE)))}function Ix(e){wf!==e&&(wf=e,Zt.unstable_scheduleCallback(Zt.unstable_NormalPriority,function(){wf===e&&(wf=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],o=e[t+2];if(typeof n!="function"){if(Qp(n||a)===null)continue;break}var i=de(a);i!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:o,method:a.method,action:n},Object.freeze(a),Qm(i,a,n,o))}}))}function xi(e){function t(b){return hd(b,e)}oo!==null&&hd(oo,e),io!==null&&hd(io,e),lo!==null&&hd(lo,e),Hc.forEach(t),Bc.forEach(t);for(var a=0;a<co.length;a++){var n=co[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<co.length&&(a=co[0],a.blockedOn===null);)qx(a),a.blockedOn===null&&co.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var o=a[n],i=a[n+1],f=o[Aa]||null;if(typeof i=="function")f||Ix(a);else if(f){var p=null;if(i&&i.hasAttribute("formAction")){if(o=i,f=i[Aa]||null)p=f.formAction;else if(Qp(o)!==null)continue}else p=f.action;typeof p=="function"?a[n+1]=p:(a.splice(n,3),n-=3),Ix(a)}}}function Fx(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return o=f})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=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,o=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),o!==null&&(o(),o=null)}}}function Zp(e){this._internalRoot=e}function gd(e){this._internalRoot=e}function Xx(e){e[Br]&&(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 Zt=ak(),Jp=su(),JE=sk(),Ke=Object.assign,PE=Symbol.for("react.element"),Rs=Symbol.for("react.transitional.element"),Ni=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),bd=Symbol.for("react.strict_mode"),Pp=Symbol.for("react.profiler"),Kp=Symbol.for("react.consumer"),_s=Symbol.for("react.context"),Fl=Symbol.for("react.forward_ref"),Wp=Symbol.for("react.suspense"),eh=Symbol.for("react.suspense_list"),yd=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),th=Symbol.for("react.activity"),KE=Symbol.for("react.memo_cache_sentinel"),Qx=Symbol.iterator,WE=Symbol.for("react.client.reference"),na=Array.isArray,F=Jp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gt=JE.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,eD=Object.freeze({pending:!1,data:null,method:null,action:null}),ah=[],nh=[],er=-1,zr=te(null),Xl=te(null),Lr=te(null),vd=te(null),Ql=0,Zx,Jx,Px,Kx,Wx,e0,t0;ae.__reactDisabledLog=!0;var sh,a0,rh=!1,oh=new(typeof WeakMap=="function"?WeakMap:Map),cn=null,ks=!1,Pn=Object.prototype.hasOwnProperty,ih=Zt.unstable_scheduleCallback,tD=Zt.unstable_cancelCallback,aD=Zt.unstable_shouldYield,nD=Zt.unstable_requestPaint,ua=Zt.unstable_now,sD=Zt.unstable_getCurrentPriorityLevel,lh=Zt.unstable_ImmediatePriority,ch=Zt.unstable_UserBlockingPriority,wi=Zt.unstable_NormalPriority,rD=Zt.unstable_LowPriority,uh=Zt.unstable_IdlePriority,oD=Zt.log,iD=Zt.unstable_setDisableYieldValue,Ei=null,Ea=null,Cs=!1,Us=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Oa=Math.clz32?Math.clz32:We,lD=Math.log,cD=Math.LN2,xd=256,Nd=262144,Sd=4194304,En=2,Ts=8,tr=32,wd=268435456,Hr=Math.random().toString(36).slice(2),ba="__reactFiber$"+Hr,Aa="__reactProps$"+Hr,Br="__reactContainer$"+Hr,dh="__reactEvents$"+Hr,uD="__reactListeners$"+Hr,dD="__reactHandles$"+Hr,n0="__reactResources$"+Hr,Zl="__reactMarker$"+Hr,s0=new Set,Uo={},fh={},fD={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},mD=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]*$"),r0={},o0={},pD=/[\n"\\]/g,i0=!1,l0=!1,c0=!1,u0=!1,d0=!1,f0=!1,m0=["value","defaultValue"],p0=!1,h0=/["'&<>\n\t]|^\s|\s$/,hD="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(" "),g0="applet caption html table td th marquee object template foreignObject desc title".split(" "),gD=g0.concat(["button"]),bD="dd dt li option optgroup p rp rt".split(" "),b0={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Ed={},mh={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"]},y0=/([A-Z])/g,v0=/^ms-/,yD=/^(?:webkit|moz|o)[A-Z]/,vD=/^-ms-/,xD=/-(.)/g,x0=/;\s*$/,Di={},ph={},N0=!1,S0=!1,w0=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(" ")),Dd="http://www.w3.org/1998/Math/MathML",Ri="http://www.w3.org/2000/svg",ND=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"]]),Rd={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"},E0={"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={},SD=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]*$"),wD=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]*$"),D0=!1,Va={},R0=/^on./,ED=/^on[^A-Z]/,DD=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]*$"),RD=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]*$"),_D=/^[\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,Ci=null,hh=!1,js=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gh=!1;if(js)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){gh=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{gh=!1}var $r=null,bh=null,_d=null,To={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kd=Ga(To),Kl=Ke({},To,{view:0,detail:0}),kD=Ga(Kl),yh,vh,Wl,Cd=Ke({},Kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wf,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!==Wl&&(Wl&&e.type==="mousemove"?(yh=e.screenX-Wl.screenX,vh=e.screenY-Wl.screenY):vh=yh=0,Wl=e),yh)},movementY:function(e){return"movementY"in e?e.movementY:vh}}),_0=Ga(Cd),CD=Ke({},Cd,{dataTransfer:0}),UD=Ga(CD),TD=Ke({},Kl,{relatedTarget:0}),xh=Ga(TD),jD=Ke({},To,{animationName:0,elapsedTime:0,pseudoElement:0}),OD=Ga(jD),AD=Ke({},To,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),VD=Ga(AD),MD=Ke({},To,{data:0}),k0=Ga(MD),zD=k0,LD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HD={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"},BD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},$D=Ke({},Kl,{key:function(e){if(e.key){var t=LD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?HD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wf,charCode:function(e){return e.type==="keypress"?pu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),YD=Ga($D),qD=Ke({},Cd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),C0=Ga(qD),GD=Ke({},Kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wf}),ID=Ga(GD),FD=Ke({},To,{propertyName:0,elapsedTime:0,pseudoElement:0}),XD=Ga(FD),QD=Ke({},Cd,{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}),ZD=Ga(QD),JD=Ke({},To,{newState:0,oldState:0}),PD=Ga(JD),KD=[9,13,27,32],U0=229,Nh=js&&"CompositionEvent"in window,ec=null;js&&"documentMode"in document&&(ec=document.documentMode);var WD=js&&"TextEvent"in window&&!ec,T0=js&&(!Nh||ec&&8<ec&&11>=ec),j0=32,O0=String.fromCharCode(j0),A0=!1,Ui=!1,eR={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},tc=null,ac=null,V0=!1;js&&(V0=xw("input")&&(!document.documentMode||9<document.documentMode));var Ma=typeof Object.is=="function"?Object.is:Rw,tR=js&&"documentMode"in document&&11>=document.documentMode,Ti=null,Sh=null,nc=null,wh=!1,ji={animationend:go("Animation","AnimationEnd"),animationiteration:go("Animation","AnimationIteration"),animationstart:go("Animation","AnimationStart"),transitionrun:go("Transition","TransitionRun"),transitionstart:go("Transition","TransitionStart"),transitioncancel:go("Transition","TransitionCancel"),transitionend:go("Transition","TransitionEnd")},Eh={},M0={};js&&(M0=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 z0=bo("animationend"),L0=bo("animationiteration"),H0=bo("animationstart"),aR=bo("transitionrun"),nR=bo("transitionstart"),sR=bo("transitioncancel"),B0=bo("transitionend"),$0=new Map,Dh="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(" ");Dh.push("scrollEnd");var Y0=0;if(typeof performance=="object"&&typeof performance.now=="function")var rR=performance,q0=function(){return rR.now()};else{var oR=Date;q0=function(){return oR.now()}}var Rh=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)},iR="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.",Ud=0,_h=1,kh=2,Ch=3,Td="– ",jd="+ ",G0=" ",kt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Dn="Components ⚛",lt="Scheduler ⚛",ut="Blocking",Yr=!1,ar={color:"primary",properties:null,tooltipText:"",track:Dn},qr={start:-0,end:-0,detail:{devtools:ar}},lR=["Changed Props",""],I0="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cR=["Changed Props",I0],sc=1,nr=2,Rn=[],Oi=0,Uh=0,Gr={};Object.freeze(Gr);var _n=null,Ai=null,ze=0,uR=1,Xe=2,Da=8,Kn=16,dR=32,F0=!1;try{var X0=Object.preventExtensions({})}catch{F0=!0}var Th=new WeakMap,Vi=[],Mi=0,Od=null,rc=0,kn=[],Cn=0,jo=null,sr=1,rr="",ya=null,Ct=null,rt=!1,Os=!1,un=null,Ir=null,Un=!1,jh=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."),Oh=te(null),Ah=te(null),Q0={},Ad=null,zi=null,Li=!1,fR=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()})}},mR=Zt.unstable_scheduleCallback,pR=Zt.unstable_NormalPriority,Jt={$$typeof:_s,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Pt=Zt.unstable_now,Vd=console.createTask?console.createTask:function(){return null},oc=1,Md=2,da=-0,Fr=-0,or=-0,ir=null,za=-1.1,Oo=-0,Ot=-0,Oe=-1.1,Me=-1.1,jt=null,Bt=!1,Ao=-0,As=-1.1,ic=null,Xr=0,Vh=null,Mh=null,Vo=-1.1,lc=null,Hi=-1.1,zd=-1.1,lr=-0,cr=-1.1,Tn=-1.1,zh=0,cc=null,Z0=null,J0=null,Qr=-1.1,Mo=null,Zr=-1.1,Ld=-1.1,P0=-0,K0=-0,Hd=0,hR=null,W0=0,uc=-1.1,Bd=!1,$d=!1,dc=null,Lh=0,zo=0,Bi=null,eN=F.S;F.S=function(e,t){if(ZN=ua(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>cr&&0>Tn){cr=Pt();var a=$l(),n=Bl();(a!==Zr||n!==Mo)&&(Zr=-1.1),Qr=a,Mo=n}Ow(e,t)}eN!==null&&eN(e,t)};var Lo=te(null),Wn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},fc=[],mc=[],pc=[],hc=[],gc=[],bc=[],Ho=new Set;Wn.recordUnsafeLifecycleWarnings=function(e,t){Ho.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&fc.push(e),e.mode&Da&&typeof t.UNSAFE_componentWillMount=="function"&&mc.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&pc.push(e),e.mode&Da&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&hc.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&gc.push(e),e.mode&Da&&typeof t.UNSAFE_componentWillUpdate=="function"&&bc.push(e))},Wn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<fc.length&&(fc.forEach(function(p){e.add(q(p)||"Component"),Ho.add(p.type)}),fc=[]);var t=new Set;0<mc.length&&(mc.forEach(function(p){t.add(q(p)||"Component"),Ho.add(p.type)}),mc=[]);var a=new Set;0<pc.length&&(pc.forEach(function(p){a.add(q(p)||"Component"),Ho.add(p.type)}),pc=[]);var n=new Set;0<hc.length&&(hc.forEach(function(p){n.add(q(p)||"Component"),Ho.add(p.type)}),hc=[]);var o=new Set;0<gc.length&&(gc.forEach(function(p){o.add(q(p)||"Component"),Ho.add(p.type)}),gc=[]);var i=new Set;if(0<bc.length&&(bc.forEach(function(p){i.add(q(p)||"Component"),Ho.add(p.type)}),bc=[]),0<t.size){var f=v(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=v(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=v(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=v(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=v(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<o.size&&(f=v(o),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 Yd=new Map,tN=new Set;Wn.recordLegacyContextWarning=function(e,t){for(var a=null,n=e;n!==null;)n.mode&Da&&(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."):!tN.has(e.type)&&(n=Yd.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(n===void 0&&(n=[],Yd.set(a,n)),n.push(e))},Wn.flushLegacyContextWarning=function(){Yd.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(o){a.add(q(o)||"Component"),tN.add(o.type)});var n=v(a);Se(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)})}})},Wn.discardPendingWarnings=function(){fc=[],mc=[],pc=[],hc=[],gc=[],bc=[],Yd=new Map};var aN={react_stack_bottom_frame:function(e,t,a){var n=ks;ks=!0;try{return e(t,a)}finally{ks=n}}},Hh=aN.react_stack_bottom_frame.bind(aN),nN={react_stack_bottom_frame:function(e){var t=ks;ks=!0;try{return e.render()}finally{ks=t}}},sN=nN.react_stack_bottom_frame.bind(nN),rN={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){ht(e,e.return,a)}}},Bh=rN.react_stack_bottom_frame.bind(rN),oN={react_stack_bottom_frame:function(e,t,a,n,o){try{t.componentDidUpdate(a,n,o)}catch(i){ht(e,e.return,i)}}},iN=oN.react_stack_bottom_frame.bind(oN),lN={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},gR=lN.react_stack_bottom_frame.bind(lN),cN={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(n){ht(e,t,n)}}},uN=cN.react_stack_bottom_frame.bind(cN),dN={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},bR=dN.react_stack_bottom_frame.bind(dN),fN={react_stack_bottom_frame:function(e,t,a){try{a()}catch(n){ht(e,t,n)}}},yR=fN.react_stack_bottom_frame.bind(fN),mN={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},vR=mN.react_stack_bottom_frame.bind(mN),$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`."),$h=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."),qd=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."),Gd={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.')}},Bo=null,yc=!1,Yi=null,vc=0,Qe=null,Yh,pN=Yh=!1,hN={},gN={},bN={};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=q(e),o=n||"null";if(!hN[o]){hN[o]=!0,a=a._owner,e=e._debugOwner;var i="";e&&typeof e.tag=="number"&&(o=q(e))&&(i=`
|
|
225
|
+
|
|
226
|
+
Check the render method of \``+o+"`."),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=q(a):typeof a.name=="string"&&(n=a.name),n&&(f=" It was passed a child from "+n+".")),Se(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 $o=cy(!0),yN=cy(!1),vN=0,xN=1,NN=2,qh=3,Jr=!1,SN=!1,Gh=null,Ih=!1,qi=te(null),Id=te(0),dn=te(null),jn=null,Gi=1,xc=2,Ft=te(0),Fd=0,On=1,La=2,fn=4,Ha=8,Ii,wN=new Set,EN=new Set,Fh=new Set,DN=new Set,ur=0,$e=null,xt=null,Kt=null,Xd=!1,Fi=!1,Yo=!1,Qd=0,Nc=0,dr=null,xR=0,NR=25,G=null,An=null,fr=-1,Sc=!1,wc={readContext:Tt,use:Or,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};wc.useEffectEvent=$t;var Xh=null,RN=null,Qh=null,_N=null,Vs=null,es=null,Zd=null;Xh={readContext:function(e){return Tt(e)},use:Or,useCallback:function(e,t){return G="useCallback",Pe(),li(t),Gm(e,t)},useContext:function(e){return G="useContext",Pe(),Tt(e)},useEffect:function(e,t){return G="useEffect",Pe(),li(t),Yu(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",Pe(),li(a),qm(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",Pe(),li(t),Do(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",Pe(),li(t),Ym(e,t)},useMemo:function(e,t){G="useMemo",Pe(),li(t);var a=F.H;F.H=Vs;try{return Im(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",Pe();var n=F.H;F.H=Vs;try{return Om(e,t,a)}finally{F.H=n}},useRef:function(e){return G="useRef",Pe(),Bm(e)},useState:function(e){G="useState",Pe();var t=F.H;F.H=Vs;try{return zm(e)}finally{F.H=t}},useDebugValue:function(){G="useDebugValue",Pe()},useDeferredValue:function(e,t){return G="useDeferredValue",Pe(),Fm(e,t)},useTransition:function(){return G="useTransition",Pe(),Zm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",Pe(),Vm(e,t,a)},useId:function(){return G="useId",Pe(),Jm()},useFormState:function(e,t){return G="useFormState",Pe(),zu(),ui(e,t)},useActionState:function(e,t){return G="useActionState",Pe(),ui(e,t)},useOptimistic:function(e){return G="useOptimistic",Pe(),Lm(e)},useHostTransitionStatus:Ro,useMemoCache:Eo,useCacheRefresh:function(){return G="useCacheRefresh",Pe(),Pm()},useEffectEvent:function(e){return G="useEffectEvent",Pe(),$m(e)}},RN={readContext:function(e){return Tt(e)},use:Or,useCallback:function(e,t){return G="useCallback",re(),Gm(e,t)},useContext:function(e){return G="useContext",re(),Tt(e)},useEffect:function(e,t){return G="useEffect",re(),Yu(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",re(),qm(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",re(),Do(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",re(),Ym(e,t)},useMemo:function(e,t){G="useMemo",re();var a=F.H;F.H=Vs;try{return Im(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",re();var n=F.H;F.H=Vs;try{return Om(e,t,a)}finally{F.H=n}},useRef:function(e){return G="useRef",re(),Bm(e)},useState:function(e){G="useState",re();var t=F.H;F.H=Vs;try{return zm(e)}finally{F.H=t}},useDebugValue:function(){G="useDebugValue",re()},useDeferredValue:function(e,t){return G="useDeferredValue",re(),Fm(e,t)},useTransition:function(){return G="useTransition",re(),Zm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",re(),Vm(e,t,a)},useId:function(){return G="useId",re(),Jm()},useActionState:function(e,t){return G="useActionState",re(),ui(e,t)},useFormState:function(e,t){return G="useFormState",re(),zu(),ui(e,t)},useOptimistic:function(e){return G="useOptimistic",re(),Lm(e)},useHostTransitionStatus:Ro,useMemoCache:Eo,useCacheRefresh:function(){return G="useCacheRefresh",re(),Pm()},useEffectEvent:function(e){return G="useEffectEvent",re(),$m(e)}},Qh={readContext:function(e){return Tt(e)},use:Or,useCallback:function(e,t){return G="useCallback",re(),Iu(e,t)},useContext:function(e){return G="useContext",re(),Tt(e)},useEffect:function(e,t){G="useEffect",re(),Ia(2048,Ha,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",re(),Gu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",re(),Ia(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",re(),Ia(4,fn,e,t)},useMemo:function(e,t){G="useMemo",re();var a=F.H;F.H=es;try{return Fu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",re();var n=F.H;F.H=es;try{return ci(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",re(),bt().memoizedState},useState:function(){G="useState",re();var e=F.H;F.H=es;try{return ci(Zn)}finally{F.H=e}},useDebugValue:function(){G="useDebugValue",re()},useDeferredValue:function(e,t){return G="useDeferredValue",re(),Ty(e,t)},useTransition:function(){return G="useTransition",re(),zy()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",re(),Hu(e,t,a)},useId:function(){return G="useId",re(),bt().memoizedState},useFormState:function(e){return G="useFormState",re(),zu(),Bu(e)},useActionState:function(e){return G="useActionState",re(),Bu(e)},useOptimistic:function(e,t){return G="useOptimistic",re(),Ny(e,t)},useHostTransitionStatus:Ro,useMemoCache:Eo,useCacheRefresh:function(){return G="useCacheRefresh",re(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",re(),qu(e)}},_N={readContext:function(e){return Tt(e)},use:Or,useCallback:function(e,t){return G="useCallback",re(),Iu(e,t)},useContext:function(e){return G="useContext",re(),Tt(e)},useEffect:function(e,t){G="useEffect",re(),Ia(2048,Ha,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",re(),Gu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",re(),Ia(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",re(),Ia(4,fn,e,t)},useMemo:function(e,t){G="useMemo",re();var a=F.H;F.H=Zd;try{return Fu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",re();var n=F.H;F.H=Zd;try{return kl(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",re(),bt().memoizedState},useState:function(){G="useState",re();var e=F.H;F.H=Zd;try{return kl(Zn)}finally{F.H=e}},useDebugValue:function(){G="useDebugValue",re()},useDeferredValue:function(e,t){return G="useDeferredValue",re(),jy(e,t)},useTransition:function(){return G="useTransition",re(),Ly()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",re(),Hu(e,t,a)},useId:function(){return G="useId",re(),bt().memoizedState},useFormState:function(e){return G="useFormState",re(),zu(),$u(e)},useActionState:function(e){return G="useActionState",re(),$u(e)},useOptimistic:function(e,t){return G="useOptimistic",re(),wy(e,t)},useHostTransitionStatus:Ro,useMemoCache:Eo,useCacheRefresh:function(){return G="useCacheRefresh",re(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",re(),qu(e)}},Vs={readContext:function(e){return y(),Tt(e)},use:function(e){return g(),Or(e)},useCallback:function(e,t){return G="useCallback",g(),Pe(),Gm(e,t)},useContext:function(e){return G="useContext",g(),Pe(),Tt(e)},useEffect:function(e,t){return G="useEffect",g(),Pe(),Yu(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",g(),Pe(),qm(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",g(),Pe(),Do(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),Pe(),Ym(e,t)},useMemo:function(e,t){G="useMemo",g(),Pe();var a=F.H;F.H=Vs;try{return Im(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",g(),Pe();var n=F.H;F.H=Vs;try{return Om(e,t,a)}finally{F.H=n}},useRef:function(e){return G="useRef",g(),Pe(),Bm(e)},useState:function(e){G="useState",g(),Pe();var t=F.H;F.H=Vs;try{return zm(e)}finally{F.H=t}},useDebugValue:function(){G="useDebugValue",g(),Pe()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),Pe(),Fm(e,t)},useTransition:function(){return G="useTransition",g(),Pe(),Zm()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",g(),Pe(),Vm(e,t,a)},useId:function(){return G="useId",g(),Pe(),Jm()},useFormState:function(e,t){return G="useFormState",g(),Pe(),ui(e,t)},useActionState:function(e,t){return G="useActionState",g(),Pe(),ui(e,t)},useOptimistic:function(e){return G="useOptimistic",g(),Pe(),Lm(e)},useMemoCache:function(e){return g(),Eo(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return G="useCacheRefresh",Pe(),Pm()},useEffectEvent:function(e){return G="useEffectEvent",g(),Pe(),$m(e)}},es={readContext:function(e){return y(),Tt(e)},use:function(e){return g(),Or(e)},useCallback:function(e,t){return G="useCallback",g(),re(),Iu(e,t)},useContext:function(e){return G="useContext",g(),re(),Tt(e)},useEffect:function(e,t){G="useEffect",g(),re(),Ia(2048,Ha,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",g(),re(),Gu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",g(),re(),Ia(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),re(),Ia(4,fn,e,t)},useMemo:function(e,t){G="useMemo",g(),re();var a=F.H;F.H=es;try{return Fu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",g(),re();var n=F.H;F.H=es;try{return ci(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",g(),re(),bt().memoizedState},useState:function(){G="useState",g(),re();var e=F.H;F.H=es;try{return ci(Zn)}finally{F.H=e}},useDebugValue:function(){G="useDebugValue",g(),re()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),re(),Ty(e,t)},useTransition:function(){return G="useTransition",g(),re(),zy()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",g(),re(),Hu(e,t,a)},useId:function(){return G="useId",g(),re(),bt().memoizedState},useFormState:function(e){return G="useFormState",g(),re(),Bu(e)},useActionState:function(e){return G="useActionState",g(),re(),Bu(e)},useOptimistic:function(e,t){return G="useOptimistic",g(),re(),Ny(e,t)},useMemoCache:function(e){return g(),Eo(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return G="useCacheRefresh",re(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",g(),re(),qu(e)}},Zd={readContext:function(e){return y(),Tt(e)},use:function(e){return g(),Or(e)},useCallback:function(e,t){return G="useCallback",g(),re(),Iu(e,t)},useContext:function(e){return G="useContext",g(),re(),Tt(e)},useEffect:function(e,t){G="useEffect",g(),re(),Ia(2048,Ha,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",g(),re(),Gu(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",g(),re(),Ia(4,La,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",g(),re(),Ia(4,fn,e,t)},useMemo:function(e,t){G="useMemo",g(),re();var a=F.H;F.H=es;try{return Fu(e,t)}finally{F.H=a}},useReducer:function(e,t,a){G="useReducer",g(),re();var n=F.H;F.H=es;try{return kl(e,t,a)}finally{F.H=n}},useRef:function(){return G="useRef",g(),re(),bt().memoizedState},useState:function(){G="useState",g(),re();var e=F.H;F.H=es;try{return kl(Zn)}finally{F.H=e}},useDebugValue:function(){G="useDebugValue",g(),re()},useDeferredValue:function(e,t){return G="useDeferredValue",g(),re(),jy(e,t)},useTransition:function(){return G="useTransition",g(),re(),Ly()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",g(),re(),Hu(e,t,a)},useId:function(){return G="useId",g(),re(),bt().memoizedState},useFormState:function(e){return G="useFormState",g(),re(),$u(e)},useActionState:function(e){return G="useActionState",g(),re(),$u(e)},useOptimistic:function(e,t){return G="useOptimistic",g(),re(),wy(e,t)},useMemoCache:function(e){return g(),Eo(e)},useHostTransitionStatus:Ro,useCacheRefresh:function(){return G="useCacheRefresh",re(),bt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",g(),re(),qu(e)}};var kN={},CN=new Set,UN=new Set,TN=new Set,jN=new Set,ON=new Set,AN=new Set,VN=new Set,MN=new Set,zN=new Set,LN=new Set;Object.freeze(kN);var Zh={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=rn(e),o=Cr(n);o.payload=t,a!=null&&(Wm(a),o.callback=a),t=Ur(e,o,n),t!==null&&(ms(n,"this.setState()",e),Ht(t,e,n),El(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=rn(e),o=Cr(n);o.tag=xN,o.payload=t,a!=null&&(Wm(a),o.callback=a),t=Ur(e,o,n),t!==null&&(ms(n,"this.replaceState()",e),Ht(t,e,n),El(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=rn(e),n=Cr(a);n.tag=NN,t!=null&&(Wm(t),n.callback=t),t=Ur(e,n,a),t!==null&&(ms(a,"this.forceUpdate()",e),Ht(t,e,a),El(t,e,a))}},Xi=null,Jh=null,Ph=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."),Wt=!1,HN={},BN={},$N={},YN={},Qi=!1,qN={},Jd={},Kh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},GN=!1,IN=null;IN=new Set;var mr=!1,ea=!1,Wh=!1,FN=typeof WeakSet=="function"?WeakSet:Set,fa=null,Zi=null,Ji=null,ta=null,Qa=!1,ts=null,sa=!1,Ec=8192,SR={getCacheForType:function(e){var t=Tt(Jt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Tt(Jt).controller.signal},getOwner:function(){return cn}};if(typeof Symbol=="function"&&Symbol.for){var Dc=Symbol.for;Dc("selector.component"),Dc("selector.has_pseudo_class"),Dc("selector.role"),Dc("selector.test_id"),Dc("selector.text")}var wR=[],ER=typeof WeakMap=="function"?WeakMap:Map,ma=0,ra=2,mn=4,pr=0,Rc=1,qo=2,Pd=3,Pr=4,Kd=6,XN=5,dt=ma,Nt=null,Je=null,Ze=0,Za=0,Wd=1,Go=2,_c=3,QN=4,eg=5,kc=6,ef=7,tg=8,Io=9,yt=Za,pn=null,Kr=!1,Pi=!1,ag=!1,Ms=0,At=pr,Wr=0,eo=0,ng=0,Ja=0,Fo=0,Cc=null,Ba=null,tf=!1,af=0,ZN=0,JN=300,nf=1/0,PN=500,Uc=null,Yt=null,to=null,sf=0,sg=1,rg=2,KN=3,ao=0,WN=1,e1=2,t1=3,a1=4,rf=5,aa=0,no=null,Ki=null,as=0,og=0,ig=-0,lg=null,n1=null,s1=null,ns=sf,r1=null,DR=50,Tc=0,cg=null,ug=!1,of=!1,RR=50,Xo=0,jc=null,Wi=!1,lf=null,o1=!1,i1=new Set,_R={},cf=null,el=null,dg=!1,fg=!1,uf=!1,mg=!1,so=0,pg={};(function(){for(var e=0;e<Dh.length;e++){var t=Dh[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Xn(a,"on"+t)}Xn(z0,"onAnimationEnd"),Xn(L0,"onAnimationIteration"),Xn(H0,"onAnimationStart"),Xn("dblclick","onDoubleClick"),Xn("focusin","onFocus"),Xn("focusout","onBlur"),Xn(aR,"onTransitionRun"),Xn(nR,"onTransitionStart"),Xn(sR,"onTransitionCancel"),Xn(B0,"onTransitionEnd")})(),Ge("onMouseEnter",["mouseout","mouseover"]),Ge("onMouseLeave",["mouseout","mouseover"]),Ge("onPointerEnter",["pointerout","pointerover"]),Ge("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 Oc="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(" "),hg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oc)),df="_reactListening"+Math.random().toString(36).slice(2),l1=!1,c1=!1,ff=!1,u1=!1,mf=!1,pf=!1,d1=!1,hf={},kR=/\r\n?/g,CR=/\u0000|\uFFFD/g,Qo="http://www.w3.org/1999/xlink",gg="http://www.w3.org/XML/1998/namespace",UR="javascript:throw new Error('React form unexpectedly submitted.')",TR="suppressHydrationWarning",Zo="&",gf="/&",Ac="$",Vc="/$",ro="$?",Jo="$~",tl="$!",jR="html",OR="body",AR="head",bg="F!",f1="F",m1="loading",VR="style",hr=0,al=1,bf=2,yg=null,vg=null,p1={dialog:!0,webview:!0},xg=null,Mc=void 0,h1=typeof setTimeout=="function"?setTimeout:void 0,MR=typeof clearTimeout=="function"?clearTimeout:void 0,Po=-1,g1=typeof Promise=="function"?Promise:void 0,zR=typeof queueMicrotask=="function"?queueMicrotask:typeof g1<"u"?function(e){return g1.resolve(null).then(e).catch(vE)}:h1,Ng=null,Ko=0,zc=1,b1=2,y1=3,Vn=4,Mn=new Map,v1=new Set,gr=gt.d;gt.d={f:function(){var e=gr.f(),t=hi();return e||t},r:function(e){var t=de(e);t!==null&&t.tag===5&&t.type==="form"?My(t):gr.r(e)},D:function(e){gr.D(e),Cx("dns-prefetch",e,null)},C:function(e,t){gr.C(e,t),Cx("preconnect",e,t)},L:function(e,t,a){gr.L(e,t,a);var n=nl;if(n&&e&&t){var o='link[rel="preload"][as="'+Ne(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Ne(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Ne(a.imageSizes)+'"]')):o+='[href="'+Ne(e)+'"]';var i=o;switch(t){case"style":i=yi(e);break;case"script":i=vi(e)}Mn.has(i)||(e=Ke({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Mn.set(i,e),n.querySelector(o)!==null||t==="style"&&n.querySelector(ql(i))||t==="script"&&n.querySelector(Gl(i))||(t=n.createElement("link"),ga(t,"link",e),ke(t),n.head.appendChild(t)))}},m:function(e,t){gr.m(e,t);var a=nl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Ne(n)+'"][href="'+Ne(e)+'"]',i=o;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=vi(e)}if(!Mn.has(i)&&(e=Ke({rel:"modulepreload",href:e},t),Mn.set(i,e),a.querySelector(o)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Gl(i)))return}n=a.createElement("link"),ga(n,"link",e),ke(n),a.head.appendChild(n)}}},X:function(e,t){gr.X(e,t);var a=nl;if(a&&e){var n=Be(a).hoistableScripts,o=vi(e),i=n.get(o);i||(i=a.querySelector(Gl(o)),i||(e=Ke({src:e,async:!0},t),(t=Mn.get(o))&&qp(e,t),i=a.createElement("script"),ke(i),ga(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(o,i))}},S:function(e,t,a){gr.S(e,t,a);var n=nl;if(n&&e){var o=Be(n).hoistableStyles,i=yi(e);t=t||"default";var f=o.get(i);if(!f){var p={loading:Ko,preload:null};if(f=n.querySelector(ql(i)))p.loading=zc|Vn;else{e=Ke({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Mn.get(i))&&Yp(e,a);var b=f=n.createElement("link");ke(b),ga(b,"link",e),b._p=new Promise(function(N,A){b.onload=N,b.onerror=A}),b.addEventListener("load",function(){p.loading|=zc}),b.addEventListener("error",function(){p.loading|=b1}),p.loading|=Vn,dd(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:p},o.set(i,f)}}},M:function(e,t){gr.M(e,t);var a=nl;if(a&&e){var n=Be(a).hoistableScripts,o=vi(e),i=n.get(o);i||(i=a.querySelector(Gl(o)),i||(e=Ke({src:e,async:!0,type:"module"},t),(t=Mn.get(o))&&qp(e,t),i=a.createElement("script"),ke(i),ga(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(o,i))}}};var nl=typeof document>"u"?null:document,yf=null,LR=6e4,HR=800,BR=500,Sg=0,wg=null,vf=null,Wo=eD,Lc={$$typeof:_s,Provider:null,Consumer:null,_currentValue:Wo,_currentValue2:Wo,_threadCount:0},x1="%c%s%c",N1="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",S1="",xf=" ",$R=Function.prototype.bind,w1=!1,E1=null,D1=null,R1=null,_1=null,k1=null,C1=null,U1=null,T1=null,j1=null,O1=null;E1=function(e,t,a,n){t=s(e,t),t!==null&&(a=r(t.memoizedState,a,0,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=Ke({},e.memoizedProps),a=wa(e,2),a!==null&&Ht(a,e,2))},D1=function(e,t,a){t=s(e,t),t!==null&&(a=u(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=Ke({},e.memoizedProps),a=wa(e,2),a!==null&&Ht(a,e,2))},R1=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=Ke({},e.memoizedProps),a=wa(e,2),a!==null&&Ht(a,e,2))},_1=function(e,t,a){e.pendingProps=r(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wa(e,2),t!==null&&Ht(t,e,2)},k1=function(e,t){e.pendingProps=u(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wa(e,2),t!==null&&Ht(t,e,2)},C1=function(e,t,a){e.pendingProps=l(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=wa(e,2),t!==null&&Ht(t,e,2)},U1=function(e){var t=wa(e,2);t!==null&&Ht(t,e,2)},T1=function(e){var t=Lt(),a=wa(e,t);a!==null&&Ht(a,e,t)},j1=function(e){h=e},O1=function(e){d=e};var Nf=!0,Sf=null,Eg=!1,oo=null,io=null,lo=null,Hc=new Map,Bc=new Map,co=[],YR="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(" "),wf=null;if(gd.prototype.render=Zp.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,o=rn(n);Gp(n,o,a,t,null,null)},gd.prototype.unmount=Zp.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;(dt&(ra|mn))!==ma&&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."),Gp(e.current,2,null,e,null,null),hi(),t[Br]=null}},gd.prototype.unstable_scheduleHydration=function(e){if(e){var t=qn();e={blockedOn:null,target:e,priority:t};for(var a=0;a<co.length&&t!==0&&t<co[a].priority;a++);co.splice(a,0,e),a===0&&qx(e)}},(function(){var e=Jp.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"),gt.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=be(t),e=e!==null?J(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.4"};return e.overrideHookState=E1,e.overrideHookStateDeletePath=D1,e.overrideHookStateRenamePath=R1,e.overrideProps=_1,e.overridePropsDeletePath=k1,e.overridePropsRenamePath=C1,e.scheduleUpdate=U1,e.scheduleRetry=T1,e.setErrorHandler=j1,e.setSuspenseHandler=O1,e.scheduleRefresh=j,e.scheduleRoot=R,e.setRefreshHandler=H,e.getCurrentFiber=IE,He(e)})()&&js&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var A1=window.location.protocol;/^(https?|file):$/.test(A1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(A1==="file:"?`
|
|
232
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Yc.createRoot=function(e,t){if(!L(e))throw Error("Target container is not a DOM element.");Xx(e);var a=!1,n="",o=Gy,i=Iy,f=Fy;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===Rs&&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&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Mx(e,1,!1,null,null,a,n,null,o,i,f,Fx),e[Br]=t.current,Up(e),new Zp(t)},Yc.hydrateRoot=function(e,t,a){if(!L(e))throw Error("Target container is not a DOM element.");Xx(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var n=!1,o="",i=Gy,f=Iy,p=Fy,b=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(o=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&&(b=a.formState)),t=Mx(e,1,!0,t,a??null,n,o,b,i,f,p,Fx),t.context=zx(null),a=t.current,n=rn(a),n=Nn(n),o=Cr(n),o.callback=null,Ur(a,o,n),ms(n,"hydrateRoot()",null),a=n,t.current.lanes=a,xn(t,a),Es(t),e[Br]=t.current,Up(e),new gd(t)},Yc.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Yc}var dS;function ok(){return dS||(dS=1,jg.exports=rk()),jg.exports}var ik=ok();var b4=s=>{throw TypeError(s)},lk=(s,r,l)=>r.has(s)||b4("Cannot "+l),Mg=(s,r,l)=>(lk(s,r,"read from private field"),l?l.call(s):r.get(s)),ck=(s,r,l)=>r.has(s)?b4("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(s):r.set(s,l),fS="popstate";function mS(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function uk(s={}){function r(c,u){let d=u.state?.masked,{pathname:h,search:g,hash:y}=d||c.location;return eu("",{pathname:h,search:g,hash:y},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:Ls(u)}return fk(r,l,null,s)}function tt(s,r){if(s===!1||s===null||typeof s>"u")throw new Error(r)}function qt(s,r){if(!s){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function dk(){return Math.random().toString(36).substring(2,10)}function pS(s,r){return{usr:s.state,key:s.key,idx:r,masked:s.unstable_mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function eu(s,r,l=null,c,u){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof r=="string"?xr(r):r,state:l,key:r&&r.key||c||dk(),unstable_mask:u}}function Ls({pathname:s="/",search:r="",hash:l=""}){return r&&r!=="?"&&(s+=r.charAt(0)==="?"?r:"?"+r),l&&l!=="#"&&(s+=l.charAt(0)==="#"?l:"#"+l),s}function xr(s){let r={};if(s){let l=s.indexOf("#");l>=0&&(r.hash=s.substring(l),s=s.substring(0,l));let c=s.indexOf("?");c>=0&&(r.search=s.substring(c),s=s.substring(0,c)),s&&(r.pathname=s)}return r}function fk(s,r,l,c={}){let{window:u=document.defaultView,v5Compat:d=!1}=c,h=u.history,g="POP",y=null,x=D();x==null&&(x=0,h.replaceState({...h.state,idx:x},""));function D(){return(h.state||{idx:null}).idx}function v(){g="POP";let L=D(),Q=L==null?null:L-x;x=L,y&&y({action:g,location:H.location,delta:Q})}function S(L,Q){g="PUSH";let Z=mS(L)?L:eu(H.location,L,Q);x=D()+1;let se=pS(Z,x),fe=H.createHref(Z.unstable_mask||Z);try{h.pushState(se,"",fe)}catch(be){if(be instanceof DOMException&&be.name==="DataCloneError")throw be;u.location.assign(fe)}d&&y&&y({action:g,location:H.location,delta:1})}function R(L,Q){g="REPLACE";let Z=mS(L)?L:eu(H.location,L,Q);x=D();let se=pS(Z,x),fe=H.createHref(Z.unstable_mask||Z);h.replaceState(se,"",fe),d&&y&&y({action:g,location:H.location,delta:0})}function j(L){return y4(L)}let H={get action(){return g},get location(){return s(u,h)},listen(L){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(fS,v),y=L,()=>{u.removeEventListener(fS,v),y=null}},createHref(L){return r(u,L)},createURL:j,encodeLocation(L){let Q=j(L);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:S,replace:R,go(L){return h.go(L)}};return H}function y4(s,r=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),tt(l,"No window.location.(origin|href) available to create URL");let c=typeof s=="string"?s:Ls(s);return c=c.replace(/ $/,"%20"),!r&&c.startsWith("//")&&(c=l+c),new URL(c,l)}var Qc,hS=class{constructor(s){if(ck(this,Qc,new Map),s)for(let[r,l]of s)this.set(r,l)}get(s){if(Mg(this,Qc).has(s))return Mg(this,Qc).get(s);if(s.defaultValue!==void 0)return s.defaultValue;throw new Error("No value found for context")}set(s,r){Mg(this,Qc).set(s,r)}};Qc=new WeakMap;var mk=new Set(["lazy","caseSensitive","path","id","index","children"]);function pk(s){return mk.has(s)}var hk=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function gk(s){return hk.has(s)}function bk(s){return s.index===!0}function tu(s,r,l=[],c={},u=!1){return s.map((d,h)=>{let g=[...l,String(h)],y=typeof d.id=="string"?d.id:g.join("-");if(tt(d.index!==!0||!d.children,"Cannot specify children on an index route"),tt(u||!c[y],`Found a route id collision on id "${y}". Route id's must be globally unique within Data Router usages`),bk(d)){let x={...d,id:y};return c[y]=gS(x,r(x)),x}else{let x={...d,id:y,children:void 0};return c[y]=gS(x,r(x)),d.children&&(x.children=tu(d.children,r,g,c,u)),x}})}function gS(s,r){return Object.assign(s,{...r,...typeof r.lazy=="object"&&r.lazy!=null?{lazy:{...s.lazy,...r.lazy}}:{}})}function fo(s,r,l="/"){return Zc(s,r,l,!1)}function Zc(s,r,l,c){let u=typeof r=="string"?xr(r):r,d=Ln(u.pathname||"/",l);if(d==null)return null;let h=v4(s);vk(h);let g=null;for(let y=0;g==null&&y<h.length;++y){let x=Uk(d);g=kk(h[y],x,c)}return g}function yk(s,r){let{route:l,pathname:c,params:u}=s;return{id:l.id,pathname:c,params:u,data:r[l.id],loaderData:r[l.id],handle:l.handle}}function v4(s,r=[],l=[],c="",u=!1){let d=(h,g,y=u,x)=>{let D={relativePath:x===void 0?h.path||"":x,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(D.relativePath.startsWith("/")){if(!D.relativePath.startsWith(c)&&y)return;tt(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 v=ss([c,D.relativePath]),S=l.concat(D);h.children&&h.children.length>0&&(tt(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),v4(h.children,r,S,v,y)),!(h.path==null&&!h.index)&&r.push({path:v,score:Rk(v,h.index),routesMeta:S})};return s.forEach((h,g)=>{if(h.path===""||!h.path?.includes("?"))d(h,g);else for(let y of x4(h.path))d(h,g,!0,y)}),r}function x4(s){let r=s.split("/");if(r.length===0)return[];let[l,...c]=r,u=l.endsWith("?"),d=l.replace(/\?$/,"");if(c.length===0)return u?[d,""]:[d];let h=x4(c.join("/")),g=[];return g.push(...h.map(y=>y===""?d:[d,y].join("/"))),u&&g.push(...h),g.map(y=>s.startsWith("/")&&y===""?"/":y)}function vk(s){s.sort((r,l)=>r.score!==l.score?l.score-r.score:_k(r.routesMeta.map(c=>c.childrenIndex),l.routesMeta.map(c=>c.childrenIndex)))}var xk=/^:[\w-]+$/,Nk=3,Sk=2,wk=1,Ek=10,Dk=-2,bS=s=>s==="*";function Rk(s,r){let l=s.split("/"),c=l.length;return l.some(bS)&&(c+=Dk),r&&(c+=Sk),l.filter(u=>!bS(u)).reduce((u,d)=>u+(xk.test(d)?Nk:d===""?wk:Ek),c)}function _k(s,r){return s.length===r.length&&s.slice(0,-1).every((c,u)=>c===r[u])?s[s.length-1]-r[r.length-1]:0}function kk(s,r,l=!1){let{routesMeta:c}=s,u={},d="/",h=[];for(let g=0;g<c.length;++g){let y=c[g],x=g===c.length-1,D=d==="/"?r:r.slice(d.length)||"/",v=Hf({path:y.relativePath,caseSensitive:y.caseSensitive,end:x},D),S=y.route;if(!v&&x&&l&&!c[c.length-1].route.index&&(v=Hf({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},D)),!v)return null;Object.assign(u,v.params),h.push({params:u,pathname:ss([d,v.pathname]),pathnameBase:Ok(ss([d,v.pathnameBase])),route:S}),v.pathnameBase!=="/"&&(d=ss([d,v.pathnameBase]))}return h}function Hf(s,r){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[l,c]=Ck(s.path,s.caseSensitive,s.end),u=r.match(l);if(!u)return null;let d=u[0],h=d.replace(/(.)\/+$/,"$1"),g=u.slice(1);return{params:c.reduce((x,{paramName:D,isOptional:v},S)=>{if(D==="*"){let j=g[S]||"";h=d.slice(0,d.length-j.length).replace(/(.)\/+$/,"$1")}const R=g[S];return v&&!R?x[D]=void 0:x[D]=(R||"").replace(/%2F/g,"/"),x},{}),pathname:d,pathnameBase:h,pattern:s}}function Ck(s,r=!1,l=!0){qt(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,y,x,D)=>{if(c.push({paramName:g,isOptional:y!=null}),y){let v=D.charAt(x+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(c.push({paramName:"*"}),u+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?u+="\\/*$":s!==""&&s!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,r?void 0:"i"),c]}function Uk(s){try{return s.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return qt(!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 (${r}).`),s}}function Ln(s,r){if(r==="/")return s;if(!s.toLowerCase().startsWith(r.toLowerCase()))return null;let l=r.endsWith("/")?r.length-1:r.length,c=s.charAt(l);return c&&c!=="/"?null:s.slice(l)||"/"}function Tk({basename:s,pathname:r}){return r==="/"?s:ss([s,r])}var N4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eb=s=>N4.test(s);function jk(s,r="/"){let{pathname:l,search:c="",hash:u=""}=typeof s=="string"?xr(s):s,d;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?d=yS(l.substring(1),"/"):d=yS(l,r)):d=r,{pathname:d,search:Ak(c),hash:Vk(u)}}function yS(s,r){let l=r.replace(/\/+$/,"").split("/");return s.split("/").forEach(u=>{u===".."?l.length>1&&l.pop():u!=="."&&l.push(u)}),l.length>1?l.join("/"):"/"}function zg(s,r,l,c){return`Cannot include a '${s}' character in a manually specified \`to.${r}\` 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 S4(s){return s.filter((r,l)=>l===0||r.route.path&&r.route.path.length>0)}function Yf(s){let r=S4(s);return r.map((l,c)=>c===r.length-1?l.pathname:l.pathnameBase)}function ru(s,r,l,c=!1){let u;typeof s=="string"?u=xr(s):(u={...s},tt(!u.pathname||!u.pathname.includes("?"),zg("?","pathname","search",u)),tt(!u.pathname||!u.pathname.includes("#"),zg("#","pathname","hash",u)),tt(!u.search||!u.search.includes("#"),zg("#","search","hash",u)));let d=s===""||u.pathname==="",h=d?"/":u.pathname,g;if(h==null)g=l;else{let v=r.length-1;if(!c&&h.startsWith("..")){let S=h.split("/");for(;S[0]==="..";)S.shift(),v-=1;u.pathname=S.join("/")}g=v>=0?r[v]:"/"}let y=jk(u,g),x=h&&h!=="/"&&h.endsWith("/"),D=(d||h===".")&&l.endsWith("/");return!y.pathname.endsWith("/")&&(x||D)&&(y.pathname+="/"),y}var ss=s=>s.join("/").replace(/\/\/+/g,"/"),Ok=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),Ak=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Vk=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,ou=class{constructor(s,r,l,c=!1){this.status=s,this.statusText=r||"",this.internal=c,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function au(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function iu(s){return s.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var w4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function E4(s,r){let l=s;if(typeof l!="string"||!N4.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let c=l,u=!1;if(w4)try{let d=new URL(window.location.href),h=l.startsWith("//")?new URL(d.protocol+l):new URL(l),g=Ln(h.pathname,r);h.origin===d.origin&&g!=null?l=g+h.search+h.hash:u=!0}catch{qt(!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 po=Symbol("Uninstrumented");function Mk(s,r){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};s.forEach(u=>u({id:r.id,index:r.index,path:r.path,instrument(d){let h=Object.keys(l);for(let g of h)d[g]&&l[g].push(d[g])}}));let c={};if(typeof r.lazy=="function"&&l.lazy.length>0){let u=ll(l.lazy,r.lazy,()=>{});u&&(c.lazy=u)}if(typeof r.lazy=="object"){let u=r.lazy;["middleware","loader","action"].forEach(d=>{let h=u[d],g=l[`lazy.${d}`];if(typeof h=="function"&&g.length>0){let y=ll(g,h,()=>{});y&&(c.lazy=Object.assign(c.lazy||{},{[d]:y}))}})}return["loader","action"].forEach(u=>{let d=r[u];if(typeof d=="function"&&l[u].length>0){let h=d[po]??d,g=ll(l[u],h,(...y)=>vS(y[0]));g&&(u==="loader"&&h.hydrate===!0&&(g.hydrate=!0),g[po]=h,c[u]=g)}}),r.middleware&&r.middleware.length>0&&l.middleware.length>0&&(c.middleware=r.middleware.map(u=>{let d=u[po]??u,h=ll(l.middleware,d,(...g)=>vS(g[0]));return h?(h[po]=d,h):u})),c}function zk(s,r){let l={navigate:[],fetch:[]};if(r.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[po]??s.navigate,u=ll(l.navigate,c,(...d)=>{let[h,g]=d;return{to:typeof h=="number"||typeof h=="string"?h:h?Ls(h):".",...xS(s,g??{})}});u&&(u[po]=c,s.navigate=u)}if(l.fetch.length>0){let c=s.fetch[po]??s.fetch,u=ll(l.fetch,c,(...d)=>{let[h,,g,y]=d;return{href:g??".",fetcherKey:h,...xS(s,y??{})}});u&&(u[po]=c,s.fetch=u)}return s}function ll(s,r,l){return s.length===0?null:async(...c)=>{let u=await D4(s,l(...c),()=>r(...c),s.length-1);if(u.type==="error")throw u.value;return u.value}}async function D4(s,r,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=D4(s,r,l,c-1),d=await h,tt(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,r)}catch(y){console.error("An instrumentation function threw an error:",y)}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 vS(s){let{request:r,context:l,params:c,unstable_pattern:u}=s;return{request:Lk(r),params:{...c},unstable_pattern:u,context:Hk(l)}}function xS(s,r){return{currentUrl:Ls(s.state.location),..."formMethod"in r?{formMethod:r.formMethod}:{},..."formEncType"in r?{formEncType:r.formEncType}:{},..."formData"in r?{formData:r.formData}:{},..."body"in r?{body:r.body}:{}}}function Lk(s){return{method:s.method,url:s.url,headers:{get:(...r)=>s.headers.get(...r)}}}function Hk(s){if($k(s)){let r={...s};return Object.freeze(r),r}else return{get:r=>s.get(r)}}var Bk=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $k(s){if(s===null||typeof s!="object")return!1;const r=Object.getPrototypeOf(s);return r===Object.prototype||r===null||Object.getOwnPropertyNames(r).sort().join("\0")===Bk}var R4=["POST","PUT","PATCH","DELETE"],Yk=new Set(R4),qk=["GET",...R4],Gk=new Set(qk),_4=new Set([301,302,303,307,308]),Ik=new Set([307,308]),Lg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Fk={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Xk=s=>({hasErrorBoundary:!!s.hasErrorBoundary}),k4="remix-router-transitions",C4=Symbol("ResetLoaderData");function Qk(s){const r=s.window?s.window:typeof window<"u"?window:void 0,l=typeof r<"u"&&typeof r.document<"u"&&typeof r.document.createElement<"u";tt(s.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=s.hydrationRouteProperties||[],u=s.mapRouteProperties||Xk,d=u;if(s.unstable_instrumentations){let C=s.unstable_instrumentations;d=z=>({...u(z),...Mk(C.map(I=>I.route).filter(Boolean),z)})}let h={},g=tu(s.routes,d,void 0,h),y,x=s.basename||"/";x.startsWith("/")||(x=`/${x}`);let D=s.dataStrategy||Wk,v={...s.future},S=null,R=new Set,j=null,H=null,L=null,Q=s.hydrationData!=null,Z=fo(g,s.history.location,x),se=!1,fe=null,be,J;if(Z==null&&!s.patchRoutesOnNavigation){let C=zn(404,{pathname:s.history.location.pathname}),{matches:z,route:I}=Rf(g);be=!0,J=!be,Z=z,fe={[I.id]:C}}else if(Z&&!s.hydrationData&&Ua(Z,g,s.history.location.pathname).active&&(Z=null),Z)if(Z.some(C=>C.route.lazy))be=!1,J=!be;else if(!Z.some(C=>tb(C.route)))be=!0,J=!be;else{let C=s.hydrationData?s.hydrationData.loaderData:null,z=s.hydrationData?s.hydrationData.errors:null,I=Z;if(z){let oe=Z.findIndex(ue=>z[ue.route.id]!==void 0);I=I.slice(0,oe+1)}J=!1,be=I.every(oe=>{let ue=U4(oe.route,C,z);return J=J||ue.renderFallback,!ue.shouldLoad})}else{be=!1,J=!be,Z=[];let C=Ua(null,g,s.history.location.pathname);C.active&&C.matches&&(se=!0,Z=C.matches)}let ee,_={historyAction:s.history.action,location:s.history.location,matches:Z,initialized:be,renderFallback:J,navigation:Lg,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||fe,fetchers:new Map,blockers:new Map},X="POP",q=null,te=!1,Y,ce=!1,K=new Map,ie=null,W=!1,me=!1,ye=new Set,pe=new Map,ae=0,B=-1,ve=new Map,he=new Set,Ee=new Map,nt=new Map,Vt=new Set,qe=new Map,Mt,zt=null;function Ka(){if(S=s.history.listen(({action:C,location:z,delta:I})=>{if(Mt){Mt(),Mt=void 0;return}qt(qe.size===0||I!=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&&I!=null){let ue=new Promise(Ce=>{Mt=Ce});s.history.go(I*-1),de(oe,{state:"blocked",location:z,proceed(){de(oe,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),ue.then(()=>s.history.go(I))},reset(){let Ce=new Map(_.blockers);Ce.set(oe,qc),Et({blockers:Ce})}}),q?.resolve(),q=null;return}return Dt(C,z)}),l){bC(r,K);let C=()=>yC(r,K);r.addEventListener("pagehide",C),ie=()=>r.removeEventListener("pagehide",C)}return _.initialized||Dt("POP",_.location,{initialHydration:!0}),ee}function Se(){S&&S(),ie&&ie(),R.clear(),Y&&Y.abort(),_.fetchers.forEach((C,z)=>Nn(z)),_.blockers.forEach((C,z)=>ne(z))}function $n(C){return R.add(C),()=>R.delete(C)}function Et(C,z={}){C.matches&&(C.matches=C.matches.map(ue=>{let Ce=h[ue.route.id],Ne=ue.route;return Ne.element!==Ce.element||Ne.errorElement!==Ce.errorElement||Ne.hydrateFallbackElement!==Ce.hydrateFallbackElement?{...ue,route:Ce}:ue})),_={..._,...C};let I=[],oe=[];_.fetchers.forEach((ue,Ce)=>{ue.state==="idle"&&(Vt.has(Ce)?I.push(Ce):oe.push(Ce))}),Vt.forEach(ue=>{!_.fetchers.has(ue)&&!pe.has(ue)&&I.push(ue)}),[...R].forEach(ue=>ue(_,{deletedFetchers:I,newErrors:C.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),I.forEach(ue=>Nn(ue)),oe.forEach(ue=>_.fetchers.delete(ue))}function xa(C,z,{flushSync:I}={}){let oe=_.actionData!=null&&_.navigation.formMethod!=null&&_a(_.navigation.formMethod)&&_.navigation.state==="loading"&&C.state?._isRedirect!==!0,ue;z.actionData?Object.keys(z.actionData).length>0?ue=z.actionData:ue=null:oe?ue=_.actionData:ue=null;let Ce=z.loaderData?US(_.loaderData,z.loaderData,z.matches||[],z.errors):_.loaderData,Ne=_.blockers;Ne.size>0&&(Ne=new Map(Ne),Ne.forEach((Ae,Ue)=>Ne.set(Ue,qc)));let Te=W?!1:oa(C,z.matches||_.matches),Re=te===!0||_.navigation.formMethod!=null&&_a(_.navigation.formMethod)&&C.state?._isRedirect!==!0;y&&(g=y,y=void 0),W||X==="POP"||(X==="PUSH"?s.history.push(C,C.state):X==="REPLACE"&&s.history.replace(C,C.state));let Ve;if(X==="POP"){let Ae=K.get(_.location.pathname);Ae&&Ae.has(C.pathname)?Ve={currentLocation:_.location,nextLocation:C}:K.has(C.pathname)&&(Ve={currentLocation:C,nextLocation:_.location})}else if(ce){let Ae=K.get(_.location.pathname);Ae?Ae.add(C.pathname):(Ae=new Set([C.pathname]),K.set(_.location.pathname,Ae)),Ve={currentLocation:_.location,nextLocation:C}}Et({...z,actionData:ue,loaderData:Ce,historyAction:X,location:C,initialized:!0,renderFallback:!1,navigation:Lg,revalidation:"idle",restoreScrollPosition:Te,preventScrollReset:Re,blockers:Ne},{viewTransitionOpts:Ve,flushSync:I===!0}),X="POP",te=!1,ce=!1,W=!1,me=!1,q?.resolve(),q=null,zt?.resolve(),zt=null}async function Wa(C,z){if(q?.resolve(),q=null,typeof C=="number"){q||(q=AS());let Rt=q.promise;return s.history.go(C),Rt}let I=Zg(_.location,_.matches,x,C,z?.fromRouteId,z?.relative),{path:oe,submission:ue,error:Ce}=NS(!1,I,z),Ne;z?.unstable_mask&&(Ne={pathname:"",search:"",hash:"",...typeof z.unstable_mask=="string"?xr(z.unstable_mask):{..._.location.unstable_mask,...z.unstable_mask}});let Te=_.location,Re=eu(Te,oe,z&&z.state,void 0,Ne);Re={...Re,...s.history.encodeLocation(Re)};let Ve=z&&z.replace!=null?z.replace:void 0,Ae="PUSH";Ve===!0?Ae="REPLACE":Ve===!1||ue!=null&&_a(ue.formMethod)&&ue.formAction===_.location.pathname+_.location.search&&(Ae="REPLACE");let Ue=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,mt=(z&&z.flushSync)===!0,et=De({currentLocation:Te,nextLocation:Re,historyAction:Ae});if(et){de(et,{state:"blocked",location:Re,proceed(){de(et,{state:"proceeding",proceed:void 0,reset:void 0,location:Re}),Wa(C,z)},reset(){let Rt=new Map(_.blockers);Rt.set(et,qc),Et({blockers:Rt})}});return}await Dt(Ae,Re,{submission:ue,pendingError:Ce,preventScrollReset:Ue,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:mt,callSiteDefaultShouldRevalidate:z&&z.unstable_defaultShouldRevalidate})}function ft(){zt||(zt=AS()),xn(),Et({revalidation:"loading"});let C=zt.promise;return _.navigation.state==="submitting"?C:_.navigation.state==="idle"?(Dt(_.historyAction,_.location,{startUninterruptedRevalidation:!0}),C):(Dt(X||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:ce===!0}),C)}async function Dt(C,z,I){Y&&Y.abort(),Y=null,X=C,W=(I&&I.startUninterruptedRevalidation)===!0,Ge(_.location,_.matches),te=(I&&I.preventScrollReset)===!0,ce=(I&&I.enableViewTransition)===!0;let oe=y||g,ue=I&&I.overrideNavigation,Ce=I?.initialHydration&&_.matches&&_.matches.length>0&&!se?_.matches:fo(oe,z,x),Ne=(I&&I.flushSync)===!0;if(Ce&&_.initialized&&!me&&iC(_.location,z)&&!(I&&I.submission&&_a(I.submission.formMethod))){xa(z,{matches:Ce},{flushSync:Ne});return}let Te=Ua(Ce,oe,z.pathname);if(Te.active&&Te.matches&&(Ce=Te.matches),!Ce){let{error:Gt,notFoundMatches:ia,route:pt}=Be(z.pathname);xa(z,{matches:ia,loaderData:{},errors:{[pt.id]:Gt}},{flushSync:Ne});return}Y=new AbortController;let Re=ol(s.history,z,Y.signal,I&&I.submission),Ve=s.getContext?await s.getContext():new hS,Ae;if(I&&I.pendingError)Ae=[mo(Ce).route.id,{type:"error",error:I.pendingError}];else if(I&&I.submission&&_a(I.submission.formMethod)){let Gt=await os(Re,z,I.submission,Ce,Ve,Te.active,I&&I.initialHydration===!0,{replace:I.replace,flushSync:Ne});if(Gt.shortCircuited)return;if(Gt.pendingActionResult){let[ia,pt]=Gt.pendingActionResult;if(hn(pt)&&au(pt.error)&&pt.error.status===404){Y=null,xa(z,{matches:Gt.matches,loaderData:{},errors:{[ia]:pt.error}});return}}Ce=Gt.matches||Ce,Ae=Gt.pendingActionResult,ue=Hg(z,I.submission),Ne=!1,Te.active=!1,Re=ol(s.history,Re.url,Re.signal)}let{shortCircuited:Ue,matches:mt,loaderData:et,errors:Rt}=await He(Re,z,Ce,Ve,Te.active,ue,I&&I.submission,I&&I.fetcherSubmission,I&&I.replace,I&&I.initialHydration===!0,Ne,Ae,I&&I.callSiteDefaultShouldRevalidate);Ue||(Y=null,xa(z,{matches:mt||Ce,...TS(Ae),loaderData:et,errors:Rt}))}async function os(C,z,I,oe,ue,Ce,Ne,Te={}){xn();let Re=hC(z,I);if(Et({navigation:Re},{flushSync:Te.flushSync===!0}),Ce){let Ue=await qs(oe,z.pathname,C.signal);if(Ue.type==="aborted")return{shortCircuited:!0};if(Ue.type==="error"){if(Ue.partialMatches.length===0){let{matches:et,route:Rt}=Rf(g);return{matches:et,pendingActionResult:[Rt.id,{type:"error",error:Ue.error}]}}let mt=mo(Ue.partialMatches).route.id;return{matches:Ue.partialMatches,pendingActionResult:[mt,{type:"error",error:Ue.error}]}}else if(Ue.matches)oe=Ue.matches;else{let{notFoundMatches:mt,error:et,route:Rt}=Be(z.pathname);return{matches:mt,pendingActionResult:[Rt.id,{type:"error",error:et}]}}}let Ve,Ae=jf(oe,z);if(!Ae.route.action&&!Ae.route.lazy)Ve={type:"error",error:zn(405,{method:C.method,pathname:z.pathname,routeId:Ae.route.id})};else{let Ue=cl(d,h,C,oe,Ae,Ne?[]:c,ue),mt=await Lt(C,Ue,ue,null);if(Ve=mt[Ae.route.id],!Ve){for(let et of oe)if(mt[et.route.id]){Ve=mt[et.route.id];break}}if(C.signal.aborted)return{shortCircuited:!0}}if(ti(Ve)){let Ue;return Te&&Te.replace!=null?Ue=Te.replace:Ue=_S(Ve.response.headers.get("Location"),new URL(C.url),x,s.history)===_.location.pathname+_.location.search,await Ya(C,Ve,!0,{submission:I,replace:Ue}),{shortCircuited:!0}}if(hn(Ve)){let Ue=mo(oe,Ae.route.id);return(Te&&Te.replace)!==!0&&(X="PUSH"),{matches:oe,pendingActionResult:[Ue.route.id,Ve,Ae.route.id]}}return{matches:oe,pendingActionResult:[Ae.route.id,Ve]}}async function He(C,z,I,oe,ue,Ce,Ne,Te,Re,Ve,Ae,Ue,mt){let et=Ce||Hg(z,Ne),Rt=Ne||Te||OS(et),Gt=!W&&!Ve;if(ue){if(Gt){let la=le(Ue);Et({navigation:et,...la!==void 0?{actionData:la}:{}},{flushSync:Ae})}let ot=await qs(I,z.pathname,C.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){if(ot.partialMatches.length===0){let{matches:wr,route:cs}=Rf(g);return{matches:wr,loaderData:{},errors:{[cs.id]:ot.error}}}let la=mo(ot.partialMatches).route.id;return{matches:ot.partialMatches,loaderData:{},errors:{[la]:ot.error}}}else if(ot.matches)I=ot.matches;else{let{error:la,notFoundMatches:wr,route:cs}=Be(z.pathname);return{matches:wr,loaderData:{},errors:{[cs.id]:la}}}}let ia=y||g,{dsMatches:pt,revalidatingFetchers:Ta}=SS(C,oe,d,h,s.history,_,I,Rt,z,Ve?[]:c,Ve===!0,me,ye,Vt,Ee,he,ia,x,s.patchRoutesOnNavigation!=null,Ue,mt);if(B=++ae,!s.dataStrategy&&!pt.some(ot=>ot.shouldLoad)&&!pt.some(ot=>ot.route.middleware&&ot.route.middleware.length>0)&&Ta.length===0){let ot=qn();return xa(z,{matches:I,loaderData:{},errors:Ue&&hn(Ue[1])?{[Ue[0]]:Ue[1].error}:null,...TS(Ue),...ot?{fetchers:new Map(_.fetchers)}:{}},{flushSync:Ae}),{shortCircuited:!0}}if(Gt){let ot={};if(!ue){ot.navigation=et;let la=le(Ue);la!==void 0&&(ot.actionData=la)}Ta.length>0&&(ot.fetchers=We(Ta)),Et(ot,{flushSync:Ae})}Ta.forEach(ot=>{Na(ot.key),ot.controller&&pe.set(ot.key,ot.controller)});let It=()=>Ta.forEach(ot=>Na(ot.key));Y&&Y.signal.addEventListener("abort",It);let{loaderResults:Sn,fetcherResults:Sa}=await Nr(pt,Ta,C,oe);if(C.signal.aborted)return{shortCircuited:!0};Y&&Y.signal.removeEventListener("abort",It),Ta.forEach(ot=>pe.delete(ot.key));let en=_f(Sn);if(en)return await Ya(C,en.result,!0,{replace:Re}),{shortCircuited:!0};if(en=_f(Sa),en)return he.add(en.key),await Ya(C,en.result,!0,{replace:Re}),{shortCircuited:!0};let{loaderData:Is,errors:is}=CS(_,I,Sn,Ue,Ta,Sa);Ve&&_.errors&&(is={..._.errors,...is});let In=qn(),ls=w(B),Fn=In||ls||Ta.length>0;return{matches:I,loaderData:Is,errors:is,...Fn?{fetchers:new Map(_.fetchers)}:{}}}function le(C){if(C&&!hn(C[1]))return{[C[0]]:C[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function We(C){return C.forEach(z=>{let I=_.fetchers.get(z.key),oe=Gc(void 0,I?I.data:void 0);_.fetchers.set(z.key,oe)}),new Map(_.fetchers)}async function Qt(C,z,I,oe){Na(C);let ue=(oe&&oe.flushSync)===!0,Ce=y||g,Ne=Zg(_.location,_.matches,x,I,z,oe?.relative),Te=fo(Ce,Ne,x),Re=Ua(Te,Ce,Ne);if(Re.active&&Re.matches&&(Te=Re.matches),!Te){Ca(C,z,zn(404,{pathname:Ne}),{flushSync:ue});return}let{path:Ve,submission:Ae,error:Ue}=NS(!0,Ne,oe);if(Ue){Ca(C,z,Ue,{flushSync:ue});return}let mt=s.getContext?await s.getContext():new hS,et=(oe&&oe.preventScrollReset)===!0;if(Ae&&_a(Ae.formMethod)){await Yn(C,z,Ve,Te,mt,Re.active,ue,et,Ae,oe&&oe.unstable_defaultShouldRevalidate);return}Ee.set(C,{routeId:z,path:Ve}),await vn(C,z,Ve,Te,mt,Re.active,ue,et,Ae)}async function Yn(C,z,I,oe,ue,Ce,Ne,Te,Re,Ve){xn(),Ee.delete(C);let Ae=_.fetchers.get(C);qa(C,gC(Re,Ae),{flushSync:Ne});let Ue=new AbortController,mt=ol(s.history,I,Ue.signal,Re);if(Ce){let _t=await qs(oe,new URL(mt.url).pathname,mt.signal,C);if(_t.type==="aborted")return;if(_t.type==="error"){Ca(C,z,_t.error,{flushSync:Ne});return}else if(_t.matches)oe=_t.matches;else{Ca(C,z,zn(404,{pathname:I}),{flushSync:Ne});return}}let et=jf(oe,I);if(!et.route.action&&!et.route.lazy){let _t=zn(405,{method:Re.formMethod,pathname:I,routeId:z});Ca(C,z,_t,{flushSync:Ne});return}pe.set(C,Ue);let Rt=ae,Gt=cl(d,h,mt,oe,et,c,ue),ia=await Lt(mt,Gt,ue,C),pt=ia[et.route.id];if(!pt){for(let _t of Gt)if(ia[_t.route.id]){pt=ia[_t.route.id];break}}if(mt.signal.aborted){pe.get(C)===Ue&&pe.delete(C);return}if(Vt.has(C)){if(ti(pt)||hn(pt)){qa(C,yr(void 0));return}}else{if(ti(pt))if(pe.delete(C),B>Rt){qa(C,yr(void 0));return}else return he.add(C),qa(C,Gc(Re)),Ya(mt,pt,!1,{fetcherSubmission:Re,preventScrollReset:Te});if(hn(pt)){Ca(C,z,pt.error);return}}let Ta=_.navigation.location||_.location,It=ol(s.history,Ta,Ue.signal),Sn=y||g,Sa=_.navigation.state!=="idle"?fo(Sn,_.navigation.location,x):_.matches;tt(Sa,"Didn't find any matches after fetcher action");let en=++ae;ve.set(C,en);let Is=Gc(Re,pt.data);_.fetchers.set(C,Is);let{dsMatches:is,revalidatingFetchers:In}=SS(It,ue,d,h,s.history,_,Sa,Re,Ta,c,!1,me,ye,Vt,Ee,he,Sn,x,s.patchRoutesOnNavigation!=null,[et.route.id,pt],Ve);In.filter(_t=>_t.key!==C).forEach(_t=>{let Er=_t.key,ml=_.fetchers.get(Er),fu=Gc(void 0,ml?ml.data:void 0);_.fetchers.set(Er,fu),Na(Er),_t.controller&&pe.set(Er,_t.controller)}),Et({fetchers:new Map(_.fetchers)});let ls=()=>In.forEach(_t=>Na(_t.key));Ue.signal.addEventListener("abort",ls);let{loaderResults:Fn,fetcherResults:ot}=await Nr(is,In,It,ue);if(Ue.signal.aborted)return;if(Ue.signal.removeEventListener("abort",ls),ve.delete(C),pe.delete(C),In.forEach(_t=>pe.delete(_t.key)),_.fetchers.has(C)){let _t=yr(pt.data);_.fetchers.set(C,_t)}let la=_f(Fn);if(la)return Ya(It,la.result,!1,{preventScrollReset:Te});if(la=_f(ot),la)return he.add(la.key),Ya(It,la.result,!1,{preventScrollReset:Te});let{loaderData:wr,errors:cs}=CS(_,Sa,Fn,void 0,In,ot);w(en),_.navigation.state==="loading"&&en>B?(tt(X,"Expected pending action"),Y&&Y.abort(),xa(_.navigation.location,{matches:Sa,loaderData:wr,errors:cs,fetchers:new Map(_.fetchers)})):(Et({errors:cs,loaderData:US(_.loaderData,wr,Sa,cs),fetchers:new Map(_.fetchers)}),me=!1)}async function vn(C,z,I,oe,ue,Ce,Ne,Te,Re){let Ve=_.fetchers.get(C);qa(C,Gc(Re,Ve?Ve.data:void 0),{flushSync:Ne});let Ae=new AbortController,Ue=ol(s.history,I,Ae.signal);if(Ce){let pt=await qs(oe,new URL(Ue.url).pathname,Ue.signal,C);if(pt.type==="aborted")return;if(pt.type==="error"){Ca(C,z,pt.error,{flushSync:Ne});return}else if(pt.matches)oe=pt.matches;else{Ca(C,z,zn(404,{pathname:I}),{flushSync:Ne});return}}let mt=jf(oe,I);pe.set(C,Ae);let et=ae,Rt=cl(d,h,Ue,oe,mt,c,ue),ia=(await Lt(Ue,Rt,ue,C))[mt.route.id];if(pe.get(C)===Ae&&pe.delete(C),!Ue.signal.aborted){if(Vt.has(C)){qa(C,yr(void 0));return}if(ti(ia))if(B>et){qa(C,yr(void 0));return}else{he.add(C),await Ya(Ue,ia,!1,{preventScrollReset:Te});return}if(hn(ia)){Ca(C,z,ia.error);return}qa(C,yr(ia.data))}}async function Ya(C,z,I,{submission:oe,fetcherSubmission:ue,preventScrollReset:Ce,replace:Ne}={}){I||(q?.resolve(),q=null),z.response.headers.has("X-Remix-Revalidate")&&(me=!0);let Te=z.response.headers.get("Location");tt(Te,"Expected a Location header on the redirect Response"),Te=_S(Te,new URL(C.url),x,s.history);let Re=eu(_.location,Te,{_isRedirect:!0});if(l){let Rt=!1;if(z.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(eb(Te)){const Gt=y4(Te,!0);Rt=Gt.origin!==r.location.origin||Ln(Gt.pathname,x)==null}if(Rt){Ne?r.location.replace(Te):r.location.assign(Te);return}}Y=null;let Ve=Ne===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ae,formAction:Ue,formEncType:mt}=_.navigation;!oe&&!ue&&Ae&&Ue&&mt&&(oe=OS(_.navigation));let et=oe||ue;if(Ik.has(z.response.status)&&et&&_a(et.formMethod))await Dt(Ve,Re,{submission:{...et,formAction:Te},preventScrollReset:Ce||te,enableViewTransition:I?ce:void 0});else{let Rt=Hg(Re,oe);await Dt(Ve,Re,{overrideNavigation:Rt,fetcherSubmission:ue,preventScrollReset:Ce||te,enableViewTransition:I?ce:void 0})}}async function Lt(C,z,I,oe){let ue,Ce={};try{ue=await tC(D,C,z,oe,I,!1)}catch(Ne){return z.filter(Te=>Te.shouldLoad).forEach(Te=>{Ce[Te.route.id]={type:"error",error:Ne}}),Ce}if(C.signal.aborted)return Ce;if(!_a(C.method))for(let Ne of z){if(ue[Ne.route.id]?.type==="error")break;!ue.hasOwnProperty(Ne.route.id)&&!_.loaderData.hasOwnProperty(Ne.route.id)&&(!_.errors||!_.errors.hasOwnProperty(Ne.route.id))&&Ne.shouldCallHandler()&&(ue[Ne.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Ne.route.id}`)})}for(let[Ne,Te]of Object.entries(ue))if(dC(Te)){let Re=Te.result;Ce[Ne]={type:"redirect",response:rC(Re,C,Ne,z,x)}}else Ce[Ne]=await sC(Te);return Ce}async function Nr(C,z,I,oe){let ue=Lt(I,C,oe,null),Ce=Promise.all(z.map(async Re=>{if(Re.matches&&Re.match&&Re.request&&Re.controller){let Ae=(await Lt(Re.request,Re.matches,oe,Re.key))[Re.match.route.id];return{[Re.key]:Ae}}else return Promise.resolve({[Re.key]:{type:"error",error:zn(404,{pathname:Re.path})}})})),Ne=await ue,Te=(await Ce).reduce((Re,Ve)=>Object.assign(Re,Ve),{});return{loaderResults:Ne,fetcherResults:Te}}function xn(){me=!0,Ee.forEach((C,z)=>{pe.has(z)&&ye.add(z),Na(z)})}function qa(C,z,I={}){_.fetchers.set(C,z),Et({fetchers:new Map(_.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function Ca(C,z,I,oe={}){let ue=mo(_.matches,z);Nn(C),Et({errors:{[ue.route.id]:I},fetchers:new Map(_.fetchers)},{flushSync:(oe&&oe.flushSync)===!0})}function Sr(C){return nt.set(C,(nt.get(C)||0)+1),Vt.has(C)&&Vt.delete(C),_.fetchers.get(C)||Fk}function Bs(C,z){Na(C,z?.reason),qa(C,yr(null))}function Nn(C){let z=_.fetchers.get(C);pe.has(C)&&!(z&&z.state==="loading"&&ve.has(C))&&Na(C),Ee.delete(C),ve.delete(C),he.delete(C),Vt.delete(C),ye.delete(C),_.fetchers.delete(C)}function $s(C){let z=(nt.get(C)||0)-1;z<=0?(nt.delete(C),Vt.add(C)):nt.set(C,z),Et({fetchers:new Map(_.fetchers)})}function Na(C,z){let I=pe.get(C);I&&(I.abort(z),pe.delete(C))}function Ys(C){for(let z of C){let I=Sr(z),oe=yr(I.data);_.fetchers.set(z,oe)}}function qn(){let C=[],z=!1;for(let I of he){let oe=_.fetchers.get(I);tt(oe,`Expected fetcher: ${I}`),oe.state==="loading"&&(he.delete(I),C.push(I),z=!0)}return Ys(C),z}function w(C){let z=[];for(let[I,oe]of ve)if(oe<C){let ue=_.fetchers.get(I);tt(ue,`Expected fetcher: ${I}`),ue.state==="loading"&&(Na(I),ve.delete(I),z.push(I))}return Ys(z),z.length>0}function M(C,z){let I=_.blockers.get(C)||qc;return qe.get(C)!==z&&qe.set(C,z),I}function ne(C){_.blockers.delete(C),qe.delete(C)}function de(C,z){let I=_.blockers.get(C)||qc;tt(I.state==="unblocked"&&z.state==="blocked"||I.state==="blocked"&&z.state==="blocked"||I.state==="blocked"&&z.state==="proceeding"||I.state==="blocked"&&z.state==="unblocked"||I.state==="proceeding"&&z.state==="unblocked",`Invalid blocker state transition: ${I.state} -> ${z.state}`);let oe=new Map(_.blockers);oe.set(C,z),Et({blockers:oe})}function De({currentLocation:C,nextLocation:z,historyAction:I}){if(qe.size===0)return;qe.size>1&&qt(!1,"A router only supports one blocker at a time");let oe=Array.from(qe.entries()),[ue,Ce]=oe[oe.length-1],Ne=_.blockers.get(ue);if(!(Ne&&Ne.state==="proceeding")&&Ce({currentLocation:C,nextLocation:z,historyAction:I}))return ue}function Be(C){let z=zn(404,{pathname:C}),I=y||g,{matches:oe,route:ue}=Rf(I);return{notFoundMatches:oe,route:ue,error:z}}function ke(C,z,I){if(j=C,L=z,H=I||null,!Q&&_.navigation===Lg){Q=!0;let oe=oa(_.location,_.matches);oe!=null&&Et({restoreScrollPosition:oe})}return()=>{j=null,L=null,H=null}}function st(C,z){return H&&H(C,z.map(oe=>yk(oe,_.loaderData)))||C.key}function Ge(C,z){if(j&&L){let I=st(C,z);j[I]=L()}}function oa(C,z){if(j){let I=st(C,z),oe=j[I];if(typeof oe=="number")return oe}return null}function Ua(C,z,I){if(s.patchRoutesOnNavigation)if(C){if(Object.keys(C[0].params).length>0)return{active:!0,matches:Zc(z,I,x,!0)}}else return{active:!0,matches:Zc(z,I,x,!0)||[]};return{active:!1,matches:null}}async function qs(C,z,I,oe){if(!s.patchRoutesOnNavigation)return{type:"success",matches:C};let ue=C;for(;;){let Ce=y==null,Ne=y||g,Te=h;try{await s.patchRoutesOnNavigation({signal:I,path:z,matches:ue,fetcherKey:oe,patch:(Ae,Ue)=>{I.aborted||wS(Ae,Ue,Ne,Te,d,!1)}})}catch(Ae){return{type:"error",error:Ae,partialMatches:ue}}finally{Ce&&!I.aborted&&(g=[...g])}if(I.aborted)return{type:"aborted"};let Re=fo(Ne,z,x),Ve=null;if(Re){if(Object.keys(Re[0].params).length===0)return{type:"success",matches:Re};if(Ve=Zc(Ne,z,x,!0),!(Ve&&ue.length<Ve.length&&Gs(ue,Ve.slice(0,ue.length))))return{type:"success",matches:Re}}if(Ve||(Ve=Zc(Ne,z,x,!0)),!Ve||Gs(ue,Ve))return{type:"success",matches:null};ue=Ve}}function Gs(C,z){return C.length===z.length&&C.every((I,oe)=>I.route.id===z[oe].route.id)}function ri(C){h={},y=tu(C,d,void 0,h)}function Gn(C,z,I=!1){let oe=y==null;wS(C,z,y||g,h,d,I),oe&&(g=[...g],Et({}))}return ee={get basename(){return x},get future(){return v},get state(){return _},get routes(){return g},get window(){return r},initialize:Ka,subscribe:$n,enableScrollRestoration:ke,navigate:Wa,fetch:Qt,revalidate:ft,createHref:C=>s.history.createHref(C),encodeLocation:C=>s.history.encodeLocation(C),getFetcher:Sr,resetFetcher:Bs,deleteFetcher:$s,dispose:Se,getBlocker:M,deleteBlocker:ne,patchRoutes:Gn,_internalFetchControllers:pe,_internalSetRoutes:ri,_internalSetStateDoNotUseOrYouWillBreakYourApp(C){Et(C)}},s.unstable_instrumentations&&(ee=zk(ee,s.unstable_instrumentations.map(C=>C.router).filter(Boolean))),ee}function Zk(s){return s!=null&&("formData"in s&&s.formData!=null||"body"in s&&s.body!==void 0)}function Zg(s,r,l,c,u,d){let h,g;if(u){h=[];for(let x of r)if(h.push(x),x.route.id===u){g=x;break}}else h=r,g=r[r.length-1];let y=ru(c||".",Yf(h),Ln(s.pathname,l)||s.pathname,d==="path");if(c==null&&(y.search=s.search,y.hash=s.hash),(c==null||c===""||c===".")&&g){let x=nb(y.search);if(g.route.index&&!x)y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index";else if(!g.route.index&&x){let D=new URLSearchParams(y.search),v=D.getAll("index");D.delete("index"),v.filter(R=>R).forEach(R=>D.append("index",R));let S=D.toString();y.search=S?`?${S}`:""}}return l!=="/"&&(y.pathname=Tk({basename:l,pathname:y.pathname})),Ls(y)}function NS(s,r,l){if(!l||!Zk(l))return{path:r};if(l.formMethod&&!pC(l.formMethod))return{path:r,error:zn(405,{method:l.formMethod})};let c=()=>({path:r,error:zn(400,{type:"invalid-body"})}),d=(l.formMethod||"get").toUpperCase(),h=M4(r);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!_a(d))return c();let v=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((S,[R,j])=>`${S}${R}=${j}
|
|
236
|
+
`,""):String(l.body);return{path:r,submission:{formMethod:d,formAction:h,formEncType:l.formEncType,formData:void 0,json:void 0,text:v}}}else if(l.formEncType==="application/json"){if(!_a(d))return c();try{let v=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:r,submission:{formMethod:d,formAction:h,formEncType:l.formEncType,formData:void 0,json:v,text:void 0}}}catch{return c()}}}tt(typeof FormData=="function","FormData is not available in this environment");let g,y;if(l.formData)g=Pg(l.formData),y=l.formData;else if(l.body instanceof FormData)g=Pg(l.body),y=l.body;else if(l.body instanceof URLSearchParams)g=l.body,y=kS(g);else if(l.body==null)g=new URLSearchParams,y=new FormData;else try{g=new URLSearchParams(l.body),y=kS(g)}catch{return c()}let x={formMethod:d,formAction:h,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:y,json:void 0,text:void 0};if(_a(x.formMethod))return{path:r,submission:x};let D=xr(r);return s&&D.search&&nb(D.search)&&g.append("index",""),D.search=`?${g}`,{path:Ls(D),submission:x}}function SS(s,r,l,c,u,d,h,g,y,x,D,v,S,R,j,H,L,Q,Z,se,fe){let be=se?hn(se[1])?se[1].error:se[1].data:void 0,J=u.createURL(d.location),ee=u.createURL(y),_;if(D&&d.errors){let ie=Object.keys(d.errors)[0];_=h.findIndex(W=>W.route.id===ie)}else if(se&&hn(se[1])){let ie=se[0];_=h.findIndex(W=>W.route.id===ie)-1}let X=se?se[1].statusCode:void 0,q=X&&X>=400,te={currentUrl:J,currentParams:d.matches[0]?.params||{},nextUrl:ee,nextParams:h[0].params,...g,actionResult:be,actionStatus:X},Y=iu(h),ce=h.map((ie,W)=>{let{route:me}=ie,ye=null;if(_!=null&&W>_)ye=!1;else if(me.lazy)ye=!0;else if(!tb(me))ye=!1;else if(D){let{shouldLoad:ve}=U4(me,d.loaderData,d.errors);ye=ve}else Jk(d.loaderData,d.matches[W],ie)&&(ye=!0);if(ye!==null)return Jg(l,c,s,Y,ie,x,r,ye);let pe=!1;typeof fe=="boolean"?pe=fe:q?pe=!1:(v||J.pathname+J.search===ee.pathname+ee.search||J.search!==ee.search||Pk(d.matches[W],ie))&&(pe=!0);let ae={...te,defaultShouldRevalidate:pe},B=Kc(ie,ae);return Jg(l,c,s,Y,ie,x,r,B,ae,fe)}),K=[];return j.forEach((ie,W)=>{if(D||!h.some(Ee=>Ee.route.id===ie.routeId)||R.has(W))return;let me=d.fetchers.get(W),ye=me&&me.state!=="idle"&&me.data===void 0,pe=fo(L,ie.path,Q);if(!pe){if(Z&&ye)return;K.push({key:W,routeId:ie.routeId,path:ie.path,matches:null,match:null,request:null,controller:null});return}if(H.has(W))return;let ae=jf(pe,ie.path),B=new AbortController,ve=ol(u,ie.path,B.signal),he=null;if(S.has(W))S.delete(W),he=cl(l,c,ve,pe,ae,x,r);else if(ye)v&&(he=cl(l,c,ve,pe,ae,x,r));else{let Ee;typeof fe=="boolean"?Ee=fe:q?Ee=!1:Ee=v;let nt={...te,defaultShouldRevalidate:Ee};Kc(ae,nt)&&(he=cl(l,c,ve,pe,ae,x,r,nt))}he&&K.push({key:W,routeId:ie.routeId,path:ie.path,matches:he,match:ae,request:ve,controller:B})}),{dsMatches:ce,revalidatingFetchers:K}}function tb(s){return s.loader!=null||s.middleware!=null&&s.middleware.length>0}function U4(s,r,l){if(s.lazy)return{shouldLoad:!0,renderFallback:!0};if(!tb(s))return{shouldLoad:!1,renderFallback:!1};let c=r!=null&&s.id in r,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 Jk(s,r,l){let c=!r||l.route.id!==r.route.id,u=!s.hasOwnProperty(l.route.id);return c||u}function Pk(s,r){let l=s.route.path;return s.pathname!==r.pathname||l!=null&&l.endsWith("*")&&s.params["*"]!==r.params["*"]}function Kc(s,r){if(s.route.shouldRevalidate){let l=s.route.shouldRevalidate(r);if(typeof l=="boolean")return l}return r.defaultShouldRevalidate}function wS(s,r,l,c,u,d){let h;if(s){let x=c[s];tt(x,`No route found to patch children into: routeId = ${s}`),x.children||(x.children=[]),h=x.children}else h=l;let g=[],y=[];if(r.forEach(x=>{let D=h.find(v=>T4(x,v));D?y.push({existingRoute:D,newRoute:x}):g.push(x)}),g.length>0){let x=tu(g,u,[s||"_","patch",String(h?.length||"0")],c);h.push(...x)}if(d&&y.length>0)for(let x=0;x<y.length;x++){let{existingRoute:D,newRoute:v}=y[x],S=D,[R]=tu([v],u,[],{},!0);Object.assign(S,{element:R.element?R.element:S.element,errorElement:R.errorElement?R.errorElement:S.errorElement,hydrateFallbackElement:R.hydrateFallbackElement?R.hydrateFallbackElement:S.hydrateFallbackElement})}}function T4(s,r){return"id"in s&&"id"in r&&s.id===r.id?!0:s.index===r.index&&s.path===r.path&&s.caseSensitive===r.caseSensitive?(!s.children||s.children.length===0)&&(!r.children||r.children.length===0)?!0:s.children?.every((l,c)=>r.children?.some(u=>T4(l,u)))??!1:!1}var ES=new WeakMap,j4=({key:s,route:r,manifest:l,mapRouteProperties:c})=>{let u=l[r.id];if(tt(u,"No route found in manifest"),!u.lazy||typeof u.lazy!="object")return;let d=u.lazy[s];if(!d)return;let h=ES.get(u);h||(h={},ES.set(u,h));let g=h[s];if(g)return g;let y=(async()=>{let x=pk(s),v=u[s]!==void 0&&s!=="hasErrorBoundary";if(x)qt(!x,"Route property "+s+" is not a supported lazy route property. This property will be ignored."),h[s]=Promise.resolve();else if(v)qt(!1,`Route "${u.id}" has a static property "${s}" defined. The lazy property will be ignored.`);else{let S=await d();S!=null&&(Object.assign(u,{[s]:S}),Object.assign(u,c(u)))}typeof u.lazy=="object"&&(u.lazy[s]=void 0,Object.values(u.lazy).every(S=>S===void 0)&&(u.lazy=void 0))})();return h[s]=y,y},DS=new WeakMap;function Kk(s,r,l,c,u){let d=l[s.id];if(tt(d,"No route found in manifest"),!s.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof s.lazy=="function"){let D=DS.get(d);if(D)return{lazyRoutePromise:D,lazyHandlerPromise:D};let v=(async()=>{tt(typeof s.lazy=="function","No lazy route function found");let S=await s.lazy(),R={};for(let j in S){let H=S[j];if(H===void 0)continue;let L=gk(j),Z=d[j]!==void 0&&j!=="hasErrorBoundary";L?qt(!L,"Route property "+j+" is not a supported property to be returned from a lazy route function. This property will be ignored."):Z?qt(!Z,`Route "${d.id}" has a static property "${j}" defined but its lazy function is also returning a value for this property. The lazy route property "${j}" will be ignored.`):R[j]=H}Object.assign(d,R),Object.assign(d,{...c(d),lazy:void 0})})();return DS.set(d,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let h=Object.keys(s.lazy),g=[],y;for(let D of h){if(u&&u.includes(D))continue;let v=j4({key:D,route:s,manifest:l,mapRouteProperties:c});v&&(g.push(v),D===r&&(y=v))}let x=g.length>0?Promise.all(g).then(()=>{}):void 0;return x?.catch(()=>{}),y?.catch(()=>{}),{lazyRoutePromise:x,lazyHandlerPromise:y}}async function RS(s){let r=s.matches.filter(u=>u.shouldLoad),l={};return(await Promise.all(r.map(u=>u.resolve()))).forEach((u,d)=>{l[r[d].route.id]=u}),l}async function Wk(s){return s.matches.some(r=>r.route.middleware)?O4(s,()=>RS(s)):RS(s)}function O4(s,r){return eC(s,r,c=>{if(mC(c))throw c;return c},cC,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(x=>x.route.id===u),0),Math.max(h.findIndex(x=>x.shouldCallHandler()),0)),y=mo(h,h[g].route.id).route.id;return Promise.resolve({[y]:{type:"error",result:c}})}}}async function eC(s,r,l,c,u){let{matches:d,request:h,params:g,context:y,unstable_pattern:x}=s,D=d.flatMap(S=>S.route.middleware?S.route.middleware.map(R=>[S.route.id,R]):[]);return await A4({request:h,params:g,context:y,unstable_pattern:x},D,r,l,c,u)}async function A4(s,r,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 y=r[h];if(!y)return await l();let[x,D]=y,v,S=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");try{return v={value:await A4(s,r,l,c,u,d,h+1)},v.value}catch(R){return v={value:await d(R,x,v)},v.value}};try{let R=await D(s,S),j=R!=null?c(R):void 0;return u(j)?j:v?j??v.value:(v={value:await S()},v.value)}catch(R){return await d(R,x,v)}}function V4(s,r,l,c,u){let d=j4({key:"middleware",route:c.route,manifest:r,mapRouteProperties:s}),h=Kk(c.route,_a(l.method)?"action":"loader",r,s,u);return{middleware:d,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function Jg(s,r,l,c,u,d,h,g,y=null,x){let D=!1,v=V4(s,r,l,u,d);return{...u,_lazyPromises:v,shouldLoad:g,shouldRevalidateArgs:y,shouldCallHandler(S){return D=!0,y?typeof x=="boolean"?Kc(u,{...y,defaultShouldRevalidate:x}):typeof S=="boolean"?Kc(u,{...y,defaultShouldRevalidate:S}):Kc(u,y):g},resolve(S){let{lazy:R,loader:j,middleware:H}=u.route,L=D||g||S&&!_a(l.method)&&(R||j),Q=H&&H.length>0&&!j&&!R;return L&&(_a(l.method)||!Q)?aC({request:l,unstable_pattern:c,match:u,lazyHandlerPromise:v?.handler,lazyRoutePromise:v?.route,handlerOverride:S,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function cl(s,r,l,c,u,d,h,g=null){return c.map(y=>y.route.id!==u.route.id?{...y,shouldLoad:!1,shouldRevalidateArgs:g,shouldCallHandler:()=>!1,_lazyPromises:V4(s,r,l,y,d),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Jg(s,r,l,iu(c),y,d,h,!0,g))}async function tC(s,r,l,c,u,d){l.some(x=>x._lazyPromises?.middleware)&&await Promise.all(l.map(x=>x._lazyPromises?.middleware));let h={request:r,unstable_pattern:iu(l),params:l[0].params,context:u,matches:l},y=await s({...h,fetcherKey:c,runClientMiddleware:x=>{let D=h;return O4(D,()=>x({...D,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(x=>[x._lazyPromises?.handler,x._lazyPromises?.route]))}catch{}return y}async function aC({request:s,unstable_pattern:r,match:l,lazyHandlerPromise:c,lazyRoutePromise:u,handlerOverride:d,scopedContext:h}){let g,y,x=_a(s.method),D=x?"action":"loader",v=S=>{let R,j=new Promise((Q,Z)=>R=Z);y=()=>R(),s.signal.addEventListener("abort",y);let H=Q=>typeof S!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${D}" [routeId: ${l.route.id}]`)):S({request:s,unstable_pattern:r,params:l.params,context:h},...Q!==void 0?[Q]:[]),L=(async()=>{try{return{type:"data",result:await(d?d(Z=>H(Z)):H())}}catch(Q){return{type:"error",result:Q}}})();return Promise.race([L,j])};try{let S=x?l.route.action:l.route.loader;if(c||u)if(S){let R,[j]=await Promise.all([v(S).catch(H=>{R=H}),c,u]);if(R!==void 0)throw R;g=j}else{await c;let R=x?l.route.action:l.route.loader;if(R)[g]=await Promise.all([v(R),u]);else if(D==="action"){let j=new URL(s.url),H=j.pathname+j.search;throw zn(405,{method:s.method,pathname:H,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(S)g=await v(S);else{let R=new URL(s.url),j=R.pathname+R.search;throw zn(404,{pathname:j})}}catch(S){return{type:"error",result:S}}finally{y&&s.signal.removeEventListener("abort",y)}return g}async function nC(s){let r=s.headers.get("Content-Type");return r&&/\bapplication\/json\b/.test(r)?s.body==null?null:s.json():s.text()}async function sC(s){let{result:r,type:l}=s;if(ab(r)){let c;try{c=await nC(r)}catch(u){return{type:"error",error:u}}return l==="error"?{type:"error",error:new ou(r.status,r.statusText,c),statusCode:r.status,headers:r.headers}:{type:"data",data:c,statusCode:r.status,headers:r.headers}}return l==="error"?jS(r)?r.data instanceof Error?{type:"error",error:r.data,statusCode:r.init?.status,headers:r.init?.headers?new Headers(r.init.headers):void 0}:{type:"error",error:lC(r),statusCode:au(r)?r.status:void 0,headers:r.init?.headers?new Headers(r.init.headers):void 0}:{type:"error",error:r,statusCode:au(r)?r.status:void 0}:jS(r)?{type:"data",data:r.data,statusCode:r.init?.status,headers:r.init?.headers?new Headers(r.init.headers):void 0}:{type:"data",data:r}}function rC(s,r,l,c,u){let d=s.headers.get("Location");if(tt(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!eb(d)){let h=c.slice(0,c.findIndex(g=>g.route.id===l)+1);d=Zg(new URL(r.url),h,u,d),s.headers.set("Location",d)}return s}function _S(s,r,l,c){let u=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(eb(s)){let d=s,h=d.startsWith("//")?new URL(r.protocol+d):new URL(d);if(u.includes(h.protocol))throw new Error("Invalid redirect location");let g=Ln(h.pathname,l)!=null;if(h.origin===r.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 ol(s,r,l,c){let u=s.createURL(M4(r)).toString(),d={signal:l};if(c&&_a(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=Pg(c.formData):d.body=c.formData}return new Request(u,d)}function Pg(s){let r=new URLSearchParams;for(let[l,c]of s.entries())r.append(l,typeof c=="string"?c:c.name);return r}function kS(s){let r=new FormData;for(let[l,c]of s.entries())r.append(l,c);return r}function oC(s,r,l,c=!1,u=!1){let d={},h=null,g,y=!1,x={},D=l&&hn(l[1])?l[1].error:void 0;return s.forEach(v=>{if(!(v.route.id in r))return;let S=v.route.id,R=r[S];if(tt(!ti(R),"Cannot handle redirect results in processLoaderData"),hn(R)){let j=R.error;if(D!==void 0&&(j=D,D=void 0),h=h||{},u)h[S]=j;else{let H=mo(s,S);h[H.route.id]==null&&(h[H.route.id]=j)}c||(d[S]=C4),y||(y=!0,g=au(R.error)?R.error.status:500),R.headers&&(x[S]=R.headers)}else d[S]=R.data,R.statusCode&&R.statusCode!==200&&!y&&(g=R.statusCode),R.headers&&(x[S]=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:x}}function CS(s,r,l,c,u,d){let{loaderData:h,errors:g}=oC(r,l,c);return u.filter(y=>!y.matches||y.matches.some(x=>x.shouldLoad)).forEach(y=>{let{key:x,match:D,controller:v}=y;if(v&&v.signal.aborted)return;let S=d[x];if(tt(S,"Did not find corresponding fetcher result"),hn(S)){let R=mo(s.matches,D?.route.id);g&&g[R.route.id]||(g={...g,[R.route.id]:S.error}),s.fetchers.delete(x)}else if(ti(S))tt(!1,"Unhandled fetcher revalidation redirect");else{let R=yr(S.data);s.fetchers.set(x,R)}}),{loaderData:h,errors:g}}function US(s,r,l,c){let u=Object.entries(r).filter(([,d])=>d!==C4).reduce((d,[h,g])=>(d[h]=g,d),{});for(let d of l){let h=d.route.id;if(!r.hasOwnProperty(h)&&s.hasOwnProperty(h)&&d.route.loader&&(u[h]=s[h]),c&&c.hasOwnProperty(h))break}return u}function TS(s){return s?hn(s[1])?{actionData:{}}:{actionData:{[s[0]]:s[1].data}}:{}}function mo(s,r){return(r?s.slice(0,s.findIndex(c=>c.route.id===r)+1):[...s]).reverse().find(c=>c.route.hasErrorBoundary===!0)||s[0]}function Rf(s){let r=s.length===1?s[0]:s.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:r}],route:r}}function zn(s,{pathname:r,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&&r&&l?g=`You made a ${c} request to "${r}" 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 "${r}"`):s===404?(h="Not Found",g=`No route matches URL "${r}"`):s===405&&(h="Method Not Allowed",c&&r&&l?g=`You made a ${c.toUpperCase()} request to "${r}" 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 ou(s||500,h,new Error(g),!0)}function _f(s){let r=Object.entries(s);for(let l=r.length-1;l>=0;l--){let[c,u]=r[l];if(ti(u))return{key:c,result:u}}}function M4(s){let r=typeof s=="string"?xr(s):s;return Ls({...r,hash:""})}function iC(s,r){return s.pathname!==r.pathname||s.search!==r.search?!1:s.hash===""?r.hash!=="":s.hash===r.hash?!0:r.hash!==""}function lC(s){return new ou(s.init?.status??500,s.init?.statusText??"Internal Server Error",s.data)}function cC(s){return s!=null&&typeof s=="object"&&Object.entries(s).every(([r,l])=>typeof r=="string"&&uC(l))}function uC(s){return s!=null&&typeof s=="object"&&"type"in s&&"result"in s&&(s.type==="data"||s.type==="error")}function dC(s){return ab(s.result)&&_4.has(s.result.status)}function hn(s){return s.type==="error"}function ti(s){return(s&&s.type)==="redirect"}function jS(s){return typeof s=="object"&&s!=null&&"type"in s&&"data"in s&&"init"in s&&s.type==="DataWithResponseInit"}function ab(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.headers=="object"&&typeof s.body<"u"}function fC(s){return _4.has(s)}function mC(s){return ab(s)&&fC(s.status)&&s.headers.has("Location")}function pC(s){return Gk.has(s.toUpperCase())}function _a(s){return Yk.has(s.toUpperCase())}function nb(s){return new URLSearchParams(s).getAll("index").some(r=>r==="")}function jf(s,r){let l=typeof r=="string"?xr(r).search:r.search;if(s[s.length-1].route.index&&nb(l||""))return s[s.length-1];let c=S4(s);return c[c.length-1]}function OS(s){let{formMethod:r,formAction:l,formEncType:c,text:u,formData:d,json:h}=s;if(!(!r||!l||!c)){if(u!=null)return{formMethod:r,formAction:l,formEncType:c,formData:void 0,json:void 0,text:u};if(d!=null)return{formMethod:r,formAction:l,formEncType:c,formData:d,json:void 0,text:void 0};if(h!==void 0)return{formMethod:r,formAction:l,formEncType:c,formData:void 0,json:h,text:void 0}}}function Hg(s,r){return r?{state:"loading",location:s,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:"loading",location:s,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function hC(s,r){return{state:"submitting",location:s,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function Gc(s,r){return s?{state:"loading",formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text,data:r}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}function gC(s,r){return{state:"submitting",formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text,data:r?r.data:void 0}}function yr(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 bC(s,r){try{let l=s.sessionStorage.getItem(k4);if(l){let c=JSON.parse(l);for(let[u,d]of Object.entries(c||{}))d&&Array.isArray(d)&&r.set(u,new Set(d||[]))}}catch{}}function yC(s,r){if(r.size>0){let l={};for(let[c,u]of r)l[c]=[...u];try{s.sessionStorage.setItem(k4,JSON.stringify(l))}catch(c){qt(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function AS(){let s,r,l=new Promise((c,u)=>{s=async d=>{c(d);try{await l}catch{}},r=async d=>{u(d);try{await l}catch{}}});return{promise:l,resolve:s,reject:r}}var si=E.createContext(null);si.displayName="DataRouter";var lu=E.createContext(null);lu.displayName="DataRouterState";var z4=E.createContext(!1);function vC(){return E.useContext(z4)}var sb=E.createContext({isTransitioning:!1});sb.displayName="ViewTransition";var L4=E.createContext(new Map);L4.displayName="Fetchers";var xC=E.createContext(null);xC.displayName="Await";var yn=E.createContext(null);yn.displayName="Navigation";var qf=E.createContext(null);qf.displayName="Location";var Hn=E.createContext({outlet:null,matches:[],isDataRoute:!1});Hn.displayName="Route";var rb=E.createContext(null);rb.displayName="RouteError";var H4="REACT_ROUTER_ERROR",NC="REDIRECT",SC="ROUTE_ERROR_RESPONSE";function wC(s){if(s.startsWith(`${H4}:${NC}:{`))try{let r=JSON.parse(s.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function EC(s){if(s.startsWith(`${H4}:${SC}:{`))try{let r=JSON.parse(s.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new ou(r.status,r.statusText,r.data)}catch{}}function DC(s,{relative:r}={}){tt(dl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:c}=E.useContext(yn),{hash:u,pathname:d,search:h}=cu(s,{relative:r}),g=d;return l!=="/"&&(g=d==="/"?l:ss([l,d])),c.createHref({pathname:g,search:h,hash:u})}function dl(){return E.useContext(qf)!=null}function rs(){return tt(dl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(qf).location}var B4="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $4(s){E.useContext(yn).static||E.useLayoutEffect(s)}function ho(){let{isDataRoute:s}=E.useContext(Hn);return s?BC():RC()}function RC(){tt(dl(),"useNavigate() may be used only in the context of a <Router> component.");let s=E.useContext(si),{basename:r,navigator:l}=E.useContext(yn),{matches:c}=E.useContext(Hn),{pathname:u}=rs(),d=JSON.stringify(Yf(c)),h=E.useRef(!1);return $4(()=>{h.current=!0}),E.useCallback((y,x={})=>{if(qt(h.current,B4),!h.current)return;if(typeof y=="number"){l.go(y);return}let D=ru(y,JSON.parse(d),u,x.relative==="path");s==null&&r!=="/"&&(D.pathname=D.pathname==="/"?r:ss([r,D.pathname])),(x.replace?l.replace:l.push)(D,x.state,x)},[r,l,d,u,s])}var _C=E.createContext(null);function kC(s){let r=E.useContext(Hn).outlet;return E.useMemo(()=>r&&E.createElement(_C.Provider,{value:s},r),[r,s])}function Gf(){let{matches:s}=E.useContext(Hn),r=s[s.length-1];return r?r.params:{}}function cu(s,{relative:r}={}){let{matches:l}=E.useContext(Hn),{pathname:c}=rs(),u=JSON.stringify(Yf(l));return E.useMemo(()=>ru(s,JSON.parse(u),c,r==="path"),[s,u,c,r])}function CC(s,r,l){tt(dl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=E.useContext(yn),{matches:u}=E.useContext(Hn),d=u[u.length-1],h=d?d.params:{},g=d?d.pathname:"/",y=d?d.pathnameBase:"/",x=d&&d.route;{let L=x&&x.path||"";q4(g,!x||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=rs(),v;v=D;let S=v.pathname||"/",R=S;if(y!=="/"){let L=y.replace(/^\//,"").split("/");R="/"+S.replace(/^\//,"").split("/").slice(L.length).join("/")}let j=fo(s,{pathname:R});return qt(x||j!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),qt(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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.`),AC(j&&j.map(L=>Object.assign({},L,{params:Object.assign({},h,L.params),pathname:ss([y,c.encodeLocation?c.encodeLocation(L.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?y:ss([y,c.encodeLocation?c.encodeLocation(L.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),u,l)}function UC(){let s=HC(),r=au(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=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:d},"ErrorBoundary")," or"," ",E.createElement("code",{style:d},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},r),l?E.createElement("pre",{style:u},l):null,h)}var TC=E.createElement(UC,null),Y4=class extends E.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,r){return r.location!==s.location||r.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:r.error,location:r.location,revalidation:s.revalidation||r.revalidation}}componentDidCatch(s,r){this.props.onError?this.props.onError(s,r):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=EC(s.digest);l&&(s=l)}let r=s!==void 0?E.createElement(Hn.Provider,{value:this.props.routeContext},E.createElement(rb.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?E.createElement(jC,{error:s},r):r}};Y4.contextType=z4;var Bg=new WeakMap;function jC({children:s,error:r}){let{basename:l}=E.useContext(yn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let c=wC(r.digest);if(c){let u=Bg.get(r);if(u)throw u;let d=E4(c.location,l);if(w4&&!Bg.get(r))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 Bg.set(r,h),h}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return s}function OC({routeContext:s,match:r,children:l}){let c=E.useContext(si);return c&&c.static&&c.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=r.route.id),E.createElement(Hn.Provider,{value:s},l)}function AC(s,r=[],l){let c=l?.state;if(s==null){if(!c)return null;if(c.errors)s=c.matches;else if(r.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(v=>v.route.id&&d?.[v.route.id]!==void 0);tt(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 v=u[D];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=D),v.route.id){let{loaderData:S,errors:R}=c,j=v.route.loader&&!S.hasOwnProperty(v.route.id)&&(!R||R[v.route.id]===void 0);if(v.route.lazy||j){l.isStatic&&(h=!0),g>=0?u=u.slice(0,g+1):u=[u[0]];break}}}}let y=l?.onError,x=c&&y?(D,v)=>{y(D,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:iu(c.matches),errorInfo:v})}:void 0;return u.reduceRight((D,v,S)=>{let R,j=!1,H=null,L=null;c&&(R=d&&v.route.id?d[v.route.id]:void 0,H=v.route.errorElement||TC,h&&(g<0&&S===0?(q4("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,L=null):g===S&&(j=!0,L=v.route.hydrateFallbackElement||null)));let Q=r.concat(u.slice(0,S+1)),Z=()=>{let se;return R?se=H:j?se=L:v.route.Component?se=E.createElement(v.route.Component,null):v.route.element?se=v.route.element:se=D,E.createElement(OC,{match:v,routeContext:{outlet:D,matches:Q,isDataRoute:c!=null},children:se})};return c&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?E.createElement(Y4,{location:c.location,revalidation:c.revalidation,component:H,error:R,children:Z(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:x}):Z()},null)}function ob(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VC(s){let r=E.useContext(si);return tt(r,ob(s)),r}function MC(s){let r=E.useContext(lu);return tt(r,ob(s)),r}function zC(s){let r=E.useContext(Hn);return tt(r,ob(s)),r}function ib(s){let r=zC(s),l=r.matches[r.matches.length-1];return tt(l.route.id,`${s} can only be used on routes that contain a unique "id"`),l.route.id}function LC(){return ib("useRouteId")}function HC(){let s=E.useContext(rb),r=MC("useRouteError"),l=ib("useRouteError");return s!==void 0?s:r.errors?.[l]}function BC(){let{router:s}=VC("useNavigate"),r=ib("useNavigate"),l=E.useRef(!1);return $4(()=>{l.current=!0}),E.useCallback(async(u,d={})=>{qt(l.current,B4),l.current&&(typeof u=="number"?await s.navigate(u):await s.navigate(u,{fromRouteId:r,...d}))},[s,r])}var VS={};function q4(s,r,l){!r&&!VS[s]&&(VS[s]=!0,qt(!1,l))}var MS={};function zS(s,r){!s&&!MS[r]&&(MS[r]=!0,console.warn(r))}var $C="useOptimistic",LS=b_[$C],YC=()=>{};function qC(s){return LS?LS(s):[s,YC]}function GC(s){let r={hasErrorBoundary:s.hasErrorBoundary||s.ErrorBoundary!=null||s.errorElement!=null};return s.Component&&(s.element&&qt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(r,{element:E.createElement(s.Component),Component:void 0})),s.HydrateFallback&&(s.hydrateFallbackElement&&qt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(r,{hydrateFallbackElement:E.createElement(s.HydrateFallback),HydrateFallback:void 0})),s.ErrorBoundary&&(s.errorElement&&qt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(r,{errorElement:E.createElement(s.ErrorBoundary),ErrorBoundary:void 0})),r}var IC=["HydrateFallback","hydrateFallbackElement"],FC=class{constructor(){this.status="pending",this.promise=new Promise((s,r)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",s(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",r(l))}})}};function XC({router:s,flushSync:r,onError:l,unstable_useTransitions:c}){c=vC()||c;let[d,h]=E.useState(s.state),[g,y]=qC(d),[x,D]=E.useState(),[v,S]=E.useState({isTransitioning:!1}),[R,j]=E.useState(),[H,L]=E.useState(),[Q,Z]=E.useState(),se=E.useRef(new Map),fe=E.useCallback((_,{deletedFetchers:X,newErrors:q,flushSync:te,viewTransitionOpts:Y})=>{q&&l&&Object.values(q).forEach(K=>l(K,{location:_.location,params:_.matches[0]?.params??{},unstable_pattern:iu(_.matches)})),_.fetchers.forEach((K,ie)=>{K.data!==void 0&&se.current.set(ie,K.data)}),X.forEach(K=>se.current.delete(K)),zS(te===!1||r!=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 ce=s.window!=null&&s.window.document!=null&&typeof s.window.document.startViewTransition=="function";if(zS(Y==null||ce,"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."),!Y||!ce){r&&te?r(()=>h(_)):c===!1?h(_):E.startTransition(()=>{c===!0&&y(K=>HS(K,_)),h(_)});return}if(r&&te){r(()=>{H&&(R?.resolve(),H.skipTransition()),S({isTransitioning:!0,flushSync:!0,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation})});let K=s.window.document.startViewTransition(()=>{r(()=>h(_))});K.finished.finally(()=>{r(()=>{j(void 0),L(void 0),D(void 0),S({isTransitioning:!1})})}),r(()=>L(K));return}H?(R?.resolve(),H.skipTransition(),Z({state:_,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation})):(D(_),S({isTransitioning:!0,flushSync:!1,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation}))},[s.window,r,H,R,c,y,l]);E.useLayoutEffect(()=>s.subscribe(fe),[s,fe]),E.useEffect(()=>{v.isTransitioning&&!v.flushSync&&j(new FC)},[v]),E.useEffect(()=>{if(R&&x&&s.window){let _=x,X=R.promise,q=s.window.document.startViewTransition(async()=>{c===!1?h(_):E.startTransition(()=>{c===!0&&y(te=>HS(te,_)),h(_)}),await X});q.finished.finally(()=>{j(void 0),L(void 0),D(void 0),S({isTransitioning:!1})}),L(q)}},[x,R,s.window,c,y]),E.useEffect(()=>{R&&x&&g.location.key===x.location.key&&R.resolve()},[R,H,g.location,x]),E.useEffect(()=>{!v.isTransitioning&&Q&&(D(Q.state),S({isTransitioning:!0,flushSync:!1,currentLocation:Q.currentLocation,nextLocation:Q.nextLocation}),Z(void 0))},[v.isTransitioning,Q]);let be=E.useMemo(()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:_=>s.navigate(_),push:(_,X,q)=>s.navigate(_,{state:X,preventScrollReset:q?.preventScrollReset}),replace:(_,X,q)=>s.navigate(_,{replace:!0,state:X,preventScrollReset:q?.preventScrollReset})}),[s]),J=s.basename||"/",ee=E.useMemo(()=>({router:s,navigator:be,static:!1,basename:J,onError:l}),[s,be,J,l]);return E.createElement(E.Fragment,null,E.createElement(si.Provider,{value:ee},E.createElement(lu.Provider,{value:g},E.createElement(L4.Provider,{value:se.current},E.createElement(sb.Provider,{value:v},E.createElement(JC,{basename:J,location:g.location,navigationType:g.historyAction,navigator:be,unstable_useTransitions:c},E.createElement(QC,{routes:s.routes,future:s.future,state:g,isStatic:!1,onError:l})))))),null)}function HS(s,r){return{...s,navigation:r.navigation.state!=="idle"?r.navigation:s.navigation,revalidation:r.revalidation!=="idle"?r.revalidation:s.revalidation,actionData:r.navigation.state!=="submitting"?r.actionData:s.actionData,fetchers:r.fetchers}}var QC=E.memo(ZC);function ZC({routes:s,future:r,state:l,isStatic:c,onError:u}){return CC(s,void 0,{state:l,isStatic:c,onError:u})}function BS({to:s,replace:r,state:l,relative:c}){tt(dl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=E.useContext(yn);qt(!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}=E.useContext(Hn),{pathname:h}=rs(),g=ho(),y=ru(s,Yf(d),h,c==="path"),x=JSON.stringify(y);return E.useEffect(()=>{g(JSON.parse(x),{replace:r,state:l,relative:c})},[g,x,c,r,l]),null}function G4(s){return kC(s.context)}function JC({basename:s="/",children:r=null,location:l,navigationType:c="POP",navigator:u,static:d=!1,unstable_useTransitions:h}){tt(!dl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=s.replace(/^\/*/,"/"),y=E.useMemo(()=>({basename:g,navigator:u,static:d,unstable_useTransitions:h,future:{}}),[g,u,d,h]);typeof l=="string"&&(l=xr(l));let{pathname:x="/",search:D="",hash:v="",state:S=null,key:R="default",unstable_mask:j}=l,H=E.useMemo(()=>{let L=Ln(x,g);return L==null?null:{location:{pathname:L,search:D,hash:v,state:S,key:R,unstable_mask:j},navigationType:c}},[g,x,D,v,S,R,c,j]);return qt(H!=null,`<Router basename="${g}"> is not able to match the URL "${x}${D}${v}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:E.createElement(yn.Provider,{value:y},E.createElement(qf.Provider,{children:r,value:H}))}var Of="get",Af="application/x-www-form-urlencoded";function If(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function PC(s){return If(s)&&s.tagName.toLowerCase()==="button"}function KC(s){return If(s)&&s.tagName.toLowerCase()==="form"}function WC(s){return If(s)&&s.tagName.toLowerCase()==="input"}function eU(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function tU(s,r){return s.button===0&&(!r||r==="_self")&&!eU(s)}function Kg(s=""){return new URLSearchParams(typeof s=="string"||Array.isArray(s)||s instanceof URLSearchParams?s:Object.keys(s).reduce((r,l)=>{let c=s[l];return r.concat(Array.isArray(c)?c.map(u=>[l,u]):[[l,c]])},[]))}function aU(s,r){let l=Kg(s);return r&&r.forEach((c,u)=>{l.has(u)||r.getAll(u).forEach(d=>{l.append(u,d)})}),l}var kf=null;function nU(){if(kf===null)try{new FormData(document.createElement("form"),0),kf=!1}catch{kf=!0}return kf}var sU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $g(s){return s!=null&&!sU.has(s)?(qt(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Af}"`),null):s}function rU(s,r){let l,c,u,d,h;if(KC(s)){let g=s.getAttribute("action");c=g?Ln(g,r):null,l=s.getAttribute("method")||Of,u=$g(s.getAttribute("enctype"))||Af,d=new FormData(s)}else if(PC(s)||WC(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 y=s.getAttribute("formaction")||g.getAttribute("action");if(c=y?Ln(y,r):null,l=s.getAttribute("formmethod")||g.getAttribute("method")||Of,u=$g(s.getAttribute("formenctype"))||$g(g.getAttribute("enctype"))||Af,d=new FormData(g,s),!nU()){let{name:x,type:D,value:v}=s;if(D==="image"){let S=x?`${x}.`:"";d.append(`${S}x`,"0"),d.append(`${S}y`,"0")}else x&&d.append(x,v)}}else{if(If(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=Of,c=null,u=Af,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 lb(s,r){if(s===!1||s===null||typeof s>"u")throw new Error(r)}function oU(s,r,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}`:r&&Ln(u.pathname,r)==="/"?u.pathname=`${r.replace(/\/$/,"")}/_root.${c}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${c}`,u}async function iU(s,r){if(s.id in r)return r[s.id];try{let l=await import(s.module);return r[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 lU(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 cU(s,r,l){let c=await Promise.all(s.map(async u=>{let d=r.routes[u.route.id];if(d){let h=await iU(d,l);return h.links?h.links():[]}return[]}));return mU(c.flat(1).filter(lU).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function $S(s,r,l,c,u,d){let h=(y,x)=>l[x]?y.route.id!==l[x].route.id:!0,g=(y,x)=>l[x].pathname!==y.pathname||l[x].route.path?.endsWith("*")&&l[x].params["*"]!==y.params["*"];return d==="assets"?r.filter((y,x)=>h(y,x)||g(y,x)):d==="data"?r.filter((y,x)=>{let D=c.routes[y.route.id];if(!D||!D.hasLoader)return!1;if(h(y,x)||g(y,x))return!0;if(y.route.shouldRevalidate){let v=y.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(s,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function uU(s,r,{includeHydrateFallback:l}={}){return dU(s.map(c=>{let u=r.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 dU(s){return[...new Set(s)]}function fU(s){let r={},l=Object.keys(s).sort();for(let c of l)r[c]=s[c];return r}function mU(s,r){let l=new Set;return new Set(r),s.reduce((c,u)=>{let d=JSON.stringify(fU(u));return l.has(d)||(l.add(d),c.push({key:d,link:u})),c},[])}function I4(){let s=E.useContext(si);return lb(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function pU(){let s=E.useContext(lu);return lb(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var cb=E.createContext(void 0);cb.displayName="FrameworkContext";function F4(){let s=E.useContext(cb);return lb(s,"You must render this element inside a <HydratedRouter> element"),s}function hU(s,r){let l=E.useContext(cb),[c,u]=E.useState(!1),[d,h]=E.useState(!1),{onFocus:g,onBlur:y,onMouseEnter:x,onMouseLeave:D,onTouchStart:v}=r,S=E.useRef(null);E.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let H=Q=>{Q.forEach(Z=>{h(Z.isIntersecting)})},L=new IntersectionObserver(H,{threshold:.5});return S.current&&L.observe(S.current),()=>{L.disconnect()}}},[s]),E.useEffect(()=>{if(c){let H=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(H)}}},[c]);let R=()=>{u(!0)},j=()=>{u(!1),h(!1)};return l?s!=="intent"?[d,S,{}]:[d,S,{onFocus:Ic(g,R),onBlur:Ic(y,j),onMouseEnter:Ic(x,R),onMouseLeave:Ic(D,j),onTouchStart:Ic(v,R)}]:[!1,S,{}]}function Ic(s,r){return l=>{s&&s(l),l.defaultPrevented||r(l)}}function gU({page:s,...r}){let{router:l}=I4(),c=E.useMemo(()=>fo(l.routes,s,l.basename),[l.routes,s,l.basename]);return c?E.createElement(yU,{page:s,matches:c,...r}):null}function bU(s){let{manifest:r,routeModules:l}=F4(),[c,u]=E.useState([]);return E.useEffect(()=>{let d=!1;return cU(s,r,l).then(h=>{d||u(h)}),()=>{d=!0}},[s,r,l]),c}function yU({page:s,matches:r,...l}){let c=rs(),{future:u,manifest:d,routeModules:h}=F4(),{basename:g}=I4(),{loaderData:y,matches:x}=pU(),D=E.useMemo(()=>$S(s,r,x,d,c,"data"),[s,r,x,d,c]),v=E.useMemo(()=>$S(s,r,x,d,c,"assets"),[s,r,x,d,c]),S=E.useMemo(()=>{if(s===c.pathname+c.search+c.hash)return[];let H=new Set,L=!1;if(r.forEach(Z=>{let se=d.routes[Z.route.id];!se||!se.hasLoader||(!D.some(fe=>fe.route.id===Z.route.id)&&Z.route.id in y&&h[Z.route.id]?.shouldRevalidate||se.hasClientLoader?L=!0:H.add(Z.route.id))}),H.size===0)return[];let Q=oU(s,g,u.unstable_trailingSlashAwareDataRequests,"data");return L&&H.size>0&&Q.searchParams.set("_routes",r.filter(Z=>H.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[Q.pathname+Q.search]},[g,u.unstable_trailingSlashAwareDataRequests,y,c,d,D,r,s,h]),R=E.useMemo(()=>uU(v,d),[v,d]),j=bU(v);return E.createElement(E.Fragment,null,S.map(H=>E.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...l})),R.map(H=>E.createElement("link",{key:H,rel:"modulepreload",href:H,...l})),j.map(({key:H,link:L})=>E.createElement("link",{key:H,nonce:l.nonce,...L,crossOrigin:L.crossOrigin??l.crossOrigin})))}function vU(...s){return r=>{s.forEach(l=>{typeof l=="function"?l(r):l!=null&&(l.current=r)})}}var xU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{xU&&(window.__reactRouterVersion="7.13.1")}catch{}function NU(s,r){return Qk({basename:r?.basename,getContext:r?.getContext,future:r?.future,history:uk({window:r?.window}),hydrationData:SU(),routes:s,mapRouteProperties:GC,hydrationRouteProperties:IC,dataStrategy:r?.dataStrategy,patchRoutesOnNavigation:r?.patchRoutesOnNavigation,window:r?.window,unstable_instrumentations:r?.unstable_instrumentations}).initialize()}function SU(){let s=window?.__staticRouterHydrationData;return s&&s.errors&&(s={...s,errors:wU(s.errors)}),s}function wU(s){if(!s)return null;let r=Object.entries(s),l={};for(let[c,u]of r)if(u&&u.__type==="RouteErrorResponse")l[c]=new ou(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 X4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pa=E.forwardRef(function({onClick:r,discover:l="render",prefetch:c="none",relative:u,reloadDocument:d,replace:h,unstable_mask:g,state:y,target:x,to:D,preventScrollReset:v,viewTransition:S,unstable_defaultShouldRevalidate:R,...j},H){let{basename:L,navigator:Q,unstable_useTransitions:Z}=E.useContext(yn),se=typeof D=="string"&&X4.test(D),fe=E4(D,L);D=fe.to;let be=DC(D,{relative:u}),J=rs(),ee=null;if(g){let ie=ru(g,[],J.unstable_mask?J.unstable_mask.pathname:"/",!0);L!=="/"&&(ie.pathname=ie.pathname==="/"?L:ss([L,ie.pathname])),ee=Q.createHref(ie)}let[_,X,q]=hU(c,j),te=RU(D,{replace:h,unstable_mask:g,state:y,target:x,preventScrollReset:v,relative:u,viewTransition:S,unstable_defaultShouldRevalidate:R,unstable_useTransitions:Z});function Y(ie){r&&r(ie),ie.defaultPrevented||te(ie)}let ce=!(fe.isExternal||d),K=E.createElement("a",{...j,...q,href:(ce?ee:void 0)||fe.absoluteURL||be,onClick:ce?Y:r,ref:vU(H,X),target:x,"data-discover":!se&&l==="render"?"true":void 0});return _&&!se?E.createElement(E.Fragment,null,K,E.createElement(gU,{page:be})):K});Pa.displayName="Link";var nu=E.forwardRef(function({"aria-current":r="page",caseSensitive:l=!1,className:c="",end:u=!1,style:d,to:h,viewTransition:g,children:y,...x},D){let v=cu(h,{relative:x.relative}),S=rs(),R=E.useContext(lu),{navigator:j,basename:H}=E.useContext(yn),L=R!=null&&jU(v)&&g===!0,Q=j.encodeLocation?j.encodeLocation(v).pathname:v.pathname,Z=S.pathname,se=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;l||(Z=Z.toLowerCase(),se=se?se.toLowerCase():null,Q=Q.toLowerCase()),se&&H&&(se=Ln(se,H)||se);const fe=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let be=Z===Q||!u&&Z.startsWith(Q)&&Z.charAt(fe)==="/",J=se!=null&&(se===Q||!u&&se.startsWith(Q)&&se.charAt(Q.length)==="/"),ee={isActive:be,isPending:J,isTransitioning:L},_=be?r:void 0,X;typeof c=="function"?X=c(ee):X=[c,be?"active":null,J?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let q=typeof d=="function"?d(ee):d;return E.createElement(Pa,{...x,"aria-current":_,className:X,ref:D,style:q,to:h,viewTransition:g},typeof y=="function"?y(ee):y)});nu.displayName="NavLink";var EU=E.forwardRef(({discover:s="render",fetcherKey:r,navigate:l,reloadDocument:c,replace:u,state:d,method:h=Of,action:g,onSubmit:y,relative:x,preventScrollReset:D,viewTransition:v,unstable_defaultShouldRevalidate:S,...R},j)=>{let{unstable_useTransitions:H}=E.useContext(yn),L=UU(),Q=TU(g,{relative:x}),Z=h.toLowerCase()==="get"?"get":"post",se=typeof g=="string"&&X4.test(g),fe=be=>{if(y&&y(be),be.defaultPrevented)return;be.preventDefault();let J=be.nativeEvent.submitter,ee=J?.getAttribute("formmethod")||h,_=()=>L(J||be.currentTarget,{fetcherKey:r,method:ee,navigate:l,replace:u,state:d,relative:x,preventScrollReset:D,viewTransition:v,unstable_defaultShouldRevalidate:S});H&&l!==!1?E.startTransition(()=>_()):_()};return E.createElement("form",{ref:j,method:Z,action:Q,onSubmit:c?y:fe,...R,"data-discover":!se&&s==="render"?"true":void 0})});EU.displayName="Form";function DU(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Q4(s){let r=E.useContext(si);return tt(r,DU(s)),r}function RU(s,{target:r,replace:l,unstable_mask:c,state:u,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:y,unstable_useTransitions:x}={}){let D=ho(),v=rs(),S=cu(s,{relative:h});return E.useCallback(R=>{if(tU(R,r)){R.preventDefault();let j=l!==void 0?l:Ls(v)===Ls(S),H=()=>D(s,{replace:j,unstable_mask:c,state:u,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:y});x?E.startTransition(()=>H()):H()}},[v,D,S,l,c,u,r,s,d,h,g,y,x])}function _U(s){qt(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 r=E.useRef(Kg(s)),l=E.useRef(!1),c=rs(),u=E.useMemo(()=>aU(c.search,l.current?null:r.current),[c.search]),d=ho(),h=E.useCallback((g,y)=>{const x=Kg(typeof g=="function"?g(new URLSearchParams(u)):g);l.current=!0,d("?"+x,y)},[d,u]);return[u,h]}var kU=0,CU=()=>`__${String(++kU)}__`;function UU(){let{router:s}=Q4("useSubmit"),{basename:r}=E.useContext(yn),l=LC(),c=s.fetch,u=s.navigate;return E.useCallback(async(d,h={})=>{let{action:g,method:y,encType:x,formData:D,body:v}=rU(d,r);if(h.navigate===!1){let S=h.fetcherKey||CU();await c(S,l,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:v,formMethod:h.method||y,formEncType:h.encType||x,flushSync:h.flushSync})}else await u(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:v,formMethod:h.method||y,formEncType:h.encType||x,replace:h.replace,state:h.state,fromRouteId:l,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,u,r,l])}function TU(s,{relative:r}={}){let{basename:l}=E.useContext(yn),c=E.useContext(Hn);tt(c,"useFormAction must be used inside a RouteContext");let[u]=c.matches.slice(-1),d={...cu(s||".",{relative:r})},h=rs();if(s==null){d.search=h.search;let g=new URLSearchParams(d.search),y=g.getAll("index");if(y.some(D=>D==="")){g.delete("index"),y.filter(v=>v).forEach(v=>g.append("index",v));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:ss([l,d.pathname])),Ls(d)}function jU(s,{relative:r}={}){let l=E.useContext(sb);tt(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Q4("useViewTransitionState"),u=cu(s,{relative:r});if(!l.isTransitioning)return!1;let d=Ln(l.currentLocation.pathname,c)||l.currentLocation.pathname,h=Ln(l.nextLocation.pathname,c)||l.nextLocation.pathname;return Hf(u.pathname,h)!=null||Hf(u.pathname,d)!=null}const Z4=(...s)=>s.filter((r,l,c)=>!!r&&r.trim()!==""&&c.indexOf(r)===l).join(" ").trim();const OU=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const AU=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,c)=>c?c.toUpperCase():l.toLowerCase());const YS=s=>{const r=AU(s);return r.charAt(0).toUpperCase()+r.slice(1)};var VU={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 MU=s=>{for(const r in s)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const zU=E.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:u="",children:d,iconNode:h,...g},y)=>E.createElement("svg",{ref:y,...VU,width:r,height:r,stroke:s,strokeWidth:c?Number(l)*24/Number(r):l,className:Z4("lucide",u),...!d&&!MU(g)&&{"aria-hidden":"true"},...g},[...h.map(([x,D])=>E.createElement(x,D)),...Array.isArray(d)?d:[d]]));const at=(s,r)=>{const l=E.forwardRef(({className:c,...u},d)=>E.createElement(zU,{ref:d,iconNode:r,className:Z4(`lucide-${OU(YS(s))}`,`lucide-${s}`,c),...u}));return l.displayName=YS(s),l};const LU=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],J4=at("arrow-right",LU);const HU=[["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"}]],BU=at("boxes",HU);const $U=[["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"}]],YU=at("brain",$U);const qU=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Bf=at("check",qU);const GU=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ub=at("chevron-down",GU);const IU=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vr=at("chevron-right",IU);const FU=[["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"}]],db=at("circle-alert",FU);const XU=[["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"}]],qS=at("copy",XU);const QU=[["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"}]],ZU=at("database",QU);const JU=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],GS=at("download",JU);const PU=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],KU=at("ellipsis",PU);const WU=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],eT=at("external-link",WU);const tT=[["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"}]],aT=at("file-spreadsheet",tT);const nT=[["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"}]],ul=at("file-text",nT);const sT=[["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"}]],P4=at("file",sT);const rT=[["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"}]],Ff=at("folder-git-2",rT);const oT=[["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"}]],iT=at("folder-input",oT);const lT=[["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"}]],cT=at("folder-open",lT);const uT=[["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"}]],K4=at("folder-plus",uT);const dT=[["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"}]],gn=at("folder",dT);const fT=[["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"}]],IS=at("git-branch",fT);const mT=[["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"}]],pT=at("globe",mT);const hT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],W4=at("info",hT);const gT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],bn=at("loader-circle",gT);const bT=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],yT=at("menu",bT);const vT=[["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"}]],xT=at("monitor",vT);const NT=[["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"}]],ST=at("moon",NT);const wT=[["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"}]],Xf=at("package",wT);const ET=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],DT=at("panel-left",ET);const RT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ew=at("plus",RT);const _T=[["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"}]],kT=at("refresh-cw",_T);const CT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],UT=at("search",CT);const TT=[["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"}]],jT=at("settings",TT);const OT=[["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"}]],AT=at("share-2",OT);const VT=[["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"}]],MT=at("sparkles",VT);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"}]],LT=at("sun",zT);const HT=[["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"}]],BT=at("upload",HT);const $T=[["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"}]],YT=at("users",$T);const qT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fb=at("x",qT),FS=s=>{let r;const l=new Set,c=(x,D)=>{const v=typeof x=="function"?x(r):x;if(!Object.is(v,r)){const S=r;r=D??(typeof v!="object"||v===null)?v:Object.assign({},r,v),l.forEach(R=>R(r,S))}},u=()=>r,g={setState:c,getState:u,getInitialState:()=>y,subscribe:x=>(l.add(x),()=>l.delete(x))},y=r=s(c,u,g);return g},GT=(s=>s?FS(s):FS),IT=s=>s;function FT(s,r=IT){const l=il.useSyncExternalStore(s.subscribe,il.useCallback(()=>r(s.getState()),[s,r]),il.useCallback(()=>r(s.getInitialState()),[s,r]));return il.useDebugValue(l),l}const XS=s=>{const r=GT(s),l=c=>FT(r,c);return Object.assign(l,r),l},Qf=(s=>s?XS(s):XS),XT="/api/v1";class Vf extends Error{constructor(r,l,c){super(c),this.status=r,this.code=l,this.name="ApiError"}}async function Cf(s,r,l,c){let u=`${XT}${r}`;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",y=h.statusText;try{const x=await h.json();x.code&&(g=x.code),x.message&&(y=x.message)}catch{}throw new Vf(h.status,g,y)}return h.json()}const va={get(s,r){return Cf("GET",s,void 0,r)},post(s,r){return Cf("POST",s,r)},put(s,r){return Cf("PUT",s,r)},delete(s){return Cf("DELETE",s)}},QT=3e4,ZT=1e3,JT=3e4;class PT{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(r){this._status=r;for(const l of this.statusHandlers)l(r)}onStatusChange(r){return this.statusHandlers.add(r),()=>{this.statusHandlers.delete(r)}}connect(r){this.url=r,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(r,l){let c=this.handlers.get(r);return c||(c=new Set,this.handlers.set(r,c)),c.add(l),()=>{c.delete(l),c.size===0&&this.handlers.delete(r)}}send(r,l){if(this.ws?.readyState!==WebSocket.OPEN)return;const c={event:r,payload:l,timestamp:Date.now()};this.ws.send(JSON.stringify(c))}open(){this.setStatus("connecting");const r=new WebSocket(this.url);r.onopen=()=>{this.reconnectAttempt=0,this.setStatus("connected"),this.startHeartbeat()},r.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{}},r.onclose=()=>{this.stopHeartbeat(),this.intentionalClose||(this.setStatus("reconnecting"),this.scheduleReconnect())},r.onerror=()=>{},this.ws=r}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({event:"ping",payload:null,timestamp:Date.now()}))},QT)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const r=Math.min(ZT*2**this.reconnectAttempt,JT);this.reconnectAttempt++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.open()},r)}clearTimers(){this.stopHeartbeat(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}}const Hs=new PT,ni=Qf(s=>({status:"disconnected",onlineCount:0,connections:[],setStatus:r=>s({status:r}),fetchDaemonStatus:async()=>{try{const r=await va.get("/daemons/status");s({onlineCount:r.online_count,connections:r.connections})}catch{}}})),KT=s=>s==="connecting"?"disconnected":s;Hs.onStatusChange(s=>{ni.getState().setStatus(KT(s))});Hs.on("ws:daemon:connected",s=>{const r=s;ni.setState(l=>{if(l.connections.some(h=>h.machine_id===r.machine_id))return l;const u={machine_id:r.machine_id};r.lib_id&&(u.lib_id=r.lib_id);const d=[...l.connections,u];return{connections:d,onlineCount:d.length}})});Hs.on("ws:daemon:status",s=>{const r=s;ni.setState(l=>{if(r.is_online){if(l.connections.some(g=>g.machine_id===r.machine_id))return l;const d={machine_id:r.machine_id};r.lib_id&&(d.lib_id=r.lib_id);const h=[...l.connections,d];return{connections:h,onlineCount:h.length}}const c=l.connections.filter(u=>u.machine_id!==r.machine_id);return{connections:c,onlineCount:c.length}})});const Zf="lib_cloud_default",ka=Qf((s,r)=>({libraries:[],loading:!1,error:null,fetchLibraries:async()=>{s({loading:!0,error:null});try{const l=await va.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 va.post("/libraries",l);return s(u=>({libraries:[...u.libraries,c]})),c},deleteLibrary:async l=>{await va.delete(`/libraries/${l}`),s(c=>({libraries:c.libraries.filter(u=>u.id!==l)}))},updateLibraryName:async(l,c)=>{const u=await va.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 va.get(`/libraries/${l}`);s(u=>({libraries:u.libraries.map(d=>d.id===l?c:d)}))}catch{r().fetchLibraries()}}})),uu=s=>{const r=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[...r,...l]},WT=s=>s.libraries.filter(r=>r.type==="daemon");Hs.on("ws:daemon:status",s=>{const r=s;r.lib_id&&ka.getState()._updateLibraryOnline(r.lib_id,r.is_online),ka.getState().fetchLibraries()});Hs.on("ws:daemon:connected",s=>{const r=s;r.lib_id&&ka.getState()._updateLibraryOnline(r.lib_id,!0),ka.getState().fetchLibraries()});Hs.on("ws:library:updated",s=>{const r=s;ka.getState()._refreshLibrary(r.library_id)});const QS=s=>Symbol.iterator in s,ZS=s=>"entries"in s,JS=(s,r)=>{const l=s instanceof Map?s:new Map(s.entries()),c=r instanceof Map?r:new Map(r.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},ej=(s,r)=>{const l=s[Symbol.iterator](),c=r[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 tj(s,r){return Object.is(s,r)?!0:typeof s!="object"||s===null||typeof r!="object"||r===null||Object.getPrototypeOf(s)!==Object.getPrototypeOf(r)?!1:QS(s)&&QS(r)?ZS(s)&&ZS(r)?JS(s,r):ej(s,r):JS({entries:()=>Object.entries(s)},{entries:()=>Object.entries(r)})}function fl(s){const r=il.useRef(void 0);return l=>{const c=s(l);return tj(r.current,c)?r.current:r.current=c}}function Wg(){const{t:s}=Le(),r=ni(h=>h.onlineCount),l=ni(h=>h.connections.length);if(ka(fl(WT)).length===0)return null;const u=r>0,d=u?s("sources.header.daemon_status",{online:r,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 PS=[{to:"/",labelKey:"nav.home"},{to:"/studio",labelKey:"nav.studio"},{to:"/docs",labelKey:"nav.docs"}];function aj(){const{t:s}=Le(),[r,l]=E.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(Pa,{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:PS.map(({to:c,labelKey:u})=>m.jsxDEV(nu,{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(Wg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:51,columnNumber:13},this),m.jsxDEV(Pa,{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(!r),className:"text-c4a-text-secondary md:hidden",children:r?m.jsxDEV(fb,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:23},this):m.jsxDEV(yT,{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),r&&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:PS.map(({to:c,labelKey:u})=>m.jsxDEV(nu,{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(Wg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:94,columnNumber:15},this),m.jsxDEV(Pa,{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 nj(s){return s==="system"&&typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s==="system"?"dark":s}function tw(s){if(typeof window>"u")return;const r=nj(s);document.documentElement.setAttribute("data-theme",r),localStorage.setItem("theme",s)}function sj(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}const aw=Qf(s=>({theme:sj(),setTheme:r=>{tw(r),s({theme:r})}}));let KS=!1;function rj(){if(KS||typeof window>"u")return;KS=!0;const s=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{const{theme:l}=aw.getState();l==="system"&&tw("system")};s.addEventListener("change",r)}rj();const oj=[{mode:"light",icon:LT,labelKey:"footer.theme.light"},{mode:"dark",icon:ST,labelKey:"footer.theme.dark"},{mode:"system",icon:xT,labelKey:"footer.theme.system"}];function ij(){const{t:s}=Le(),{theme:r,setTheme:l}=aw();return m.jsxDEV("div",{className:"flex items-center gap-1",children:oj.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 ${r===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 lj(){const{i18n:s}=Le(),r=()=>{const l=s.language==="en"?"zh":"en";s.changeLanguage(l)};return m.jsxDEV("button",{onClick:r,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)}const cj="_brandIcon_1c7st_1",uj="_iconPulse_1c7st_35",WS={brandIcon:cj,iconPulse:uj};function nw(){const{t:s}=Le(),r=new Date().getFullYear();return m.jsxDEV("footer",{className:"border-t border-c4a-border-subtle bg-c4a-bg-base 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:WS.brandIcon,children:m.jsxDEV("span",{className:WS.iconPulse,children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:16,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:15,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:19,columnNumber:13},this),m.jsxDEV("span",{className:"font-mono text-[10px] uppercase tracking-wider text-c4a-text-muted",children:s("footer.tagline")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:22,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:18,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:14,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(ij,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:31,columnNumber:13},this),m.jsxDEV(lj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:32,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:30,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-[11px] text-c4a-text-muted",children:s("footer.copyright",{year:r})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:34,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:29,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:12,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:11,columnNumber:5},this)}function dj(){return m.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[m.jsxDEV(aj,{},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(G4,{},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(nw,{},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 fj({onToggleSidebar:s}){const{t:r}=Le();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:"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(DT,{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(Pa,{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(Pa,{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(Wg,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:52,columnNumber:11},this),m.jsxDEV(Pa,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:r("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)}function sw({currentName:s,onConfirm:r,onCancel:l,error:c}){const[u,d]=E.useState(s),h=E.useRef(null);E.useEffect(()=>{h.current?.select()},[]);const g=E.useCallback(()=>{const x=u.trim();x&&x!==s?r(x):l()},[u,s,r,l]),y=E.useCallback(x=>{x.key==="Enter"?(x.preventDefault(),g()):x.key==="Escape"&&l()},[g,l]);return m.jsxDEV("div",{className:"flex items-center gap-1",children:[m.jsxDEV("input",{ref:h,value:u,onChange:x=>d(x.target.value),onKeyDown:y,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:x=>{x.stopPropagation(),g()},className:"rounded p-0.5 text-c4a-success hover:bg-c4a-bg-hover",children:m.jsxDEV(Bf,{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:x=>{x.stopPropagation(),l()},className:"rounded p-0.5 text-c4a-error hover:bg-c4a-bg-hover",children:m.jsxDEV(fb,{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 rw({target:s,onConfirm:r,onCancel:l}){const{t:c}=Le(),u=E.useRef(null);E.useEffect(()=>{const h=g=>{g.key==="Escape"&&l()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[l]);const d=E.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:r,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)}const ow="lib_cloud_default",mj=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"}`,pj=[{to:"/studio/modeling",icon:BU,i18nKey:"studio.sidebar.modeling"},{to:"/studio/brain",icon:YU,i18nKey:"studio.sidebar.brain"},{to:"/studio/discovery",icon:UT,i18nKey:"studio.sidebar.discovery"},{to:"/studio/sharing",icon:AT,i18nKey:"studio.sidebar.sharing"},{to:"/studio/collaboration",icon:YT,i18nKey:"studio.sidebar.collaboration"},{to:"/studio/settings",icon:jT,i18nKey:"studio.sidebar.settings"}];function hj({state:s,onClose:r,onRename:l,onDelete:c}){const{t:u}=Le(),d=E.useRef(null);E.useEffect(()=>{const g=y=>{d.current&&!d.current.contains(y.target)&&r()};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[r]);const h=s.library.id===ow;return m.jsxDEV("div",{ref:d,className:"fixed z-50 min-w-[140px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-lg",style:{top:s.y,left:s.x},children:[m.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary",onClick:()=>{l(s.library),r()},children:u("sources.library.rename")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:99,columnNumber:7},this),!h&&m.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-error hover:bg-c4a-bg-hover",onClick:()=>{c(s.library),r()},children:u("sources.actions.delete")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:109,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:94,columnNumber:5},this)}function e4({onNavigate:s}){const{t:r}=Le(),l=rs(),c=ho(),u=ka(fl(uu)),d=ka(te=>te.updateLibraryName),h=ka(te=>te.deleteLibrary),g=l.pathname.startsWith("/studio/sources")||l.pathname.startsWith("/studio/source/"),[y,x]=E.useState(g),[D,v]=E.useState(null),[S,R]=E.useState(null),[j,H]=E.useState(null),[L,Q]=E.useState(null);E.useEffect(()=>{g&&x(!0)},[g]);const Z=E.useCallback((te,Y)=>{te.preventDefault(),v({x:te.clientX,y:te.clientY,library:Y})},[]),se=E.useCallback(()=>v(null),[]),fe=E.useCallback(te=>{R(te.id),H(null)},[]),be=E.useCallback(async te=>{if(S)try{await d(S,te),R(null),H(null)}catch(Y){const ce=Y instanceof Error?Y.message:String(Y);H(ce)}},[S,d]),J=E.useCallback(()=>{R(null),H(null)},[]),ee=E.useCallback(te=>{Q(te)},[]),_=E.useCallback(async()=>{if(L){try{await h(L.id),l.pathname.includes(L.id)&&c("/studio/sources")}catch{}Q(null)}},[L,h,l.pathname,c]),X=E.useCallback(()=>{Q(null)},[]),q=te=>te.id===ow?r("sources.library.default_cloud_name"):te.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:()=>x(te=>!te),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 ${g?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:[m.jsxDEV(ZU,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:227,columnNumber:13},this),r("studio.sidebar.sources"),m.jsxDEV("span",{role:"button",tabIndex:0,onClick:te=>{te.stopPropagation(),c("/studio/sources/add-client"),s?.()},onKeyDown:te=>{(te.key==="Enter"||te.key===" ")&&(te.stopPropagation(),c("/studio/sources/add-client"),s?.())},className:"rounded p-0.5 text-c4a-text-muted opacity-0 transition-opacity hover:bg-c4a-bg-hover hover:text-c4a-text-primary max-md:opacity-100 group-hover/sources:opacity-100",title:r("sources.menu.add_client"),children:m.jsxDEV(ew,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:247,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:229,columnNumber:13},this),m.jsxDEV("span",{className:"ml-auto shrink-0",children:y?m.jsxDEV(ub,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:251,columnNumber:17},this):m.jsxDEV(vr,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:253,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:249,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:219,columnNumber:11},this),y&&m.jsxDEV("div",{className:"mt-0.5 flex flex-col gap-0.5",children:u.map(te=>{const Y=S===te.id,ce=q(te);return Y?m.jsxDEV("div",{className:"py-1.5 pl-8 pr-3",onClick:K=>K.stopPropagation(),children:m.jsxDEV(sw,{currentName:ce,onConfirm:be,onCancel:J,error:j},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:271,columnNumber:23},this)},te.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:266,columnNumber:21},this):m.jsxDEV(nu,{to:`/studio/sources/${te.id}`,onClick:s,onContextMenu:K=>Z(K,te),className:({isActive:K})=>`flex items-center gap-2 rounded py-1.5 pl-8 pr-3 font-mono text-xs tracking-tight transition-colors duration-150 ${K?"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:ce},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:295,columnNumber:21},this),te.type==="daemon"&&m.jsxDEV("span",{className:`ml-auto h-[7px] w-[7px] shrink-0 rounded-full ${te.is_online?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:297,columnNumber:23},this)]},te.id,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:282,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:259,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:218,columnNumber:9},this),pj.map(({to:te,icon:Y,i18nKey:ce})=>m.jsxDEV(nu,{to:te,onClick:s,className:({isActive:K})=>mj(K),children:[m.jsxDEV(Y,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:318,columnNumber:13},this),r(ce)]},te,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:312,columnNumber:11},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:216,columnNumber:7},this),D&&m.jsxDEV(hj,{state:D,onClose:se,onRename:fe,onDelete:ee},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:325,columnNumber:9},this),L&&m.jsxDEV(rw,{target:{type:"client",name:q(L)},onConfirm:_,onCancel:X},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:334,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:215,columnNumber:5},this)}function gj(){const[s,r]=E.useState(!1);return E.useEffect(()=>{ka.getState().fetchLibraries(),ni.getState().fetchDaemonStatus()},[]),E.useEffect(()=>Hs.onStatusChange(l=>{l==="connected"&&(ka.getState().fetchLibraries(),ni.getState().fetchDaemonStatus())}),[]),m.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[m.jsxDEV(fj,{onToggleSidebar:()=>r(!s)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:30,columnNumber:7},this),m.jsxDEV("div",{className:"flex flex-1",children:[m.jsxDEV("div",{className:"hidden md:block",children:m.jsxDEV(e4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:35,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:34,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:()=>r(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:41,columnNumber:13},this),m.jsxDEV("div",{className:"fixed bottom-0 left-0 top-14 z-30 md:hidden",children:m.jsxDEV(e4,{onNavigate:()=>r(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:46,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:45,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:40,columnNumber:11},this),m.jsxDEV("main",{className:"flex flex-1 flex-col overflow-x-hidden",children:m.jsxDEV(G4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:52,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:32,columnNumber:7},this),m.jsxDEV(nw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:56,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:29,columnNumber:5},this)}function bj(){const{t:s}=Le();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(Pa,{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(J4,{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 Bn({title:s,version:r,description:l}){const{t:c}=Le();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),r&&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:r})},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 yj(){const{t:s}=Le();return m.jsxDEV(Bn,{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 vj(){const{t:s}=Le();return m.jsxDEV(Bn,{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 xj(){const{t:s}=Le();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(Pa,{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 Nj(){const{t:s}=Le();return m.jsxDEV(Bn,{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 Sj(){const{t:s}=Le();return m.jsxDEV(Bn,{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 wj(){const{t:s}=Le();return m.jsxDEV(Bn,{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 Ej(){const{t:s}=Le();return m.jsxDEV(Bn,{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 Dj(){const{t:s}=Le();return m.jsxDEV(Bn,{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 Rj(){const{t:s}=Le();return m.jsxDEV(Bn,{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 _j(){const{t:s}=Le();return m.jsxDEV(Bn,{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 kj(){const{t:s}=Le();return m.jsxDEV(Bn,{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 Cj(){const{t:s}=Le();return m.jsxDEV(Bn,{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 Uj(){const{t:s}=Le();return m.jsxDEV(Bn,{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=Qf(s=>({sources:[],currentSource:null,loading:!1,error:null,total:0,limit:100,offset:0,filter:"all",fetchSources:async({library_id:r,parent_id:l,limit:c,offset:u})=>{s({loading:!0,error:null});try{const d={library_id:r};l!=null&&(d.parent_id=l),c!==void 0&&(d.limit=String(c)),u!==void 0&&(d.offset=String(u));const h=await va.get("/sources",d);s({sources:h.items,total:h.total,limit:h.limit,offset:h.offset,loading:!1})}catch(d){s({error:d instanceof Error?d.message:"Failed to load sources",loading:!1})}},fetchChildren:async r=>await va.get(`/sources/${r}/children`),fetchSource:async r=>{s({loading:!0,error:null});try{const l=await va.get(`/sources/${r}`);s({currentSource:l,loading:!1})}catch(l){s({error:l instanceof Error?l.message:"Failed to load source",loading:!1})}},createSource:async r=>await va.post("/sources",r),updateSource:async(r,l)=>{const c=await va.put(`/sources/${r}`,l);s(u=>({sources:u.sources.map(d=>d.id===r?c:d),currentSource:u.currentSource?.id===r?c:u.currentSource}))},deleteSource:async r=>{await va.delete(`/sources/${r}`),s(l=>({sources:l.sources.filter(c=>c.id!==r),currentSource:l.currentSource?.id===r?null:l.currentSource}))},setFilter:r=>s({filter:r}),clearSources:()=>s({sources:[],currentSource:null,total:0,offset:0})}));function du({segments:s}){const{t:r}=Le(),l=[{label:r("sources.breadcrumb.sources")},...s],c=l.length>4?[l[0],{label:"..."},l[l.length-2],l[l.length-1]]:l;return m.jsxDEV("nav",{className:"flex min-h-8 items-center gap-1 font-mono text-xs text-c4a-text-muted",children:c.map((u,d)=>{const h=d===c.length-1;return m.jsxDEV("span",{className:"flex items-center gap-1",children:[d>0&&m.jsxDEV(vr,{size:12,className:"text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:40,columnNumber:15},this),u.to&&!h?m.jsxDEV(Pa,{to:u.to,className:"cursor-pointer transition-colors hover:text-c4a-text-primary",children:u.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:43,columnNumber:15},this):m.jsxDEV("span",{className:h?"text-c4a-text-primary":"",children:u.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:50,columnNumber:15},this)]},d,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:38,columnNumber:11},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:34,columnNumber:5},this)}const Tj=["all","indexed","not_indexed"];function jj({value:s,onChange:r}){const{t:l}=Le(),c={all:l("sources.filter.all"),indexed:l("sources.filter.indexed"),not_indexed:l("sources.filter.not_indexed")};return m.jsxDEV("select",{value:s,onChange:u=>r(u.target.value),className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs text-c4a-text-secondary outline-none transition-colors hover:border-c4a-border-strong focus:border-c4a-accent",children:Tj.map(u=>m.jsxDEV("option",{value:u,children:c[u]},u,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:27,columnNumber:9},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:21,columnNumber:5},this)}function Oj({source:s,isDaemonLibrary:r}){return s.kind==="folder"?r?m.jsxDEV(cT,{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:33,columnNumber:7},this):m.jsxDEV(gn,{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):s.source_type==="code"?m.jsxDEV(Xf,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:39,columnNumber:12},this):m.jsxDEV(ul,{size:16,className:"shrink-0 text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:41,columnNumber:10},this)}function t4({status:s}){const{t:r}=Le(),l={none:"bg-c4a-bg-active text-c4a-text-muted",indexed:"bg-c4a-success/20 text-c4a-success",stale:"bg-c4a-warning/20 text-c4a-warning"},c={none:"sources.status.none",indexed:"sources.status.indexed",stale:"sources.status.stale"};return m.jsxDEV("span",{className:`rounded px-1.5 py-0.5 font-mono text-[10px] uppercase ${l[s]}`,children:r(c[s])},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:58,columnNumber:5},this)}function Aj({type:s}){const{t:r}=Le(),l=s==="code"?"sources.type.code":"sources.type.doc";return m.jsxDEV("span",{className:"font-mono text-[10px] uppercase text-c4a-text-muted",children:r(l)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:71,columnNumber:5},this)}function Vj({source:s,childCount:r,isDaemonLibrary:l,isRepoRoot:c,onClick:u,onRename:d,onMoveTo:h,onDelete:g}){const{t:y}=Le(),[x,D]=E.useState(!1),[v,S]=E.useState(!1),[R,j]=E.useState(null),H=E.useRef(null);E.useEffect(()=>{if(!x)return;const ee=_=>{H.current&&!H.current.contains(_.target)&&D(!1)};return document.addEventListener("mousedown",ee),()=>document.removeEventListener("mousedown",ee)},[x]);const L=E.useCallback(ee=>{ee.preventDefault(),D(!0)},[]),Q=E.useCallback(async ee=>{if(!d)return;const _=await d(ee);_?j(_):(S(!1),j(null))},[d]),Z=E.useCallback(()=>{S(!1),j(null)},[]),se=!c&&d,fe=s.kind==="source"&&!c&&h,be=g,J=se||fe||be;return m.jsxDEV("div",{className:"group flex items-center gap-3 rounded px-3 py-2 transition-colors hover:bg-c4a-bg-hover cursor-pointer",onClick:v?void 0:u,onContextMenu:v?void 0:L,children:[m.jsxDEV(Oj,{source:s,isDaemonLibrary:l??!1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:142,columnNumber:7},this),v?m.jsxDEV("div",{className:"min-w-0 flex-1",onClick:ee=>ee.stopPropagation(),children:m.jsxDEV(sw,{currentName:s.name,onConfirm:Q,onCancel:Z,error:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:146,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:145,columnNumber:9},this):m.jsxDEV("span",{className:"min-w-0 flex-1 truncate text-sm text-c4a-text-primary",children:s.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:154,columnNumber:9},this),m.jsxDEV("div",{className:"hidden items-center gap-2 md:flex",children:[s.kind==="folder"&&r!==void 0&&m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:y("common.items",{count:r})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:162,columnNumber:11},this),s.kind==="source"&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV(t4,{status:s.index_status},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:168,columnNumber:13},this),s.source_type&&m.jsxDEV(Aj,{type:s.source_type},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:169,columnNumber:36},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:167,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:160,columnNumber:7},this),m.jsxDEV("div",{className:"flex items-center gap-2 md:hidden",children:s.kind==="source"&&m.jsxDEV(t4,{status:s.index_status},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:177,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:175,columnNumber:7},this),J&&m.jsxDEV("div",{className:"relative",ref:H,children:[m.jsxDEV("button",{onClick:ee=>{ee.stopPropagation(),D(_=>!_)},className:"rounded p-1 text-c4a-text-muted opacity-0 transition-opacity hover:bg-c4a-bg-active hover:text-c4a-text-primary group-hover:opacity-100",children:m.jsxDEV(KU,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:191,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:184,columnNumber:11},this),x&&m.jsxDEV("div",{className:"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-lg",children:[se&&m.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary",onClick:ee=>{ee.stopPropagation(),D(!1),S(!0)},children:y("sources.actions.rename")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:197,columnNumber:17},this),fe&&m.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary",onClick:ee=>{ee.stopPropagation(),D(!1),h()},children:y("sources.actions.move_to")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:209,columnNumber:17},this),be&&m.jsxDEV("button",{className:"flex w-full items-center px-3 py-1.5 text-left font-mono text-xs text-c4a-error hover:bg-c4a-bg-hover",onClick:ee=>{ee.stopPropagation(),D(!1),g()},children:y("sources.actions.delete")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:221,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:195,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:183,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:137,columnNumber:5},this)}function Mj({libraryId:s,currentParentId:r,sourceName:l,sourceId:c,onConfirm:u,onCancel:d,error:h}){const{t:g}=Le(),y=E.useRef(null),[x,D]=E.useState(null),[v,S]=E.useState([]),[R,j]=E.useState(!0),H=E.useCallback((J,ee)=>{if(ee===null)return"/";for(const _ of J){if(_.id===ee)return _.name;if(_.children.length>0){const X=H(_.children,ee);if(X!==ee)return X}}return ee},[]),L=E.useMemo(()=>r===null?"/":H(v,r),[r,v,H]),Q=E.useMemo(()=>x===null?"/":H(v,x),[x,v,H]);E.useEffect(()=>{const J=ee=>{ee.key==="Escape"&&d()};return document.addEventListener("keydown",J),()=>document.removeEventListener("keydown",J)},[d]),E.useEffect(()=>{Z()},[s]);const Z=async()=>{try{const ee=(await va.get("/sources",{library_id:s,kind:"folder",limit:"500"})).items.filter(X=>X.id!==c),_=ee.filter(X=>X.parent_id===null).map(X=>se(X,ee));S(_)}catch{}finally{j(!1)}},se=(J,ee)=>{const _=ee.filter(X=>X.parent_id===J.id).map(X=>se(X,ee));return{id:J.id,name:J.name,children:_,expanded:!1,loaded:!0}},fe=E.useCallback(J=>{S(ee=>lw(ee,J))},[]),be=E.useCallback(J=>{y.current&&!y.current.contains(J.target)&&d()},[d]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:be,children:m.jsxDEV("div",{ref:y,className:"mx-4 w-full max-w-sm 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:g("sources.actions.move_to")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:137,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4 max-h-60 overflow-y-auto",children:R?m.jsxDEV("p",{className:"text-xs text-c4a-text-muted",children:g("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:143,columnNumber:13},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:()=>D(null),className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm ${x===null?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"} ${r===null?"opacity-40 pointer-events-none":""}`,children:[m.jsxDEV(gn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:155,columnNumber:17},this),"/ (",g("sources.breadcrumb.sources"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:147,columnNumber:15},this),v.map(J=>m.jsxDEV(iw,{node:J,depth:1,selected:x,currentParentId:r,onSelect:D,onToggle:fe},J.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:158,columnNumber:17},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:145,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:141,columnNumber:9},this),!R&&m.jsxDEV("div",{className:"mt-3 space-y-1 border-t border-c4a-border-subtle pt-3 text-xs",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-16 text-c4a-text-muted",children:g("sources.move.current")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:176,columnNumber:15},this),m.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:[L,"/",l]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:179,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:175,columnNumber:13},this),x!==void 0&&m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-16 text-c4a-text-muted",children:g("sources.move.target")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:185,columnNumber:17},this),m.jsxDEV("span",{className:"font-mono text-c4a-accent",children:[Q,"/",l]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:188,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:184,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:174,columnNumber:11},this),h&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:h},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:197,columnNumber:11},this),m.jsxDEV("div",{className:"mt-4 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:d,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:g("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:201,columnNumber:11},this),m.jsxDEV("button",{onClick:()=>u(x),className:"rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:g("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:207,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:200,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:133,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:129,columnNumber:5},this)}function iw({node:s,depth:r,selected:l,currentParentId:c,onSelect:u,onToggle:d}){const h=s.id===c,g=l===s.id,y=s.children.length>0;return m.jsxDEV("div",{children:[m.jsxDEV("button",{onClick:()=>{h||u(s.id)},className:`flex w-full items-center gap-1 rounded px-2 py-1.5 text-left text-sm ${g?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"} ${h?"opacity-40 pointer-events-none":""}`,style:{paddingLeft:`${r*16+8}px`},children:[y?m.jsxDEV("span",{onClick:x=>{x.stopPropagation(),d(s.id)},className:"shrink-0 cursor-pointer",children:s.expanded?m.jsxDEV(ub,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:260,columnNumber:15},this):m.jsxDEV(vr,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:262,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:252,columnNumber:11},this):m.jsxDEV("span",{className:"w-3 shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:266,columnNumber:11},this),m.jsxDEV(gn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:268,columnNumber:9},this),m.jsxDEV("span",{className:"truncate",children:s.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:269,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:240,columnNumber:7},this),s.expanded&&s.children.map(x=>m.jsxDEV(iw,{node:x,depth:r+1,selected:l,currentParentId:c,onSelect:u,onToggle:d},x.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:273,columnNumber:11},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/MoveToDialog.tsx",lineNumber:239,columnNumber:5},this)}function lw(s,r){return s.map(l=>l.id===r?{...l,expanded:!l.expanded}:l.children.length>0?{...l,children:lw(l.children,r)}:l)}function zj({onConfirm:s,onCancel:r,error:l}){const{t:c}=Le(),[u,d]=E.useState(""),h=E.useRef(null),g=E.useRef(null);E.useEffect(()=>{h.current?.focus()},[]),E.useEffect(()=>{const v=S=>{S.key==="Escape"&&r()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]);const y=E.useCallback(v=>{g.current&&!g.current.contains(v.target)&&r()},[r]),x=E.useCallback(()=>{const v=u.trim();v&&s(v)},[u,s]),D=E.useCallback(v=>{v.key==="Enter"&&(v.preventDefault(),x())},[x]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:y,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(K4,{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:v=>d(v.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:r,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:x,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 a4({label:s,icon:r,items:l}){const[c,u]=E.useState(!1),d=E.useRef(null),h=E.useCallback(g=>{d.current&&!d.current.contains(g.target)&&u(!1)},[]);return E.useEffect(()=>{if(c)return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[c,h]),m.jsxDEV("div",{ref:d,className:"relative",children:[m.jsxDEV("button",{onClick:()=>u(g=>!g),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 uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[r,s,m.jsxDEV(ub,{size:12,className:`transition-transform ${c?"rotate-180":""}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:41,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:35,columnNumber:7},this),c&&m.jsxDEV("div",{className:"absolute right-0 top-full z-20 mt-1 min-w-[160px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg",children:l.map(g=>m.jsxDEV("button",{onClick:()=>{g.onClick(),u(!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:[g.icon,g.label]},g.label,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:46,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:34,columnNumber:5},this)}function Lj({onClose:s}){const{t:r}=Le(),l=E.useRef(null),c=E.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(MT,{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:r("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:r("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:r("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)}function Hj({library:s,onNewFolder:r,onImportRepo:l,onImportDir:c,onUpgrade:u}){const{t:d}=Le(),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:62,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:67,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:76,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:85,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:74,columnNumber:13},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:r,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:96,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:103,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:95,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:61,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:60,columnNumber:5},this)}function Bj(){const{t:s}=Le();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:124,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:127,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:123,columnNumber:5},this)}function $j(){const{t:s}=Le(),r=ho(),{libId:l}=Gf(),[c,u]=_U(),d=c.get("path")||null,g=ka(fl(uu)).find(He=>He.id===l),{sources:y,loading:x,filter:D,fetchSources:v,fetchChildren:S,createSource:R,updateSource:j,deleteSource:H,setFilter:L}=Jf(),[Q,Z]=E.useState(!1),[se,fe]=E.useState(null),[be,J]=E.useState(null),[ee,_]=E.useState(null),[X,q]=E.useState(null),[te,Y]=E.useState(null),[ce,K]=E.useState(!1),[ie,W]=E.useState({}),[me,ye]=E.useState([]);E.useEffect(()=>{l&&v({library_id:l,parent_id:d})},[l,d,v]),E.useEffect(()=>{if(!d){ye([]);return}(async()=>{const He=[];let le=d;for(;le;)try{const We=await fetch(`/api/v1/sources/${le}`);if(!We.ok)break;const Qt=await We.json();He.unshift(Qt),le=Qt.parent_id}catch{break}ye(He)})()},[d]),E.useEffect(()=>{y.filter(le=>le.kind==="folder").forEach(async le=>{try{const We=await S(le.id),Qt=We.filter(Lt=>Lt.kind==="folder").length,Yn=We.filter(Lt=>Lt.kind==="source").length,vn=We.filter(Lt=>Lt.kind==="source"&&Lt.source_type==="code").length,Ya=We.filter(Lt=>Lt.kind==="source"&&Lt.source_type==="doc").length;W(Lt=>({...Lt,[le.id]:{folders:Qt,sources:Yn,codeSources:vn,docSources:Ya}}))}catch{}})},[y,S]);const pe=E.useMemo(()=>{const le=[...y.filter(We=>d?We.parent_id===d:We.parent_id===null)].sort((We,Qt)=>We.kind!==Qt.kind?We.kind==="folder"?-1:1:We.name.localeCompare(Qt.name));return D==="all"?le:le.filter(We=>We.kind==="folder"?!0:D==="indexed"?We.index_status==="indexed":We.index_status==="none")},[y,D,d]),ae=g?.type==="daemon",B=g?.type==="cloud",ve=ae&&d===null,he=ae&&d!==null,Ee=E.useMemo(()=>{if(!g)return[];const He=[{label:g.id===Zf?s("sources.library.default_cloud_name"):g.name,to:`/studio/sources/${g.id}`}];return me.forEach(le=>{He.push({label:le.name,to:`/studio/sources/${g.id}?path=${le.id}`})}),He},[g,me,s]),nt=E.useCallback(async He=>{if(l)try{await R({library_id:l,parent_id:d,kind:"folder",name:He}),Z(!1),fe(null),v({library_id:l,parent_id:d})}catch(le){le instanceof Vf&&le.status===409&&fe(s("sources.error.name_conflict",{name:He}))}},[l,d,R,v,s]),Vt=E.useCallback(He=>{He.kind==="folder"?u({path:He.id}):r(`/studio/source/${He.id}`)},[r,u]),qe=E.useCallback(async(He,le)=>{try{return await j(He.id,{name:le}),v({library_id:l,parent_id:d}),null}catch(We){return We instanceof Vf&&We.status===409?s("sources.error.name_conflict",{name:le}):null}},[l,d,j,v,s]),Mt=E.useCallback(He=>{if(_(He.id),He.kind==="folder"){const le=He.parent_id===null,We=ie[He.id];J(ae&&le?{type:"repo",name:He.name,libraryName:g.name,...We!==void 0?{packageCount:We.codeSources,docCount:We.docSources}:{}}:{type:"folder",name:He.name,...We!==void 0?{folderCount:We.folders,sourceCount:We.sources}:{}})}else J({type:"resource",name:He.name})},[ae,g,ie]),zt=E.useCallback(async()=>{if(!(!ee||!l))try{await H(ee),J(null),_(null),v({library_id:l,parent_id:d})}catch{}},[ee,l,d,H,v]),Ka=E.useCallback(async He=>{if(!(!X||!l))try{await j(X.id,{parent_id:He}),q(null),Y(null),v({library_id:l,parent_id:d})}catch(le){le instanceof Vf&&le.status===409&&Y(s("sources.error.name_conflict",{name:X.name}))}},[X,l,d,j,v,s]),Se=E.useCallback(()=>{l&&r(`/studio/sources/import/${l}`)},[l,r]),$n=E.useCallback(()=>{l&&r(`/studio/sources/import-dir/${l}`)},[l,r]);if(!g)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:389,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:388,columnNumber:7},this);const Et=y.length===0&&D==="all"&&!x&&!d,xa=pe.filter(He=>He.kind==="source").length===0&&D==="indexed"&&!x,Wa=!ve,ft=B,Dt=ve,os=he;return m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center gap-2",children:[m.jsxDEV(du,{segments:Ee},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:412,columnNumber:9},this),m.jsxDEV("div",{className:"ml-auto flex items-center gap-2",children:[ft&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV(a4,{label:s("sources.actions.upload"),icon:m.jsxDEV(BT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:419,columnNumber:23},this),items:[{label:s("sources.actions.upload_md"),icon:m.jsxDEV(ul,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:423,columnNumber:27},this),onClick:()=>K(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:417,columnNumber:15},this),m.jsxDEV(a4,{label:s("sources.actions.add"),icon:m.jsxDEV(ew,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:430,columnNumber:23},this),items:[{label:s("sources.actions.add_folder"),icon:m.jsxDEV(K4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:434,columnNumber:27},this),onClick:()=>Z(!0)},{label:s("sources.actions.add_web"),icon:m.jsxDEV(pT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:439,columnNumber:27},this),onClick:()=>K(!0)},{label:s("sources.actions.add_feishu"),icon:m.jsxDEV(aT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:444,columnNumber:27},this),onClick:()=>K(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:428,columnNumber:15},this),m.jsxDEV("button",{onClick:()=>K(!0),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 uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[m.jsxDEV(GS,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:453,columnNumber:17},this),s("sources.actions.import_repo_url")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:449,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:416,columnNumber:13},this),Dt&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:$n,disabled:!g.is_online,title:g.is_online?void 0:s("sources.import.daemon_offline",{name:g.name}),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 uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40",children:[m.jsxDEV(iT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:472,columnNumber:17},this),s("sources.actions.import_dir")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:462,columnNumber:15},this),m.jsxDEV("button",{onClick:Se,disabled:!g.is_online,title:g.is_online?void 0:s("sources.import.daemon_offline",{name:g.name}),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 uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40",children:[m.jsxDEV(GS,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:485,columnNumber:17},this),s("sources.actions.import_repo")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:475,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:461,columnNumber:13},this),os&&null,Wa&&m.jsxDEV(jj,{value:D,onChange:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:495,columnNumber:26},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:413,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:411,columnNumber:7},this),Et?m.jsxDEV(Hj,{library:g,onNewFolder:()=>Z(!0),...ae?{onImportRepo:Se,onImportDir:$n}:{},...B?{onUpgrade:()=>K(!0)}:{}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:501,columnNumber:9},this):m.jsxDEV("div",{className:"mt-4 flex flex-1 flex-col gap-0.5",children:x?m.jsxDEV("p",{className:"py-8 text-center text-xs 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:510,columnNumber:13},this):pe.length===0?xa?m.jsxDEV(Bj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:515,columnNumber:15},this):B&&d?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:s("sources.empty.folder.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:519,columnNumber:19},this),m.jsxDEV("div",{className:"mt-6 flex justify-center gap-3",children:[m.jsxDEV("button",{onClick:()=>Z(!0),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:s("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:523,columnNumber:21},this),m.jsxDEV("button",{onClick:()=>K(!0),className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover",children:s("sources.actions.import_repo_url")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:529,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:522,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:518,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:517,columnNumber:15},this):d?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:s("sources.empty.folder.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:541,columnNumber:19},this),ae&&m.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:s("sources.empty.folder.daemon_description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:545,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:540,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:539,columnNumber:15},this):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:552,columnNumber:15},this):pe.map(He=>{const le=ae&&He.parent_id===null&&He.kind==="folder";return m.jsxDEV(Vj,{source:He,...ie[He.id]!==void 0?{childCount:ie[He.id].folders+ie[He.id].sources}:{},isDaemonLibrary:ae??!1,isRepoRoot:le,onClick:()=>Vt(He),...he?{}:{onRename:We=>qe(He,We)},...He.kind==="source"&&!he?{onMoveTo:()=>q(He)}:{},...he?{}:{onDelete:()=>Mt(He)}},He.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:563,columnNumber:17},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:508,columnNumber:9},this),Q&&m.jsxDEV(zj,{onConfirm:nt,onCancel:()=>{Z(!1),fe(null)},error:se},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:588,columnNumber:9},this),ce&&m.jsxDEV(Lj,{onClose:()=>K(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:600,columnNumber:9},this),be&&m.jsxDEV(rw,{target:be,onConfirm:zt,onCancel:()=>{J(null),_(null)}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:605,columnNumber:9},this),X&&l&&m.jsxDEV(Mj,{libraryId:l,currentParentId:X.parent_id,sourceName:X.name,sourceId:X.id,onConfirm:Ka,onCancel:()=>{q(null),Y(null)},error:te},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:617,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:409,columnNumber:5},this)}function cw(){const{t:s}=Le(),[r,l]=E.useState(!1),[c,u]=E.useState(null),d=E.useRef(),h=E.useRef(),g=window.location.host,y=`c4a-daemon --server ${g} --allow <dir1> <dir2>`,x=`c4a-daemon --server ${g}`,D=E.useCallback((R,j)=>{navigator.clipboard.writeText(R),u(j),clearTimeout(d.current),d.current=setTimeout(()=>u(null),1500)},[]),v=E.useCallback(()=>{clearTimeout(h.current),l(!0)},[]),S=E.useCallback(()=>{h.current=setTimeout(()=>l(!1),150)},[]);return m.jsxDEV("span",{className:"relative",onMouseEnter:v,onMouseLeave:S,children:[m.jsxDEV(db,{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),r&&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:v,onMouseLeave:S,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:y},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(y,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(Bf,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:61,columnNumber:34},this):m.jsxDEV(qS,{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:x},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(x,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(Bf,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:78,columnNumber:34},this):m.jsxDEV(qS,{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 uw({open:s,onClose:r,rpc:l,onNavigate:c,defaultPath:u}){const{t:d}=Le(),[h,g]=E.useState(u??""),[y,x]=E.useState(null),[D,v]=E.useState(!1),S=E.useRef(null);E.useEffect(()=>{u&&!h&&g(u)},[u]);const R=E.useCallback(async()=>{const H=h.trim();if(H){v(!0),x(null);try{(await l("fs/exists",{path:H})).exists?(c(H),g(u??""),x(null),r()):x(d("sources.import.wildcard_path_not_found"))}catch(L){x(L instanceof Error?L.message:String(L))}finally{v(!1)}}},[h,l,d,c,r]),j=E.useCallback(()=>{g(u??""),x(null),r()},[r,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:j,className:"rounded p-1 text-c4a-text-muted transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-secondary",children:m.jsxDEV(fb,{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:S,type:"text",value:h,onChange:H=>{g(H.target.value),x(null)},onKeyDown:H=>{H.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(bn,{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(J4,{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),y&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:y},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 Yj(s){const r=s.match(/^[\w.-]+@([\w.-]+):([\w./-]+?)(?:\.git)?$/);if(r){const l=r[1],c=r[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 qj(s,r){return`${s}/tree/${encodeURIComponent(r)}`}function Gj(s,r){return`${s}/commit/${r}`}function Ij({rpc:s,selectedPath:r,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:d}=Le(),h=!!c&&c.length>0,g=h&&c.length===1&&c[0]==="*",[y,x]=E.useState(h),D=!h||g?"/":c?.[0]??"/",[v,S]=E.useState(h?"":D),[R,j]=E.useState([]),[H,L]=E.useState(!1),[Q,Z]=E.useState(null),[se,fe]=E.useState(null);E.useEffect(()=>{if(!g)return;let ae=!1;return(async()=>{try{const B=await s("fs/homeDir",{});ae||fe(B.home_dir)}catch{}})(),()=>{ae=!0}},[g,s]);const[be,J]=E.useState(!1),ee=E.useCallback(async ae=>{L(!0),Z(null);try{const B=await s("fs/listTree",{path:ae,depth:2});j(B.entries||[]),S(ae),x(!1)}catch(B){const ve=B instanceof Error?B.message:String(B);Z(ve)}finally{L(!1)}},[s]);E.useEffect(()=>{h||ee(D)},[ee,D,h]);const[_,X]=E.useState(null),[q,te]=E.useState(null),[Y,ce]=E.useState(!1);E.useEffect(()=>{if(!r){te(null),ce(!1);return}te(null),ce(!0);let ae=!1;return(async()=>{try{const B=await s("fs/repoStatus",{path:r});ae||(te({branch:B.branch,hash:B.head_hash,remoteUrl:B.remote_url}),ce(!1))}catch{ae||(te(null),ce(!1))}})(),()=>{ae=!0}},[r,s]);const K=E.useMemo(()=>q?.remoteUrl?Yj(q.remoteUrl):null,[q?.remoteUrl]),ie=E.useMemo(()=>new Set(u??[]),[u]),W=E.useCallback(ae=>{if(ae.type==="directory")if(ae.is_git_repo){if(ie.has(ae.path))return;X(null),l(ae.path,ae.name)}else X(ae.path),ee(ae.path)},[l,ee,ie]),me=E.useCallback(()=>{if(h&&!g&&c.some(ve=>ve===v)){x(!0),S(""),j([]),Z(null),X(null);return}if(g&&v.split("/").filter(Boolean).length<=1){x(!0),S(""),j([]),Z(null),X(null);return}const ae=v.split("/").slice(0,-1).join("/")||"/";X(null),ee(ae)},[v,ee,h,g,c]),ye=E.useMemo(()=>R.filter(ae=>ae.type==="directory").sort((ae,B)=>ae.is_git_repo&&!B.is_git_repo?-1:!ae.is_git_repo&&B.is_git_repo?1:ae.name.localeCompare(B.name)),[R]),pe=E.useMemo(()=>R.filter(ae=>ae.type==="file").sort((ae,B)=>ae.name.localeCompare(B.name)),[R]);return m.jsxDEV("div",{className:"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:[y?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:223,columnNumber:13},this),m.jsxDEV(cw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:224,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:222,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 shrink truncate font-mono text-xs text-c4a-text-muted",children:v},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:227,columnNumber:11},this),r&&Y?m.jsxDEV("div",{className:"flex shrink-0 items-center gap-1.5 font-mono text-xs text-c4a-accent",children:[m.jsxDEV(bn,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:233,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:234,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:232,columnNumber:11},this):r&&q?m.jsxDEV("div",{className:"flex shrink-0 items-center gap-1.5 font-mono text-xs text-c4a-accent",children:[K?m.jsxDEV("a",{href:K.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:underline",title:K.repoUrl,children:[m.jsxDEV("span",{children:K.slug},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:246,columnNumber:17},this),m.jsxDEV(eT,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:247,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",{children:r.split("/").pop()||r},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:250,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:252,columnNumber:13},this),K?m.jsxDEV("a",{href:qj(K.repoUrl,q.branch),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:underline",children:[m.jsxDEV(IS,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:260,columnNumber:17},this),m.jsxDEV("span",{children:q.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:261,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:254,columnNumber:15},this):m.jsxDEV("span",{className:"flex items-center gap-1",children:[m.jsxDEV(IS,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:265,columnNumber:17},this),m.jsxDEV("span",{children:q.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:266,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:264,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:269,columnNumber:13},this),K?m.jsxDEV("a",{href:Gj(K.repoUrl,q.hash),target:"_blank",rel:"noopener noreferrer",className:"hover:underline",children:q.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:271,columnNumber:15},this):m.jsxDEV("span",{children:q.hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:280,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:237,columnNumber:11},this):!r&&g&&y?m.jsxDEV("button",{onClick:()=>J(!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:284,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:220,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:293,columnNumber:7},this),y?g?m.jsxDEV("div",{className:"max-h-80 overflow-y-auto",children:se&&m.jsxDEV("button",{onClick:()=>ee(se),className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(gn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:304,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[se,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:307,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:305,columnNumber:17},this),m.jsxDEV(vr,{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:311,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:300,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:298,columnNumber:11},this):m.jsxDEV("div",{className:"max-h-80 overflow-y-auto",children:c.map(ae=>m.jsxDEV("button",{onClick:()=>ee(ae),className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(gn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:324,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:ae},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:325,columnNumber:17},this),m.jsxDEV(vr,{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:326,columnNumber:17},this)]},ae,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:319,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:317,columnNumber:11},this):H?m.jsxDEV("div",{className:"flex items-center gap-2 py-8",children:[m.jsxDEV(bn,{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:336,columnNumber:11},this),m.jsxDEV("span",{className:"text-xs text-c4a-text-muted",children:d("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:337,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:335,columnNumber:9},this):Q?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:Q},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:340,columnNumber:9},this):m.jsxDEV("div",{className:"mt-3 max-h-80 overflow-y-auto",children:[v!=="/"&&m.jsxDEV("button",{onClick:me,className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover",children:[m.jsxDEV(gn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:349,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:350,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:345,columnNumber:13},this),ye.map(ae=>{const B=ae.is_git_repo&&ie.has(ae.path),ve=ae.is_git_repo?Ff:gn;return m.jsxDEV("div",{className:`flex w-full items-center rounded text-left text-sm transition-colors ${B?"cursor-not-allowed opacity-50":r===ae.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:[m.jsxDEV("button",{onClick:()=>W(ae),disabled:B,className:"flex flex-1 items-center gap-2 px-2 py-1.5",children:[m.jsxDEV(ve,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:374,columnNumber:17},this),m.jsxDEV("span",{className:"flex-1 truncate text-left",children:ae.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:375,columnNumber:17},this),B&&m.jsxDEV("span",{className:"rounded bg-c4a-bg-active px-1.5 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:d("sources.import.already_imported")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:377,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:369,columnNumber:15},this),!B&&m.jsxDEV("button",{onClick:he=>{he.stopPropagation(),ee(ae.path)},className:"shrink-0 rounded p-1.5 text-c4a-text-muted transition-colors hover:bg-c4a-bg-active hover:text-c4a-text-secondary",title:ae.path,children:m.jsxDEV(vr,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:388,columnNumber:19},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:383,columnNumber:17},this)]},ae.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:359,columnNumber:13},this)}),pe.map(ae=>m.jsxDEV("div",{className:"flex w-full items-center gap-2 px-2 py-1.5 text-sm text-c4a-text-muted",children:[m.jsxDEV(P4,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:401,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:ae.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:402,columnNumber:15},this)]},ae.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:397,columnNumber:13},this)),R.length===0&&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:407,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:342,columnNumber:9},this),_&&!r&&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:416,columnNumber:9},this),m.jsxDEV(uw,{open:be,onClose:()=>J(!1),rpc:s,onNavigate:ee,defaultPath:se??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:422,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:219,columnNumber:5},this)}const Fj=["package.json","pyproject.toml","go.mod","Cargo.toml","pom.xml","build.gradle"],Xj=/\.md$/i;function Qj({rpc:s,repoPath:r,onReady:l}){const{t:c}=Le(),[u,d]=E.useState(""),[h,g]=E.useState([]),[y,x]=E.useState(""),[D,v]=E.useState([]),[S,R]=E.useState(!1),[j,H]=E.useState(!0),[L,Q]=E.useState(!1),[Z,se]=E.useState([]),[fe,be]=E.useState([]),[,J]=E.useState([]),[ee,_]=E.useState([]),X=E.useCallback(async(Y,ce)=>{Q(!0);try{const ie=(await s("fs/repoTree",{path:r,hash:Y})).files||[];J(ie);const W=ie.filter(he=>Fj.some(Ee=>{const nt=he.path.split("/");return nt[nt.length-1]===Ee})),me=ie.filter(he=>Xj.test(he.path)).filter(he=>he.path.split("/").length<=2).map(he=>he.path);be(me);const ye=[],pe=[];await Promise.all(W.map(async he=>{try{const Ee=await s("fs/readFile",{path:`${r}/${he.path}`});ye.push({path:he.path,content:Ee.content});const nt=Zj(he.path,Ee.content);pe.push({name:nt||he.path,path:he.path.split("/").slice(0,-1).join("/")||".",isRoot:he.path.split("/").length===1||he.path==="package.json"})}catch{pe.push({name:he.path,path:he.path.split("/").slice(0,-1).join("/")||"."})}}));const ae=ye.find(he=>he.path==="package.json");if(ae)try{const he=JSON.parse(ae.content),Ee=Array.isArray(he.workspaces)?he.workspaces:Array.isArray(he.workspaces?.packages)?he.workspaces.packages:void 0;if(Ee&&Ee.length>0){const nt=pe.find(qe=>qe.isRoot&&qe.path===".");nt&&(nt.isRoot=!0);const Vt=qe=>Ee.some(Mt=>{const zt=Mt.replace(/\/\*$/,"");return qe.startsWith(zt+"/")||qe===zt});for(let qe=pe.length-1;qe>=0;qe--){const Mt=pe[qe];!Mt.isRoot&&!Vt(Mt.path)&&pe.splice(qe,1)}}}catch{}se(pe),_(ye);const B=ce?.branch??u,ve=ce?.isDirty??S;l({branch:B,commit:Y,isDirty:ve,repoFiles:ie,packages:pe,mdFiles:me,repoFileContents:ye})}catch{}finally{Q(!1)}},[s,r,u,S,l]);E.useEffect(()=>{(async()=>{H(!0);try{const Y=await s("fs/repoStatus",{path:r});d(Y.branch),g(Y.branches||[Y.branch]),x(Y.head_hash),R(Y.is_dirty),v(Y.commits||[{hash:Y.head_hash,message:"HEAD"}]),await X(Y.head_hash,{branch:Y.branch,isDirty:Y.is_dirty})}catch{}finally{H(!1)}})()},[r]),E.useEffect(()=>{l({branch:u,commit:y,isDirty:S,packages:Z,mdFiles:fe,repoFileContents:ee})},[u,y,S]);const q=E.useCallback(async Y=>{d(Y);try{const ce=await s("fs/repoStatus",{path:r});x(ce.head_hash),await X(ce.head_hash)}catch{}},[r,s,X]),te=u&&u!=="main"&&u!=="master";return j?m.jsxDEV("div",{className:"flex items-center justify-center py-12",children:m.jsxDEV(bn,{size:20,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:230,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:229,columnNumber:7},this):m.jsxDEV("div",{className:"space-y-4",children:[m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[m.jsxDEV("div",{children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.detail.repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:241,columnNumber:13},this),m.jsxDEV("p",{className:"mt-0.5 font-mono text-xs text-c4a-text-primary",children:r.split("/").pop()},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:244,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:240,columnNumber:11},this),m.jsxDEV("div",{children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.import.current_path")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:249,columnNumber:13},this),m.jsxDEV("p",{className:"mt-0.5 font-mono text-xs text-c4a-text-primary",children:r},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:252,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:248,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:239,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4 grid grid-cols-2 gap-4",children:[m.jsxDEV("div",{children:[m.jsxDEV("label",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.import.branch")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:261,columnNumber:13},this),m.jsxDEV("select",{value:u,onChange:Y=>q(Y.target.value),className:"mt-1 w-full 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",children:h.map(Y=>m.jsxDEV("option",{value:Y,children:Y},Y,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:270,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:264,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:260,columnNumber:11},this),m.jsxDEV("div",{children:[m.jsxDEV("label",{className:"font-mono text-xs text-c4a-text-muted",children:c("sources.import.commit")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:277,columnNumber:13},this),m.jsxDEV("select",{value:y,onChange:Y=>{x(Y.target.value),X(Y.target.value)},className:"mt-1 w-full 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",children:D.map(Y=>m.jsxDEV("option",{value:Y.hash,children:[Y.hash.slice(0,7)," - ",Y.message.slice(0,60)]},Y.hash,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:289,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:280,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:276,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:259,columnNumber:9},this),m.jsxDEV("div",{className:"mt-3 space-y-1",children:[te&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-info",children:[m.jsxDEV(W4,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:301,columnNumber:15},this),c("sources.import.branch_warning",{branch:u})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:300,columnNumber:13},this),S&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-warning",children:[m.jsxDEV(db,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:307,columnNumber:15},this),c("sources.import.uncommitted_warning")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:306,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:298,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:238,columnNumber:7},this),m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:L?m.jsxDEV("div",{className:"flex items-center gap-2 py-4",children:[m.jsxDEV(bn,{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:318,columnNumber:13},this),m.jsxDEV("span",{className:"text-xs 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:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:317,columnNumber:11},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV("p",{className:"font-mono text-xs text-c4a-text-primary",children:Z.length>0?c("sources.import.recognized",{packages:Z.length,docs:fe.length}):c("sources.import.no_packages")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:325,columnNumber:13},this),Z.length>0&&m.jsxDEV("div",{className:"mt-3 space-y-1",children:Z.map(Y=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-xs",children:[m.jsxDEV(Xf,{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:341,columnNumber:21},this),m.jsxDEV("span",{className:"text-c4a-text-primary",children:Y.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:342,columnNumber:21},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:Y.path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:343,columnNumber:21},this),Y.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:345,columnNumber:23},this)]},Y.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:337,columnNumber:19},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:335,columnNumber:15},this),fe.length>0&&m.jsxDEV("div",{className:"mt-3 space-y-1",children:fe.map(Y=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded px-2 py-1 text-xs",children:[m.jsxDEV(ul,{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:361,columnNumber:21},this),m.jsxDEV("span",{className:"text-c4a-text-primary",children:Y},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:365,columnNumber:21},this)]},Y,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:357,columnNumber:19},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:355,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:324,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:315,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:236,columnNumber:5},this)}function Zj(s,r){const l=s.split("/").pop()||"";try{if(l==="package.json")return JSON.parse(r).name||null;if(l==="go.mod")return r.match(/^module\s+(.+)$/m)?.[1]||null;if(l==="Cargo.toml")return r.match(/name\s*=\s*"([^"]+)"/)?.[1]||null;if(l==="pyproject.toml")return r.match(/name\s*=\s*"([^"]+)"/)?.[1]||null}catch{}return null}function Jj({importState:s,libraryName:r,importing:l}){const{t:c}=Le();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:r})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:20,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 space-y-2 text-sm",children:[m.jsxDEV(Fc,{label:c("sources.detail.repo"),value:s.repoName},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:25,columnNumber:9},this),m.jsxDEV(Fc,{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:29,columnNumber:9},this),m.jsxDEV(Fc,{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:33,columnNumber:9},this),m.jsxDEV(Fc,{label:c("sources.import.packages"),value:String(s.packages.length)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:37,columnNumber:9},this),m.jsxDEV(Fc,{label:c("sources.import.documents"),value:String(s.mdFiles.length)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:41,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:24,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(bn,{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:50,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:51,columnNumber:11},this)]},void 0,!0,{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:19,columnNumber:5},this)}function Fc({label:s,value:r}){return m.jsxDEV("div",{className:"flex items-center gap-4",children:[m.jsxDEV("span",{className:"w-24 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/StepConfirmImport.tsx",lineNumber:63,columnNumber:7},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-primary",children:r},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:66,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:62,columnNumber:5},this)}function Pj(){const{t:s}=Le(),r=ho(),{libId:l}=Gf(),u=ka(fl(uu)).find(J=>J.id===l),d=Jf(J=>J.createSource),[h,g]=E.useState(1),[y,x]=E.useState(!1),[D,v]=E.useState({repoPath:"",repoName:"",branch:"",branches:[],commit:"",commits:[],isDirty:!1,repoFiles:[],packages:[],mdFiles:[],repoFileContents:[]}),S=u?.is_online??!1,[R,j]=E.useState([]);E.useEffect(()=>{if(!l)return;let J=!1;return(async()=>{try{const ee=await va.get("/sources",{library_id:l,limit:"500"});if(J)return;const _=ee.items.filter(X=>!X.parent_id).map(X=>{const q=X.metadata;return typeof q?.local_path=="string"?q.local_path:null}).filter(X=>X!==null);j(_)}catch{}})(),()=>{J=!0}},[l]);const H=E.useMemo(()=>{const J=u?.config;return!J||!Array.isArray(J.allowed_paths)?[]:J.allowed_paths},[u]),L=E.useCallback(async(J,ee)=>{if(!l)throw new Error("No library");const _=await va.post(`/libraries/${l}/rpc`,{method:J,params:ee});if(_.error){const X=_.error;throw new Error(X.message??JSON.stringify(_.error))}return _.result??_},[l]),Q=E.useCallback((J,ee)=>{v(_=>({..._,repoPath:J,repoName:ee}))},[]),Z=E.useCallback(J=>{v(ee=>({...ee,...J}))},[]),se=E.useCallback(async()=>{if(l){x(!0);try{const J=await d({library_id:l,repo_name:D.repoName,repo_root_path:D.repoPath,repo_branch:D.branch,repo_commit:D.commit,repo_files:D.repoFiles.map(_=>_.path),repo_file_contents:D.repoFileContents}),ee=Array.isArray(J)?J[0]:J;ee?.kind==="folder"?r(`/studio/sources/${l}?path=${ee.id}`):r(`/studio/sources/${l}`)}catch{x(!1)}}},[l,D,d,r]),fe=E.useMemo(()=>h===1?!!D.repoPath:h===2?D.repoFiles.length>0:!0,[h,D]),be=E.useMemo(()=>u?[{label:u.id===Zf?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 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(du,{segments:be},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-6 flex w-full items-center gap-2 font-mono text-sm md:gap-3",children:[m.jsxDEV(Yg,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:194,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:195,columnNumber:9},this),m.jsxDEV(n4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:198,columnNumber:9},this),m.jsxDEV(Yg,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:199,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:200,columnNumber:9},this),m.jsxDEV(n4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:203,columnNumber:9},this),m.jsxDEV(Yg,{active:h>=3,current:h===3},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:204,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:205,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:193,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex-1",children:S?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(Ij,{rpc:L,selectedPath:D.repoPath,onSelect:Q,allowedPaths:H,importedPaths:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:219,columnNumber:15},this),h===2&&m.jsxDEV(Qj,{rpc:L,repoPath:D.repoPath,onReady:Z},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:228,columnNumber:15},this),h===3&&m.jsxDEV(Jj,{importState:D,libraryName:u.name,importing:y},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:235,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:217,columnNumber:11},this):m.jsxDEV(Kj,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:213,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:211,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 text-right text-xs text-c4a-text-muted",children:s("sources.safety.notice.repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:246,columnNumber:7},this),S&&m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2 border-t border-c4a-border-subtle pt-4",children:[h>1&&m.jsxDEV("button",{onClick:()=>g(J=>J-1),disabled:y,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:254,columnNumber:13},this),h<3?m.jsxDEV("button",{onClick:()=>g(J=>J+1),disabled:!fe,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:263,columnNumber:13},this):m.jsxDEV("button",{onClick:se,disabled:y,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:[y&&m.jsxDEV(bn,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:276,columnNumber:29},this),s(y?"sources.import.importing":"sources.import.step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:271,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:252,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 Yg({active:s,current:r}){return m.jsxDEV("span",{className:`inline-block h-2.5 w-2.5 rounded-full border-2 ${r?"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:296,columnNumber:5},this)}function n4(){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:309,columnNumber:10},this)}function Kj({libraryName:s}){const{t:r}=Le();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:r("sources.import.daemon_offline",{name:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:320,columnNumber:7},this),m.jsxDEV(Pa,{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:r("sources.import.view_guide")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:323,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:319,columnNumber:5},this)}const s4=(s,r)=>{let l=0,c=0,u=0;const d=[],h=g=>{for(const y of g)if(y.type==="directory")c++,y.is_git_repo&&u++,y.children&&h(y.children);else if(l++,/\.md$/i.test(y.name)){const x=y.path.startsWith(r)?y.path.slice(r.length).replace(/^\//,""):y.name;d.push(x)}};return h(s),{files:l,dirs:c,gitRepos:u,mdFiles:d}};function Wj({rpc:s,selectedPath:r,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:d}=Le(),h=!!c&&c.length>0,g=h&&c.length===1&&c[0]==="*",[y,x]=E.useState(h),D=!h||g?"/":c?.[0]??"/",[v,S]=E.useState(h?"":D),[R,j]=E.useState([]),[H,L]=E.useState(!1),[Q,Z]=E.useState(null),se=E.useMemo(()=>new Set(u??[]),[u]),[fe,be]=E.useState(null);E.useEffect(()=>{if(!g)return;let K=!1;return(async()=>{try{const ie=await s("fs/homeDir",{});K||be(ie.home_dir)}catch{}})(),()=>{K=!0}},[g,s]);const[J,ee]=E.useState(!1),_=E.useCallback(async K=>{L(!0),Z(null);try{const ie=await s("fs/listTree",{path:K,depth:2});j(ie.entries||[]),S(K),x(!1)}catch(ie){const W=ie instanceof Error?ie.message:String(ie);Z(W)}finally{L(!1)}},[s]);E.useEffect(()=>{h||_(D)},[_,D,h]);const X=E.useCallback(K=>{if(K.type!=="directory"||se.has(K.path))return;const ie=s4(K.children||[],K.path);l(K.path,K.name,ie),_(K.path)},[l,_,se]),q=E.useCallback(()=>{if(h&&!g&&c.some(W=>W===v)){x(!0),S(""),j([]),Z(null);return}if(g&&v.split("/").filter(Boolean).length<=1){x(!0),S(""),j([]),Z(null);return}const K=v.split("/").slice(0,-1).join("/")||"/";_(K)},[v,_,h,g,c]);E.useEffect(()=>{if(v&&!y&&R.length>=0&&!H){const K=v.split("/").pop()||v,ie=s4(R,v);l(v,K,ie)}},[v,y,R,H]);const te=E.useMemo(()=>r?r.split("/").pop()||r:"",[r]),Y=E.useMemo(()=>R.filter(K=>K.type==="directory").sort((K,ie)=>K.is_git_repo&&!ie.is_git_repo?-1:!K.is_git_repo&&ie.is_git_repo?1:K.name.localeCompare(ie.name)),[R]),ce=E.useMemo(()=>R.filter(K=>K.type==="file").sort((K,ie)=>K.name.localeCompare(ie.name)),[R]);return m.jsxDEV("div",{className:"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:[y?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:209,columnNumber:13},this),m.jsxDEV(cw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:210,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:208,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 truncate font-mono text-xs text-c4a-text-muted",children:v},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:213,columnNumber:11},this),r?m.jsxDEV("p",{className:"flex shrink-0 items-center gap-2 font-mono text-xs text-c4a-accent",children:[m.jsxDEV(gn,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:219,columnNumber:13},this),m.jsxDEV("span",{children:te},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:220,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:218,columnNumber:11},this):g&&y?m.jsxDEV("button",{onClick:()=>ee(!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:223,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:206,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:232,columnNumber:7},this),y?g?m.jsxDEV("div",{className:"max-h-80 overflow-y-auto",children:fe&&m.jsxDEV("button",{onClick:()=>_(fe),className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(gn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:243,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[fe,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:246,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:244,columnNumber:17},this),m.jsxDEV(vr,{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:250,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:239,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:237,columnNumber:11},this):m.jsxDEV("div",{className:"max-h-80 overflow-y-auto",children:c.map(K=>m.jsxDEV("button",{onClick:()=>_(K),className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(gn,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:263,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/StepSelectDir.tsx",lineNumber:264,columnNumber:17},this),m.jsxDEV(vr,{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:265,columnNumber:17},this)]},K,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:258,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:256,columnNumber:11},this):H?m.jsxDEV("div",{className:"flex items-center gap-2 py-8",children:[m.jsxDEV(bn,{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:275,columnNumber:11},this),m.jsxDEV("span",{className:"text-xs text-c4a-text-muted",children:d("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:276,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:274,columnNumber:9},this):Q?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:Q},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:279,columnNumber:9},this):m.jsxDEV("div",{className:"mt-3 max-h-80 overflow-y-auto",children:[v!=="/"&&m.jsxDEV("button",{onClick:q,className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover",children:[m.jsxDEV(gn,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:287,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:288,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:283,columnNumber:13},this),Y.map(K=>{const ie=se.has(K.path),W=K.is_git_repo?Ff:gn;return m.jsxDEV("button",{onClick:()=>X(K),disabled:ie,className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-sm transition-colors ${ie?"cursor-not-allowed opacity-50":r===K.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:[m.jsxDEV(W,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:308,columnNumber:15},this),m.jsxDEV("span",{className:"flex-1 truncate",children:K.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:309,columnNumber:15},this),ie&&m.jsxDEV("span",{className:"rounded bg-c4a-bg-active px-1.5 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:d("sources.import.already_imported")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:311,columnNumber:17},this),m.jsxDEV(vr,{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:315,columnNumber:15},this)]},K.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:296,columnNumber:13},this)}),ce.map(K=>m.jsxDEV("div",{className:"flex w-full items-center gap-2 px-2 py-1.5 text-sm text-c4a-text-muted",children:[m.jsxDEV(P4,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:328,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/StepSelectDir.tsx",lineNumber:329,columnNumber:15},this)]},K.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:324,columnNumber:13},this)),R.length===0&&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:334,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:281,columnNumber:9},this),m.jsxDEV(uw,{open:J,onClose:()=>ee(!1),rpc:s,onNavigate:_,defaultPath:fe??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:342,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:205,columnNumber:5},this)}const eO=new Set(["package.json","pyproject.toml","setup.py","go.mod","cargo.toml","pom.xml","build.gradle"]),tO=s=>{let r=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{r++,g.path.toLowerCase().endsWith(".md")&&u++;const x=g.path.split("/").pop();if(x&&eO.has(x.toLowerCase())){const D=g.path.split("/").slice(0,-1).join("/");s.some(S=>S.type==="directory"&&S.is_git_repo&&(D===S.path||D.startsWith(`${S.path}/`)))||h.add(D)}}return c=h.size,{totalFiles:r,totalDirs:l,codePackages:c,docFiles:u,gitRepos:d}};function aO({dirPath:s,dirName:r,rpc:l,onScanComplete:c}){const{t:u}=Le(),[d,h]=E.useState(!1),[g,y]=E.useState(null),[x,D]=E.useState(null),v=E.useCallback(async()=>{h(!0),y(null),D(null);try{const R=(await l("fs/dirScan",{path:s})).entries||[],j=tO(R);D(j),c(R,j)}catch(S){const R=S instanceof Error?S.message:String(S);y(R)}finally{h(!1)}},[s,l,c]);return E.useEffect(()=>{v()},[v]),m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[m.jsxDEV("p",{className:"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:118,columnNumber:7},this),m.jsxDEV("p",{className:"mt-1 font-mono text-sm font-bold text-c4a-text-primary",children:r},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:119,columnNumber:7},this),d&&m.jsxDEV("div",{className:"mt-6 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-4",children:[m.jsxDEV(bn,{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:125,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:u("sources.import.dir_scanning")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:126,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:124,columnNumber:9},this),g&&m.jsxDEV("div",{className:"mt-6",children:[m.jsxDEV("p",{className:"flex items-start gap-2 text-xs text-c4a-error",children:[m.jsxDEV(db,{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:135,columnNumber:13},this),u("sources.import.dir_scan_error")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:134,columnNumber:11},this),m.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:g},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:138,columnNumber:11},this),m.jsxDEV("button",{onClick:v,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(kT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:143,columnNumber:13},this),u("sources.import.dir_scan_retry")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:139,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:133,columnNumber:9},this),x&&!d&&!g&&m.jsxDEV("div",{className:"mt-6 space-y-3",children:[m.jsxDEV("p",{className:"font-mono text-xs uppercase text-c4a-accent",children:u("sources.import.dir_scan_complete")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:151,columnNumber:11},this),m.jsxDEV("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-4",children:[m.jsxDEV(Uf,{icon:m.jsxDEV(Xf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:157,columnNumber:21},this),label:u("sources.import.dir_code_packages"),value:x.codePackages},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:156,columnNumber:13},this),m.jsxDEV(Uf,{icon:m.jsxDEV(ul,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:162,columnNumber:21},this),label:u("sources.import.dir_doc_files"),value:x.docFiles},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:161,columnNumber:13},this),m.jsxDEV(Uf,{icon:m.jsxDEV(gn,{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:u("sources.import.dir_total_dirs"),value:x.totalDirs},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:166,columnNumber:13},this),m.jsxDEV(Uf,{icon:m.jsxDEV(ul,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:172,columnNumber:21},this),label:u("sources.import.dir_total_files"),value:x.totalFiles},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:171,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:155,columnNumber:11},this),x.gitRepos>0&&m.jsxDEV("p",{className:"flex items-start gap-2 text-xs text-c4a-info",children:[m.jsxDEV(Ff,{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:180,columnNumber:15},this),u("sources.import.dir_git_skip_hint",{count:x.gitRepos})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:179,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:150,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:117,columnNumber:5},this)}function Uf({icon:s,label:r,value:l}){return m.jsxDEV("div",{className:"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:r},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:203,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:201,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:205,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:200,columnNumber:5},this)}function nO({importState:s,libraryName:r,importing:l,onCancel:c,onConfirm:u}){const{t:d}=Le(),h=s.scanStats;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:d("sources.import.dir_confirm_heading",{name:r})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:25,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 space-y-2 text-sm",children:[m.jsxDEV(uo,{label:d("sources.import.dir_name"),value:s.dirName},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:30,columnNumber:9},this),m.jsxDEV(uo,{label:d("sources.import.dir_path"),value:s.dirPath},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:34,columnNumber:9},this),h?m.jsxDEV(m.Fragment,{children:[m.jsxDEV(uo,{label:d("sources.import.dir_code_packages"),value:String(h.codePackages)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:40,columnNumber:13},this),m.jsxDEV(uo,{label:d("sources.import.dir_doc_files"),value:String(h.docFiles)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:44,columnNumber:13},this),m.jsxDEV(uo,{label:d("sources.import.dir_total_files"),value:String(h.totalFiles)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:48,columnNumber:13},this),m.jsxDEV(uo,{label:d("sources.import.dir_total_dirs"),value:String(h.totalDirs)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:52,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:39,columnNumber:11},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV(uo,{label:d("sources.import.dir_files"),value:String(s.fileCount)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:59,columnNumber:13},this),m.jsxDEV(uo,{label:d("sources.import.dir_subdirs"),value:String(s.subDirCount)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:63,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:58,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:29,columnNumber:7},this),(h?.gitRepos??s.gitRepoCount)>0&&m.jsxDEV("p",{className:"mt-4 flex items-start gap-2 text-xs text-c4a-info",children:[m.jsxDEV(Ff,{size:14,className:"mt-0.5 shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:74,columnNumber:11},this),d("sources.import.dir_git_skip_hint",{count:h?.gitRepos??s.gitRepoCount})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:73,columnNumber:9},this),m.jsxDEV("p",{className:"mt-6 flex items-start gap-2 text-xs text-c4a-text-muted",children:[m.jsxDEV(W4,{size:14,className:"mt-0.5 shrink-0 text-c4a-info"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:83,columnNumber:9},this),d("sources.safety.notice.dir")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:82,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(bn,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:90,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/StepConfirmDirImport.tsx",lineNumber:91,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:89,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:c,disabled: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 disabled:opacity-40",children:d("common.back")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:99,columnNumber:9},this),m.jsxDEV("button",{onClick:u,disabled:l,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:[l&&m.jsxDEV(bn,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:111,columnNumber:25},this),d(l?"sources.import.importing":"sources.import.dir_step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:106,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:98,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:24,columnNumber:5},this)}function uo({label:s,value:r}){return m.jsxDEV("div",{className:"flex items-center gap-4",children:[m.jsxDEV("span",{className:"w-24 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/StepConfirmDirImport.tsx",lineNumber:124,columnNumber:7},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-primary",children:r},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:127,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmDirImport.tsx",lineNumber:123,columnNumber:5},this)}function sO(){const{t:s}=Le(),r=ho(),{libId:l}=Gf(),u=ka(fl(uu)).find(J=>J.id===l),d=Jf(J=>J.createSource),[h,g]=E.useState(1),[y,x]=E.useState(!1),[D,v]=E.useState({dirPath:"",dirName:"",fileCount:0,subDirCount:0,gitRepoCount:0,mdFiles:[],scanEntries:[],scanStats:null}),S=u?.is_online??!1,[R,j]=E.useState([]);E.useEffect(()=>{if(!l)return;let J=!1;return(async()=>{try{const ee=await va.get("/sources",{library_id:l,limit:"500"});if(J)return;const _=ee.items.filter(X=>!X.parent_id).map(X=>{const q=X.metadata;return typeof q?.local_path=="string"?q.local_path:null}).filter(X=>X!==null);j(_)}catch{}})(),()=>{J=!0}},[l]);const H=E.useMemo(()=>{const J=u?.config;return!J||!Array.isArray(J.allowed_paths)?[]:J.allowed_paths},[u]),L=E.useCallback(async(J,ee)=>{if(!l)throw new Error("No library");const _=await va.post(`/libraries/${l}/rpc`,{method:J,params:ee});if(_.error){const X=_.error;throw new Error(X.message??JSON.stringify(_.error))}return _.result??_},[l]),Q=E.useCallback((J,ee,_)=>{v(X=>({...X,dirPath:J,dirName:ee,fileCount:_.files,subDirCount:_.dirs,gitRepoCount:_.gitRepos,mdFiles:_.mdFiles}))},[]),Z=E.useCallback((J,ee)=>{v(_=>({..._,scanEntries:J,scanStats:ee}))},[]),se=E.useCallback(async()=>{if(l){x(!0);try{const J=await d({library_id:l,dir_files:D.scanEntries,dir_name:D.dirName,dir_path:D.dirPath}),ee=Array.isArray(J)?J[0]:J;ee?.kind==="folder"?r(`/studio/sources/${l}?path=${ee.id}`):r(`/studio/sources/${l}`)}catch{x(!1)}}},[l,D,d,r]),fe=E.useMemo(()=>h===1?!!D.dirPath:h===2?D.scanEntries.length>0:!0,[h,D]),be=E.useMemo(()=>u?[{label:u.id===Zf?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 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(du,{segments:be},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:187,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex w-full items-center gap-2 font-mono text-sm md:gap-3",children:[m.jsxDEV(qg,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:191,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:192,columnNumber:9},this),m.jsxDEV(r4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:195,columnNumber:9},this),m.jsxDEV(qg,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:196,columnNumber:9},this),m.jsxDEV("span",{className:h===2?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.dir_step.scan")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:197,columnNumber:9},this),m.jsxDEV(r4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:200,columnNumber:9},this),m.jsxDEV(qg,{active:h>=3,current:h===3},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:201,columnNumber:9},this),m.jsxDEV("span",{className:h===3?"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:202,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:190,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 flex-1",children:S?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(Wj,{rpc:L,selectedPath:D.dirPath,onSelect:Q,allowedPaths:H,importedPaths:R},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:214,columnNumber:15},this),h===2&&m.jsxDEV(aO,{dirPath:D.dirPath,dirName:D.dirName,rpc:L,onScanComplete:Z},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:223,columnNumber:15},this),h===3&&m.jsxDEV(nO,{importState:D,libraryName:u.name,importing:y,onCancel:()=>g(2),onConfirm:se},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:231,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:212,columnNumber:11},this):m.jsxDEV(rO,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:210,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:208,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 text-right text-xs text-c4a-text-muted",children:s("sources.safety.notice.dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:244,columnNumber:7},this),S&&h===1&&m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2 border-t border-c4a-border-subtle pt-4",children:m.jsxDEV("button",{onClick:()=>g(2),disabled:!fe,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:251,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:250,columnNumber:9},this),S&&h===2&&m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2 border-t border-c4a-border-subtle pt-4",children:[m.jsxDEV("button",{onClick:()=>g(1),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.back")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:262,columnNumber:11},this),m.jsxDEV("button",{onClick:()=>g(3),disabled:!fe,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:268,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:261,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:186,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:180,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:179,columnNumber:7},this)}function qg({active:s,current:r}){return m.jsxDEV("span",{className:`inline-block h-2.5 w-2.5 rounded-full border-2 ${r?"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:289,columnNumber:5},this)}function r4(){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:302,columnNumber:10},this)}function rO({libraryName:s}){const{t:r}=Le();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:r("sources.import.daemon_offline",{name:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:309,columnNumber:7},this),m.jsxDEV(Pa,{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:r("sources.import.view_guide")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:312,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:308,columnNumber:5},this)}function oO(){const{t:s}=Le(),r=ho(),l=ka(S=>S.createLibrary),[c,u]=E.useState("waiting"),[d,h]=E.useState(null),[g,y]=E.useState(""),[x,D]=E.useState(!1);E.useEffect(()=>Hs.on("ws:daemon:connected",R=>{const j=R;h(j),y(j.machine_id),u(j.needs_registration?"new_client":"reconnected")}),[]);const v=E.useCallback(async()=>{if(d){D(!0);try{const S=await l({type:"daemon",name:g||d.machine_id,config:{machine_id:d.machine_id,os:d.os||"",daemon_version:d.daemon_version||""}});r(`/studio/sources/${S.id}`)}catch{D(!1)}}},[d,g,l,r]);return m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(du,{segments:[{label:s("sources.add_client.title")}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:62,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:66,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:74,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:77,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:73,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:82,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} --allow ./`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:85,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:81,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:90,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:93,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:89,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:72,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:71,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(bn,{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:104,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:105,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:103,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-text-primary",children:s("sources.add_client.detected")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:113,columnNumber:13},this),m.jsxDEV("div",{className:"space-y-2 text-sm",children:[m.jsxDEV(Gg,{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:117,columnNumber:15},this),d.os&&m.jsxDEV(Gg,{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:122,columnNumber:17},this),d.daemon_version&&m.jsxDEV(Gg,{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:128,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:116,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:135,columnNumber:15},this),m.jsxDEV("input",{value:g,onChange:S=>y(S.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:138,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:134,columnNumber:13},this),m.jsxDEV("div",{className:"flex justify-end gap-2 pt-2",children:[m.jsxDEV("button",{onClick:()=>r("/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:145,columnNumber:15},this),m.jsxDEV("button",{onClick:v,disabled:x||!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:[x&&m.jsxDEV(bn,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:157,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:151,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:144,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:112,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(Bf,{size:16,className:"text-c4a-success"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:168,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:169,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:167,columnNumber:13},this),d.lib_id&&m.jsxDEV(Pa,{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:176,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:166,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:101,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:61,columnNumber:5},this)}function Gg({label:s,value:r}){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:195,columnNumber:7},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-primary",children:r},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:198,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:194,columnNumber:5},this)}function iO(){const{t:s}=Le(),{sourceUuid:r}=Gf(),{currentSource:l,loading:c,fetchSource:u}=Jf(),d=ka(fl(uu)),[h,g]=E.useState("original"),[y,x]=E.useState([]);E.useEffect(()=>{r&&u(r)},[r,u]),E.useEffect(()=>{l&&(async()=>{const H=[];let L=l.parent_id;for(;L;)try{const Q=await fetch(`/api/v1/sources/${L}`);if(!Q.ok)break;const Z=await Q.json();H.unshift(Z),L=Z.parent_id}catch{break}x(H)})()},[l]);const D=d.find(H=>H.id===l?.library_id),v=l?.metadata?Object.fromEntries(Object.entries(l.metadata).map(([H,L])=>[H,String(L??"")])):null,S=l?.source_type==="code",R=E.useMemo(()=>{if(!l||!D)return[];const H=[{label:D.id===Zf?s("sources.library.default_cloud_name"):D.name,to:`/studio/sources/${D.id}`}];return y.forEach(L=>{H.push({label:L.name,to:`/studio/sources/${D.id}?path=${L.id}`})}),H.push({label:l.name}),H},[l,D,y,s]),j=[{key:"original",label:s(S?"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 c||!l?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:95,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:94,columnNumber:7},this):m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(du,{segments:R},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:"mt-4 flex items-center gap-2",children:[S?m.jsxDEV(Xf,{size:20,className:"text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:107,columnNumber:11},this):m.jsxDEV(ul,{size:20,className:"text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:109,columnNumber:11},this),m.jsxDEV("h1",{className:"font-mono text-xl font-bold text-c4a-text-primary",children:l.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:111,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:105,columnNumber:7},this),m.jsxDEV("div",{className:"mt-2 flex flex-wrap 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:l.source_type==="code"?s("sources.type.code"):s("sources.type.doc")},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:118,columnNumber:9},this),S&&v?.relative_path&&m.jsxDEV("span",{children:[s("sources.detail.path"),":"," ",m.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:v.relative_path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:127,columnNumber:11},this),!S&&m.jsxDEV("span",{children:[s("sources.detail.origin"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:D?.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:137,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:135,columnNumber:11},this),m.jsxDEV("span",{children:[s("sources.detail.status"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:s(`sources.status.${l.index_status}`)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:146,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:144,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:117,columnNumber:7},this),S&&v&&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:[v.repo_name&&m.jsxDEV(Tf,{label:s("sources.detail.repo"),value:v.repo_name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:157,columnNumber:15},this),v.pinned_branch&&m.jsxDEV(Tf,{label:s("sources.detail.branch"),value:v.pinned_branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:163,columnNumber:15},this),v.pinned_hash&&m.jsxDEV(Tf,{label:s("sources.detail.commit"),value:v.pinned_hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:169,columnNumber:15},this),v.tech_stack&&m.jsxDEV(Tf,{label:s("sources.detail.tech_stack"),value:v.tech_stack},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:175,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:155,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:154,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex border-b border-c4a-border-subtle",children:j.map(H=>m.jsxDEV("button",{onClick:()=>g(H.key),className:`border-b-2 px-4 py-2 font-mono text-xs uppercase transition-colors ${h===H.key?"border-c4a-accent text-c4a-accent":"border-transparent text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:H.label},H.key,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:187,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:185,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex-1",children:[h==="original"&&m.jsxDEV(lO,{source:l,isCode:S},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:204,columnNumber:11},this),h==="digest"&&m.jsxDEV(o4,{message:s("sources.detail.digest_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:207,columnNumber:11},this),h==="modeling"&&m.jsxDEV(o4,{message:s("sources.detail.modeling_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:210,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:202,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:101,columnNumber:5},this)}function Tf({label:s,value:r}){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:222,columnNumber:7},this),m.jsxDEV("p",{className:"mt-0.5 font-mono text-c4a-text-primary",children:r},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:223,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:221,columnNumber:5},this)}function lO({source:s,isCode:r}){const{t:l}=Le(),c=s.metadata;return r?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:242,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:246,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:254,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:255,columnNumber:19},this)]},u,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:253,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:249,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:245,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:262,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:240,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:272,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:271,columnNumber:5},this)}function o4({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:282,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:281,columnNumber:5},this)}const cO="lib_cloud_default",uO=NU([{element:m.jsxDEV(dj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:29,columnNumber:14},void 0),children:[{path:"/",element:m.jsxDEV(bj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:31,columnNumber:29},void 0)},{path:"/login",element:m.jsxDEV(yj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:32,columnNumber:34},void 0)},{path:"/docs",element:m.jsxDEV(vj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:33,columnNumber:33},void 0)}]},{path:"/studio",element:m.jsxDEV(gj,{},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(BS,{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(BS,{to:`/studio/sources/${cO}`,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(oO,{},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(Pj,{},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(sO,{},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($j,{},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(iO,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:56,columnNumber:46},void 0)},{path:"modeling",element:m.jsxDEV(Nj,{},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(_j,{},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(kj,{},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(Cj,{},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(Uj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:61,columnNumber:48},void 0)},{path:"brain",element:m.jsxDEV(Sj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:62,columnNumber:33},void 0)},{path:"discovery",element:m.jsxDEV(wj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:63,columnNumber:37},void 0)},{path:"sharing",element:m.jsxDEV(Ej,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:64,columnNumber:35},void 0)},{path:"collaboration",element:m.jsxDEV(Dj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:65,columnNumber:41},void 0)},{path:"settings",element:m.jsxDEV(Rj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:66,columnNumber:36},void 0)}]},{path:"*",element:m.jsxDEV(xj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:71,columnNumber:25},void 0)}]);function dO(){return E.useEffect(()=>{const r=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;return Hs.connect(r),()=>{Hs.disconnect()}},[]),m.jsxDEV(XC,{router:uO},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/App.tsx",lineNumber:17,columnNumber:10},this)}ik.createRoot(document.getElementById("root")).render(m.jsxDEV(E.StrictMode,{children:m.jsxDEV(dO,{},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));
|