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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/index.js +795 -3402
  2. package/package.json +1 -1
  3. package/serve.js +3223 -4193
  4. package/web/assets/index--UyZtsHr.js +238 -0
  5. package/web/assets/index-15FuETM5.js +238 -0
  6. package/web/assets/index-1O90ZcBt.js +238 -0
  7. package/web/assets/index-2ZaXHlEm.js +12 -0
  8. package/web/assets/index-5SgaIe6K.js +238 -0
  9. package/web/assets/index-69TE-Dt9.js +238 -0
  10. package/web/assets/index-6qWMAJjW.js +12 -0
  11. package/web/assets/index-8bavzcKH.js +238 -0
  12. package/web/assets/index-B2JcVRax.js +238 -0
  13. package/web/assets/index-B3a1j3cz.js +238 -0
  14. package/web/assets/index-B6EqO_Cg.js +12 -0
  15. package/web/assets/index-B7OJ5sV_.js +238 -0
  16. package/web/assets/index-B9YWtkC-.js +12 -0
  17. package/web/assets/index-BD162a_1.js +238 -0
  18. package/web/assets/index-BF50bkqY.css +1 -0
  19. package/web/assets/index-BPMcNaXa.css +1 -0
  20. package/web/assets/index-BPlwhwPb.css +1 -0
  21. package/web/assets/index-BW9aouHt.js +238 -0
  22. package/web/assets/index-BbZvxZvZ.css +1 -0
  23. package/web/assets/index-BkYFml7g.css +1 -0
  24. package/web/assets/index-Bnn0CunM.js +238 -0
  25. package/web/assets/index-BosC7CbW.css +1 -0
  26. package/web/assets/index-BrJa-9jA.css +1 -0
  27. package/web/assets/index-C63Z-8cw.js +238 -0
  28. package/web/assets/index-C6ydhyiL.js +238 -0
  29. package/web/assets/index-CAXoXe3-.css +1 -0
  30. package/web/assets/index-CDG7D9Wo.css +1 -0
  31. package/web/assets/index-CNruo9jb.js +238 -0
  32. package/web/assets/index-CUGq5bZG.js +12 -0
  33. package/web/assets/index-CVB_F0xd.js +238 -0
  34. package/web/assets/index-CVct6UjO.css +1 -0
  35. package/web/assets/index-CX2QKHgP.js +12 -0
  36. package/web/assets/index-Cok56quU.css +1 -0
  37. package/web/assets/index-Ct-X2M8U.js +12 -0
  38. package/web/assets/index-CtnVCeI7.css +1 -0
  39. package/web/assets/index-Cu6ttPtz.js +12 -0
  40. package/web/assets/index-CvTLDILA.css +1 -0
  41. package/web/assets/index-D0x9zuj2.js +238 -0
  42. package/web/assets/index-D12WsS4E.js +238 -0
  43. package/web/assets/index-D3-qG0Hp.js +238 -0
  44. package/web/assets/index-D3UsEQTE.css +1 -0
  45. package/web/assets/index-D5WvCk3U.js +238 -0
  46. package/web/assets/index-D6QqUdMz.css +1 -0
  47. package/web/assets/index-D7EkgIsu.js +12 -0
  48. package/web/assets/index-DB_YWOXK.js +12 -0
  49. package/web/assets/index-DBaysFVi.css +1 -0
  50. package/web/assets/index-DGYdHfUt.js +238 -0
  51. package/web/assets/index-DIzfj2PR.css +1 -0
  52. package/web/assets/index-DJiYLRIW.css +1 -0
  53. package/web/assets/index-DQcztEye.js +238 -0
  54. package/web/assets/index-DSnxWXVs.css +1 -0
  55. package/web/assets/index-DX1UQEJF.css +1 -0
  56. package/web/assets/index-DgtV8nwc.js +238 -0
  57. package/web/assets/index-DqdyIshw.js +12 -0
  58. package/web/assets/index-DyF2kEj9.js +238 -0
  59. package/web/assets/index-H6Rs5Fbq.js +12 -0
  60. package/web/assets/index-O5LI2GNV.js +238 -0
  61. package/web/assets/index-SnFvyzm_.css +1 -0
  62. package/web/assets/index-bnfl0N-T.css +1 -0
  63. package/web/assets/index-cMgxghVE.css +1 -0
  64. package/web/assets/index-dDuVahj-.js +12 -0
  65. package/web/assets/index-fG23cf-l.js +238 -0
  66. package/web/assets/index-it-5oMch.css +1 -0
  67. package/web/assets/index-yq497d-W.js +12 -0
  68. package/web/index.html +2 -2
@@ -0,0 +1,238 @@
1
+ function WR(s,o){for(var l=0;l<o.length;l++){const c=o[l];if(typeof c!="string"&&!Array.isArray(c)){for(const u in c)if(u!=="default"&&!(u in s)){const d=Object.getOwnPropertyDescriptor(c,u);d&&Object.defineProperty(s,u,d.get?d:{enumerable:!0,get:()=>c[u]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))c(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function l(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(u){if(u.ep)return;u.ep=!0;const d=l(u);fetch(u.href,d)}})();function e_(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var _g={exports:{}},_f={},kg={exports:{}},Qc={exports:{}};Qc.exports;var Y1;function t_(){return Y1||(Y1=1,(function(s,o){(function(){function l(x,O){Object.defineProperty(d.prototype,x,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})}function c(x){return x===null||typeof x!="object"?null:(x=xt&&x[xt]||x["@@iterator"],typeof x=="function"?x:null)}function u(x,O){x=(x=x.constructor)&&(x.displayName||x.name)||"ReactClass";var W=x+"."+O;ft[W]||(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.",O,x),ft[W]=!0)}function d(x,O,W){this.props=x,this.context=O,this.refs=nt,this.updater=W||Ht}function h(){}function g(x,O,W){this.props=x,this.context=O,this.refs=nt,this.updater=W||Ht}function b(){}function y(x){return""+x}function D(x){try{y(x);var O=!1}catch{O=!0}if(O){O=console;var W=O.error,se=typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return W.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",se),y(x)}}function N(x){if(x==null)return null;if(typeof x=="function")return x.$$typeof===Sn?null:x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case Y:return"Fragment";case Ce:return"Profiler";case ve:return"StrictMode";case Ke:return"Suspense";case Qt:return"SuspenseList";case he:return"Activity"}if(typeof x=="object")switch(typeof x.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case we:return"Portal";case dt:return x.displayName||"Context";case _e:return(x._context.displayName||"Context")+".Consumer";case Tt:var O=x.render;return x=x.displayName,x||(x=O.displayName||O.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case Re:return O=x.displayName||null,O!==null?O:N(x.type)||"Memo";case Lt:O=x._payload,x=x._init;try{return N(x(O))}catch{}}return null}function S(x){if(x===Y)return"<>";if(typeof x=="object"&&x!==null&&x.$$typeof===Lt)return"<...>";try{var O=N(x);return O?"<"+O+">":"<...>"}catch{return"<...>"}}function R(){var x=Se.A;return x===null?null:x.getOwner()}function k(){return Error("react-stack-top-frame")}function B(x){if(wn.call(x,"key")){var O=Object.getOwnPropertyDescriptor(x,"key").get;if(O&&O.isReactWarning)return!1}return x.key!==void 0}function H(x,O){function W(){Fa||(Fa=!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)",O))}W.isReactWarning=!0,Object.defineProperty(x,"key",{get:W,configurable:!0})}function Z(){var x=N(this.type);return Oa[x]||(Oa[x]=!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.")),x=this.props.ref,x!==void 0?x:null}function X(x,O,W,se,de,Le){var De=W.ref;return x={$$typeof:P,type:x,key:O,props:W,_owner:se},(De!==void 0?De:null)!==null?Object.defineProperty(x,"ref",{enumerable:!1,get:Z}):Object.defineProperty(x,"ref",{enumerable:!1,value:null}),x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(x,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(x,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.defineProperty(x,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Le}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x}function te(x,O){return O=X(x.type,O,x.props,x._owner,x._debugStack,x._debugTask),x._store&&(O._store.validated=x._store.validated),O}function fe(x){ie(x)?x._store&&(x._store.validated=1):typeof x=="object"&&x!==null&&x.$$typeof===Lt&&(x._payload.status==="fulfilled"?ie(x._payload.value)&&x._payload.value._store&&(x._payload.value._store.validated=1):x._store&&(x._store.validated=1))}function ie(x){return typeof x=="object"&&x!==null&&x.$$typeof===P}function ne(x){var O={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(W){return O[W]})}function ae(x,O){return typeof x=="object"&&x!==null&&x.key!=null?(D(x.key),ne(""+x.key)):O.toString(36)}function _(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(b,b):(x.status="pending",x.then(function(O){x.status==="pending"&&(x.status="fulfilled",x.value=O)},function(O){x.status==="pending"&&(x.status="rejected",x.reason=O)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function Q(x,O,W,se,de){var Le=typeof x;(Le==="undefined"||Le==="boolean")&&(x=null);var De=!1;if(x===null)De=!0;else switch(Le){case"bigint":case"string":case"number":De=!0;break;case"object":switch(x.$$typeof){case P:case we:De=!0;break;case Lt:return De=x._init,Q(De(x._payload),O,W,se,de)}}if(De){De=x,de=de(De);var Xe=se===""?"."+ae(De,0):se;return Zt(de)?(W="",Xe!=null&&(W=Xe.replace(Ea,"$&/")+"/"),Q(de,O,W,"",function(Pt){return Pt})):de!=null&&(ie(de)&&(de.key!=null&&(De&&De.key===de.key||D(de.key)),W=te(de,W+(de.key==null||De&&De.key===de.key?"":(""+de.key).replace(Ea,"$&/")+"/")+Xe),se!==""&&De!=null&&ie(De)&&De.key==null&&De._store&&!De._store.validated&&(W._store.validated=2),de=W),O.push(de)),1}if(De=0,Xe=se===""?".":se+":",Zt(x))for(var Be=0;Be<x.length;Be++)se=x[Be],Le=Xe+ae(se,Be),De+=Q(se,O,W,Le,de);else if(Be=c(x),typeof Be=="function")for(Be===x.entries&&(Qa||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Qa=!0),x=Be.call(x),Be=0;!(se=x.next()).done;)se=se.value,Le=Xe+ae(se,Be++),De+=Q(se,O,W,Le,de);else if(Le==="object"){if(typeof x.then=="function")return Q(_(x),O,W,se,de);throw O=String(x),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return De}function L(x,O,W){if(x==null)return x;var se=[],de=0;return Q(x,se,"","",function(Le){return O.call(W,Le,de++)}),se}function pe(x){if(x._status===-1){var O=x._ioInfo;O!=null&&(O.start=O.end=performance.now()),O=x._result;var W=O();if(W.then(function(de){if(x._status===0||x._status===-1){x._status=1,x._result=de;var Le=x._ioInfo;Le!=null&&(Le.end=performance.now()),W.status===void 0&&(W.status="fulfilled",W.value=de)}},function(de){if(x._status===0||x._status===-1){x._status=2,x._result=de;var Le=x._ioInfo;Le!=null&&(Le.end=performance.now()),W.status===void 0&&(W.status="rejected",W.reason=de)}}),O=x._ioInfo,O!=null){O.value=W;var se=W.displayName;typeof se=="string"&&(O.name=se)}x._status===-1&&(x._status=0,x._result=W)}if(x._status===1)return O=x._result,O===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?`,O),"default"in O||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'))`,O),O.default;throw x._result}function ee(){var x=Se.H;return x===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
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.`),x}function F(){Se.asyncTransitions--}function le(x){if(In===null)try{var O=("require"+Math.random()).slice(0,7);In=(s&&s[O]).call(s,"timers").setImmediate}catch{In=function(se){ds===!1&&(ds=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var de=new MessageChannel;de.port1.onmessage=se,de.port2.postMessage(void 0)}}return In(x)}function Ne(x){return 1<x.length&&typeof AggregateError=="function"?new AggregateError(x):x[0]}function K(x,O){O!==Za-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. "),Za=O}function ue(x,O,W){var se=Se.actQueue;if(se!==null)if(se.length!==0)try{be(se),le(function(){return ue(x,O,W)});return}catch(de){Se.thrownErrors.push(de)}else Se.actQueue=null;0<Se.thrownErrors.length?(se=Ne(Se.thrownErrors),Se.thrownErrors.length=0,W(se)):O(x)}function be(x){if(!ca){ca=!0;var O=0;try{for(;O<x.length;O++){var W=x[O];do{Se.didUsePromise=!1;var se=W(!1);if(se!==null){if(Se.didUsePromise){x[O]=W,x.splice(0,O);return}W=se}else break}while(!0)}x.length=0}catch(de){x.splice(0,O+1),Se.thrownErrors.push(de)}finally{ca=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var P=Symbol.for("react.transitional.element"),we=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),Ce=Symbol.for("react.profiler"),_e=Symbol.for("react.consumer"),dt=Symbol.for("react.context"),Tt=Symbol.for("react.forward_ref"),Ke=Symbol.for("react.suspense"),Qt=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),xt=Symbol.iterator,ft={},Ht={isMounted:function(){return!1},enqueueForceUpdate:function(x){u(x,"forceUpdate")},enqueueReplaceState:function(x){u(x,"replaceState")},enqueueSetState:function(x){u(x,"setState")}},Bt=Object.assign,nt={};Object.freeze(nt),d.prototype.isReactComponent={},d.prototype.setState=function(x,O){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,O,"setState")},d.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};var vt={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(sn in vt)vt.hasOwnProperty(sn)&&l(sn,vt[sn]);h.prototype=d.prototype,vt=g.prototype=new h,vt.constructor=g,Bt(vt,d.prototype),vt.isPureReactComponent=!0;var Zt=Array.isArray,Sn=Symbol.for("react.client.reference"),Se={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},wn=Object.prototype.hasOwnProperty,wa=console.createTask?console.createTask:function(){return null};vt={react_stack_bottom_frame:function(x){return x()}};var Fa,En,Oa={},Xa=vt.react_stack_bottom_frame.bind(vt,k)(),us=wa(S(k)),Qa=!1,Ea=/\/+/g,ba=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},ds=!1,In=null,Za=0,Fn=!1,ca=!1,Xn=typeof queueMicrotask=="function"?function(x){queueMicrotask(function(){return queueMicrotask(x)})}:le;vt=Object.freeze({__proto__:null,c:function(x){return ee().useMemoCache(x)}});var sn={map:L,forEach:function(x,O,W){L(x,function(){O.apply(this,arguments)},W)},count:function(x){var O=0;return L(x,function(){O++}),O},toArray:function(x){return L(x,function(O){return O})||[]},only:function(x){if(!ie(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};o.Activity=he,o.Children=sn,o.Component=d,o.Fragment=Y,o.Profiler=Ce,o.PureComponent=g,o.StrictMode=ve,o.Suspense=Ke,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Se,o.__COMPILER_RUNTIME=vt,o.act=function(x){var O=Se.actQueue,W=Za;Za++;var se=Se.actQueue=O!==null?O:[],de=!1;try{var Le=x()}catch(Be){Se.thrownErrors.push(Be)}if(0<Se.thrownErrors.length)throw K(O,W),x=Ne(Se.thrownErrors),Se.thrownErrors.length=0,x;if(Le!==null&&typeof Le=="object"&&typeof Le.then=="function"){var De=Le;return Xn(function(){de||Fn||(Fn=!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(Be,Pt){de=!0,De.then(function(Aa){if(K(O,W),W===0){try{be(se),le(function(){return ue(Aa,Be,Pt)})}catch(Fs){Se.thrownErrors.push(Fs)}if(0<Se.thrownErrors.length){var Is=Ne(Se.thrownErrors);Se.thrownErrors.length=0,Pt(Is)}}else Be(Aa)},function(Aa){K(O,W),0<Se.thrownErrors.length&&(Aa=Ne(Se.thrownErrors),Se.thrownErrors.length=0),Pt(Aa)})}}}var Xe=Le;if(K(O,W),W===0&&(be(se),se.length!==0&&Xn(function(){de||Fn||(Fn=!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(() => ...)"))}),Se.actQueue=null),0<Se.thrownErrors.length)throw x=Ne(Se.thrownErrors),Se.thrownErrors.length=0,x;return{then:function(Be,Pt){de=!0,W===0?(Se.actQueue=se,le(function(){return ue(Xe,Be,Pt)})):Be(Xe)}}},o.cache=function(x){return function(){return x.apply(null,arguments)}},o.cacheSignal=function(){return null},o.captureOwnerStack=function(){var x=Se.getCurrentStack;return x===null?null:x()},o.cloneElement=function(x,O,W){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var se=Bt({},x.props),de=x.key,Le=x._owner;if(O!=null){var De;e:{if(wn.call(O,"ref")&&(De=Object.getOwnPropertyDescriptor(O,"ref").get)&&De.isReactWarning){De=!1;break e}De=O.ref!==void 0}De&&(Le=R()),B(O)&&(D(O.key),de=""+O.key);for(Xe in O)!wn.call(O,Xe)||Xe==="key"||Xe==="__self"||Xe==="__source"||Xe==="ref"&&O.ref===void 0||(se[Xe]=O[Xe])}var Xe=arguments.length-2;if(Xe===1)se.children=W;else if(1<Xe){De=Array(Xe);for(var Be=0;Be<Xe;Be++)De[Be]=arguments[Be+2];se.children=De}for(se=X(x.type,de,se,Le,x._debugStack,x._debugTask),de=2;de<arguments.length;de++)fe(arguments[de]);return se},o.createContext=function(x){return x={$$typeof:dt,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:_e,_context:x},x._currentRenderer=null,x._currentRenderer2=null,x},o.createElement=function(x,O,W){for(var se=2;se<arguments.length;se++)fe(arguments[se]);se={};var de=null;if(O!=null)for(Be in En||!("__self"in O)||"key"in O||(En=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),B(O)&&(D(O.key),de=""+O.key),O)wn.call(O,Be)&&Be!=="key"&&Be!=="__self"&&Be!=="__source"&&(se[Be]=O[Be]);var Le=arguments.length-2;if(Le===1)se.children=W;else if(1<Le){for(var De=Array(Le),Xe=0;Xe<Le;Xe++)De[Xe]=arguments[Xe+2];Object.freeze&&Object.freeze(De),se.children=De}if(x&&x.defaultProps)for(Be in Le=x.defaultProps,Le)se[Be]===void 0&&(se[Be]=Le[Be]);de&&H(se,typeof x=="function"?x.displayName||x.name||"Unknown":x);var Be=1e4>Se.recentlyCreatedOwnerStacks++;return X(x,de,se,R(),Be?Error("react-stack-top-frame"):Xa,Be?wa(S(x)):us)},o.createRef=function(){var x={current:null};return Object.seal(x),x},o.forwardRef=function(x){x!=null&&x.$$typeof===Re?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof x!="function"?console.error("forwardRef requires a render function but was given %s.",x===null?"null":typeof x):x.length!==0&&x.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",x.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),x!=null&&x.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var O={$$typeof:Tt,render:x},W;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return W},set:function(se){W=se,x.name||x.displayName||(Object.defineProperty(x,"name",{value:se}),x.displayName=se)}}),O},o.isValidElement=ie,o.lazy=function(x){x={_status:-1,_result:x};var O={$$typeof:Lt,_payload:x,_init:pe},W={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return x._ioInfo=W,O._debugInfo=[{awaited:W}],O},o.memo=function(x,O){x==null&&console.error("memo: The first argument must be a component. Instead received: %s",x===null?"null":typeof x),O={$$typeof:Re,type:x,compare:O===void 0?null:O};var W;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return W},set:function(se){W=se,x.name||x.displayName||(Object.defineProperty(x,"name",{value:se}),x.displayName=se)}}),O},o.startTransition=function(x){var O=Se.T,W={};W._updatedFibers=new Set,Se.T=W;try{var se=x(),de=Se.S;de!==null&&de(W,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&(Se.asyncTransitions++,se.then(F,F),se.then(b,ba))}catch(Le){ba(Le)}finally{O===null&&W._updatedFibers&&(x=W._updatedFibers.size,W._updatedFibers.clear(),10<x&&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.")),O!==null&&W.types!==null&&(O.types!==null&&O.types!==W.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."),O.types=W.types),Se.T=O}},o.unstable_useCacheRefresh=function(){return ee().useCacheRefresh()},o.use=function(x){return ee().use(x)},o.useActionState=function(x,O,W){return ee().useActionState(x,O,W)},o.useCallback=function(x,O){return ee().useCallback(x,O)},o.useContext=function(x){var O=ee();return x.$$typeof===_e&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),O.useContext(x)},o.useDebugValue=function(x,O){return ee().useDebugValue(x,O)},o.useDeferredValue=function(x,O){return ee().useDeferredValue(x,O)},o.useEffect=function(x,O){return x==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ee().useEffect(x,O)},o.useEffectEvent=function(x){return ee().useEffectEvent(x)},o.useId=function(){return ee().useId()},o.useImperativeHandle=function(x,O,W){return ee().useImperativeHandle(x,O,W)},o.useInsertionEffect=function(x,O){return x==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ee().useInsertionEffect(x,O)},o.useLayoutEffect=function(x,O){return x==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),ee().useLayoutEffect(x,O)},o.useMemo=function(x,O){return ee().useMemo(x,O)},o.useOptimistic=function(x,O){return ee().useOptimistic(x,O)},o.useReducer=function(x,O,W){return ee().useReducer(x,O,W)},o.useRef=function(x){return ee().useRef(x)},o.useState=function(x){return ee().useState(x)},o.useSyncExternalStore=function(x,O,W){return ee().useSyncExternalStore(x,O,W)},o.useTransition=function(){return ee().useTransition()},o.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Qc,Qc.exports)),Qc.exports}var q1;function iu(){return q1||(q1=1,kg.exports=t_()),kg.exports}var G1;function a_(){if(G1)return _f;G1=1;return(function(){function s(Y){if(Y==null)return null;if(typeof Y=="function")return Y.$$typeof===pe?null:Y.displayName||Y.name||null;if(typeof Y=="string")return Y;switch(Y){case H:return"Fragment";case X:return"Profiler";case Z:return"StrictMode";case ne:return"Suspense";case ae:return"SuspenseList";case L:return"Activity"}if(typeof Y=="object")switch(typeof Y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Y.$$typeof){case B:return"Portal";case fe:return Y.displayName||"Context";case te:return(Y._context.displayName||"Context")+".Consumer";case ie:var ve=Y.render;return Y=Y.displayName,Y||(Y=ve.displayName||ve.name||"",Y=Y!==""?"ForwardRef("+Y+")":"ForwardRef"),Y;case _:return ve=Y.displayName||null,ve!==null?ve:s(Y.type)||"Memo";case Q:ve=Y._payload,Y=Y._init;try{return s(Y(ve))}catch{}}return null}function o(Y){return""+Y}function l(Y){try{o(Y);var ve=!1}catch{ve=!0}if(ve){ve=console;var Ce=ve.error,_e=typeof Symbol=="function"&&Symbol.toStringTag&&Y[Symbol.toStringTag]||Y.constructor.name||"Object";return Ce.call(ve,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_e),o(Y)}}function c(Y){if(Y===H)return"<>";if(typeof Y=="object"&&Y!==null&&Y.$$typeof===Q)return"<...>";try{var ve=s(Y);return ve?"<"+ve+">":"<...>"}catch{return"<...>"}}function u(){var Y=ee.A;return Y===null?null:Y.getOwner()}function d(){return Error("react-stack-top-frame")}function h(Y){if(F.call(Y,"key")){var ve=Object.getOwnPropertyDescriptor(Y,"key").get;if(ve&&ve.isReactWarning)return!1}return Y.key!==void 0}function g(Y,ve){function Ce(){K||(K=!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))}Ce.isReactWarning=!0,Object.defineProperty(Y,"key",{get:Ce,configurable:!0})}function b(){var Y=s(this.type);return ue[Y]||(ue[Y]=!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.")),Y=this.props.ref,Y!==void 0?Y:null}function y(Y,ve,Ce,_e,dt,Tt){var Ke=Ce.ref;return Y={$$typeof:k,type:Y,key:ve,props:Ce,_owner:_e},(Ke!==void 0?Ke:null)!==null?Object.defineProperty(Y,"ref",{enumerable:!1,get:b}):Object.defineProperty(Y,"ref",{enumerable:!1,value:null}),Y._store={},Object.defineProperty(Y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:dt}),Object.defineProperty(Y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Tt}),Object.freeze&&(Object.freeze(Y.props),Object.freeze(Y)),Y}function D(Y,ve,Ce,_e,dt,Tt){var Ke=ve.children;if(Ke!==void 0)if(_e)if(le(Ke)){for(_e=0;_e<Ke.length;_e++)N(Ke[_e]);Object.freeze&&Object.freeze(Ke)}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 N(Ke);if(F.call(ve,"key")){Ke=s(Y);var Qt=Object.keys(ve).filter(function(Lt){return Lt!=="key"});_e=0<Qt.length?"{key: someKey, "+Qt.join(": ..., ")+": ...}":"{key: someKey}",we[Ke+_e]||(Qt=0<Qt.length?"{"+Qt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
14
+ let props = %s;
15
+ <%s {...props} />
16
+ React keys must be passed directly to JSX without using spread:
17
+ let props = %s;
18
+ <%s key={someKey} {...props} />`,_e,Ke,Qt,Ke),we[Ke+_e]=!0)}if(Ke=null,Ce!==void 0&&(l(Ce),Ke=""+Ce),h(ve)&&(l(ve.key),Ke=""+ve.key),"key"in ve){Ce={};for(var Re in ve)Re!=="key"&&(Ce[Re]=ve[Re])}else Ce=ve;return Ke&&g(Ce,typeof Y=="function"?Y.displayName||Y.name||"Unknown":Y),y(Y,Ke,Ce,u(),dt,Tt)}function N(Y){S(Y)?Y._store&&(Y._store.validated=1):typeof Y=="object"&&Y!==null&&Y.$$typeof===Q&&(Y._payload.status==="fulfilled"?S(Y._payload.value)&&Y._payload.value._store&&(Y._payload.value._store.validated=1):Y._store&&(Y._store.validated=1))}function S(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===k}var R=iu(),k=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),fe=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),pe=Symbol.for("react.client.reference"),ee=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,le=Array.isArray,Ne=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(Y){return Y()}};var K,ue={},be=R.react_stack_bottom_frame.bind(R,d)(),P=Ne(c(d)),we={};_f.Fragment=H,_f.jsxDEV=function(Y,ve,Ce,_e){var dt=1e4>ee.recentlyCreatedOwnerStacks++;return D(Y,ve,Ce,_e,dt?Error("react-stack-top-frame"):be,dt?Ne(c(Y)):P)}})(),_f}var I1;function n_(){return I1||(I1=1,_g.exports=a_()),_g.exports}var m=n_();const Ge=s=>typeof s=="string",Yc=()=>{let s,o;const l=new Promise((c,u)=>{s=c,o=u});return l.resolve=s,l.reject=o,l},F1=s=>s==null?"":""+s,s_=(s,o,l)=>{s.forEach(c=>{o[c]&&(l[c]=o[c])})},o_=/###/g,X1=s=>s&&s.indexOf("###")>-1?s.replace(o_,"."):s,Q1=s=>!s||Ge(s),Kc=(s,o,l)=>{const c=Ge(o)?o.split("."):o;let u=0;for(;u<c.length-1;){if(Q1(s))return{};const d=X1(c[u]);!s[d]&&l&&(s[d]=new l),Object.prototype.hasOwnProperty.call(s,d)?s=s[d]:s={},++u}return Q1(s)?{}:{obj:s,k:X1(c[u])}},Z1=(s,o,l)=>{const{obj:c,k:u}=Kc(s,o,Object);if(c!==void 0||o.length===1){c[u]=l;return}let d=o[o.length-1],h=o.slice(0,o.length-1),g=Kc(s,h,Object);for(;g.obj===void 0&&h.length;)d=`${h[h.length-1]}.${d}`,h=h.slice(0,h.length-1),g=Kc(s,h,Object),g?.obj&&typeof g.obj[`${g.k}.${d}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${d}`]=l},r_=(s,o,l,c)=>{const{obj:u,k:d}=Kc(s,o,Object);u[d]=u[d]||[],u[d].push(l)},Lf=(s,o)=>{const{obj:l,k:c}=Kc(s,o);if(l&&Object.prototype.hasOwnProperty.call(l,c))return l[c]},i_=(s,o,l)=>{const c=Lf(s,l);return c!==void 0?c:Lf(o,l)},hw=(s,o,l)=>{for(const c in o)c!=="__proto__"&&c!=="constructor"&&(c in s?Ge(s[c])||s[c]instanceof String||Ge(o[c])||o[c]instanceof String?l&&(s[c]=o[c]):hw(s[c],o[c],l):s[c]=o[c]);return s},ei=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var l_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const c_=s=>Ge(s)?s.replace(/[&<>"'\/]/g,o=>l_[o]):s;class u_{constructor(o){this.capacity=o,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(o){const l=this.regExpMap.get(o);if(l!==void 0)return l;const c=new RegExp(o);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(o,c),this.regExpQueue.push(o),c}}const d_=[" ",",","?","!",";"],f_=new u_(20),m_=(s,o,l)=>{o=o||"",l=l||"";const c=d_.filter(h=>o.indexOf(h)<0&&l.indexOf(h)<0);if(c.length===0)return!0;const u=f_.getRegExp(`(${c.map(h=>h==="?"?"\\?":h).join("|")})`);let d=!u.test(s);if(!d){const h=s.indexOf(l);h>0&&!u.test(s.substring(0,h))&&(d=!0)}return d},Zg=(s,o,l=".")=>{if(!s)return;if(s[o])return Object.prototype.hasOwnProperty.call(s,o)?s[o]:void 0;const c=o.split(l);let u=s;for(let d=0;d<c.length;){if(!u||typeof u!="object")return;let h,g="";for(let b=d;b<c.length;++b)if(b!==d&&(g+=l),g+=c[b],h=u[g],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&b<c.length-1)continue;d+=b-d+1;break}u=h}return u},tu=s=>s?.replace("_","-"),p_={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,o){console?.[s]?.apply?.(console,o)}};class Hf{constructor(o,l={}){this.init(o,l)}init(o,l={}){this.prefix=l.prefix||"i18next:",this.logger=o||p_,this.options=l,this.debug=l.debug}log(...o){return this.forward(o,"log","",!0)}warn(...o){return this.forward(o,"warn","",!0)}error(...o){return this.forward(o,"error","")}deprecate(...o){return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(o,l,c,u){return u&&!this.debug?null:(Ge(o[0])&&(o[0]=`${c}${this.prefix} ${o[0]}`),this.logger[l](o))}create(o){return new Hf(this.logger,{prefix:`${this.prefix}:${o}:`,...this.options})}clone(o){return o=o||this.options,o.prefix=o.prefix||this.prefix,new Hf(this.logger,o)}}var Ys=new Hf;class qf{constructor(){this.observers={}}on(o,l){return o.split(" ").forEach(c=>{this.observers[c]||(this.observers[c]=new Map);const u=this.observers[c].get(l)||0;this.observers[c].set(l,u+1)}),this}off(o,l){if(this.observers[o]){if(!l){delete this.observers[o];return}this.observers[o].delete(l)}}emit(o,...l){this.observers[o]&&Array.from(this.observers[o].entries()).forEach(([u,d])=>{for(let h=0;h<d;h++)u(...l)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([u,d])=>{for(let h=0;h<d;h++)u.apply(u,[o,...l])})}}class P1 extends qf{constructor(o,l={ns:["translation"],defaultNS:"translation"}){super(),this.data=o||{},this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}removeNamespaces(o){const l=this.options.ns.indexOf(o);l>-1&&this.options.ns.splice(l,1)}getResource(o,l,c,u={}){const d=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,h=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;o.indexOf(".")>-1?g=o.split("."):(g=[o,l],c&&(Array.isArray(c)?g.push(...c):Ge(c)&&d?g.push(...c.split(d)):g.push(c)));const b=Lf(this.data,g);return!b&&!l&&!c&&o.indexOf(".")>-1&&(o=g[0],l=g[1],c=g.slice(2).join(".")),b||!h||!Ge(c)?b:Zg(this.data?.[o]?.[l],c,d)}addResource(o,l,c,u,d={silent:!1}){const h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let g=[o,l];c&&(g=g.concat(h?c.split(h):c)),o.indexOf(".")>-1&&(g=o.split("."),u=l,l=g[1]),this.addNamespaces(l),Z1(this.data,g,u),d.silent||this.emit("added",o,l,c,u)}addResources(o,l,c,u={silent:!1}){for(const d in c)(Ge(c[d])||Array.isArray(c[d]))&&this.addResource(o,l,d,c[d],{silent:!0});u.silent||this.emit("added",o,l,c)}addResourceBundle(o,l,c,u,d,h={silent:!1,skipCopy:!1}){let g=[o,l];o.indexOf(".")>-1&&(g=o.split("."),u=c,c=l,l=g[1]),this.addNamespaces(l);let b=Lf(this.data,g)||{};h.skipCopy||(c=JSON.parse(JSON.stringify(c))),u?hw(b,c,d):b={...b,...c},Z1(this.data,g,b),h.silent||this.emit("added",o,l,c)}removeResourceBundle(o,l){this.hasResourceBundle(o,l)&&delete this.data[o][l],this.removeNamespaces(l),this.emit("removed",o,l)}hasResourceBundle(o,l){return this.getResource(o,l)!==void 0}getResourceBundle(o,l){return l||(l=this.options.defaultNS),this.getResource(o,l)}getDataByLanguage(o){return this.data[o]}hasLanguageSomeTranslations(o){const l=this.getDataByLanguage(o);return!!(l&&Object.keys(l)||[]).find(u=>l[u]&&Object.keys(l[u]).length>0)}toJSON(){return this.data}}var gw={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,o,l,c,u){return s.forEach(d=>{o=this.processors[d]?.process(o,l,c,u)??o}),o}};const bw=Symbol("i18next/PATH_KEY");function h_(){const s=[],o=Object.create(null);let l;return o.get=(c,u)=>(l?.revoke?.(),u===bw?s:(s.push(u),l=Proxy.revocable(c,o),l.proxy)),Proxy.revocable(Object.create(null),o).proxy}function Pg(s,o){const{[bw]:l}=s(h_());return l.join(o?.keySeparator??".")}const J1={},Ug=s=>!Ge(s)&&typeof s!="boolean"&&typeof s!="number";class Bf extends qf{constructor(o,l={}){super(),s_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o,this),this.options=l,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ys.create("translator")}changeLanguage(o){o&&(this.language=o)}exists(o,l={interpolation:{}}){const c={...l};if(o==null)return!1;const u=this.resolve(o,c);if(u?.res===void 0)return!1;const d=Ug(u.res);return!(c.returnObjects===!1&&d)}extractFromKey(o,l){let c=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let d=l.ns||this.options.defaultNS||[];const h=c&&o.indexOf(c)>-1,g=!this.options.userDefinedKeySeparator&&!l.keySeparator&&!this.options.userDefinedNsSeparator&&!l.nsSeparator&&!m_(o,c,u);if(h&&!g){const b=o.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:o,namespaces:Ge(d)?[d]:d};const y=o.split(c);(c!==u||c===u&&this.options.ns.indexOf(y[0])>-1)&&(d=y.shift()),o=y.join(u)}return{key:o,namespaces:Ge(d)?[d]:d}}translate(o,l,c){let u=typeof l=="object"?{...l}:l;if(typeof u!="object"&&this.options.overloadTranslationOptionHandler&&(u=this.options.overloadTranslationOptionHandler(arguments)),typeof u=="object"&&(u={...u}),u||(u={}),o==null)return"";typeof o=="function"&&(o=Pg(o,{...this.options,...u})),Array.isArray(o)||(o=[String(o)]);const d=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,h=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:g,namespaces:b}=this.extractFromKey(o[o.length-1],u),y=b[b.length-1];let D=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;D===void 0&&(D=":");const N=u.lng||this.language,S=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(N?.toLowerCase()==="cimode")return S?d?{res:`${y}${D}${g}`,usedKey:g,exactUsedKey:g,usedLng:N,usedNS:y,usedParams:this.getUsedParamsDetails(u)}:`${y}${D}${g}`:d?{res:g,usedKey:g,exactUsedKey:g,usedLng:N,usedNS:y,usedParams:this.getUsedParamsDetails(u)}:g;const R=this.resolve(o,u);let k=R?.res;const B=R?.usedKey||g,H=R?.exactUsedKey||g,Z=["[object Number]","[object Function]","[object RegExp]"],X=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,te=!this.i18nFormat||this.i18nFormat.handleAsObject,fe=u.count!==void 0&&!Ge(u.count),ie=Bf.hasDefaultValue(u),ne=fe?this.pluralResolver.getSuffix(N,u.count,u):"",ae=u.ordinal&&fe?this.pluralResolver.getSuffix(N,u.count,{ordinal:!1}):"",_=fe&&!u.ordinal&&u.count===0,Q=_&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${ne}`]||u[`defaultValue${ae}`]||u.defaultValue;let L=k;te&&!k&&ie&&(L=Q);const pe=Ug(L),ee=Object.prototype.toString.apply(L);if(te&&L&&pe&&Z.indexOf(ee)<0&&!(Ge(X)&&Array.isArray(L))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(B,L,{...u,ns:b}):`key '${g} (${this.language})' returned an object instead of string.`;return d?(R.res=F,R.usedParams=this.getUsedParamsDetails(u),R):F}if(h){const F=Array.isArray(L),le=F?[]:{},Ne=F?H:B;for(const K in L)if(Object.prototype.hasOwnProperty.call(L,K)){const ue=`${Ne}${h}${K}`;ie&&!k?le[K]=this.translate(ue,{...u,defaultValue:Ug(Q)?Q[K]:void 0,joinArrays:!1,ns:b}):le[K]=this.translate(ue,{...u,joinArrays:!1,ns:b}),le[K]===ue&&(le[K]=L[K])}k=le}}else if(te&&Ge(X)&&Array.isArray(k))k=k.join(X),k&&(k=this.extendTranslation(k,o,u,c));else{let F=!1,le=!1;!this.isValidLookup(k)&&ie&&(F=!0,k=Q),this.isValidLookup(k)||(le=!0,k=g);const K=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&le?void 0:k,ue=ie&&Q!==k&&this.options.updateMissing;if(le||F||ue){if(this.logger.log(ue?"updateKey":"missingKey",N,y,g,ue?Q:k),h){const Y=this.resolve(g,{...u,keySeparator:!1});Y&&Y.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 be=[];const P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(let Y=0;Y<P.length;Y++)be.push(P[Y]);else this.options.saveMissingTo==="all"?be=this.languageUtils.toResolveHierarchy(u.lng||this.language):be.push(u.lng||this.language);const we=(Y,ve,Ce)=>{const _e=ie&&Ce!==k?Ce:K;this.options.missingKeyHandler?this.options.missingKeyHandler(Y,y,ve,_e,ue,u):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Y,y,ve,_e,ue,u),this.emit("missingKey",Y,y,ve,k)};this.options.saveMissing&&(this.options.saveMissingPlurals&&fe?be.forEach(Y=>{const ve=this.pluralResolver.getSuffixes(Y,u);_&&u[`defaultValue${this.options.pluralSeparator}zero`]&&ve.indexOf(`${this.options.pluralSeparator}zero`)<0&&ve.push(`${this.options.pluralSeparator}zero`),ve.forEach(Ce=>{we([Y],g+Ce,u[`defaultValue${Ce}`]||Q)})}):we(be,g,Q))}k=this.extendTranslation(k,o,u,R,c),le&&k===g&&this.options.appendNamespaceToMissingKey&&(k=`${y}${D}${g}`),(le||F)&&this.options.parseMissingKeyHandler&&(k=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${y}${D}${g}`:g,F?k:void 0,u))}return d?(R.res=k,R.usedParams=this.getUsedParamsDetails(u),R):k}extendTranslation(o,l,c,u,d){if(this.i18nFormat?.parse)o=this.i18nFormat.parse(o,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init({...c,interpolation:{...this.options.interpolation,...c.interpolation}});const b=Ge(o)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let y;if(b){const N=o.match(this.interpolator.nestingRegexp);y=N&&N.length}let D=c.replace&&!Ge(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(D={...this.options.interpolation.defaultVariables,...D}),o=this.interpolator.interpolate(o,D,c.lng||this.language||u.usedLng,c),b){const N=o.match(this.interpolator.nestingRegexp),S=N&&N.length;y<S&&(c.nest=!1)}!c.lng&&u&&u.res&&(c.lng=this.language||u.usedLng),c.nest!==!1&&(o=this.interpolator.nest(o,(...N)=>d?.[0]===N[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${N[0]} in key: ${l[0]}`),null):this.translate(...N,l),c)),c.interpolation&&this.interpolator.reset()}const h=c.postProcess||this.options.postProcess,g=Ge(h)?[h]:h;return o!=null&&g?.length&&c.applyPostProcessor!==!1&&(o=gw.handle(g,o,l,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),o}resolve(o,l={}){let c,u,d,h,g;return Ge(o)&&(o=[o]),o.forEach(b=>{if(this.isValidLookup(c))return;const y=this.extractFromKey(b,l),D=y.key;u=D;let N=y.namespaces;this.options.fallbackNS&&(N=N.concat(this.options.fallbackNS));const S=l.count!==void 0&&!Ge(l.count),R=S&&!l.ordinal&&l.count===0,k=l.context!==void 0&&(Ge(l.context)||typeof l.context=="number")&&l.context!=="",B=l.lngs?l.lngs:this.languageUtils.toResolveHierarchy(l.lng||this.language,l.fallbackLng);N.forEach(H=>{this.isValidLookup(c)||(g=H,!J1[`${B[0]}-${H}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(g)&&(J1[`${B[0]}-${H}`]=!0,this.logger.warn(`key "${u}" for languages "${B.join(", ")}" won't get resolved as namespace "${g}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),B.forEach(Z=>{if(this.isValidLookup(c))return;h=Z;const X=[D];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(X,D,Z,H,l);else{let fe;S&&(fe=this.pluralResolver.getSuffix(Z,l.count,l));const ie=`${this.options.pluralSeparator}zero`,ne=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(l.ordinal&&fe.indexOf(ne)===0&&X.push(D+fe.replace(ne,this.options.pluralSeparator)),X.push(D+fe),R&&X.push(D+ie)),k){const ae=`${D}${this.options.contextSeparator||"_"}${l.context}`;X.push(ae),S&&(l.ordinal&&fe.indexOf(ne)===0&&X.push(ae+fe.replace(ne,this.options.pluralSeparator)),X.push(ae+fe),R&&X.push(ae+ie))}}let te;for(;te=X.pop();)this.isValidLookup(c)||(d=te,c=this.getResource(Z,H,te,l))}))})}),{res:c,usedKey:u,exactUsedKey:d,usedLng:h,usedNS:g}}isValidLookup(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}getResource(o,l,c,u={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(o,l,c,u):this.resourceStore.getResource(o,l,c,u)}getUsedParamsDetails(o={}){const l=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=o.replace&&!Ge(o.replace);let u=c?o.replace:o;if(c&&typeof o.count<"u"&&(u.count=o.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!c){u={...u};for(const d of l)delete u[d]}return u}static hasDefaultValue(o){const l="defaultValue";for(const c in o)if(Object.prototype.hasOwnProperty.call(o,c)&&l===c.substring(0,l.length)&&o[c]!==void 0)return!0;return!1}}class K1{constructor(o){this.options=o,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ys.create("languageUtils")}getScriptPartFromCode(o){if(o=tu(o),!o||o.indexOf("-")<0)return null;const l=o.split("-");return l.length===2||(l.pop(),l[l.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(l.join("-"))}getLanguagePartFromCode(o){if(o=tu(o),!o||o.indexOf("-")<0)return o;const l=o.split("-");return this.formatLanguageCode(l[0])}formatLanguageCode(o){if(Ge(o)&&o.indexOf("-")>-1){let l;try{l=Intl.getCanonicalLocales(o)[0]}catch{}return l&&this.options.lowerCaseLng&&(l=l.toLowerCase()),l||(this.options.lowerCaseLng?o.toLowerCase():o)}return this.options.cleanCode||this.options.lowerCaseLng?o.toLowerCase():o}isSupportedCode(o){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(o=this.getLanguagePartFromCode(o)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(o)>-1}getBestMatchFromCodes(o){if(!o)return null;let l;return o.forEach(c=>{if(l)return;const u=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(u))&&(l=u)}),!l&&this.options.supportedLngs&&o.forEach(c=>{if(l)return;const u=this.getScriptPartFromCode(c);if(this.isSupportedCode(u))return l=u;const d=this.getLanguagePartFromCode(c);if(this.isSupportedCode(d))return l=d;l=this.options.supportedLngs.find(h=>{if(h===d)return h;if(!(h.indexOf("-")<0&&d.indexOf("-")<0)&&(h.indexOf("-")>0&&d.indexOf("-")<0&&h.substring(0,h.indexOf("-"))===d||h.indexOf(d)===0&&d.length>1))return h})}),l||(l=this.getFallbackCodes(this.options.fallbackLng)[0]),l}getFallbackCodes(o,l){if(!o)return[];if(typeof o=="function"&&(o=o(l)),Ge(o)&&(o=[o]),Array.isArray(o))return o;if(!l)return o.default||[];let c=o[l];return c||(c=o[this.getScriptPartFromCode(l)]),c||(c=o[this.formatLanguageCode(l)]),c||(c=o[this.getLanguagePartFromCode(l)]),c||(c=o.default),c||[]}toResolveHierarchy(o,l){const c=this.getFallbackCodes((l===!1?[]:l)||this.options.fallbackLng||[],o),u=[],d=h=>{h&&(this.isSupportedCode(h)?u.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return Ge(o)&&(o.indexOf("-")>-1||o.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(o)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(o)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(o))):Ge(o)&&d(this.formatLanguageCode(o)),c.forEach(h=>{u.indexOf(h)<0&&d(this.formatLanguageCode(h))}),u}}const W1={zero:0,one:1,two:2,few:3,many:4,other:5},eS={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class g_{constructor(o,l={}){this.languageUtils=o,this.options=l,this.logger=Ys.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(o,l={}){const c=tu(o==="dev"?"en":o),u=l.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:c,type:u});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let h;try{h=new Intl.PluralRules(c,{type:u})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),eS;if(!o.match(/-|_/))return eS;const b=this.languageUtils.getLanguagePartFromCode(o);h=this.getRule(b,l)}return this.pluralRulesCache[d]=h,h}needsPlural(o,l={}){let c=this.getRule(o,l);return c||(c=this.getRule("dev",l)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(o,l,c={}){return this.getSuffixes(o,c).map(u=>`${l}${u}`)}getSuffixes(o,l={}){let c=this.getRule(o,l);return c||(c=this.getRule("dev",l)),c?c.resolvedOptions().pluralCategories.sort((u,d)=>W1[u]-W1[d]).map(u=>`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(o,l,c={}){const u=this.getRule(o,c);return u?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${u.select(l)}`:(this.logger.warn(`no plural rule found for: ${o}`),this.getSuffix("dev",l,c))}}const tS=(s,o,l,c=".",u=!0)=>{let d=i_(s,o,l);return!d&&u&&Ge(l)&&(d=Zg(s,l,c),d===void 0&&(d=Zg(o,l,c))),d},Cg=s=>s.replace(/\$/g,"$$$$");class aS{constructor(o={}){this.logger=Ys.create("interpolator"),this.options=o,this.format=o?.interpolation?.format||(l=>l),this.init(o)}init(o={}){o.interpolation||(o.interpolation={escapeValue:!0});const{escape:l,escapeValue:c,useRawValueToEscape:u,prefix:d,prefixEscaped:h,suffix:g,suffixEscaped:b,formatSeparator:y,unescapeSuffix:D,unescapePrefix:N,nestingPrefix:S,nestingPrefixEscaped:R,nestingSuffix:k,nestingSuffixEscaped:B,nestingOptionsSeparator:H,maxReplaces:Z,alwaysFormat:X}=o.interpolation;this.escape=l!==void 0?l:c_,this.escapeValue=c!==void 0?c:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=d?ei(d):h||"{{",this.suffix=g?ei(g):b||"}}",this.formatSeparator=y||",",this.unescapePrefix=D?"":N||"-",this.unescapeSuffix=this.unescapePrefix?"":D||"",this.nestingPrefix=S?ei(S):R||ei("$t("),this.nestingSuffix=k?ei(k):B||ei(")"),this.nestingOptionsSeparator=H||",",this.maxReplaces=Z||1e3,this.alwaysFormat=X!==void 0?X:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const o=(l,c)=>l?.source===c?(l.lastIndex=0,l):new RegExp(c,"g");this.regexp=o(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=o(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=o(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(o,l,c,u){let d,h,g;const b=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},y=R=>{if(R.indexOf(this.formatSeparator)<0){const Z=tS(l,b,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Z,void 0,c,{...u,...l,interpolationkey:R}):Z}const k=R.split(this.formatSeparator),B=k.shift().trim(),H=k.join(this.formatSeparator).trim();return this.format(tS(l,b,B,this.options.keySeparator,this.options.ignoreJSONStructure),H,c,{...u,...l,interpolationkey:B})};this.resetRegExp();const D=u?.missingInterpolationHandler||this.options.missingInterpolationHandler,N=u?.interpolation?.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>Cg(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?Cg(this.escape(R)):Cg(R)}].forEach(R=>{for(g=0;d=R.regex.exec(o);){const k=d[1].trim();if(h=y(k),h===void 0)if(typeof D=="function"){const H=D(o,d,u);h=Ge(H)?H:""}else if(u&&Object.prototype.hasOwnProperty.call(u,k))h="";else if(N){h=d[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${o}`),h="";else!Ge(h)&&!this.useRawValueToEscape&&(h=F1(h));const B=R.safeValue(h);if(o=o.replace(d[0],B),N?(R.regex.lastIndex+=h.length,R.regex.lastIndex-=d[0].length):R.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),o}nest(o,l,c={}){let u,d,h;const g=(b,y)=>{const D=this.nestingOptionsSeparator;if(b.indexOf(D)<0)return b;const N=b.split(new RegExp(`${ei(D)}[ ]*{`));let S=`{${N[1]}`;b=N[0],S=this.interpolate(S,h);const R=S.match(/'/g),k=S.match(/"/g);((R?.length??0)%2===0&&!k||(k?.length??0)%2!==0)&&(S=S.replace(/'/g,'"'));try{h=JSON.parse(S),y&&(h={...y,...h})}catch(B){return this.logger.warn(`failed parsing options string in nesting for key ${b}`,B),`${b}${D}${S}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,b};for(;u=this.nestingRegexp.exec(o);){let b=[];h={...c},h=h.replace&&!Ge(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const y=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(y!==-1&&(b=u[1].slice(y).split(this.formatSeparator).map(D=>D.trim()).filter(Boolean),u[1]=u[1].slice(0,y)),d=l(g.call(this,u[1].trim(),h),h),d&&u[0]===o&&!Ge(d))return d;Ge(d)||(d=F1(d)),d||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${o}`),d=""),b.length&&(d=b.reduce((D,N)=>this.format(D,N,c.lng,{...c,interpolationkey:u[1].trim()}),d.trim())),o=o.replace(u[0],d),this.regexp.lastIndex=0}return o}}const b_=s=>{let o=s.toLowerCase().trim();const l={};if(s.indexOf("(")>-1){const c=s.split("(");o=c[0].toLowerCase().trim();const u=c[1].substring(0,c[1].length-1);o==="currency"&&u.indexOf(":")<0?l.currency||(l.currency=u.trim()):o==="relativetime"&&u.indexOf(":")<0?l.range||(l.range=u.trim()):u.split(";").forEach(h=>{if(h){const[g,...b]=h.split(":"),y=b.join(":").trim().replace(/^'+|'+$/g,""),D=g.trim();l[D]||(l[D]=y),y==="false"&&(l[D]=!1),y==="true"&&(l[D]=!0),isNaN(y)||(l[D]=parseInt(y,10))}})}return{formatName:o,formatOptions:l}},nS=s=>{const o={};return(l,c,u)=>{let d=u;u&&u.interpolationkey&&u.formatParams&&u.formatParams[u.interpolationkey]&&u[u.interpolationkey]&&(d={...d,[u.interpolationkey]:void 0});const h=c+JSON.stringify(d);let g=o[h];return g||(g=s(tu(c),u),o[h]=g),g(l)}},y_=s=>(o,l,c)=>s(tu(l),c)(o);class v_{constructor(o={}){this.logger=Ys.create("formatter"),this.options=o,this.init(o)}init(o,l={interpolation:{}}){this.formatSeparator=l.interpolation.formatSeparator||",";const c=l.cacheInBuiltFormats?nS:y_;this.formats={number:c((u,d)=>{const h=new Intl.NumberFormat(u,{...d});return g=>h.format(g)}),currency:c((u,d)=>{const h=new Intl.NumberFormat(u,{...d,style:"currency"});return g=>h.format(g)}),datetime:c((u,d)=>{const h=new Intl.DateTimeFormat(u,{...d});return g=>h.format(g)}),relativetime:c((u,d)=>{const h=new Intl.RelativeTimeFormat(u,{...d});return g=>h.format(g,d.range||"day")}),list:c((u,d)=>{const h=new Intl.ListFormat(u,{...d});return g=>h.format(g)})}}add(o,l){this.formats[o.toLowerCase().trim()]=l}addCached(o,l){this.formats[o.toLowerCase().trim()]=nS(l)}format(o,l,c,u={}){const d=l.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&d[0].indexOf(")")<0&&d.find(g=>g.indexOf(")")>-1)){const g=d.findIndex(b=>b.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,g)].join(this.formatSeparator)}return d.reduce((g,b)=>{const{formatName:y,formatOptions:D}=b_(b);if(this.formats[y]){let N=g;try{const S=u?.formatParams?.[u.interpolationkey]||{},R=S.locale||S.lng||u.locale||u.lng||c;N=this.formats[y](g,R,{...D,...u,...S})}catch(S){this.logger.warn(S)}return N}else this.logger.warn(`there was no format function for ${y}`);return g},o)}}const x_=(s,o)=>{s.pending[o]!==void 0&&(delete s.pending[o],s.pendingCount--)};class N_ extends qf{constructor(o,l,c,u={}){super(),this.backend=o,this.store=l,this.services=c,this.languageUtils=c.languageUtils,this.options=u,this.logger=Ys.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,u.backend,u)}queueLoad(o,l,c,u){const d={},h={},g={},b={};return o.forEach(y=>{let D=!0;l.forEach(N=>{const S=`${y}|${N}`;!c.reload&&this.store.hasResourceBundle(y,N)?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),b[N]===void 0&&(b[N]=!0)))}),D||(g[y]=!0)}),(Object.keys(d).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(d),pending:Object.keys(h),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(b)}}loaded(o,l,c){const u=o.split("|"),d=u[0],h=u[1];l&&this.emit("failedLoading",d,h,l),!l&&c&&this.store.addResourceBundle(d,h,c,void 0,void 0,{skipCopy:!0}),this.state[o]=l?-1:2,l&&c&&(this.state[o]=0);const g={};this.queue.forEach(b=>{r_(b.loaded,[d],h),x_(b,o),l&&b.errors.push(l),b.pendingCount===0&&!b.done&&(Object.keys(b.loaded).forEach(y=>{g[y]||(g[y]={});const D=b.loaded[y];D.length&&D.forEach(N=>{g[y][N]===void 0&&(g[y][N]=!0)})}),b.done=!0,b.errors.length?b.callback(b.errors):b.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(b=>!b.done)}read(o,l,c,u=0,d=this.retryTimeout,h){if(!o.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:l,fcName:c,tried:u,wait:d,callback:h});return}this.readingCalls++;const g=(y,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const N=this.waitingReads.shift();this.read(N.lng,N.ns,N.fcName,N.tried,N.wait,N.callback)}if(y&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,o,l,c,u+1,d*2,h)},d);return}h(y,D)},b=this.backend[c].bind(this.backend);if(b.length===2){try{const y=b(o,l);y&&typeof y.then=="function"?y.then(D=>g(null,D)).catch(g):g(null,y)}catch(y){g(y)}return}return b(o,l,g)}prepareLoading(o,l,c={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();Ge(o)&&(o=this.languageUtils.toResolveHierarchy(o)),Ge(l)&&(l=[l]);const d=this.queueLoad(o,l,c,u);if(!d.toLoad.length)return d.pending.length||u(),null;d.toLoad.forEach(h=>{this.loadOne(h)})}load(o,l,c){this.prepareLoading(o,l,{},c)}reload(o,l,c){this.prepareLoading(o,l,{reload:!0},c)}loadOne(o,l=""){const c=o.split("|"),u=c[0],d=c[1];this.read(u,d,"read",void 0,void 0,(h,g)=>{h&&this.logger.warn(`${l}loading namespace ${d} for language ${u} failed`,h),!h&&g&&this.logger.log(`${l}loaded namespace ${d} for language ${u}`,g),this.loaded(o,h,g)})}saveMissing(o,l,c,u,d,h={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(l)){this.logger.warn(`did not save key "${c}" as the namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if(this.backend?.create){const b={...h,isUpdate:d},y=this.backend.create.bind(this.backend);if(y.length<6)try{let D;y.length===5?D=y(o,l,c,u,b):D=y(o,l,c,u),D&&typeof D.then=="function"?D.then(N=>g(null,N)).catch(g):g(null,D)}catch(D){g(D)}else y(o,l,c,u,g,b)}!o||!o[0]||this.store.addResource(o[0],l,c,u)}}}const Tg=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let o={};if(typeof s[1]=="object"&&(o=s[1]),Ge(s[1])&&(o.defaultValue=s[1]),Ge(s[2])&&(o.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const l=s[3]||s[2];Object.keys(l).forEach(c=>{o[c]=l[c]})}return o},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),sS=s=>(Ge(s.ns)&&(s.ns=[s.ns]),Ge(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),Ge(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs?.indexOf?.("cimode")<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),typeof s.initImmediate=="boolean"&&(s.initAsync=s.initImmediate),s),kf=()=>{},S_=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(l=>{typeof s[l]=="function"&&(s[l]=s[l].bind(s))})},yw="__i18next_supportNoticeShown",w_=()=>typeof globalThis<"u"&&!!globalThis[yw],E_=()=>{typeof globalThis<"u"&&(globalThis[yw]=!0)},D_=s=>!!(s?.modules?.backend?.name?.indexOf("Locize")>0||s?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||s?.options?.backend?.backends&&s.options.backend.backends.some(o=>o?.name?.indexOf("Locize")>0||o?.constructor?.name?.indexOf("Locize")>0)||s?.options?.backend?.projectId||s?.options?.backend?.backendOptions&&s.options.backend.backendOptions.some(o=>o?.projectId));class Wc extends qf{constructor(o={},l){if(super(),this.options=sS(o),this.services={},this.logger=Ys,this.modules={external:[]},S_(this),l&&!this.isInitialized&&!o.isClone){if(!this.options.initAsync)return this.init(o,l),this;setTimeout(()=>{this.init(o,l)},0)}}init(o={},l){this.isInitializing=!0,typeof o=="function"&&(l=o,o={}),o.defaultNS==null&&o.ns&&(Ge(o.ns)?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const c=Tg();this.options={...c,...this.options,...sS(o)},this.options.interpolation={...c.interpolation,...this.options.interpolation},o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!D_(this)&&!w_()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),E_());const u=y=>y?typeof y=="function"?new y:y:null;if(!this.options.isClone){this.modules.logger?Ys.init(u(this.modules.logger),this.options):Ys.init(null,this.options);let y;this.modules.formatter?y=this.modules.formatter:y=v_;const D=new K1(this.options);this.store=new P1(this.options.resources,this.options);const N=this.services;N.logger=Ys,N.resourceStore=this.store,N.languageUtils=D,N.pluralResolver=new g_(D,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),y&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(N.formatter=u(y),N.formatter.init&&N.formatter.init(N,this.options),this.options.interpolation.format=N.formatter.format.bind(N.formatter)),N.interpolator=new aS(this.options),N.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},N.backendConnector=new N_(u(this.modules.backend),N.resourceStore,N,this.options),N.backendConnector.on("*",(R,...k)=>{this.emit(R,...k)}),this.modules.languageDetector&&(N.languageDetector=u(this.modules.languageDetector),N.languageDetector.init&&N.languageDetector.init(N,this.options.detection,this.options)),this.modules.i18nFormat&&(N.i18nFormat=u(this.modules.i18nFormat),N.i18nFormat.init&&N.i18nFormat.init(this)),this.translator=new Bf(this.services,this.options),this.translator.on("*",(R,...k)=>{this.emit(R,...k)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,l||(l=kf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const y=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);y.length>0&&y[0]!=="dev"&&(this.options.lng=y[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(y=>{this[y]=(...D)=>this.store[y](...D)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(y=>{this[y]=(...D)=>(this.store[y](...D),this)});const g=Yc(),b=()=>{const y=(D,N)=>{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(N),l(D,N)};if(this.languages&&!this.isInitialized)return y(null,this.t.bind(this));this.changeLanguage(this.options.lng,y)};return this.options.resources||!this.options.initAsync?b():setTimeout(b,0),g}loadResources(o,l=kf){let c=l;const u=Ge(o)?o:this.language;if(typeof o=="function"&&(c=o),!this.options.resources||this.options.partialBundledLanguages){if(u?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const d=[],h=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(y=>{y!=="cimode"&&d.indexOf(y)<0&&d.push(y)})};u?h(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>h(b)),this.options.preload?.forEach?.(g=>h(g)),this.services.backendConnector.load(d,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(g)})}else c(null)}reloadResources(o,l,c){const u=Yc();return typeof o=="function"&&(c=o,o=void 0),typeof l=="function"&&(c=l,l=void 0),o||(o=this.languages),l||(l=this.options.ns),c||(c=kf),this.services.backendConnector.reload(o,l,d=>{u.resolve(),c(d)}),u}use(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&gw.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}setResolvedLanguage(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1)){for(let l=0;l<this.languages.length;l++){const c=this.languages[l];if(!(["cimode","dev"].indexOf(c)>-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}!this.resolvedLanguage&&this.languages.indexOf(o)<0&&this.store.hasLanguageSomeTranslations(o)&&(this.resolvedLanguage=o,this.languages.unshift(o))}}changeLanguage(o,l){this.isLanguageChangingTo=o;const c=Yc();this.emit("languageChanging",o);const u=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},d=(g,b)=>{b?this.isLanguageChangingTo===o&&(u(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,c.resolve((...y)=>this.t(...y)),l&&l(g,(...y)=>this.t(...y))},h=g=>{!o&&!g&&this.services.languageDetector&&(g=[]);const b=Ge(g)?g:g&&g[0],y=this.store.hasLanguageSomeTranslations(b)?b:this.services.languageUtils.getBestMatchFromCodes(Ge(g)?[g]:g);y&&(this.language||u(y),this.translator.language||this.translator.changeLanguage(y),this.services.languageDetector?.cacheUserLanguage?.(y)),this.loadResources(y,D=>{d(D,y)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(o),c}getFixedT(o,l,c){const u=(d,h,...g)=>{let b;typeof h!="object"?b=this.options.overloadTranslationOptionHandler([d,h].concat(g)):b={...h},b.lng=b.lng||u.lng,b.lngs=b.lngs||u.lngs,b.ns=b.ns||u.ns,b.keyPrefix!==""&&(b.keyPrefix=b.keyPrefix||c||u.keyPrefix);const y=this.options.keySeparator||".";let D;return b.keyPrefix&&Array.isArray(d)?D=d.map(N=>(typeof N=="function"&&(N=Pg(N,{...this.options,...h})),`${b.keyPrefix}${y}${N}`)):(typeof d=="function"&&(d=Pg(d,{...this.options,...h})),D=b.keyPrefix?`${b.keyPrefix}${y}${d}`:d),this.t(D,b)};return Ge(o)?u.lng=o:u.lngs=o,u.ns=l,u.keyPrefix=c,u}t(...o){return this.translator?.translate(...o)}exists(...o){return this.translator?.exists(...o)}setDefaultNamespace(o){this.options.defaultNS=o}hasLoadedNamespace(o,l={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=l.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const h=(g,b)=>{const y=this.services.backendConnector.state[`${g}|${b}`];return y===-1||y===0||y===2};if(l.precheck){const g=l.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(c,o)&&(!u||h(d,o)))}loadNamespaces(o,l){const c=Yc();return this.options.ns?(Ge(o)&&(o=[o]),o.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{c.resolve(),l&&l(u)}),c):(l&&l(),Promise.resolve())}loadLanguages(o,l){const c=Yc();Ge(o)&&(o=[o]);const u=this.options.preload||[],d=o.filter(h=>u.indexOf(h)<0&&this.services.languageUtils.isSupportedCode(h));return d.length?(this.options.preload=u.concat(d),this.loadResources(h=>{c.resolve(),l&&l(h)}),c):(l&&l(),Promise.resolve())}dir(o){if(o||(o=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!o)return"rtl";try{const u=new Intl.Locale(o);if(u&&u.getTextInfo){const d=u.getTextInfo();if(d&&d.direction)return d.direction}}catch{}const l=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=this.services?.languageUtils||new K1(Tg());return o.toLowerCase().indexOf("-latn")>1?"ltr":l.indexOf(c.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(o={},l){const c=new Wc(o,l);return c.createInstance=Wc.createInstance,c}cloneInstance(o={},l=kf){const c=o.forkResourceStore;c&&delete o.forkResourceStore;const u={...this.options,...o,isClone:!0},d=new Wc(u);if((o.debug!==void 0||o.prefix!==void 0)&&(d.logger=d.logger.clone(o)),["store","services","language"].forEach(g=>{d[g]=this[g]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},c){const g=Object.keys(this.store.data).reduce((b,y)=>(b[y]={...this.store.data[y]},b[y]=Object.keys(b[y]).reduce((D,N)=>(D[N]={...b[y][N]},D),b[y]),b),{});d.store=new P1(g,u),d.services.resourceStore=d.store}if(o.interpolation){const b={...Tg().interpolation,...this.options.interpolation,...o.interpolation},y={...u,interpolation:b};d.services.interpolator=new aS(y)}return d.translator=new Bf(d.services,u),d.translator.on("*",(g,...b)=>{d.emit(g,...b)}),d.init(u,l),d.translator.options=u,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ia=Wc.createInstance();Ia.createInstance;Ia.dir;Ia.init;Ia.loadResources;Ia.reloadResources;Ia.use;Ia.changeLanguage;Ia.getFixedT;Ia.t;Ia.exists;Ia.setDefaultNamespace;Ia.hasLoadedNamespace;Ia.loadNamespaces;Ia.loadLanguages;var E=iu();const il=e_(E),R_=WR({__proto__:null,default:il},[E]),__=(s,o,l,c)=>{const u=[l,{code:o,...c||{}}];if(s?.services?.logger?.forward)return s.services.logger.forward(u,"warn","react-i18next::",!0);ai(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),s?.services?.logger?.warn?s.services.logger.warn(...u):console?.warn&&console.warn(...u)},oS={},vw=(s,o,l,c)=>{ai(l)&&oS[l]||(ai(l)&&(oS[l]=new Date),__(s,o,l,c))},xw=(s,o)=>()=>{if(s.isInitialized)o();else{const l=()=>{setTimeout(()=>{s.off("initialized",l)},0),o()};s.on("initialized",l)}},Jg=(s,o,l)=>{s.loadNamespaces(o,xw(s,l))},rS=(s,o,l,c)=>{if(ai(l)&&(l=[l]),s.options.preload&&s.options.preload.indexOf(o)>-1)return Jg(s,l,c);l.forEach(u=>{s.options.ns.indexOf(u)<0&&s.options.ns.push(u)}),s.loadLanguages(o,xw(s,c))},k_=(s,o,l={})=>!o.languages||!o.languages.length?(vw(o,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:o.languages}),!0):o.hasLoadedNamespace(s,{lng:l.lng,precheck:(c,u)=>{if(l.bindI18n&&l.bindI18n.indexOf("languageChanging")>-1&&c.services.backendConnector.backend&&c.isLanguageChangingTo&&!u(c.isLanguageChangingTo,s))return!1}}),ai=s=>typeof s=="string",U_=s=>typeof s=="object"&&s!==null,C_=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,T_={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},j_=s=>T_[s],O_=s=>s.replace(C_,j_);let Kg={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:O_,transDefaultProps:void 0};const A_=(s={})=>{Kg={...Kg,...s}},V_=()=>Kg;let Nw;const M_=s=>{Nw=s},z_=()=>Nw,L_={type:"3rdParty",init(s){A_(s.options.react),M_(s)}},H_=E.createContext();class B_{constructor(){this.usedNamespaces={}}addUsedNamespaces(o){o.forEach(l=>{this.usedNamespaces[l]||(this.usedNamespaces[l]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var jg={exports:{}},Og={},iS;function $_(){if(iS)return Og;iS=1;return(function(){function s(R,k){return R===k&&(R!==0||1/R===1/k)||R!==R&&k!==k}function o(R,k){D||u.startTransition===void 0||(D=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var B=k();if(!N){var H=k();d(B,H)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),N=!0)}H=h({inst:{value:B,getSnapshot:k}});var Z=H[0].inst,X=H[1];return b(function(){Z.value=B,Z.getSnapshot=k,l(Z)&&X({inst:Z})},[R,B,k]),g(function(){return l(Z)&&X({inst:Z}),R(function(){l(Z)&&X({inst:Z})})},[R]),y(B),B}function l(R){var k=R.getSnapshot;R=R.value;try{var B=k();return!d(R,B)}catch{return!0}}function c(R,k){return k()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=iu(),d=typeof Object.is=="function"?Object.is:s,h=u.useState,g=u.useEffect,b=u.useLayoutEffect,y=u.useDebugValue,D=!1,N=!1,S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;Og.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())})(),Og}var lS;function Y_(){return lS||(lS=1,jg.exports=$_()),jg.exports}var q_=Y_();const G_=(s,o)=>ai(o)?o:U_(o)&&ai(o.defaultValue)?o.defaultValue:Array.isArray(s)?s[s.length-1]:s,I_={t:G_,ready:!1},F_=()=>()=>{},qe=(s,o={})=>{const{i18n:l}=o,{i18n:c,defaultNS:u}=E.useContext(H_)||{},d=l||c||z_();d&&!d.reportNamespaces&&(d.reportNamespaces=new B_),d||vw(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=E.useMemo(()=>({...V_(),...d?.options?.react,...o}),[d,o]),{useSuspense:g,keyPrefix:b}=h,y=u||d?.options?.defaultNS,D=ai(y)?[y]:y||["translation"],N=E.useMemo(()=>D,D);d?.reportNamespaces?.addUsedNamespaces?.(N);const S=E.useRef(0),R=E.useCallback(Q=>{if(!d)return F_;const{bindI18n:L,bindI18nStore:pe}=h,ee=()=>{S.current+=1,Q()};return L&&d.on(L,ee),pe&&d.store.on(pe,ee),()=>{L&&L.split(" ").forEach(F=>d.off(F,ee)),pe&&pe.split(" ").forEach(F=>d.store.off(F,ee))}},[d,h]),k=E.useRef(),B=E.useCallback(()=>{if(!d)return I_;const Q=!!(d.isInitialized||d.initializedStoreOnce)&&N.every(Ne=>k_(Ne,d,h)),L=o.lng||d.language,pe=S.current,ee=k.current;if(ee&&ee.ready===Q&&ee.lng===L&&ee.keyPrefix===b&&ee.revision===pe)return ee;const le={t:d.getFixedT(L,h.nsMode==="fallback"?N:N[0],b),ready:Q,lng:L,keyPrefix:b,revision:pe};return k.current=le,le},[d,N,b,h,o.lng]),[H,Z]=E.useState(0),{t:X,ready:te}=q_.useSyncExternalStore(R,B,B);E.useEffect(()=>{if(d&&!te&&!g){const Q=()=>Z(L=>L+1);o.lng?rS(d,o.lng,N,Q):Jg(d,N,Q)}},[d,o.lng,N,te,g,H]);const fe=d||{},ie=E.useRef(null),ne=E.useRef(),ae=Q=>{const L=Object.getOwnPropertyDescriptors(Q);L.__original&&delete L.__original;const pe=Object.create(Object.getPrototypeOf(Q),L);if(!Object.prototype.hasOwnProperty.call(pe,"__original"))try{Object.defineProperty(pe,"__original",{value:Q,writable:!1,enumerable:!1,configurable:!1})}catch{}return pe},_=E.useMemo(()=>{const Q=fe,L=Q?.language;let pe=Q;Q&&(ie.current&&ie.current.__original===Q?ne.current!==L?(pe=ae(Q),ie.current=pe,ne.current=L):pe=ie.current:(pe=ae(Q),ie.current=pe,ne.current=L));const ee=[X,pe,te];return ee.t=X,ee.i18n=pe,ee.ready=te,ee},[X,fe,te,fe.resolvedLanguage,fe.language,fe.languages]);if(d&&g&&!te)throw new Promise(Q=>{const L=()=>Q();o.lng?rS(d,o.lng,N,L):Jg(d,N,L)});return _},{slice:X_,forEach:Q_}=[];function Z_(s){return Q_.call(X_.call(arguments,1),o=>{if(o)for(const l in o)s[l]===void 0&&(s[l]=o[l])}),s}function P_(s){return typeof s!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(l=>l.test(s))}const cS=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,J_=function(s,o){const c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},u=encodeURIComponent(o);let d=`${s}=${u}`;if(c.maxAge>0){const h=c.maxAge-0;if(Number.isNaN(h))throw new Error("maxAge should be a Number");d+=`; Max-Age=${Math.floor(h)}`}if(c.domain){if(!cS.test(c.domain))throw new TypeError("option domain is invalid");d+=`; Domain=${c.domain}`}if(c.path){if(!cS.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},uS={create(s,o,l,c){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};l&&(u.expires=new Date,u.expires.setTime(u.expires.getTime()+l*60*1e3)),c&&(u.domain=c),document.cookie=J_(s,o,u)},read(s){const o=`${s}=`,l=document.cookie.split(";");for(let c=0;c<l.length;c++){let u=l[c];for(;u.charAt(0)===" ";)u=u.substring(1,u.length);if(u.indexOf(o)===0)return u.substring(o.length,u.length)}return null},remove(s,o){this.create(s,"",-1,o)}};var K_={name:"cookie",lookup(s){let{lookupCookie:o}=s;if(o&&typeof document<"u")return uS.read(o)||void 0},cacheUserLanguage(s,o){let{lookupCookie:l,cookieMinutes:c,cookieDomain:u,cookieOptions:d}=o;l&&typeof document<"u"&&uS.create(l,s,c,u,d)}},W_={name:"querystring",lookup(s){let{lookupQuerystring:o}=s,l;if(typeof window<"u"){let{search:c}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(c=window.location.hash.substring(window.location.hash.indexOf("?")));const d=c.substring(1).split("&");for(let h=0;h<d.length;h++){const g=d[h].indexOf("=");g>0&&d[h].substring(0,g)===o&&(l=d[h].substring(g+1))}}return l}},ek={name:"hash",lookup(s){let{lookupHash:o,lookupFromHashIndex:l}=s,c;if(typeof window<"u"){const{hash:u}=window.location;if(u&&u.length>2){const d=u.substring(1);if(o){const h=d.split("&");for(let g=0;g<h.length;g++){const b=h[g].indexOf("=");b>0&&h[g].substring(0,b)===o&&(c=h[g].substring(b+1))}}if(c)return c;if(!c&&l>-1){const h=u.match(/\/([a-zA-Z-]*)/g);return Array.isArray(h)?h[typeof l=="number"?l:0]?.replace("/",""):void 0}}}return c}};let sl=null;const dS=()=>{if(sl!==null)return sl;try{if(sl=typeof window<"u"&&window.localStorage!==null,!sl)return!1;const s="i18next.translate.boo";window.localStorage.setItem(s,"foo"),window.localStorage.removeItem(s)}catch{sl=!1}return sl};var tk={name:"localStorage",lookup(s){let{lookupLocalStorage:o}=s;if(o&&dS())return window.localStorage.getItem(o)||void 0},cacheUserLanguage(s,o){let{lookupLocalStorage:l}=o;l&&dS()&&window.localStorage.setItem(l,s)}};let ol=null;const fS=()=>{if(ol!==null)return ol;try{if(ol=typeof window<"u"&&window.sessionStorage!==null,!ol)return!1;const s="i18next.translate.boo";window.sessionStorage.setItem(s,"foo"),window.sessionStorage.removeItem(s)}catch{ol=!1}return ol};var ak={name:"sessionStorage",lookup(s){let{lookupSessionStorage:o}=s;if(o&&fS())return window.sessionStorage.getItem(o)||void 0},cacheUserLanguage(s,o){let{lookupSessionStorage:l}=o;l&&fS()&&window.sessionStorage.setItem(l,s)}},nk={name:"navigator",lookup(s){const o=[];if(typeof navigator<"u"){const{languages:l,userLanguage:c,language:u}=navigator;if(l)for(let d=0;d<l.length;d++)o.push(l[d]);c&&o.push(c),u&&o.push(u)}return o.length>0?o:void 0}},sk={name:"htmlTag",lookup(s){let{htmlTag:o}=s,l;const c=o||(typeof document<"u"?document.documentElement:null);return c&&typeof c.getAttribute=="function"&&(l=c.getAttribute("lang")),l}},ok={name:"path",lookup(s){let{lookupFromPathIndex:o}=s;if(typeof window>"u")return;const l=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof o=="number"?o:0]?.replace("/",""):void 0}},rk={name:"subdomain",lookup(s){let{lookupFromSubdomainIndex:o}=s;const l=typeof o=="number"?o+1:1,c=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(c)return c[l]}};let Sw=!1;try{document.cookie,Sw=!0}catch{}const ww=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Sw||ww.splice(1,1);const ik=()=>({order:ww,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:s=>s});class Ew{constructor(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(o,l)}init(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=o,this.options=Z_(l,this.options||{},ik()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=u=>u.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=c,this.addDetector(K_),this.addDetector(W_),this.addDetector(tk),this.addDetector(ak),this.addDetector(nk),this.addDetector(sk),this.addDetector(ok),this.addDetector(rk),this.addDetector(ek)}addDetector(o){return this.detectors[o.name]=o,this}detect(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,l=[];return o.forEach(c=>{if(this.detectors[c]){let u=this.detectors[c].lookup(this.options);u&&typeof u=="string"&&(u=[u]),u&&(l=l.concat(u))}}),l=l.filter(c=>c!=null&&!P_(c)).map(c=>this.options.convertDetectedLanguage(c)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?l:l.length>0?l[0]:null}cacheUserLanguage(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;l&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(o)>-1||l.forEach(c=>{this.detectors[c]&&this.detectors[c].cacheUserLanguage(o,this.options)}))}}Ew.type="languageDetector";const lk={"nav.home":"Home","nav.studio":"Studio","nav.docs":"Docs","nav.login":"Login","nav.logout":"Logout","header.status.connected":"Connected","header.status.disconnected":"Disconnected","header.status.reconnecting":"Reconnecting","footer.copyright":"GitHub · @Context4AI {{year}}. All rights reserved.","footer.copyright_compact":"@Context4AI {{year}}. All rights reserved.","footer.tagline":"Knowledge Factory","footer.theme.dark":"Dark","footer.theme.light":"Light","footer.theme.system":"System","studio.sidebar.sources":"Sources","studio.sidebar.modeling":"Modeling","studio.sidebar.brain":"Brain","studio.sidebar.discovery":"Discovery","studio.sidebar.sharing":"Sharing","studio.sidebar.collaboration":"Collaboration","studio.sidebar.settings":"Settings","placeholder.coming":"Coming in {{version}}","page.login.title":"Login","page.login.description":"Authentication and user management.","page.docs.title":"Docs","page.docs.description":"Public documentation portal.","page.sources.title":"Sources","page.sources.description":"Add code repositories, documents, and other input materials for your brain to index.","page.modeling.title":"Modeling","page.modeling.description":"Model indexed content with AI — only what stands up to scrutiny gets written to the knowledge graph.","page.brain.title":"Brain","page.brain.description":"All modeled knowledge lives here — browse, search, analyze, and use it anytime.","page.discovery.title":"Discovery","page.discovery.description":"Explore knowledge curated by others and add what's useful to your own brain.","page.sharing.title":"Sharing","page.sharing.description":"Package and export knowledge from your brain for others and AI to use directly.","page.collaboration.title":"Collaboration","page.collaboration.description":"Stay in sync with other brains — get notified on updates, no manual transfer needed.","page.settings.title":"Settings","page.settings.description":"Manage workspace members and configuration.","page.code_setup.title":"Code Setup","page.code_setup.description":"Repository selection and configuration for code modeling.","page.code_compile.title":"Code Compile","page.code_compile.description":"Compilation progress tracking for code modeling.","page.code_review.title":"Code Review","page.code_review.description":"Review and approve modeling results.","page.code_result.title":"Code Result","page.code_result.description":"View final modeling results and generated knowledge graph.","home.hero.title":"Context For AI","home.hero.description":"Transform code repositories and business documents into structured knowledge graphs.","home.hero.cta.studio":"Enter Studio","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"The page you're looking for doesn't exist.","notfound.back":"Back to Home","sources.menu.add_client":"Add Client","sources.menu.online":"online","sources.menu.offline":"offline","sources.library.default_cloud_name":"Personal Cloud","sources.library.rename":"Rename","sources.library.rename_placeholder":"Enter library name","sources.header.daemon_status":"{{online}}/{{total}} online","sources.header.all_offline":"All offline","sources.actions.new_folder":"New Folder","sources.folder.name_placeholder":"Enter folder name","sources.actions.import_repo":"Import Repository","sources.actions.rename":"Rename","sources.actions.move_to":"Move to...","sources.actions.delete":"Delete","sources.filter.all":"All","sources.filter.indexed":"Indexed","sources.filter.not_indexed":"Not Indexed","sources.status.none":"None","sources.status.indexed":"Indexed","sources.status.stale":"Index outdated","sources.status.go_index":"Index","sources.type.code":"Code","sources.type.doc":"Document","sources.empty.cloud.title":"Your personal knowledge input zone","sources.empty.cloud.description":"Create folders to organize your documents and materials. These are visible only to you and will serve as the foundation for building your digital brain.","sources.empty.daemon.title":"Connect your local code assets","sources.empty.daemon.description":"Import local code repositories. The system will automatically extract code structures and technical documents, transforming them into structured knowledge.","sources.empty.indexed.title":"Knowledge not yet indexed","sources.empty.indexed.description":"Select sources and complete indexing. They will be transformed into structured summaries, providing material for your future speculations.","sources.empty.folder.title":"This folder is empty","sources.empty.folder.daemon_description":"You can add or edit documents locally, and they will appear here after the next sync.","sources.safety.notice.repo":"In local mode, your code has absolute privacy. Source code never leaves your computer. The system only extracts structured summaries for knowledge modeling (function signatures, dependencies, etc.).","sources.safety.notice.dir":"The system extracts document content and summaries for knowledge modeling. Although unsafe text is filtered, please ensure sensitive data is not included in indexing or modeling.","sources.import.title":"Import Repository","sources.import.step.select":"Select Repository","sources.import.step.version":"Version Selection","sources.import.step.confirm":"Confirm Import","sources.import.daemon_offline":"Client {{name}} is not connected. Please start the local Daemon and connect to the server before importing.","sources.import.view_guide":"View Connection Guide","sources.import.select_root":"Select repository root directory","sources.import.current_path":"Current path","sources.import.not_git":"This directory is not a Git repository. Please select a directory containing .git.","sources.import.branch":"Branch","sources.import.commit":"Commit","sources.import.branch_warning":"Currently based on {{branch}} branch HEAD","sources.import.uncommitted_warning":"Uncommitted changes will not be collected","sources.import.recognized":"Recognized {{packages}} packages and {{docs}} documents","sources.import.no_packages":"No package structure detected. Will be imported as a single-package repository.","sources.import.confirm_heading":"About to import the following repository to {{name}}:","sources.import.packages":"Packages","sources.import.documents":"Documents","sources.import.loading_repo":"Loading repository info...","sources.import.loading_repo_slow":"Large repositories (>10 GB) may take 5–10 seconds...","sources.import.importing":"Importing...","sources.import.success":"Import complete","sources.add_client.title":"Connect Local Knowledge Source","sources.add_client.description":"Start a client (Daemon) on your local computer to mount local code repositories as input material into your digital brain.","sources.add_client.step1":"Install Daemon","sources.add_client.step2":"Start Daemon","sources.add_client.step3":"Wait for connection","sources.add_client.step3_desc":"This page will update automatically once connected.","sources.add_client.waiting":"Waiting for new client connection...","sources.add_client.detected":"New client detected","sources.add_client.machine_name":"Machine ID","sources.add_client.os":"Operating system","sources.add_client.daemon_version":"Daemon version","sources.add_client.client_name":"Client name","sources.add_client.confirm":"Confirm Add","sources.add_client.reconnected":"Client {{name}} has reconnected","sources.add_client.go_to":"Go to {{name}}","sources.detail.tab.original":"Original","sources.detail.tab.overview":"Overview","sources.detail.tab.digest":"Digest","sources.detail.tab.modeling":"Modeling Result","sources.detail.digest_placeholder":"Structured summary will be available here after indexing is complete.","sources.detail.modeling_placeholder":"Knowledge entities derived from this source will appear here after modeling in the speculation zone.","sources.detail.type":"Type","sources.detail.origin":"Origin","sources.detail.origin.upload":"Upload","sources.detail.origin.local":"Local file","sources.detail.path":"Path","sources.detail.status":"Status","sources.detail.repo":"Repository","sources.detail.branch":"Branch","sources.detail.commit":"Commit","sources.detail.tech_stack":"Tech stack","sources.detail.original_code_placeholder":"Package overview will be available after indexing.","sources.detail.original_doc_placeholder":"Document content will be available after upload.","sources.detail.dependencies":"Dependencies","sources.delete.confirm_title":"Confirm Delete","sources.delete.resource":"Are you sure you want to delete {{name}}?","sources.delete.resource_impact":"The following data will be permanently deleted: original content, structured digest (if any).","sources.delete.session_warning":"If your personal speculation zone is using this source, related candidate speculations will be affected.","sources.delete.entity_safe":"Formal knowledge already merged into the brain will not be affected.","sources.delete.folder":"Are you sure you want to delete folder {{name}}?","sources.delete.folder_impact":"All resources inside will be recursively deleted: {{folders}} sub-folders, {{sources}} sources.","sources.delete.folder_impact_generic":"All sub-folders and resources inside will be recursively deleted.","sources.delete.irreversible":"This action cannot be undone.","sources.delete.repo":"Are you sure you want to remove repository {{name}} from {{library}}?","sources.delete.repo_impact":"Will delete: {{packages}} package index records, {{docs}} document index records.","sources.delete.repo_impact_generic":"All package and document index records will be deleted.","sources.delete.local_safe":"Local files will not be affected.","sources.delete.client":"Are you sure you want to delete client {{name}}?","sources.delete.client_impact":"All imported repository records and related index data under this client will be deleted.","sources.delete.client_reregister":"This client will need to re-register on next connection.","sources.error.name_conflict":'An item named "{{name}}" already exists in this directory.',"sources.move.current":"Current","sources.move.target":"Move to","sources.breadcrumb.sources":"Sources","common.cancel":"Cancel","common.confirm":"Confirm","common.back":"Back","common.next":"Next","common.previous":"Previous","common.items":"{{count}} items","common.loading":"Loading...","sources.import.no_entries":"No entries found","sources.import.allowed_dirs":"Client authorized directories","sources.import.allowed_dirs_tooltip_restrict":"Restrict to specific directories:","sources.import.allowed_dirs_tooltip_all":"Or allow all directories (default):","sources.import.wildcard_home":"Home","sources.import.wildcard_path_placeholder":"Enter a directory path…","sources.import.wildcard_go":"Go","sources.import.wildcard_goto":"Go to","sources.import.wildcard_go_title":"Go to Directory","sources.import.wildcard_path_not_found":"Path does not exist on the remote machine","sources.import.already_imported":"Imported","sources.import.dir_title":"Import Directory","sources.import.dir_step.select":"Select Directory","sources.import.dir_step.scan":"Scan","sources.import.dir_step.confirm":"Confirm Import","sources.import.dir_confirm_heading":"About to import the following directory to {{name}}:","sources.import.dir_name":"Directory Name","sources.import.dir_path":"Directory Path","sources.import.dir_files":"Files","sources.import.dir_subdirs":"Subdirectories","sources.import.dir_git_repos":"Repositories (skipped)","sources.import.dir_git_hint":"Git repositories inside the directory will not be expanded for indexing. Import them separately if needed.","sources.import.dir_scanning":"Scanning directory contents...","sources.import.dir_scan_complete":"Scan complete","sources.import.dir_scan_error":"Failed to scan directory","sources.import.dir_scan_retry":"Retry","sources.import.dir_code_packages":"Code Packages","sources.import.dir_code_packages_tip":"Supported: package.json, pyproject.toml, setup.py, go.mod, Cargo.toml, pom.xml, build.gradle","sources.import.dir_doc_files":"Documents","sources.import.dir_doc_files_tip":"Supported: Markdown (.md)","sources.import.dir_total_files":"Total Files","sources.import.dir_total_dirs":"Directories","sources.import.dir_git_skip_hint":"Git repos are skipped. Use 'Import Repository' instead.","sources.actions.upload":"Upload","sources.actions.upload_md":"Markdown Document","sources.actions.upload_doc":"Document","sources.actions.add":"Add","sources.actions.add_folder":"Folder","sources.actions.add_web":"Web Page","sources.actions.add_feishu":"Feishu Document","sources.actions.import_dir":"Import Directory","sources.actions.import_repo_url":"Import Repository","sources.upgrade.title":"Feature Upgrading","sources.upgrade.description":"This feature will be available in version 0.5.x. Stay tuned.","sources.upload.title":"Upload Documents","sources.upload.drop_hint":"Click to select or drag files here","sources.upload.supported_formats":"Supported: .md, .doc, .docx, .pdf, .ppt, .pptx, .txt (max 5MB each, up to 10 files)","sources.upload.file_too_large":'"{{name}}" exceeds 5MB limit',"sources.upload.too_many_files":"Maximum 10 files allowed, please re-select","sources.upload.unsupported_type":'"{{name}}" is not a supported file type',"sources.upload.uploading":"Uploading...","sources.upload.success":"Uploaded {{count}} documents","sources.upload.selected":"{{count}} files selected","sources.upload.remove":"Remove"},ck={"nav.home":"首页","nav.studio":"工作台","nav.docs":"文档","nav.login":"登录","nav.logout":"退出登录","header.status.connected":"已连接","header.status.disconnected":"已断开","header.status.reconnecting":"重连中","footer.copyright":"GitHub · @Context4AI {{year}}. 版权所有","footer.copyright_compact":"@Context4AI {{year}}. 版权所有","footer.tagline":"知识工厂","footer.theme.dark":"暗色","footer.theme.light":"亮色","footer.theme.system":"跟随系统","studio.sidebar.sources":"知识索引","studio.sidebar.modeling":"知识建模","studio.sidebar.brain":"知识大脑","studio.sidebar.discovery":"发现知识","studio.sidebar.sharing":"分享知识","studio.sidebar.collaboration":"知识协同","studio.sidebar.settings":"设置","placeholder.coming":"计划在 {{version}} 版本实现","page.login.title":"登录","page.login.description":"身份验证与用户管理。","page.docs.title":"文档","page.docs.description":"公开文档门户。","page.sources.title":"知识索引","page.sources.description":"添加代码仓库、文档等输入材料,让大脑完成初步索引。","page.modeling.title":"知识建模","page.modeling.description":"和 AI 一起对索引内容建模,只有经得起推敲的才写入知识图谱。","page.brain.title":"知识大脑","page.brain.description":"建模完成的全部知识都在这里——浏览、搜索、分析,随时调用。","page.discovery.title":"发现知识","page.discovery.description":"看看别人整理好的知识,发现有用的一键补充到自己的大脑。","page.sharing.title":"分享知识","page.sharing.description":"把大脑中的知识打包输出,让别人和 AI 都能直接使用。","page.collaboration.title":"知识协同","page.collaboration.description":"和其他大脑保持同步,知识更新时自动通知,不用手动搬运。","page.settings.title":"设置","page.settings.description":"管理大脑的成员和配置。","page.code_setup.title":"代码设置","page.code_setup.description":"代码建模的仓库选择与配置。","page.code_compile.title":"代码编译","page.code_compile.description":"代码建模的编译进度追踪。","page.code_review.title":"代码审查","page.code_review.description":"审查并确认建模结果。","page.code_result.title":"代码结果","page.code_result.description":"查看最终建模结果与生成的知识图谱。","home.hero.title":"Context For AI","home.hero.description":"将代码仓库和业务文档转化为结构化知识图谱。","home.hero.cta.studio":"进入工作台","home.hero.cta.github":"GitHub","notfound.title":"404","notfound.description":"您访问的页面不存在。","notfound.back":"返回首页","sources.menu.add_client":"添加客户端","sources.menu.online":"在线","sources.menu.offline":"离线","sources.library.default_cloud_name":"个人云","sources.library.rename":"重命名","sources.library.rename_placeholder":"输入名称","sources.header.daemon_status":"{{online}}/{{total}} 在线","sources.header.all_offline":"全部离线","sources.actions.new_folder":"新文件夹","sources.folder.name_placeholder":"输入文件夹名称","sources.actions.import_repo":"导入仓库","sources.actions.rename":"重命名","sources.actions.move_to":"移动到...","sources.actions.delete":"删除","sources.filter.all":"全部","sources.filter.indexed":"已索引","sources.filter.not_indexed":"未索引","sources.status.none":"未索引","sources.status.indexed":"已索引","sources.status.stale":"有新变更未更新索引","sources.status.go_index":"去索引","sources.type.code":"代码","sources.type.doc":"文档","sources.empty.cloud.title":"这里是你专属的知识输入区","sources.empty.cloud.description":"创建文件夹来整理你的文档和材料。这些内容仅你个人可见,将成为后续推演、构建数字大脑的基础。","sources.empty.daemon.title":"连接你的本地代码资产","sources.empty.daemon.description":"导入本地代码仓库,系统会自动提取代码结构与技术文档,将其转化为结构化知识。","sources.empty.indexed.title":"这些知识尚未被索引","sources.empty.indexed.description":"选择资源并完成索引后,它们将转化为结构化摘要,为你后续的推演提供素材。","sources.empty.folder.title":"当前文件夹还没有内容","sources.empty.folder.daemon_description":"你可以在本地进行文档新增、编辑后查看。","sources.safety.notice.repo":"在本地模式下,你的代码保有绝对隐私,源代码永远不会离开你的电脑,系统仅提取用于知识建模的结构化摘要(函数签名、依赖关系等)。","sources.safety.notice.dir":"系统会提取用于知识建模的文档内容及摘要,尽管会过滤不安全的文本内容,但请确保敏感数据不要参与索引及建模。","sources.import.title":"导入代码仓库","sources.import.step.select":"选择仓库","sources.import.step.version":"版本选择","sources.import.step.confirm":"确认导入","sources.import.daemon_offline":"客户端 {{name}} 未连接,请先启动本地 Daemon 并连接到服务器后再导入仓库。","sources.import.view_guide":"查看连接指引","sources.import.select_root":"选择仓库根目录","sources.import.current_path":"当前路径","sources.import.not_git":"该目录不是 Git 仓库,请选择包含 .git 的目录。","sources.import.branch":"分支","sources.import.commit":"提交","sources.import.branch_warning":"当前基于 {{branch}} 分支的 HEAD","sources.import.uncommitted_warning":"未提交的修改不会被采集","sources.import.recognized":"已识别 {{packages}} 个包和 {{docs}} 篇文档","sources.import.no_packages":"未识别到包结构,将作为单包仓库导入。","sources.import.confirm_heading":"即将导入以下仓库到 {{name}}:","sources.import.packages":"包数","sources.import.documents":"文档","sources.import.loading_repo":"正在加载仓库信息...","sources.import.loading_repo_slow":"大型仓库(>10 GB)可能需要 5~10 秒...","sources.import.importing":"导入中...","sources.import.success":"导入完成","sources.add_client.title":"接入本地知识源","sources.add_client.description":"在本地计算机上启动客户端 (Daemon),即可将本地代码仓库作为输入材料,挂载到你的数字大脑中。","sources.add_client.step1":"安装 Daemon","sources.add_client.step2":"启动 Daemon","sources.add_client.step3":"等待连接","sources.add_client.step3_desc":"连接成功后,本页面将自动更新。","sources.add_client.waiting":"等待新的客户端连接...","sources.add_client.detected":"检测到新的本地客户端","sources.add_client.machine_name":"机器标识","sources.add_client.os":"操作系统","sources.add_client.daemon_version":"Daemon 版本","sources.add_client.client_name":"客户端名称","sources.add_client.confirm":"确认添加","sources.add_client.reconnected":"客户端 {{name}} 已重新连接","sources.add_client.go_to":"前往 {{name}}","sources.detail.tab.original":"原文","sources.detail.tab.overview":"概览","sources.detail.tab.digest":"摘要","sources.detail.tab.modeling":"建模结果","sources.detail.digest_placeholder":"完成索引后,即可在此查看结构化摘要。","sources.detail.modeling_placeholder":"在推演区完成建模后,此处将展示由该源产生的知识实体。","sources.detail.type":"类型","sources.detail.origin":"来源","sources.detail.origin.upload":"直接上传","sources.detail.origin.local":"本地文件","sources.detail.path":"路径","sources.detail.status":"状态","sources.detail.repo":"仓库","sources.detail.branch":"分支","sources.detail.commit":"提交","sources.detail.tech_stack":"技术栈","sources.detail.original_code_placeholder":"完成索引后即可查看包概览。","sources.detail.original_doc_placeholder":"文档内容将在上传后展示。","sources.detail.dependencies":"依赖","sources.delete.confirm_title":"确认删除","sources.delete.resource":"确定要删除 {{name}}?","sources.delete.resource_impact":"以下数据将被永久删除:原文内容、结构化摘要(如有)。","sources.delete.session_warning":"如果你的个人推演区正在使用此知识源,相关的候选推演将受到影响。","sources.delete.entity_safe":"已汇入大脑的正式知识不受影响。","sources.delete.folder":"确定要删除文件夹 {{name}}?","sources.delete.folder_impact":"文件夹内的所有资源将被递归删除:{{folders}} 个子文件夹、{{sources}} 个知识源。","sources.delete.folder_impact_generic":"文件夹内的所有子文件夹和知识源将被递归删除。","sources.delete.irreversible":"此操作不可撤销。","sources.delete.repo":"确定要从 {{library}} 中移除仓库 {{name}}?","sources.delete.repo_impact":"将删除:{{packages}} 个包的索引记录、{{docs}} 篇文档的索引记录。","sources.delete.repo_impact_generic":"所有包和文档的索引记录将被删除。","sources.delete.local_safe":"本地文件不受影响。","sources.delete.client":"确定要删除客户端 {{name}}?","sources.delete.client_impact":"该客户端下的所有已导入仓库记录和相关索引数据将被删除。","sources.delete.client_reregister":"该客户端下次连接时将触发重新注册。","sources.error.name_conflict":'该目录下已存在同名项"{{name}}"。',"sources.move.current":"当前位置","sources.move.target":"移动到","sources.breadcrumb.sources":"知识索引","common.cancel":"取消","common.confirm":"确认","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.items":"{{count}} 项","common.loading":"加载中...","sources.import.no_entries":"未找到任何条目","sources.import.allowed_dirs":"客户端授权目录","sources.import.allowed_dirs_tooltip_restrict":"通过参数设定有权限的目录:","sources.import.allowed_dirs_tooltip_all":"或默认允许全部目录:","sources.import.wildcard_home":"主目录","sources.import.wildcard_path_placeholder":"输入目录路径…","sources.import.wildcard_go":"前往","sources.import.wildcard_goto":"前往","sources.import.wildcard_go_title":"前往目录","sources.import.wildcard_path_not_found":"该路径在远程机器上不存在","sources.import.already_imported":"已导入","sources.import.dir_title":"导入目录","sources.import.dir_step.select":"选择目录","sources.import.dir_step.scan":"扫描","sources.import.dir_step.confirm":"确认导入","sources.import.dir_confirm_heading":"即将导入以下目录到 {{name}}:","sources.import.dir_name":"目录名","sources.import.dir_path":"目录路径","sources.import.dir_files":"文件数","sources.import.dir_subdirs":"子目录数","sources.import.dir_git_repos":"仓库(已跳过)","sources.import.dir_git_hint":"目录内的 Git 仓库不会被展开索引,如需索引请单独导入仓库。","sources.import.dir_scanning":"正在扫描目录内容...","sources.import.dir_scan_complete":"扫描完成","sources.import.dir_scan_error":"目录扫描失败","sources.import.dir_scan_retry":"重试","sources.import.dir_code_packages":"代码包","sources.import.dir_code_packages_tip":"支持:package.json、pyproject.toml、setup.py、go.mod、Cargo.toml、pom.xml、build.gradle","sources.import.dir_doc_files":"文档","sources.import.dir_doc_files_tip":"支持:Markdown (.md)","sources.import.dir_total_files":"文件总数","sources.import.dir_total_dirs":"目录","sources.import.dir_git_skip_hint":"Git 仓库将被跳过,建议单独使用「导入仓库」。","sources.actions.upload":"上传","sources.actions.upload_md":"Markdown 文档","sources.actions.upload_doc":"文档","sources.actions.add":"新增","sources.actions.add_folder":"文件夹","sources.actions.add_web":"网页","sources.actions.add_feishu":"飞书文档","sources.actions.import_dir":"导入目录","sources.actions.import_repo_url":"导入仓库","sources.upgrade.title":"功能升级中","sources.upgrade.description":"此功能将在 0.5.x 版本中推出,敬请期待。","sources.upload.title":"上传文档","sources.upload.drop_hint":"点击选择文件或拖拽至此","sources.upload.supported_formats":"支持格式:.md, .doc, .docx, .pdf, .ppt, .pptx, .txt(每个最大 5MB,最多 10 个)","sources.upload.file_too_large":'"{{name}}" 超过 5MB 限制',"sources.upload.too_many_files":"最多上传 10 个文件,请重新选择","sources.upload.unsupported_type":'"{{name}}" 不是支持的文件类型',"sources.upload.uploading":"上传中...","sources.upload.success":"已上传 {{count}} 个文档","sources.upload.selected":"已选择 {{count}} 个文件","sources.upload.remove":"移除"};Ia.use(Ew).use(L_).init({resources:{en:{translation:lk},zh:{translation:ck}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage"],caches:["localStorage"],lookupLocalStorage:"lang"}});var Ag={exports:{}},qc={},Vg={exports:{}},Mg={},mS;function uk(){return mS||(mS=1,(function(s){(function(){function o(){if(ie=!1,Q){var K=s.unstable_now();ee=K;var ue=!0;try{e:{te=!1,fe&&(fe=!1,ae(L),L=-1),X=!0;var be=Z;try{t:{for(h(K),H=c(R);H!==null&&!(H.expirationTime>K&&b());){var P=H.callback;if(typeof P=="function"){H.callback=null,Z=H.priorityLevel;var we=P(H.expirationTime<=K);if(K=s.unstable_now(),typeof we=="function"){H.callback=we,h(K),ue=!0;break t}H===c(R)&&u(R),h(K)}else u(R);H=c(R)}if(H!==null)ue=!0;else{var Y=c(k);Y!==null&&y(g,Y.startTime-K),ue=!1}}break e}finally{H=null,Z=be,X=!1}ue=void 0}}finally{ue?F():Q=!1}}}function l(K,ue){var be=K.length;K.push(ue);e:for(;0<be;){var P=be-1>>>1,we=K[P];if(0<d(we,ue))K[P]=ue,K[be]=we,be=P;else break e}}function c(K){return K.length===0?null:K[0]}function u(K){if(K.length===0)return null;var ue=K[0],be=K.pop();if(be!==ue){K[0]=be;e:for(var P=0,we=K.length,Y=we>>>1;P<Y;){var ve=2*(P+1)-1,Ce=K[ve],_e=ve+1,dt=K[_e];if(0>d(Ce,be))_e<we&&0>d(dt,Ce)?(K[P]=dt,K[_e]=be,P=_e):(K[P]=Ce,K[ve]=be,P=ve);else if(_e<we&&0>d(dt,be))K[P]=dt,K[_e]=be,P=_e;else break e}}return ue}function d(K,ue){var be=K.sortIndex-ue.sortIndex;return be!==0?be:K.id-ue.id}function h(K){for(var ue=c(k);ue!==null;){if(ue.callback===null)u(k);else if(ue.startTime<=K)u(k),ue.sortIndex=ue.expirationTime,l(R,ue);else break;ue=c(k)}}function g(K){if(fe=!1,h(K),!te)if(c(R)!==null)te=!0,Q||(Q=!0,F());else{var ue=c(k);ue!==null&&y(g,ue.startTime-K)}}function b(){return ie?!0:!(s.unstable_now()-ee<pe)}function y(K,ue){L=ne(function(){K(s.unstable_now())},ue)}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 N=Date,S=N.now();s.unstable_now=function(){return N.now()-S}}var R=[],k=[],B=1,H=null,Z=3,X=!1,te=!1,fe=!1,ie=!1,ne=typeof setTimeout=="function"?setTimeout:null,ae=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null,Q=!1,L=-1,pe=5,ee=-1;if(typeof _=="function")var F=function(){_(o)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Ne=le.port2;le.port1.onmessage=o,F=function(){Ne.postMessage(null)}}else F=function(){ne(o,0)};s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(K){K.callback=null},s.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pe=0<K?Math.floor(1e3/K):5},s.unstable_getCurrentPriorityLevel=function(){return Z},s.unstable_next=function(K){switch(Z){case 1:case 2:case 3:var ue=3;break;default:ue=Z}var be=Z;Z=ue;try{return K()}finally{Z=be}},s.unstable_requestPaint=function(){ie=!0},s.unstable_runWithPriority=function(K,ue){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var be=Z;Z=K;try{return ue()}finally{Z=be}},s.unstable_scheduleCallback=function(K,ue,be){var P=s.unstable_now();switch(typeof be=="object"&&be!==null?(be=be.delay,be=typeof be=="number"&&0<be?P+be:P):be=P,K){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=be+we,K={id:B++,callback:ue,priorityLevel:K,startTime:be,expirationTime:we,sortIndex:-1},be>P?(K.sortIndex=be,l(k,K),c(R)===null&&K===c(k)&&(fe?(ae(L),L=-1):fe=!0,y(g,be-P))):(K.sortIndex=we,l(R,K),te||X||(te=!0,Q||(Q=!0,F()))),K},s.unstable_shouldYield=b,s.unstable_wrapCallback=function(K){var ue=Z;return function(){var be=Z;Z=ue;try{return K.apply(this,arguments)}finally{Z=be}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Mg)),Mg}var pS;function dk(){return pS||(pS=1,Vg.exports=uk()),Vg.exports}var zg={exports:{}},Ua={},hS;function fk(){if(hS)return Ua;hS=1;return(function(){function s(){}function o(N){return""+N}function l(N,S,R){var k=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{o(k);var B=!1}catch{B=!0}return B&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object"),o(k)),{$$typeof:y,key:k==null?null:""+k,children:N,containerInfo:S,implementation:R}}function c(N,S){if(N==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}function u(N){return N===null?"`null`":N===void 0?"`undefined`":N===""?"an empty string":'something with type "'+typeof N+'"'}function d(N){return N===null?"`null`":N===void 0?"`undefined`":N===""?"an empty string":typeof N=="string"?JSON.stringify(N):typeof N=="number"?"`"+N+"`":'something with type "'+typeof N+'"'}function h(){var N=D.H;return N===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.`),N}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var g=iu(),b={d:{f:s,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},y=Symbol.for("react.portal"),D=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Ua.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,Ua.createPortal=function(N,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(N,S,null,R)},Ua.flushSync=function(N){var S=D.T,R=b.p;try{if(D.T=null,b.p=2,N)return N()}finally{D.T=S,b.p=R,b.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Ua.preconnect=function(N,S){typeof N=="string"&&N?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(N)),typeof N=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,b.d.C(N,S))},Ua.prefetchDNS=function(N){if(typeof N!="string"||!N)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(N));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 N=="string"&&b.d.D(N)},Ua.preinit=function(N,S){if(typeof N=="string"&&N?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(N)),typeof N=="string"&&S&&typeof S.as=="string"){var R=S.as,k=c(R,S.crossOrigin),B=typeof S.integrity=="string"?S.integrity:void 0,H=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;R==="style"?b.d.S(N,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:k,integrity:B,fetchPriority:H}):R==="script"&&b.d.X(N,{crossOrigin:k,integrity:B,fetchPriority:H,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},Ua.preinitModule=function(N,S){var R="";typeof N=="string"&&N||(R+=" The `href` argument encountered was "+u(N)+"."),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,N)),typeof N=="string"&&(typeof S=="object"&&S!==null?(S.as==null||S.as==="script")&&(R=c(S.as,S.crossOrigin),b.d.M(N,{crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})):S==null&&b.d.M(N))},Ua.preload=function(N,S){var R="";if(typeof N=="string"&&N||(R+=" The `href` argument encountered was "+u(N)+"."),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 N=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){R=S.as;var k=c(R,S.crossOrigin);b.d.L(N,R,{crossOrigin:k,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})}},Ua.preloadModule=function(N,S){var R="";typeof N=="string"&&N||(R+=" The `href` argument encountered was "+u(N)+"."),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 N=="string"&&(S?(R=c(S.as,S.crossOrigin),b.d.m(N,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0})):b.d.m(N))},Ua.requestFormReset=function(N){b.d.r(N)},Ua.unstable_batchedUpdates=function(N,S){return N(S)},Ua.useFormState=function(N,S,R){return h().useFormState(N,S,R)},Ua.useFormStatus=function(){return h().useHostTransitionStatus()},Ua.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ua}var gS;function mk(){return gS||(gS=1,zg.exports=fk()),zg.exports}var bS;function pk(){if(bS)return qc;bS=1;return(function(){function s(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function o(e,t,a,n){if(a>=t.length)return n;var r=t[a],i=oa(e)?e.slice():et({},e);return i[r]=o(e[r],t,a+1,n),i}function l(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var n=0;n<a.length-1;n++)if(t[n]!==a[n]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,n){var r=t[n],i=oa(e)?e.slice():et({},e);return n+1===t.length?(i[a[n]]=i[r],oa(i)?i.splice(r,1):delete i[r]):i[r]=c(e[r],t,a,n+1),i}function u(e,t,a){var n=t[a],r=oa(e)?e.slice():et({},e);return a+1===t.length?(oa(r)?r.splice(n,1):delete r[n],r):(r[n]=u(e[n],t,a+1),r)}function d(){return!1}function h(){return null}function g(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function b(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function y(){}function D(){}function N(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function S(e,t,a,n){return new B4(e,t,a,n)}function R(e,t){e.context===Io&&(Fp(e.current,2,t,e,null,null),hi())}function k(e,t){if(Cn!==null){var a=t.staleFamilies;t=t.updatedFamilies,zl(),Qb(e.current,t,a),hi()}}function B(e){Cn=e}function H(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Z(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 X(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 te(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(Z(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ie(e){var t=e.alternate;if(!t){if(t=Z(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var i=r.alternate;if(i===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===a)return fe(r),e;if(i===n)return fe(r),t;i=i.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==n.return)a=r,n=i;else{for(var f=!1,p=r.child;p;){if(p===a){f=!0,a=r,n=i;break}if(p===n){f=!0,n=r,a=i;break}p=p.sibling}if(!f){for(p=i.child;p;){if(p===a){f=!0,a=i,n=r;break}if(p===n){f=!0,n=i,a=r;break}p=p.sibling}if(!f)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==n)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function ne(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ne(e),t!==null)return t;e=e.sibling}return null}function ae(e){return e===null||typeof e!="object"?null:(e=tx&&e[tx]||e["@@iterator"],typeof e=="function"?e:null)}function _(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===lD?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Si:return"Fragment";case Wp:return"Profiler";case xd:return"StrictMode";case th:return"Suspense";case ah:return"SuspenseList";case nh:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Ni:return"Portal";case js:return e.displayName||"Context";case eh:return(e._context.displayName||"Context")+".Consumer";case Xl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nd:return t=e.displayName||null,t!==null?t:_(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return _(e(t))}catch{}}return null}function Q(e){return typeof e.tag=="number"?L(e):typeof e.name=="string"?e.name:null}function L(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _(t);case 8:return t===xd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name=="string")return t[a].name}if(e.return!==null)return L(e.return)}return null}function pe(e){return{current:e}}function ee(e,t){0>ao?console.error("Unexpected pop."):(t!==oh[ao]&&console.error("Unexpected Fiber popped."),e.current=sh[ao],sh[ao]=null,oh[ao]=null,ao--)}function F(e,t,a){ao++,sh[ao]=e.current,oh[ao]=a,e.current=t}function le(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 Ne(e,t){F(Ho,t,e),F(Ql,e,e),F(Lo,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?D0(t):yo;break;default:if(a=t.tagName,t=t.namespaceURI)t=D0(t),t=R0(t,a);else switch(a){case"svg":t=al;break;case"math":t=xf;break;default:t=yo}}a=a.toLowerCase(),a=hu(null,a),a={context:t,ancestorInfo:a},ee(Lo,e),F(Lo,a,e)}function K(e){ee(Lo,e),ee(Ql,e),ee(Ho,e)}function ue(){return le(Lo.current)}function be(e){e.memoizedState!==null&&F(Sd,e,e);var t=le(Lo.current),a=e.type,n=R0(t.context,a);a=hu(t.ancestorInfo,a),n={context:n,ancestorInfo:a},t!==n&&(F(Ql,e,e),F(Lo,n,e))}function P(e){Ql.current===e&&(ee(Lo,e),ee(Ql,e)),Sd.current===e&&(ee(Sd,e),Hc._currentValue=Wr)}function we(){}function Y(){if(Zl===0){ax=console.log,nx=console.info,sx=console.warn,ox=console.error,rx=console.group,ix=console.groupCollapsed,lx=console.groupEnd;var e={configurable:!0,enumerable:!0,value:we,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Zl++}function ve(){if(Zl--,Zl===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:et({},e,{value:ax}),info:et({},e,{value:nx}),warn:et({},e,{value:sx}),error:et({},e,{value:ox}),group:et({},e,{value:rx}),groupCollapsed:et({},e,{value:ix}),groupEnd:et({},e,{value:lx})})}0>Zl&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ce(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
23
+ `)&&(e=e.slice(29)),t=e.indexOf(`
24
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
25
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function _e(e){if(rh===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);rh=t&&t[1]||"",cx=-1<a.stack.indexOf(`
26
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
27
+ `+rh+e+cx}function dt(e,t){if(!e||ih)return"";var a=lh.get(e);if(a!==void 0)return a;ih=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=I.H,I.H=null,Y();try{var r={DetermineComponentFrameRoot:function(){try{if(t){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(me){var $=me}Reflect.construct(e,[],T)}else{try{T.call()}catch(me){$=me}e.call(T.prototype)}}else{try{throw Error()}catch(me){$=me}(T=e())&&typeof T.catch=="function"&&T.catch(function(){})}}catch(me){if(me&&$&&typeof me.stack=="string")return[me.stack,$.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=r.DetermineComponentFrameRoot(),p=f[0],v=f[1];if(p&&v){var w=p.split(`
28
+ `),V=v.split(`
29
+ `);for(f=i=0;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;for(;f<V.length&&!V[f].includes("DetermineComponentFrameRoot");)f++;if(i===w.length||f===V.length)for(i=w.length-1,f=V.length-1;1<=i&&0<=f&&w[i]!==V[f];)f--;for(;1<=i&&0<=f;i--,f--)if(w[i]!==V[f]){if(i!==1||f!==1)do if(i--,f--,0>f||w[i]!==V[f]){var M=`
30
+ `+w[i].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),typeof e=="function"&&lh.set(e,M),M}while(1<=i&&0<=f);break}}}finally{ih=!1,I.H=n,ve(),Error.prepareStackTrace=a}return w=(w=e?e.displayName||e.name:"")?_e(w):"",typeof e=="function"&&lh.set(e,w),w}function Tt(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e("Lazy");case 13:return e.child!==t&&t!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return dt(e.type,!1);case 11:return dt(e.type.render,!1);case 1:return dt(e.type,!0);case 31:return _e("Activity");default:return""}}function Ke(e){try{var t="",a=null;do{t+=Tt(e,a);var n=e._debugInfo;if(n)for(var r=n.length-1;0<=r;r--){var i=n[r];if(typeof i.name=="string"){var f=t;e:{var p=i.name,v=i.env,w=i.debugLocation;if(w!=null){var V=Ce(w),M=V.lastIndexOf(`
31
+ `),T=M===-1?V:V.slice(M+1);if(T.indexOf(p)!==-1){var $=`
32
+ `+T;break e}}$=_e(p+(v?" ["+v+"]":""))}t=f+$}}a=e,e=e.return}while(e);return t}catch(me){return`
33
+ Error generating stack: `+me.message+`
34
+ `+me.stack}}function Qt(e){return(e=e?e.displayName||e.name:"")?_e(e):""}function Re(){if(pn===null)return null;var e=pn._debugOwner;return e!=null?Q(e):null}function Lt(){if(pn===null)return"";var e=pn;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=_e(e.type);break;case 13:t+=_e("Suspense");break;case 19:t+=_e("SuspenseList");break;case 31:t+=_e("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Qt(e.type));break;case 11:e._debugOwner||t!==""||(t+=Qt(e.type.render))}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var n=a._debugStack;if(e&&n){var r=Ce(n);r!==""&&(t+=`
35
+ `+r)}}else if(e.debugStack!=null){var i=e.debugStack;(e=e.owner)&&i&&(t+=`
36
+ `+Ce(i))}else break;var f=t}catch(p){f=`
37
+ Error generating stack: `+p.message+`
38
+ `+p.stack}return f}function he(e,t,a,n,r,i,f){var p=pn;xt(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,n,r,i,f)):t(a,n,r,i,f)}finally{xt(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function xt(e){I.getCurrentStack=e===null?null:Lt,Os=!1,pn=e}function ft(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ht(e){try{return Bt(e),!1}catch{return!0}}function Bt(e){return""+e}function nt(e,t){if(Ht(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,ft(e)),Bt(e)}function vt(e,t){if(Ht(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,ft(e)),Bt(e)}function Zt(e){if(Ht(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.",ft(e)),Bt(e)}function Sn(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),_a=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!t.checkDCE}function Se(e){if(typeof hD=="function"&&gD(e),_a&&typeof _a.setStrictMode=="function")try{_a.setStrictMode(Ei,e)}catch(t){As||(As=!0,console.error("React instrumentation encountered an error: %o",t))}}function wn(e){return e>>>=0,e===0?32:31-(bD(e)/yD|0)|0}function wa(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 Fa(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=n&134217727;return p!==0?(n=p&~i,n!==0?r=wa(n):(f&=p,f!==0?r=wa(f):a||(a=p&~e,a!==0&&(r=wa(a))))):(p=n&~i,p!==0?r=wa(p):f!==0?r=wa(f):a||(a=n&~e,a!==0&&(r=wa(a)))),r===0?0:t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:r}function En(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Oa(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 Xa(){var e=Dd;return Dd<<=1,(Dd&62914560)===0&&(Dd=4194304),e}function us(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ea(e,t,a,n,r,i){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,v=e.expirationTimes,w=e.hiddenUpdates;for(a=f&~a;0<a;){var V=31-za(a),M=1<<V;p[V]=0,v[V]=-1;var T=w[V];if(T!==null)for(w[V]=null,V=0;V<T.length;V++){var $=T[V];$!==null&&($.lane&=-536870913)}a&=~M}n!==0&&ba(e,n,0),i!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=i&~(f&~t))}function ba(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-za(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function ds(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-za(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function In(e,t){var a=t&-t;return a=(a&42)!==0?1:Za(a),(a&(e.suspendedLanes|t))!==0?0:a}function Za(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 Fn(e,t,a){if(Vs)for(e=e.pendingUpdatersLaneMap;0<a;){var n=31-za(a),r=1<<n;e[n].add(t),a&=~r}}function ca(e,t){if(Vs)for(var a=e.pendingUpdatersLaneMap,n=e.memoizedUpdaters;0<t;){var r=31-za(t);e=1<<r,r=a[r],0<r.size&&(r.forEach(function(i){var f=i.alternate;f!==null&&n.has(f)||n.add(i)}),r.clear()),t&=~e}}function Xn(e){return e&=-e,_n<e?Ms<e?(e&134217727)!==0?no:Rd:Ms:_n}function sn(){var e=gt.p;return e!==0?e:(e=window.event,e===void 0?no:Q0(e.type))}function x(e,t){var a=gt.p;try{return gt.p=e,t()}finally{gt.p=a}}function O(e){delete e[Na],delete e[La],delete e[mh],delete e[vD],delete e[xD]}function W(e){var t=e[Na];if(t)return t;for(var a=e.parentNode;a;){if(t=a[$o]||a[Na]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=A0(e);e!==null;){if(a=e[Na])return a;e=A0(e)}return t}e=a,a=e.parentNode}return null}function se(e){if(e=e[Na]||e[$o]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function de(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Le(e){var t=e[ux];return t||(t=e[ux]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function De(e){e[Pl]=!0}function Xe(e,t){Be(e,t),Be(e+"Capture",t)}function Be(e,t){Cr[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Cr[e]=t;var a=e.toLowerCase();for(ph[a]=e,e==="onDoubleClick"&&(ph.ondblclick=e),e=0;e<t.length;e++)dx.add(t[e])}function Pt(e,t){ND[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Aa(e){return ts.call(mx,e)?!0:ts.call(fx,e)?!1:SD.test(e)?mx[e]=!0:(fx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Is(e,t,a){if(Aa(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:(nt(a,t),e===""+a?a:e)}}function Fs(e,t,a){if(Aa(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}}nt(a,t),e.setAttribute(t,""+a)}}function oi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}nt(a,t),e.setAttribute(t,""+a)}}function Qn(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}nt(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 Zt(e),e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(f){Zt(f),a=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){Zt(f),a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function re(e){if(!e._valueTracker){var t=z(e)?"checked":"value";e._valueTracker=G(e,t,""+e[t])}}function ce(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=z(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Ue(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ye(e){return e.replace(wD,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function je(e,t){t.checked===void 0||t.defaultChecked===void 0||hx||(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",Re()||"A component",t.type),hx=!0),t.value===void 0||t.defaultValue===void 0||px||(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",Re()||"A component",t.type),px=!0)}function Ee(e,t,a,n,r,i,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?(nt(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?Ve(e,f,C(t)):a!=null?Ve(e,f,C(a)):n!=null&&e.removeAttribute("value"),r==null&&i!=null&&(e.defaultChecked=!!i),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?(nt(p,"name"),e.name=""+C(p)):e.removeAttribute("name")}function Me(e,t,a,n,r,i,f,p){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(nt(i,"type"),e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){re(e);return}a=a!=null?""+C(a):"",t=t!=null?""+C(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=p?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(nt(f,"name"),e.name=f),re(e)}function Ve(e,t,a){t==="number"&&Ue(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Te(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Kp.Children.forEach(t.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||bx||(bx=!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||yx||(yx=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||gx||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gx=!0)}function mt(){var e=Re();return e?`
39
+
40
+ Check the render method of \``+e+"`.":""}function tt(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+C(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Rt(e,t){for(e=0;e<xx.length;e++){var a=xx[e];if(t[a]!=null){var n=oa(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||vx||(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"),vx=!0)}function Gt(e,t){t.value===void 0||t.defaultValue===void 0||Nx||(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",Re()||"A component"),Nx=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ua(e,t,a){if(t!=null&&(t=""+C(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+C(a):""}function 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(oa(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),re(e)}function Va(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Va(e.children[0],t):e}function It(e){return" "+" ".repeat(e)}function Dn(e){return"+ "+" ".repeat(e)}function Da(e){return"- "+" ".repeat(e)}function on(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Xs(e,t){return Sx.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function fs(e,t,a){var n=120-2*a;if(t===null)return Dn(a)+Xs(e,n)+`
41
+ `;if(typeof t=="string"){for(var r=0;r<t.length&&r<e.length&&t.charCodeAt(r)===e.charCodeAt(r);r++);return r>n-8&&10<r&&(e="..."+e.slice(r-8),t="..."+t.slice(r-8)),Dn(a)+Xs(e,n)+`
42
+ `+Da(a)+Xs(t,n)+`
43
+ `}return It(a)+Xs(e,n)+`
44
+ `}function Zn(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function ms(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(oa(e))return"[...]";if(e.$$typeof===Ts)return(t=_(e.type))?"<"+t+">":"<...>";var a=Zn(e);if(a==="Object"){a="",t-=2;for(var n in e)if(e.hasOwnProperty(n)){var r=JSON.stringify(n);if(r!=='"'+n+'"'&&(n=r),t-=n.length-2,r=ms(e[n],15>t?t:15),t-=r.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+n+":"+r}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Pn(e,t){return typeof e!="string"||Sx.test(e)?"{"+ms(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,r=[],i;for(i in t)if(t.hasOwnProperty(i)&&i!=="children"){var f=Pn(t[i],120-a.length-i.length-1);n-=i.length+f.length+2,r.push(i+"="+f)}return r.length===0?a+"<"+e+`>
45
+ `:0<n?a+"<"+e+" "+r.join(" ")+`>
46
+ `:a+"<"+e+`
47
+ `+a+" "+r.join(`
48
+ `+a+" ")+`
49
+ `+a+`>
50
+ `}function da(e,t,a){var n="",r=et({},t),i;for(i in e)if(e.hasOwnProperty(i)){delete r[i];var f=120-2*a-i.length-2,p=ms(e[i],f);t.hasOwnProperty(i)?(f=ms(t[i],f),n+=Dn(a)+i+": "+p+`
51
+ `,n+=Da(a)+i+": "+f+`
52
+ `):n+=Dn(a)+i+": "+p+`
53
+ `}for(var v in r)r.hasOwnProperty(v)&&(e=ms(r[v],120-2*a-v.length-2),n+=Da(a)+v+": "+e+`
54
+ `);return n}function Eo(e,t,a,n){var r="",i=new Map;for(w in a)a.hasOwnProperty(w)&&i.set(w.toLowerCase(),w);if(i.size===1&&i.has("children"))r+=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,v=i.get(f.toLowerCase());if(v!==void 0){i.delete(f.toLowerCase());var w=t[f];v=a[v];var V=Pn(w,p);p=Pn(v,p),typeof w=="object"&&w!==null&&typeof v=="object"&&v!==null&&Zn(w)==="Object"&&Zn(v)==="Object"&&(2<Object.keys(w).length||2<Object.keys(v).length||-1<V.indexOf("...")||-1<p.indexOf("..."))?r+=It(n+1)+f+`={{
55
+ `+da(w,v,n+2)+It(n+1)+`}}
56
+ `:(r+=Dn(n+1)+f+"="+V+`
57
+ `,r+=Da(n+1)+f+"="+p+`
58
+ `)}else r+=It(n+1)+f+"="+Pn(t[f],p)+`
59
+ `}i.forEach(function(M){if(M!=="children"){var T=120-2*(n+1)-M.length-1;r+=Da(n+1)+M+"="+Pn(a[M],T)+`
60
+ `}}),r=r===""?It(n)+"<"+e+`>
61
+ `:It(n)+"<"+e+`
62
+ `+r+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),r+=fs(i,""+e,n+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=e==null?r+fs(""+t,null,n+1):r+fs(""+t,void 0,n+1)),r}function ps(e,t){var a=on(e);if(a===null){for(a="",e=e.child;e;)a+=ps(e,t),e=e.sibling;return a}return It(t)+"<"+a+`>
64
+ `}function _t(e,t){var a=Va(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 r=0;r<n.length;r++){var i=n[r].name;typeof i=="string"&&(a+=It(t)+"<"+i+`>
66
+ `,t++)}if(n="",r=e.fiber.pendingProps,e.fiber.tag===6)n=fs(r,e.serverProps,t),t++;else if(i=on(e.fiber),i!==null)if(e.serverProps===void 0){n=t;var f=120-2*n-i.length-2,p="";for(w in r)if(r.hasOwnProperty(w)&&w!=="children"){var v=Pn(r[w],15);if(f-=w.length+v.length+2,0>f){p+=" ...";break}p+=" "+w+"="+v}n=It(n)+"<"+i+p+`>
67
+ `,t++}else e.serverProps===null?(n=ot(i,r,Dn(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(n=Eo(i,r,e.serverProps,t),t++);var w="";for(r=e.fiber.child,i=0;r&&i<e.children.length;)f=e.children[i],f.fiber===r?(w+=_t(f,t),i++):w+=ps(r,t),r=r.sibling;for(r&&0<e.children.length&&(w+=It(t)+`...
68
+ `),r=e.serverTail,e.serverProps===null&&t--,e=0;e<r.length;e++)i=r[e],w=typeof i=="string"?w+(Da(t)+Xs(i,120-2*t)+`
69
+ `):w+ot(i.type,i.props,Da(t));return a+n+w}function Do(e){try{return`
70
+
71
+ `+_t(e,0)}catch{return""}}function pl(e,t,a){for(var n=t,r=null,i=0;n;)n===e&&(i=0),r={fiber:n,children:r!==null?[r]:[],serverProps:n===t?a:n===e?null:void 0,serverTail:[],distanceFromLeaf:i},i++,n=n.return;return r!==null?Do(r).replaceAll(/^[+-]/gm,">"):""}function hu(e,t){var a=et({},e||Ex),n={tag:t};return wx.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),DD.indexOf(t)!==-1&&(a.pTagInButtonScope=null),ED.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=n,t==="form"&&(a.formTag=n),t==="a"&&(a.aTagInScope=n),t==="button"&&(a.buttonTagInScope=n),t==="nobr"&&(a.nobrTagInScope=n),t==="p"&&(a.pTagInButtonScope=n),t==="li"&&(a.listItemTagAutoclosing=n),(t==="dd"||t==="dt")&&(a.dlItemTagAutoclosing=n),t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=n),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function xb(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return RD.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function x4(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Nb(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Wf(e,t){t=t||Ex;var a=t.current;if(t=(a=xb(e,a&&a.tag,t.implicitRootScope)?null:a)?null:x4(e,t),t=a||t,!t)return!0;var n=t.tag;if(t=String(!!a)+"|"+e+"|"+n,_d[t])return!1;_d[t]=!0;var r=(t=pn)?Nb(t.return,n):null,i=t!==null&&r!==null?pl(r,t,null):"",f="<"+e+">";return a?(a="",n==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
72
+ This will cause a hydration error.%s`,f,n,a,i)):console.error(`In HTML, %s cannot be a descendant of <%s>.
73
+ This will cause a hydration error.%s`,f,n,i),t&&(e=t.return,r===null||e===null||r===e&&e._debugOwner===t._debugOwner||he(r,function(){console.error(`<%s> cannot contain a nested %s.
74
+ See this log for the ancestor stack trace.`,n,f)})),!1}function gu(e,t,a){if(a||xb("#text",t,!1))return!0;if(a="#text|"+t,_d[a])return!1;_d[a]=!0;var n=(a=pn)?Nb(a,t):null;return a=a!==null&&n!==null?pl(n,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
75
+ This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
76
+ This will cause a hydration error.%s`,t,a),!1}function hl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function N4(e){return e.replace(UD,function(t,a){return a.toUpperCase()})}function Sb(e,t,a){var n=t.indexOf("--")===0;n||(-1<t.indexOf("-")?Di.hasOwnProperty(t)&&Di[t]||(Di[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,N4(t.replace(kD,"ms-")))):_D.test(t)?Di.hasOwnProperty(t)&&Di[t]||(Di[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!_x.test(a)||gh.hasOwnProperty(a)&&gh[a]||(gh[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(_x,""))),typeof a=="number"&&(isNaN(a)?kx||(kx=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||Ux||(Ux=!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||Cx.has(t)?t==="float"?e.cssFloat=a:(vt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function wb(e,t,a){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var n={};if(a){for(var r in a)if(a.hasOwnProperty(r)&&!t.hasOwnProperty(r))for(var i=hh[r]||[r],f=0;f<i.length;f++)n[i[f]]=r}for(var p in t)if(t.hasOwnProperty(p)&&(!a||a[p]!==t[p]))for(r=hh[p]||[p],i=0;i<r.length;i++)n[r[i]]=p;p={};for(var v in t)for(r=hh[v]||[v],i=0;i<r.length;i++)p[r[i]]=v;v={};for(var w in n)if(r=n[w],(i=p[w])&&r!==i&&(f=r+","+i,!v[f])){v[f]=!0,f=console;var V=t[r];f.error.call(f,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",V==null||typeof V=="boolean"||V===""?"Removing":"Updating",r,i)}}for(var M in a)!a.hasOwnProperty(M)||t!=null&&t.hasOwnProperty(M)||(M.indexOf("--")===0?e.setProperty(M,""):M==="float"?e.cssFloat="":e[M]="");for(var T in t)w=t[T],t.hasOwnProperty(T)&&a[T]!==w&&Sb(e,T,w)}else for(n in t)t.hasOwnProperty(n)&&Sb(e,n,t[n])}function gl(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Eb(e){return CD.get(e)||e}function S4(e,t){if(ts.call(_i,t)&&_i[t])return!0;if(jD.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=Tx.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),_i[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),_i[t]=!0}if(TD.test(t)){if(e=t.toLowerCase(),e=Tx.hasOwnProperty(e)?e:null,e==null)return _i[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),_i[t]=!0)}return!0}function w4(e,t){var a=[],n;for(n in t)S4(e,n)||a.push(n);t=a.map(function(r){return"`"+r+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function E4(e,t,a,n){if(ts.call(Ha,t)&&Ha[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Ha[t]=!0;if(typeof a=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(n!=null){if(e=n.possibleRegistrationNames,n.registrationNameDependencies.hasOwnProperty(t))return!0;if(n=e.hasOwnProperty(r)?e[r]:null,n!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,n),Ha[t]=!0;if(Ox.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Ha[t]=!0}else if(Ox.test(t))return OD.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Ha[t]=!0;if(AD.test(t)||VD.test(t))return!0;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Ha[t]=!0;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Ha[t]=!0;if(r==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),Ha[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),Ha[t]=!0;if(Ud.hasOwnProperty(r)){if(r=Ud[r],r!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,r),Ha[t]=!0}else if(t!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),Ha[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return r=t.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),Ha[t]=!0)}case"function":case"symbol":return Ha[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),Ha[t]=!0}}return!0}function D4(e,t,a){var n=[],r;for(r in t)E4(e,r,t[r],a)||n.push(r);t=n.map(function(i){return"`"+i+"`"}).join(", "),n.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<n.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function bl(e){return MD.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qs(){}function em(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Db(e){var t=se(e);if(t&&(e=t.stateNode)){var a=e[La]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ee(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(nt(t,"name"),a=a.querySelectorAll('input[name="'+ye(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[La]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ee(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&ce(n)}break e;case"textarea":ua(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&tt(e,!!a.multiple,t,!1)}}}function Rb(e,t,a){if(bh)return e(t,a);bh=!0;try{var n=e(t);return n}finally{if(bh=!1,(ki!==null||Ui!==null)&&(hi(),ki&&(t=ki,e=Ui,Ui=ki=null,Db(t),e)))for(t=0;t<e.length;t++)Db(e[t])}}function yl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[La]||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 _b(){if(Cd)return Cd;var e,t=vh,a=t.length,n,r="value"in Yo?Yo.value:Yo.textContent,i=r.length;for(e=0;e<a&&t[e]===r[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===r[i-n];n++);return Cd=r.slice(e,1<n?1-n:void 0)}function bu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function yu(){return!0}function kb(){return!1}function Pa(e){function t(a,n,r,i,f){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(i):i[p]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?yu:kb,this.isPropagationStopped=kb,this}return et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=yu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=yu)},persist:function(){},isPersistent:yu}),t}function R4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ZD[e])?!!t[e]:!1}function tm(){return R4}function Ub(e,t){switch(e){case"keyup":return iR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==zx;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function _4(e,t){switch(e){case"compositionend":return Cb(t);case"keypress":return t.which!==Hx?null:($x=!0,Bx);case"textInput":return e=t.data,e===Bx&&$x?null:e;default:return null}}function k4(e,t){if(Ci)return e==="compositionend"||!wh&&Ub(e,t)?(e=_b(),Cd=vh=Yo=null,Ci=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lx&&t.locale!=="ko"?null:t.data;default:return null}}function Tb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cR[e.type]:t==="textarea"}function U4(e){if(!zs)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function jb(e,t,a,n){ki?Ui?Ui.push(n):Ui=[n]:ki=n,t=ud(t,"onChange"),0<t.length&&(a=new Td("onChange","change",null,a,n),e.push({event:a,listeners:t}))}function C4(e){p0(e,0)}function vu(e){var t=de(e);if(ce(t))return e}function Ob(e,t){if(e==="change")return t}function Ab(){ac&&(ac.detachEvent("onpropertychange",Vb),nc=ac=null)}function Vb(e){if(e.propertyName==="value"&&vu(nc)){var t=[];jb(t,nc,e,em(e)),Rb(C4,t)}}function T4(e,t,a){e==="focusin"?(Ab(),ac=t,nc=a,ac.attachEvent("onpropertychange",Vb)):e==="focusout"&&Ab()}function j4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vu(nc)}function O4(e,t){if(e==="click")return vu(t)}function A4(e,t){if(e==="input"||e==="change")return vu(t)}function V4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function vl(e,t){if(Ba(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!ts.call(t,r)||!Ba(e[r],t[r]))return!1}return!0}function Mb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zb(e,t){var a=Mb(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=Mb(a)}}function Lb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hb(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ue(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=Ue(e.document)}return t}function am(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Bb(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Dh||Ti==null||Ti!==Ue(n)||(n=Ti,"selectionStart"in n&&am(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),sc&&vl(sc,n)||(sc=n,n=ud(Eh,"onSelect"),0<n.length&&(t=new Td("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Ti)))}function gr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function br(e){if(Rh[e])return Rh[e];if(!ji[e])return e;var t=ji[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in qx)return Rh[e]=t[a];return e}function Jn(e,t){Qx.set(e,t),Xe(t,[e])}function M4(e){for(var t=Od,a=0;a<e.length;a++){var n=e[a];if(typeof n=="object"&&n!==null)if(oa(n)&&n.length===2&&typeof n[0]=="string"){if(t!==Od&&t!==Th)return Uh;t=Th}else return Uh;else{if(typeof n=="function"||typeof n=="string"&&50<n.length||t!==Od&&t!==Ch)return Uh;t=Ch}}return t}function nm(e,t,a,n){for(var r in e)ts.call(e,r)&&r[0]!=="_"&&hs(r,e[r],t,a,n)}function hs(e,t,a,n,r){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Ts){var i=_(t.type)||"…",f=t.key;t=t.props;var p=Object.keys(t),v=p.length;if(f==null&&v===0){t="<"+i+" />";break}if(3>n||v===1&&p[0]==="children"&&f==null){t="<"+i+" … />";break}a.push([r+"  ".repeat(n)+e,"<"+i]),f!==null&&hs("key",f,a,n+1,r),e=!1;for(var w in t)w==="children"?t.children!=null&&(!oa(t.children)||0<t.children.length)&&(e=!0):ts.call(t,w)&&w[0]!=="_"&&hs(w,t[w],a,n+1,r);a.push(["",e?">…</"+i+">":"/>"]);return}if(i=Object.prototype.toString.call(t),i=i.slice(8,i.length-1),i==="Array"){if(w=M4(t),w===Ch||w===Od){t=JSON.stringify(t);break}else if(w===Th){for(a.push([r+"  ".repeat(n)+e,""]),e=0;e<t.length;e++)i=t[e],hs(i[0],i[1],a,n+1,r);return}}if(i==="Promise"){if(t.status==="fulfilled"){if(i=a.length,hs(e,t.value,a,n,r),a.length>i){a=a[i],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(i=a.length,hs(e,t.reason,a,n,r),a.length>i)){a=a[i],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(n)+e,"Promise"]);return}i==="Object"&&(w=Object.getPrototypeOf(t))&&typeof w.constructor=="function"&&(i=w.constructor.name),a.push([r+"  ".repeat(n)+e,i==="Object"?3>n?"":"…":i]),3>n&&nm(t,a,n+1,r);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===gR?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([r+"  ".repeat(n)+e,t])}function $b(e,t,a,n){var r=!0;for(f in e)f in t||(a.push([Ad+"  ".repeat(n)+f,"…"]),r=!1);for(var i in t)if(i in e){var f=e[i],p=t[i];if(f!==p){if(n===0&&i==="children")r="  ".repeat(n)+i,a.push([Ad+r,"…"],[Vd+r,"…"]);else{if(!(3<=n)){if(typeof f=="object"&&typeof p=="object"&&f!==null&&p!==null&&f.$$typeof===p.$$typeof)if(p.$$typeof===Ts){if(f.type===p.type&&f.key===p.key){f=_(p.type)||"…",r="  ".repeat(n)+i,f="<"+f+" … />",a.push([Ad+r,f],[Vd+r,f]),r=!1;continue}}else{var v=Object.prototype.toString.call(f),w=Object.prototype.toString.call(p);if(v===w&&(w==="[object Object]"||w==="[object Array]")){v=[Jx+"  ".repeat(n)+i,w==="[object Array]"?"Array":""],a.push(v),w=a.length,$b(f,p,a,n+1)?w===a.length&&(v[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=!1;continue}}else if(typeof f=="function"&&typeof p=="function"&&f.name===p.name&&f.length===p.length&&(v=Function.prototype.toString.call(f),w=Function.prototype.toString.call(p),v===w)){f=p.name===""?"() => {}":p.name+"() {}",a.push([Jx+"  ".repeat(n)+i,f+" Referentially unequal function closure. Consider memoization."]);continue}}hs(i,f,a,n,Ad),hs(i,p,a,n,Vd)}r=!1}}else a.push([Vd+"  ".repeat(n)+i,"…"]),r=!1;return r}function Kn(e){ct=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function gs(e,t,a,n){kt&&(Go.start=t,Go.end=a,so.color="warning",so.tooltipText=n,so.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,n,Go)):performance.measure(n,Go))}function xu(e,t,a){gs(e,t,a,"Reconnect")}function Nu(e,t,a,n,r){var i=L(e);if(i!==null&&kt){var f=e.alternate,p=e.actualDuration;if(f===null||f.child!==e.child)for(var v=e.child;v!==null;v=v.sibling)p-=v.actualDuration;n=.5>p?n?"tertiary-light":"primary-light":10>p?n?"tertiary":"primary":100>p?n?"tertiary-dark":"primary-dark":"error";var w=e.memoizedProps;p=e._debugTask,w!==null&&f!==null&&f.memoizedProps!==w?(v=[bR],w=$b(f.memoizedProps,w,v,0),1<v.length&&(w&&!qo&&(f.lanes&r)===0&&100<e.actualDuration?(qo=!0,v[0]=yR,so.color="warning",so.tooltipText=Kx):(so.color=n,so.tooltipText=i),so.properties=v,Go.start=t,Go.end=a,p!=null?p.run(performance.measure.bind(performance,"​"+i,Go)):performance.measure("​"+i,Go))):p!=null?p.run(console.timeStamp.bind(console,i,t,a,kn,void 0,n)):console.timeStamp(i,t,a,kn,void 0,n)}}function sm(e,t,a,n){if(kt){var r=L(e);if(r!==null){for(var i=null,f=[],p=0;p<n.length;p++){var v=n[p];i==null&&v.source!==null&&(i=v.source._debugTask),v=v.value,f.push(["Error",typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v)])}e.key!==null&&hs("key",e.key,f,0,""),e.memoizedProps!==null&&nm(e.memoizedProps,f,0,""),i==null&&(i=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:kn,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:f}}},i?i.run(performance.measure.bind(performance,"​"+r,e)):performance.measure("​"+r,e)}}}function bs(e,t,a,n,r){if(r!==null){if(kt){var i=L(e);if(i!==null){n=[];for(var f=0;f<r.length;f++){var p=r[f].value;n.push(["Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e.key!==null&&hs("key",e.key,n,0,""),e.memoizedProps!==null&&nm(e.memoizedProps,n,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:kn,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=L(e),i!==null&&kt&&(r=1>n?"secondary-light":100>n?"secondary":500>n?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,i,t,a,kn,void 0,r)):console.timeStamp(i,t,a,kn,void 0,r))}function z4(e,t,a,n){if(kt&&!(t<=e)){var r=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",n?n.run(console.timeStamp.bind(console,a,e,t,ct,it,r)):console.timeStamp(a,e,t,ct,it,r)}}function Yb(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,ct,it,a)):console.timeStamp("Prewarm",e,t,ct,it,a))}function qb(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,ct,it,a)):console.timeStamp("Suspended",e,t,ct,it,a))}function L4(e,t,a,n,r,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:ct,trackGroup:it,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:a}}},i?i.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function om(e,t,a,n){!kt||t<=e||(n?n.run(console.timeStamp.bind(console,"Errored",e,t,ct,it,"error")):console.timeStamp("Errored",e,t,ct,it,"error"))}function H4(e,t,a,n){!kt||t<=e||(n?n.run(console.timeStamp.bind(console,a,e,t,ct,it,"secondary-light")):console.timeStamp(a,e,t,ct,it,"secondary-light"))}function Gb(e,t,a,n,r){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:ct,trackGroup:it,tooltipText:n?"Remaining Effects Errored":"Commit Errored",properties:i}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function rm(e,t,a){!kt||t<=e||console.timeStamp("Animating",e,t,ct,it,"secondary-dark")}function Su(){for(var e=Oi,t=jh=Oi=0;t<e;){var a=Un[t];Un[t++]=null;var n=Un[t];Un[t++]=null;var r=Un[t];Un[t++]=null;var i=Un[t];if(Un[t++]=null,n!==null&&r!==null){var f=n.pending;f===null?r.next=r:(r.next=f.next,f.next=r),n.pending=r}i!==0&&Ib(a,r,i)}}function wu(e,t,a,n){Un[Oi++]=e,Un[Oi++]=t,Un[Oi++]=a,Un[Oi++]=n,jh|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function im(e,t,a,n){return wu(e,t,a,n),Eu(e)}function Ra(e,t){return wu(e,null,null,t),Eu(e)}function Ib(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,i=e.return;i!==null;)i.childLanes|=a,n=i.alternate,n!==null&&(n.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&oc||(r=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,r&&t!==null&&(r=31-za(a),e=i.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),i):null}function Eu(e){if(jc>AR)throw Xr=jc=0,Oc=dg=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Xr>VR&&(Xr=0,Oc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&i0(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&i0(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function yr(e){if(Cn===null)return e;var t=Cn(e);return t===void 0?e:t.current}function lm(e){if(Cn===null)return e;var t=Cn(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=yr(e.render),e.render!==t)?(t={$$typeof:Xl,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Fb(e,t){if(Cn===null)return!1;var a=e.elementType;t=t.type;var n=!1,r=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(n=!0);break;case 0:(typeof t=="function"||r===mn)&&(n=!0);break;case 11:(r===Xl||r===mn)&&(n=!0);break;case 14:case 15:(r===Nd||r===mn)&&(n=!0);break;default:return!1}return!!(n&&(e=Cn(a),e!==void 0&&e===Cn(t)))}function Xb(e){Cn!==null&&typeof WeakSet=="function"&&(Ai===null&&(Ai=new WeakSet),Ai.add(e))}function Qb(e,t,a){do{var n=e,r=n.alternate,i=n.child,f=n.sibling,p=n.tag;n=n.type;var v=null;switch(p){case 0:case 15:case 1:v=n;break;case 11:v=n.render}if(Cn===null)throw Error("Expected resolveFamily to be set during hot reload.");var w=!1;if(n=!1,v!==null&&(v=Cn(v),v!==void 0&&(a.has(v)?n=!0:t.has(v)&&(p===1?n=!0:w=!0))),Ai!==null&&(Ai.has(e)||r!==null&&Ai.has(r))&&(n=!0),n&&(e._debugNeedsRemount=!0),(n||w)&&(r=Ra(e,2),r!==null&&Mt(r,e,2)),i===null||n||Qb(i,t,a),f===null)break;e=f}while(!0)}function B4(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Wx||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function cm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zs(e,t){var a=e.alternate;switch(a===null?(a=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=yr(e.type);break;case 1:a.type=yr(e.type);break;case 11:a.type=lm(e.type)}return a}function Zb(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function um(e,t,a,n,r,i){var f=0,p=e;if(typeof e=="function")cm(e)&&(f=1),p=yr(p);else if(typeof e=="string")f=ue(),f=ZE(e,a,f)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case nh:return t=S(31,a,t,r),t.elementType=nh,t.lanes=i,t;case Si:return vr(a.children,r,i,t);case xd:f=8,r|=ka,r|=as;break;case Wp:return e=a,n=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=S(12,e,t,n|Qe),t.elementType=Wp,t.lanes=i,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case th:return t=S(13,a,t,r),t.elementType=th,t.lanes=i,t;case ah:return t=S(19,a,t,r),t.elementType=ah,t.lanes=i,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case js:f=10;break e;case eh:f=9;break e;case Xl:f=11,p=lm(p);break e;case Nd:f=14;break e;case mn: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":oa(e)?a="array":e!==void 0&&e.$$typeof===Ts?(a="<"+(_(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(f=n?Q(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,r),t.elementType=e,t.type=p,t.lanes=i,t._debugOwner=n,t}function Du(e,t,a){return t=um(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function vr(e,t,a,n){return e=S(7,e,n,t),e.lanes=a,e}function dm(e,t,a){return e=S(6,e,null,t),e.lanes=a,e}function Pb(e){var t=S(18,null,null,He);return t.stateNode=e,t}function fm(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 rn(e,t){if(typeof e=="object"&&e!==null){var a=Oh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ke(t)},Oh.set(e,t),t)}return{value:e,source:t,stack:Ke(t)}}function Ps(e,t){Ro(),Vi[Mi++]=rc,Vi[Mi++]=Md,Md=e,rc=t}function Jb(e,t,a){Ro(),Tn[jn++]=ro,Tn[jn++]=io,Tn[jn++]=jr,jr=e;var n=ro;e=io;var r=32-za(n)-1;n&=~(1<<r),a+=1;var i=32-za(t)+r;if(30<i){var f=r-r%5;i=(n&(1<<f)-1).toString(32),n>>=f,r-=f,ro=1<<32-za(t)+r|a<<r|n,io=i+e}else ro=1<<i|a<<r|n,io=e}function mm(e){Ro(),e.return!==null&&(Ps(e,1),Jb(e,1,0))}function pm(e){for(;e===Md;)Md=Vi[--Mi],Vi[Mi]=null,rc=Vi[--Mi],Vi[Mi]=null;for(;e===jr;)jr=Tn[--jn],Tn[jn]=null,io=Tn[--jn],Tn[jn]=null,ro=Tn[--jn],Tn[jn]=null}function Kb(){return Ro(),jr!==null?{id:ro,overflow:io}:null}function Wb(e,t){Ro(),Tn[jn++]=ro,Tn[jn++]=io,Tn[jn++]=jr,ro=t.id,io=t.overflow,jr=e}function Ro(){st||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function xr(e,t){if(e.return===null){if(hn===null)hn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(hn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");hn.distanceFromLeaf>t&&(hn.distanceFromLeaf=t)}return hn}var a=xr(e.return,t+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t)}function ey(){st&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Ru(e,t){Ls||(e=xr(e,0),e.serverProps=null,t!==null&&(t=j0(t),e.serverTail.push(t)))}function _o(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",n=hn;throw n!==null&&(hn=null,a=Do(n)),xl(rn(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
79
+
80
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
81
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
82
+ - Date formatting in a user's locale which doesn't match the server.
83
+ - External changing data without sending a snapshot of it along with the HTML.
84
+ - Invalid HTML tag nesting.
85
+
86
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
87
+
88
+ https://react.dev/link/hydration-mismatch`+a),e)),Ah}function ty(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Na]=e,t[La]=n,Ap(a,n),a){case"dialog":rt("cancel",t),rt("close",t);break;case"iframe":case"object":case"embed":rt("load",t);break;case"video":case"audio":for(a=0;a<Ac.length;a++)rt(Ac[a],t);break;case"source":rt("error",t);break;case"img":case"image":case"link":rt("error",t),rt("load",t);break;case"details":rt("toggle",t);break;case"input":Pt("input",n),rt("invalid",t),je(t,n),Me(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"option":Te(t,n);break;case"select":Pt("select",n),rt("invalid",t),Rt(t,n);break;case"textarea":Pt("textarea",n),rt("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||y0(t.textContent,a)?(n.popover!=null&&(rt("beforetoggle",t),rt("toggle",t)),n.onScroll!=null&&rt("scroll",t),n.onScrollEnd!=null&&rt("scrollend",t),n.onClick!=null&&(t.onclick=Qs),t=!0):t=!1,t||_o(e,!0)}function ay(e){for(Sa=e.return;Sa;)switch(Sa.tag){case 5:case 31:case 13:On=!1;return;case 27:case 3:On=!0;return;default:Sa=Sa.return}}function ri(e){if(e!==Sa)return!1;if(!st)return ay(e),st=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Hp(e.type,e.memoizedProps)),a=!a),a&&Ut){for(a=Ut;a;){var n=xr(e,0),r=j0(a);n.serverTail.push(r),a=r.type==="Suspense"?qp(a):fn(a.nextSibling)}_o(e)}if(ay(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.");Ut=qp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Ut=qp(e)}else t===27?(t=Ut,zo(e.type)?(e=wg,wg=null,Ut=e):Ut=t):Ut=Sa?fn(e.stateNode.nextSibling):null;return!0}function Nr(){Ut=Sa=null,Ls=st=!1}function hm(){var e=Fo;return e!==null&&(Ga===null?Ga=e:Ga.push.apply(Ga,e),Fo=null),e}function xl(e){Fo===null?Fo=[e]:Fo.push(e)}function gm(){var e=hn;if(e!==null){hn=null;for(var t=Do(e);0<e.children.length;)e=e.children[0];he(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
89
+
90
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
91
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
92
+ - Date formatting in a user's locale which doesn't match the server.
93
+ - External changing data without sending a snapshot of it along with the HTML.
94
+ - Invalid HTML tag nesting.
95
+
96
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
97
+
98
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function _u(){zi=zd=null,Li=!1}function ko(e,t,a){F(Vh,t._currentValue,e),t._currentValue=a,F(Mh,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==tN&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=tN}function Js(e,t){e._currentValue=Vh.current;var a=Mh.current;ee(Mh,t),e._currentRenderer=a,ee(Vh,t)}function bm(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function ym(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var i=r.dependencies;if(i!==null){var f=r.child;i=i.firstContext;e:for(;i!==null;){var p=i;i=r;for(var v=0;v<t.length;v++)if(p.context===t[v]){i.lanes|=a,p=i.alternate,p!==null&&(p.lanes|=a),bm(i.return,a,e),n||(f=null);break e}i=p.next}}else if(r.tag===18){if(f=r.return,f===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");f.lanes|=a,i=f.alternate,i!==null&&(i.lanes|=a),bm(f,a,e),f=null}else f=r.child;if(f!==null)f.return=r;else for(f=r;f!==null;){if(f===e){f=null;break}if(r=f.sibling,r!==null){r.return=f.return,f=r;break}f=f.return}r=f}}function ii(e,t,a,n){e=null;for(var r=t,i=!1;r!==null;){if(!i){if((r.flags&524288)!==0)i=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var f=r.alternate;if(f===null)throw Error("Should have a current fiber. This is a bug in React.");if(f=f.memoizedProps,f!==null){var p=r.type;Ba(r.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(r===Sd.current){if(f=r.alternate,f===null)throw Error("Should have a current fiber. This is a bug in React.");f.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Hc):e=[Hc])}r=r.return}e!==null&&ym(t,e,a,n),t.flags|=262144}function ku(e){for(e=e.firstContext;e!==null;){if(!Ba(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sr(e){zd=e,zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(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()."),ny(zd,e)}function Uu(e,t){return zd===null&&Sr(e),ny(e,t)}function ny(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},zi===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");zi=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else zi=zi.next=t;return a}function vm(){return{controller:new NR,data:new Map,refCount:0}}function wr(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function Nl(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&SR(wR,function(){e.controller.abort()})}function ys(e,t,a){(e&127)!==0?0>Hs&&(Hs=Wt(),lc=Ld(t),zh=t,a!=null&&(Lh=L(a)),(ut&(ia|yn))!==ga&&(zt=!0,Qo=ic),e=Yl(),t=$l(),e!==Hi||t!==cc?Hi=-1.1:t!==null&&(Qo=ic),Vr=e,cc=t):(e&4194048)!==0&&0>An&&(An=Wt(),uc=Ld(t),aN=t,a!=null&&(nN=L(a)),0>fo)&&(e=Yl(),t=$l(),(e!==Po||t!==Mr)&&(Po=-1.1),Zo=e,Mr=t)}function $4(e){if(0>Hs){Hs=Wt(),lc=e._debugTask!=null?e._debugTask:null,(ut&(ia|yn))!==ga&&(Qo=ic);var t=Yl(),a=$l();t!==Hi||a!==cc?Hi=-1.1:a!==null&&(Qo=ic),Vr=t,cc=a}0>An&&(An=Wt(),uc=e._debugTask!=null?e._debugTask:null,0>fo)&&(e=Yl(),t=$l(),(e!==Po||t!==Mr)&&(Po=-1.1),Zo=e,Mr=t)}function Ks(){var e=Or;return Or=0,e}function Cu(e){var t=Or;return Or=e,t}function Sl(e){var t=Or;return Or+=e,t}function Tu(){ze=Ae=-1.1}function ln(){var e=Ae;return Ae=-1.1,e}function cn(e){0<=e&&(Ae=e)}function vs(){var e=At;return At=-0,e}function xs(e){0<=e&&(At=e)}function Ns(){var e=Ot;return Ot=null,e}function Ss(){var e=zt;return zt=!1,e}function xm(e){$a=Wt(),0>e.actualStartTime&&(e.actualStartTime=$a)}function Nm(e){if(0<=$a){var t=Wt()-$a;e.actualDuration+=t,e.selfBaseDuration=t,$a=-1}}function sy(e){if(0<=$a){var t=Wt()-$a;e.actualDuration+=t,$a=-1}}function ws(){if(0<=$a){var e=Wt(),t=e-$a;$a=-1,Or+=t,At+=t,ze=e}}function oy(e){Ot===null&&(Ot=[]),Ot.push(e),co===null&&(co=[]),co.push(e)}function Es(){$a=Wt(),0>Ae&&(Ae=$a)}function wl(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Y4(e,t){if(fc===null){var a=fc=[];Bh=0,zr=Cp(),Bi={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Bh++,t.then(ry,ry),t}function ry(){if(--Bh===0&&(-1<An||(fo=-1.1),fc!==null)){Bi!==null&&(Bi.status="fulfilled");var e=fc;fc=null,zr=0,Bi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function q4(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}function Sm(){var e=Lr.current;return e!==null?e:wt.pooledCache}function ju(e,t){t===null?F(Lr,Lr.current,e):F(Lr,t.pool,e)}function iy(){var e=Sm();return e===null?null:{parent:Kt._currentValue,pool:e}}function ly(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function cy(e){return e=e.status,e==="fulfilled"||e==="rejected"}function uy(e,t,a){I.actQueue!==null&&(I.didUsePromise=!0);var n=e.thenables;if(a=n[a],a===void 0?n.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Qs,Qs),t=a),t._debugInfo===void 0){e=performance.now(),n=t.displayName;var r={name:typeof n=="string"?n:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:r}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){r.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fy(e),e;default:if(typeof t.status=="string")t.then(Qs,Qs);else{if(e=wt,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,fy(e),e}throw Br=t,vc=!0,$i}}function Uo(e){try{return kR(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Br=t,vc=!0,$i):t}}function dy(){if(Br===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Br;return Br=null,vc=!1,e}function fy(e){if(e===$i||e===Fd)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function ya(e){var t=Ze;return e!=null&&(Ze=t===null?e:t.concat(e)),t}function wm(){var e=Ze;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function Ou(e,t,a){for(var n=Object.keys(e.props),r=0;r<n.length;r++){var i=n[r];if(i!=="children"&&i!=="key"){t===null&&(t=Du(e,a.mode,0),t._debugInfo=Ze,t.return=a),he(t,function(f){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f)},i);break}}}function Au(e){var t=xc;return xc+=1,Yi===null&&(Yi=ly()),uy(Yi,e,t)}function El(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function my(e,t){throw t.$$typeof===rD?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
99
+ - Multiple copies of the "react" package is used.
100
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
101
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Vu(e,t){var a=wm();a!==null?a.run(my.bind(null,e,t)):my(e,t)}function py(e,t){var a=L(e)||"Component";wN[a]||(wN[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
103
+ <%s>{%s}</%s>`,t,t,a,t,a))}function Mu(e,t){var a=wm();a!==null?a.run(py.bind(null,e,t)):py(e,t)}function hy(e,t){var a=L(e)||"Component";EN[a]||(EN[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
104
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
105
+ <%s>%s</%s>`,a,t,a))}function zu(e,t){var a=wm();a!==null?a.run(hy.bind(null,e,t)):hy(e,t)}function gy(e){function t(U,j){if(e){var A=U.deletions;A===null?(U.deletions=[j],U.flags|=16):A.push(j)}}function a(U,j){if(!e)return null;for(;j!==null;)t(U,j),j=j.sibling;return null}function n(U){for(var j=new Map;U!==null;)U.key!==null?j.set(U.key,U):j.set(U.index,U),U=U.sibling;return j}function r(U,j){return U=Zs(U,j),U.index=0,U.sibling=null,U}function i(U,j,A){return U.index=A,e?(A=U.alternate,A!==null?(A=A.index,A<j?(U.flags|=67108866,j):A):(U.flags|=67108866,j)):(U.flags|=1048576,j)}function f(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function p(U,j,A,J){return j===null||j.tag!==6?(j=dm(A,U.mode,J),j.return=U,j._debugOwner=U,j._debugTask=U._debugTask,j._debugInfo=Ze,j):(j=r(j,A),j.return=U,j._debugInfo=Ze,j)}function v(U,j,A,J){var ge=A.type;return ge===Si?(j=V(U,j,A.props.children,J,A.key),Ou(A,j,U),j):j!==null&&(j.elementType===ge||Fb(j,A)||typeof ge=="object"&&ge!==null&&ge.$$typeof===mn&&Uo(ge)===j.type)?(j=r(j,A.props),El(j,A),j.return=U,j._debugOwner=A._owner,j._debugInfo=Ze,j):(j=Du(A,U.mode,J),El(j,A),j.return=U,j._debugInfo=Ze,j)}function w(U,j,A,J){return j===null||j.tag!==4||j.stateNode.containerInfo!==A.containerInfo||j.stateNode.implementation!==A.implementation?(j=fm(A,U.mode,J),j.return=U,j._debugInfo=Ze,j):(j=r(j,A.children||[]),j.return=U,j._debugInfo=Ze,j)}function V(U,j,A,J,ge){return j===null||j.tag!==7?(j=vr(A,U.mode,J,ge),j.return=U,j._debugOwner=U,j._debugTask=U._debugTask,j._debugInfo=Ze,j):(j=r(j,A),j.return=U,j._debugInfo=Ze,j)}function M(U,j,A){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=dm(""+j,U.mode,A),j.return=U,j._debugOwner=U,j._debugTask=U._debugTask,j._debugInfo=Ze,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ts:return A=Du(j,U.mode,A),El(A,j),A.return=U,U=ya(j._debugInfo),A._debugInfo=Ze,Ze=U,A;case Ni:return j=fm(j,U.mode,A),j.return=U,j._debugInfo=Ze,j;case mn:var J=ya(j._debugInfo);return j=Uo(j),U=M(U,j,A),Ze=J,U}if(oa(j)||ae(j))return A=vr(j,U.mode,A,null),A.return=U,A._debugOwner=U,A._debugTask=U._debugTask,U=ya(j._debugInfo),A._debugInfo=Ze,Ze=U,A;if(typeof j.then=="function")return J=ya(j._debugInfo),U=M(U,Au(j),A),Ze=J,U;if(j.$$typeof===js)return M(U,Uu(U,j),A);Vu(U,j)}return typeof j=="function"&&Mu(U,j),typeof j=="symbol"&&zu(U,j),null}function T(U,j,A,J){var ge=j!==null?j.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return ge!==null?null:p(U,j,""+A,J);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Ts:return A.key===ge?(ge=ya(A._debugInfo),U=v(U,j,A,J),Ze=ge,U):null;case Ni:return A.key===ge?w(U,j,A,J):null;case mn:return ge=ya(A._debugInfo),A=Uo(A),U=T(U,j,A,J),Ze=ge,U}if(oa(A)||ae(A))return ge!==null?null:(ge=ya(A._debugInfo),U=V(U,j,A,J,null),Ze=ge,U);if(typeof A.then=="function")return ge=ya(A._debugInfo),U=T(U,j,Au(A),J),Ze=ge,U;if(A.$$typeof===js)return T(U,j,Uu(U,A),J);Vu(U,A)}return typeof A=="function"&&Mu(U,A),typeof A=="symbol"&&zu(U,A),null}function $(U,j,A,J,ge){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return U=U.get(A)||null,p(j,U,""+J,ge);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case Ts:return A=U.get(J.key===null?A:J.key)||null,U=ya(J._debugInfo),j=v(j,A,J,ge),Ze=U,j;case Ni:return U=U.get(J.key===null?A:J.key)||null,w(j,U,J,ge);case mn:var Ye=ya(J._debugInfo);return J=Uo(J),j=$(U,j,A,J,ge),Ze=Ye,j}if(oa(J)||ae(J))return A=U.get(A)||null,U=ya(J._debugInfo),j=V(j,A,J,ge,null),Ze=U,j;if(typeof J.then=="function")return Ye=ya(J._debugInfo),j=$(U,j,A,Au(J),ge),Ze=Ye,j;if(J.$$typeof===js)return $(U,j,A,Uu(j,J),ge);Vu(j,J)}return typeof J=="function"&&Mu(j,J),typeof J=="symbol"&&zu(j,J),null}function me(U,j,A,J){if(typeof A!="object"||A===null)return J;switch(A.$$typeof){case Ts:case Ni:D(U,j,A);var ge=A.key;if(typeof ge!="string")break;if(J===null){J=new Set,J.add(ge);break}if(!J.has(ge)){J.add(ge);break}he(j,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ge)});break;case mn:A=Uo(A),me(U,j,A,J)}return J}function xe(U,j,A,J){for(var ge=null,Ye=null,Oe=null,ke=j,Ie=j=0,Ct=null;ke!==null&&Ie<A.length;Ie++){ke.index>Ie?(Ct=ke,ke=null):Ct=ke.sibling;var Xt=T(U,ke,A[Ie],J);if(Xt===null){ke===null&&(ke=Ct);break}ge=me(U,Xt,A[Ie],ge),e&&ke&&Xt.alternate===null&&t(U,ke),j=i(Xt,j,Ie),Oe===null?Ye=Xt:Oe.sibling=Xt,Oe=Xt,ke=Ct}if(Ie===A.length)return a(U,ke),st&&Ps(U,Ie),Ye;if(ke===null){for(;Ie<A.length;Ie++)ke=M(U,A[Ie],J),ke!==null&&(ge=me(U,ke,A[Ie],ge),j=i(ke,j,Ie),Oe===null?Ye=ke:Oe.sibling=ke,Oe=ke);return st&&Ps(U,Ie),Ye}for(ke=n(ke);Ie<A.length;Ie++)Ct=$(ke,U,Ie,A[Ie],J),Ct!==null&&(ge=me(U,Ct,A[Ie],ge),e&&Ct.alternate!==null&&ke.delete(Ct.key===null?Ie:Ct.key),j=i(Ct,j,Ie),Oe===null?Ye=Ct:Oe.sibling=Ct,Oe=Ct);return e&&ke.forEach(function(xo){return t(U,xo)}),st&&Ps(U,Ie),Ye}function Dt(U,j,A,J){if(A==null)throw Error("An iterable object provided no iterator.");for(var ge=null,Ye=null,Oe=j,ke=j=0,Ie=null,Ct=null,Xt=A.next();Oe!==null&&!Xt.done;ke++,Xt=A.next()){Oe.index>ke?(Ie=Oe,Oe=null):Ie=Oe.sibling;var xo=T(U,Oe,Xt.value,J);if(xo===null){Oe===null&&(Oe=Ie);break}Ct=me(U,xo,Xt.value,Ct),e&&Oe&&xo.alternate===null&&t(U,Oe),j=i(xo,j,ke),Ye===null?ge=xo:Ye.sibling=xo,Ye=xo,Oe=Ie}if(Xt.done)return a(U,Oe),st&&Ps(U,ke),ge;if(Oe===null){for(;!Xt.done;ke++,Xt=A.next())Oe=M(U,Xt.value,J),Oe!==null&&(Ct=me(U,Oe,Xt.value,Ct),j=i(Oe,j,ke),Ye===null?ge=Oe:Ye.sibling=Oe,Ye=Oe);return st&&Ps(U,ke),ge}for(Oe=n(Oe);!Xt.done;ke++,Xt=A.next())Ie=$(Oe,U,ke,Xt.value,J),Ie!==null&&(Ct=me(U,Ie,Xt.value,Ct),e&&Ie.alternate!==null&&Oe.delete(Ie.key===null?ke:Ie.key),j=i(Ie,j,ke),Ye===null?ge=Ie:Ye.sibling=Ie,Ye=Ie);return e&&Oe.forEach(function(KR){return t(U,KR)}),st&&Ps(U,ke),ge}function lt(U,j,A,J){if(typeof A=="object"&&A!==null&&A.type===Si&&A.key===null&&(Ou(A,null,U),A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case Ts:var ge=ya(A._debugInfo);e:{for(var Ye=A.key;j!==null;){if(j.key===Ye){if(Ye=A.type,Ye===Si){if(j.tag===7){a(U,j.sibling),J=r(j,A.props.children),J.return=U,J._debugOwner=A._owner,J._debugInfo=Ze,Ou(A,J,U),U=J;break e}}else if(j.elementType===Ye||Fb(j,A)||typeof Ye=="object"&&Ye!==null&&Ye.$$typeof===mn&&Uo(Ye)===j.type){a(U,j.sibling),J=r(j,A.props),El(J,A),J.return=U,J._debugOwner=A._owner,J._debugInfo=Ze,U=J;break e}a(U,j);break}else t(U,j);j=j.sibling}A.type===Si?(J=vr(A.props.children,U.mode,J,A.key),J.return=U,J._debugOwner=U,J._debugTask=U._debugTask,J._debugInfo=Ze,Ou(A,J,U),U=J):(J=Du(A,U.mode,J),El(J,A),J.return=U,J._debugInfo=Ze,U=J)}return U=f(U),Ze=ge,U;case Ni:e:{for(ge=A,A=ge.key;j!==null;){if(j.key===A)if(j.tag===4&&j.stateNode.containerInfo===ge.containerInfo&&j.stateNode.implementation===ge.implementation){a(U,j.sibling),J=r(j,ge.children||[]),J.return=U,U=J;break e}else{a(U,j);break}else t(U,j);j=j.sibling}J=fm(ge,U.mode,J),J.return=U,U=J}return f(U);case mn:return ge=ya(A._debugInfo),A=Uo(A),U=lt(U,j,A,J),Ze=ge,U}if(oa(A))return ge=ya(A._debugInfo),U=xe(U,j,A,J),Ze=ge,U;if(ae(A)){if(ge=ya(A._debugInfo),Ye=ae(A),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 Oe=Ye.call(A);return Oe===A?(U.tag!==0||Object.prototype.toString.call(U.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Oe)!=="[object Generator]")&&(NN||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."),NN=!0):A.entries!==Ye||Gh||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Gh=!0),U=Dt(U,j,Oe,J),Ze=ge,U}if(typeof A.then=="function")return ge=ya(A._debugInfo),U=lt(U,j,Au(A),J),Ze=ge,U;if(A.$$typeof===js)return lt(U,j,Uu(U,A),J);Vu(U,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(ge=""+A,j!==null&&j.tag===6?(a(U,j.sibling),J=r(j,ge),J.return=U,U=J):(a(U,j),J=dm(ge,U.mode,J),J.return=U,J._debugOwner=U,J._debugTask=U._debugTask,J._debugInfo=Ze,U=J),f(U)):(typeof A=="function"&&Mu(U,A),typeof A=="symbol"&&zu(U,A),a(U,j))}return function(U,j,A,J){var ge=Ze;Ze=null;try{xc=0;var Ye=lt(U,j,A,J);return Yi=null,Ye}catch(Ct){if(Ct===$i||Ct===Fd)throw Ct;var Oe=S(29,Ct,null,U.mode);Oe.lanes=J,Oe.return=U;var ke=Oe._debugInfo=Ze;if(Oe._debugOwner=U._debugOwner,Oe._debugTask=U._debugTask,ke!=null){for(var Ie=ke.length-1;0<=Ie;Ie--)if(typeof ke[Ie].stack=="string"){Oe._debugOwner=ke[Ie],Oe._debugTask=ke[Ie].debugTask;break}}return Oe}finally{Ze=ge}}}function by(e,t){var a=oa(e);return e=!a&&typeof ae(e)=="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function Em(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Co(e){return{lane:e,tag:RN,payload:null,callback:null,next:null}}function To(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Fh===n&&!UN){var r=L(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
106
+
107
+ Please update the following component: %s`,r),UN=!0}return(ut&ia)!==ga?(r=n.pending,r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=Eu(e),Ib(e,null,a),t):(wu(e,n,t,a),Eu(e))}function Dl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ds(e,a)}}function Lu(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?r=i=f:i=i.next=f,a=a.next}while(a!==null);i===null?r=i=t:i=i.next=t}else r=i=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Rl(){if(Xh){var e=Bi;if(e!==null)throw e}}function _l(e,t,a,n){Xh=!1;var r=e.updateQueue;Jo=!1,Fh=r.shared;var i=r.firstBaseUpdate,f=r.lastBaseUpdate,p=r.shared.pending;if(p!==null){r.shared.pending=null;var v=p,w=v.next;v.next=null,f===null?i=w:f.next=w,f=v;var V=e.alternate;V!==null&&(V=V.updateQueue,p=V.lastBaseUpdate,p!==f&&(p===null?V.firstBaseUpdate=w:p.next=w,V.lastBaseUpdate=v))}if(i!==null){var M=r.baseState;f=0,V=w=v=null,p=i;do{var T=p.lane&-536870913,$=T!==p.lane;if($?(Pe&T)===T:(n&T)===T){T!==0&&T===zr&&(Xh=!0),V!==null&&(V=V.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{T=e;var me=p,xe=t,Dt=a;switch(me.tag){case _N:if(me=me.payload,typeof me=="function"){Li=!0;var lt=me.call(Dt,M,xe);if(T.mode&ka){Se(!0);try{me.call(Dt,M,xe)}finally{Se(!1)}}Li=!1,M=lt;break e}M=me;break e;case Ih:T.flags=T.flags&-65537|128;case RN:if(lt=me.payload,typeof lt=="function"){if(Li=!0,me=lt.call(Dt,M,xe),T.mode&ka){Se(!0);try{lt.call(Dt,M,xe)}finally{Se(!1)}}Li=!1}else me=lt;if(me==null)break e;M=et({},M,me);break e;case kN:Jo=!0}}T=p.callback,T!==null&&(e.flags|=64,$&&(e.flags|=8192),$=r.callbacks,$===null?r.callbacks=[T]:$.push(T))}else $={lane:T,tag:p.tag,payload:p.payload,callback:p.callback,next:null},V===null?(w=V=$,v=M):V=V.next=$,f|=T;if(p=p.next,p===null){if(p=r.shared.pending,p===null)break;$=p,p=$.next,$.next=null,r.lastBaseUpdate=$,r.shared.pending=null}}while(!0);V===null&&(v=M),r.baseState=v,r.firstBaseUpdate=w,r.lastBaseUpdate=V,i===null&&(r.shared.lanes=0),er|=f,e.lanes=f,e.memoizedState=M}Fh=null}function yy(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function G4(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)yy(a[e],t)}function vy(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)yy(a[e],t)}function xy(e,t){var a=$s;F(Qd,a,e),F(qi,t,e),$s=a|t.baseLanes}function Rm(e){F(Qd,$s,e),F(qi,qi.current,e)}function _m(e){$s=Qd.current,ee(qi,e),ee(Qd,e)}function jo(e){var t=e.alternate;F(Ft,Ft.current&Gi,e),F(gn,e,e),Vn===null&&(t===null||qi.current!==null||t.memoizedState!==null)&&(Vn=e)}function km(e){F(Ft,Ft.current,e),F(gn,e,e),Vn===null&&(Vn=e)}function Ny(e){e.tag===22?(F(Ft,Ft.current,e),F(gn,e,e),Vn===null&&(Vn=e)):Oo(e)}function Oo(e){F(Ft,Ft.current,e),F(gn,gn.current,e)}function un(e){ee(gn,e),Vn===e&&(Vn=null),ee(Ft,e)}function Hu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||$p(a)||Yp(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function We(){var e=q;zn===null?zn=[e]:zn.push(e)}function oe(){var e=q;if(zn!==null&&(ho++,zn[ho]!==e)){var t=L($e);if(!CN.has(t)&&(CN.add(t),zn!==null)){for(var a="",n=0;n<=ho;n++){var r=zn[n],i=n===ho?e:r;for(r=n+1+". "+r;30>r.length;)r+=" ";r+=i+`
108
+ `,a+=r}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
109
+
110
+ Previous render Next render
111
+ ------------------------------------------------------
112
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
+ `,t,a)}}}function li(e){e==null||oa(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.",q,typeof e)}function Bu(){var e=L($e);jN.has(e)||(jN.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 Um(e,t){if(wc)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",q),!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`,q,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Ba(e[a],t[a]))return!1;return!0}function Cm(e,t,a,n,r,i){mo=i,$e=t,zn=e!==null?e._debugHookTypes:null,ho=-1,wc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(i=L($e),Qh.has(i)||(Qh.add(i),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",i===null?"An unknown Component":"<"+i+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e!==null&&e.memoizedState!==null?Ph:zn!==null?ON:Zh,Yr=i=(t.mode&ka)!==He;var f=$h(a,n,r);if(Yr=!1,Fi&&(f=Tm(t,a,n,r)),i){Se(!0);try{f=Tm(t,a,n,r)}finally{Se(!1)}}return Sy(e,t),f}function Sy(e,t){t._debugHookTypes=zn,t.dependencies===null?po!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:po}):t.dependencies._debugThenableState=po,I.H=Ec;var a=St!==null&&St.next!==null;if(mo=0,zn=q=ea=St=$e=null,ho=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Pd=!1,Sc=0,po=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||ta||(e=e.dependencies,e!==null&&ku(e)&&(ta=!0)),vc?(vc=!1,e=!0):e=!1,e&&(t=L(t)||"Unknown",TN.has(t)||Qh.has(t)||(TN.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Tm(e,t,a,n){$e=e;var r=0;do{if(Fi&&(po=null),Sc=0,Fi=!1,r>=CR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,wc=!1,ea=St=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}ho=-1,I.H=AN,i=$h(t,a,n)}while(Fi);return i}function I4(){var e=I.H,t=e.useState()[0];return t=typeof t.then=="function"?kl(t):t,e=e.useState()[0],(St!==null?St.memoizedState:null)!==e&&($e.flags|=1024),t}function jm(){var e=Jd!==0;return Jd=0,e}function Om(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&as)!==He?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Am(e){if(Pd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pd=!1}mo=0,zn=ea=St=$e=null,ho=-1,q=null,Fi=!1,Sc=Jd=0,po=null}function Ma(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ea===null?$e.memoizedState=ea=e:ea=ea.next=e,ea}function bt(){if(St===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=St.next;var t=ea===null?$e.memoizedState:ea.next;if(t!==null)ea=t,St=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.");St=e,e={memoizedState:St.memoizedState,baseState:St.baseState,baseQueue:St.baseQueue,queue:St.queue,next:null},ea===null?$e.memoizedState=ea=e:ea=ea.next=e}return ea}function $u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(e){var t=Sc;return Sc+=1,po===null&&(po=ly()),e=uy(po,e,t),t=$e,(ea===null?t.memoizedState:ea.next)===null&&(t=t.alternate,I.H=t!==null&&t.memoizedState!==null?Ph:Zh),e}function Ao(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return kl(e);if(e.$$typeof===js)return jt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Er(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(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=$u(),$e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||wc)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=iD;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function Wn(e,t){return typeof t=="function"?t(e):t}function Vm(e,t,a){var n=Ma();if(a!==void 0){var r=a(t);if(Yr){Se(!0);try{a(t)}finally{Se(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=P4.bind(null,$e,e),[n.memoizedState,e]}function ci(e){var t=bt();return Mm(t,St,e)}function Mm(e,t,a){var n=e.queue;if(n===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=a;var r=e.baseQueue,i=n.pending;if(i!==null){if(r!==null){var f=r.next;r.next=i.next,i.next=f}t.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=r=i,n.pending=null}if(i=e.baseState,r===null)e.memoizedState=i;else{t=r.next;var p=f=null,v=null,w=t,V=!1;do{var M=w.lane&-536870913;if(M!==w.lane?(Pe&M)===M:(mo&M)===M){var T=w.revertLane;if(T===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),M===zr&&(V=!0);else if((mo&T)===T){w=w.next,T===zr&&(V=!0);continue}else M={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},v===null?(p=v=M,f=i):v=v.next=M,$e.lanes|=T,er|=T;M=w.action,Yr&&a(i,M),i=w.hasEagerState?w.eagerState:a(i,M)}else T={lane:M,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},v===null?(p=v=T,f=i):v=v.next=T,$e.lanes|=M,er|=M;w=w.next}while(w!==null&&w!==t);if(v===null?f=i:v.next=p,!Ba(i,e.memoizedState)&&(ta=!0,V&&(a=Bi,a!==null)))throw a;e.memoizedState=i,e.baseState=f,e.baseQueue=v,n.lastRenderedState=i}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Ul(e){var t=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,r=a.pending,i=t.memoizedState;if(r!==null){a.pending=null;var f=r=r.next;do i=e(i,f.action),f=f.next;while(f!==r);Ba(i,t.memoizedState)||(ta=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,n]}function zm(e,t,a){var n=$e,r=Ma();if(st){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(),Ba(i,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ii=!0)),wt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Pe&127)!==0||wy(n,t,i)}return r.memoizedState=i,a={value:i,getSnapshot:t},r.queue=a,Iu(Dy.bind(null,n,a,e),[e]),n.flags|=2048,di(Mn|qa,{destroy:void 0},Ey.bind(null,n,a,i,t),null),i}function Yu(e,t,a){var n=$e,r=bt(),i=st;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();Ba(a,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ii=!0)}(f=!Ba((St||r).memoizedState,a))&&(r.memoizedState=a,ta=!0),r=r.queue;var p=Dy.bind(null,n,r,e);if(Ja(2048,qa,p,[e]),r.getSnapshot!==t||f||ea!==null&&ea.memoizedState.tag&Mn){if(n.flags|=2048,di(Mn|qa,{destroy:void 0},Ey.bind(null,n,r,a,t),null),wt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i||(mo&127)!==0||wy(n,t,a)}return a}function wy(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=$e.updateQueue,t===null?(t=$u(),$e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Ey(e,t,a,n){t.value=a,t.getSnapshot=n,Ry(t)&&_y(e)}function Dy(e,t,a){return a(function(){Ry(t)&&(ys(2,"updateSyncExternalStore()",e),_y(e))})}function Ry(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ba(e,a)}catch{return!0}}function _y(e){var t=Ra(e,2);t!==null&&Mt(t,e,2)}function Lm(e){var t=Ma();if(typeof e=="function"){var a=e;if(e=a(),Yr){Se(!0);try{a()}finally{Se(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},t}function Hm(e){e=Lm(e);var t=e.queue,a=Fy.bind(null,$e,t);return t.dispatch=a,[e.memoizedState,a]}function Bm(e){var t=Ma();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ep.bind(null,$e,!0,a),a.dispatch=t,[e,t]}function ky(e,t){var a=bt();return Uy(a,St,e,t)}function Uy(e,t,a,n){return e.baseState=a,Mm(e,St,typeof n=="function"?n:Wn)}function Cy(e,t){var a=bt();return St!==null?Uy(a,St,e,t):(a.baseState=e,[e,a.queue.dispatch])}function F4(e,t,a,n,r){if(Ju(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};I.T!==null?a(!0):i.isTransition=!1,n(i),a=t.pending,a===null?(i.next=t.pending=i,Ty(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Ty(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var i=I.T,f={};f._updatedFibers=new Set,I.T=f;try{var p=a(r,n),v=I.S;v!==null&&v(f,p),jy(e,t,p)}catch(w){$m(e,t,w)}finally{i!==null&&f.types!==null&&(i.types!==null&&i.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),i.types=f.types),I.T=i,i===null&&f._updatedFibers&&(e=f._updatedFibers.size,f._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{f=a(r,n),jy(e,t,f)}catch(w){$m(e,t,w)}}function jy(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(I.asyncTransitions++,a.then(Pu,Pu),a.then(function(n){Oy(e,t,n)},function(n){return $m(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Oy(e,t,a)}function Oy(e,t,a){t.status="fulfilled",t.value=a,Ay(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ty(e,a)))}function $m(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Ay(t),t=t.next;while(t!==n)}e.action=null}function Ay(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vy(e,t){return t}function ui(e,t){if(st){var a=wt.formState;if(a!==null){e:{var n=$e;if(st){if(Ut){t:{for(var r=Ut,i=On;r.nodeType!==8;){if(!i){r=null;break t}if(r=fn(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i===vg||i===v1?r:null}if(r){Ut=fn(r.nextSibling),n=r.data===vg;break e}}_o(n)}n=!1}n&&(t=a[0])}}return a=Ma(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vy,lastRenderedState:t},a.queue=n,a=Fy.bind(null,$e,n),n.dispatch=a,n=Lm(!1),i=ep.bind(null,$e,!1,n.queue),n=Ma(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=F4.bind(null,$e,r,i,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function qu(e){var t=bt();return My(t,St,e)}function My(e,t,a){if(t=Mm(e,t,Vy)[0],e=ci(Wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=kl(t)}catch(f){throw f===$i?Fd:f}else n=t;t=bt();var r=t.queue,i=r.dispatch;return a!==t.memoizedState&&($e.flags|=2048,di(Mn|qa,{destroy:void 0},X4.bind(null,r,a),null)),[n,i,e]}function X4(e,t){e.action=t}function Gu(e){var t=bt(),a=St;if(a!==null)return My(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=$u(),$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 Ym(e){var t=Ma();return e={current:e},t.memoizedState=e}function Dr(e,t,a,n){var r=Ma();$e.flags|=e,r.memoizedState=di(Mn|t,{destroy:void 0},a,n===void 0?null:n)}function Ja(e,t,a,n){var r=bt();n=n===void 0?null:n;var i=r.memoizedState.inst;St!==null&&n!==null&&Um(n,St.memoizedState.deps)?r.memoizedState=di(t,i,a,n):($e.flags|=e,r.memoizedState=di(Mn|t,i,a,n))}function Iu(e,t){($e.mode&as)!==He?Dr(276826112,qa,e,t):Dr(8390656,qa,e,t)}function Q4(e){$e.flags|=4;var t=$e.updateQueue;if(t===null)t=$u(),$e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function qm(e){var t=Ma(),a={impl:e};return t.memoizedState=a,function(){if((ut&ia)!==ga)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Fu(e){var t=bt().memoizedState;return Q4({ref:t,nextImpl:e}),function(){if((ut&ia)!==ga)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Gm(e,t){var a=4194308;return($e.mode&as)!==He&&(a|=134217728),Dr(a,bn,e,t)}function zy(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Im(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null;var n=4194308;($e.mode&as)!==He&&(n|=134217728),Dr(n,bn,zy.bind(null,t,e),a)}function Xu(e,t,a){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!=null?a.concat([e]):null,Ja(4,bn,zy.bind(null,t,e),a)}function Fm(e,t){return Ma().memoizedState=[e,t===void 0?null:t],e}function Qu(e,t){var a=bt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Um(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Xm(e,t){var a=Ma();t=t===void 0?null:t;var n=e();if(Yr){Se(!0);try{e()}finally{Se(!1)}}return a.memoizedState=[n,t],n}function Zu(e,t){var a=bt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Um(t,n[1]))return n[0];if(n=e(),Yr){Se(!0);try{e()}finally{Se(!1)}}return a.memoizedState=[n,t],n}function Qm(e,t){var a=Ma();return Zm(a,e,t)}function Ly(e,t){var a=bt();return By(a,St.memoizedState,e,t)}function Hy(e,t){var a=bt();return St===null?Zm(a,e,t):By(a,St.memoizedState,e,t)}function Zm(e,t,a){return a===void 0||(mo&1073741824)!==0&&(Pe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=$v(),$e.lanes|=e,er|=e,a)}function By(e,t,a,n){return Ba(a,t)?a:qi.current!==null?(e=Zm(e,a,n),Ba(e,t)||(ta=!0),e):(mo&42)===0||(mo&1073741824)!==0&&(Pe&261930)===0?(ta=!0,e.memoizedState=a):(e=$v(),$e.lanes|=e,er|=e,t)}function Pu(){I.asyncTransitions--}function $y(e,t,a,n,r){var i=gt.p;gt.p=i!==0&&i<Ms?i:Ms;var f=I.T,p={};p._updatedFibers=new Set,I.T=p,ep(e,!1,t,a);try{var v=r(),w=I.S;if(w!==null&&w(p,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){I.asyncTransitions++,v.then(Pu,Pu);var V=q4(v,n);Cl(e,t,V,dn(e))}else Cl(e,t,n,dn(e))}catch(M){Cl(e,t,{then:function(){},status:"rejected",reason:M},dn(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),I.T=f,f===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Pm(e,t,a,n){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=Yy(e).queue;$4(e),$y(e,r,t,Wr,a===null?y:function(){return qy(e),a(n)})}function Yy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Wr,baseState:Wr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:Wr},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qy(e){I.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Yy(e);t.next===null&&(t=e.alternate.memoizedState),Cl(e,t.next.queue,{},dn(e))}function Jm(){var e=Lm(!1);return e=$y.bind(null,$e,e.queue,!0,!1),Ma().memoizedState=e,[!1,e]}function Gy(){var e=ci(Wn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:kl(e),t]}function Iy(){var e=Ul(Wn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:kl(e),t]}function Rr(){return jt(Hc)}function Km(){var e=Ma(),t=wt.identifierPrefix;if(st){var a=io,n=ro;a=(n&~(1<<32-za(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Jd++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=UR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Wm(){return Ma().memoizedState=Z4.bind(null,$e)}function Z4(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var n=dn(a),r=Co(n),i=To(a,r,n);i!==null&&(ys(n,"refresh()",e),Mt(i,a,n),Dl(i,a,n)),e=vm(),t!=null&&i!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}a=a.return}}function P4(e,t,a){var n=arguments;typeof n[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),n=dn(e);var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Ju(e)?Xy(t,r):(r=im(e,t,r,n),r!==null&&(ys(n,"dispatch()",e),Mt(r,e,n),Qy(r,t,n)))}function Fy(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=dn(e),Cl(e,t,a,n)&&ys(n,"setState()",e)}function Cl(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ju(e))Xy(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null)){var f=I.H;I.H=ss;try{var p=t.lastRenderedState,v=i(p,a);if(r.hasEagerState=!0,r.eagerState=v,Ba(v,p))return wu(e,t,r,0),wt===null&&Su(),!1}catch{}finally{I.H=f}}if(a=im(e,t,r,n),a!==null)return Mt(a,e,n),Qy(a,t,n),!0}return!1}function ep(e,t,a,n){if(I.T===null&&zr===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),n={lane:2,revertLane:Cp(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ju(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=im(e,a,n,2),t!==null&&(ys(2,"setOptimistic()",e),Mt(t,e,2))}function Ju(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function Xy(e,t){Fi=Pd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Qy(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ds(e,a)}}function tp(e){if(e!==null&&typeof e!="function"){var t=String(e);IN.has(t)||(IN.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function ap(e,t,a,n){var r=e.memoizedState,i=a(n,r);if(e.mode&ka){Se(!0);try{i=a(n,r)}finally{Se(!1)}}i===void 0&&(t=_(t)||"Component",$N.has(t)||($N.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),r=i==null?r:et({},r,i),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}function Zy(e,t,a,n,r,i,f){var p=e.stateNode;if(typeof p.shouldComponentUpdate=="function"){if(a=p.shouldComponentUpdate(n,i,f),e.mode&ka){Se(!0);try{a=p.shouldComponentUpdate(n,i,f)}finally{Se(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",_(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!vl(a,n)||!vl(r,i):!0}function Py(e,t,a,n){var r=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==r&&(e=L(e)||"Component",MN.has(e)||(MN.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Jh.enqueueReplaceState(t,t.state,null))}function _r(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=et({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function Jy(e){kh(e),console.warn(`%s
121
+
122
+ %s
123
+ `,Xi?"An error occurred in the <"+Xi+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
124
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Ky(e){var t=Xi?"The above error occurred in the <"+Xi+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Kh||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var n=e.environmentName;e=[`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,e,t,a].slice(0),typeof e[0]=="string"?e.splice(0,1,_1+" "+e[0],k1,wf+n+wf,U1):e.splice(0,0,_1,k1,wf+n+wf,U1),e.unshift(console),n=PR.apply(console.error,e),n()}else console.error(`%o
130
+
131
+ %s
132
+
133
+ %s
134
+ `,e,t,a)}function Wy(e){kh(e)}function Ku(e,t){try{Xi=t.source?L(t.source):null,Kh=null;var a=t.value;if(I.actQueue!==null)I.thrownErrors.push(a);else{var n=e.onUncaughtError;n(a,{componentStack:t.stack})}}catch(r){setTimeout(function(){throw r})}}function ev(e,t,a){try{Xi=a.source?L(a.source):null,Kh=L(t);var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function np(e,t,a){return a=Co(a),a.tag=Ih,a.payload={element:null},a.callback=function(){he(t.source,Ku,e,t)},a}function sp(e){return e=Co(e),e.tag=Ih,e}function op(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var i=n.value;e.payload=function(){return r(i)},e.callback=function(){Xb(a),he(n.source,ev,t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Xb(a),he(n.source,ev,t,a,n),typeof r!="function"&&(ar===null?ar=new Set([this]):ar.add(this)),DR(this,n),typeof r=="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",L(a)||"Unknown")})}function J4(e,t,a,n,r){if(a.flags|=32768,Vs&&Ll(e,r),n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&ii(t,a,r,!0),st&&(Ls=!0),a=gn.current,a!==null){switch(a.tag){case 31:case 13:return Vn===null?id():a.alternate===null&&Vt===bo&&(Vt=ef),a.flags&=-257,a.flags|=65536,a.lanes=r,n===Xd?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Rp(e,n,r)),!1;case 22:return a.flags|=65536,n===Xd?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Rp(e,n,r)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return Rp(e,n,r),id(),!1}if(st)return Ls=!0,t=gn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==Ah&&xl(rn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:n}),a))):(n!==Ah&&xl(rn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:n}),a)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=rn(n,a),r=np(e.stateNode,n,r),Lu(e,r),Vt!==Ko&&(Vt=qr)),!1;var i=rn(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),Vt!==Ko&&(Vt=qr),t===null)return!0;n=rn(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=np(a.stateNode,n,e),Lu(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ar===null||!ar.has(i))))return a.flags|=65536,r&=-r,a.lanes|=r,r=sp(r),op(r,e,a,n),Lu(a,r),!1}a=a.return}while(a!==null);return!1}function va(e,t,a,n){t.child=e===null?DN(t,null,a,n):$r(t,e.child,a,n)}function tv(e,t,a,n,r){a=a.render;var i=t.ref;if("ref"in n){var f={};for(var p in n)p!=="ref"&&(f[p]=n[p])}else f=n;return Sr(t),n=Cm(e,t,a,f,i,r),p=jm(),e!==null&&!ta?(Om(e,t,r),Ws(e,t,r)):(st&&p&&mm(t),t.flags|=1,va(e,t,n,r),t.child)}function av(e,t,a,n,r){if(e===null){var i=a.type;return typeof i=="function"&&!cm(i)&&i.defaultProps===void 0&&a.compare===null?(a=yr(i),t.tag=15,t.type=a,ip(t,i),nv(e,t,a,n,r)):(e=um(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!mp(e,r)){var f=i.memoizedProps;if(a=a.compare,a=a!==null?a:vl,a(f,n)&&e.ref===t.ref)return Ws(e,t,r)}return t.flags|=1,e=Zs(i,n),e.ref=t.ref,e.return=t,t.child=e}function nv(e,t,a,n,r){if(e!==null){var i=e.memoizedProps;if(vl(i,n)&&e.ref===t.ref&&t.type===e.type)if(ta=!1,t.pendingProps=n=i,mp(e,r))(e.flags&131072)!==0&&(ta=!0);else return t.lanes=e.lanes,Ws(e,t,r)}return rp(e,t,a,n,r)}function sv(e,t,a,n){var r=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:oc,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~i}else n=0,t.child=null;return ov(e,t,i,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ju(t,i!==null?i.cachePool:null),i!==null?xy(t,i):Rm(t),Ny(t);else return n=t.lanes=536870912,ov(e,t,i!==null?i.baseLanes|a:a,a,n)}else i!==null?(ju(t,i.cachePool),xy(t,i),Oo(t),t.memoizedState=null):(e!==null&&ju(t,null),Rm(t),Oo(t));return va(e,t,r,a),t.child}function Tl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:oc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ov(e,t,a,n,r){var i=Sm();return i=i===null?null:{parent:Kt._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&ju(t,null),Rm(t),Ny(t),e!==null&&ii(e,t,n,!0),t.childLanes=r,null}function Wu(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
135
+ - <Activity %s>
136
+ + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=td({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function rv(e,t,a){return $r(t,e.child,null,a),e=Wu(t,t.pendingProps),e.flags|=2,un(t),t.memoizedState=null,e}function K4(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(st){if(n.mode==="hidden")return e=Wu(t,n),t.lanes=536870912,Tl(null,e);if(km(t),(e=Ut)?(a=T0(e,On),a=a!==null&&a.data===Zr?a:null,a!==null&&(n={dehydrated:a,treeContext:Kb(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=Pb(a),n.return=t,t.child=n,Sa=t,Ut=null)):a=null,a===null)throw Ru(t,e),_o(t);return t.lanes=536870912,null}return Wu(t,n)}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(km(t),r)if(t.flags&256)t.flags&=-257,t=rv(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(ey(),(a&536870912)!==0&&rd(t),ta||ii(e,t,a,!1),r=(a&e.childLanes)!==0,ta||r){if(n=wt,n!==null&&(f=In(n,a),f!==0&&f!==i.retryLane))throw i.retryLane=f,Ra(e,f),Mt(n,e,f),Wh;id(),t=rv(e,t,a)}else e=i.treeContext,Ut=fn(f.nextSibling),Sa=t,st=!0,Fo=null,Ls=!1,hn=null,On=!1,e!==null&&Wb(t,e),t=Wu(t,n),t.flags|=4096;return t}return i=e.child,n={mode:n.mode,children:n.children},(a&536870912)!==0&&(a&e.lanes)!==0&&rd(t),e=Zs(i,n),e.ref=t.ref,t.child=e,e.return=t,e}function ed(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==a)&&(t.flags|=4194816)}}function rp(e,t,a,n,r){if(a.prototype&&typeof a.prototype.render=="function"){var i=_(a)||"Unknown";FN[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),FN[i]=!0)}return t.mode&ka&&ns.recordLegacyContextWarning(t,null),e===null&&(ip(t,t.type),a.contextTypes&&(i=_(a)||"Unknown",QN[i]||(QN[i]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",i)))),Sr(t),a=Cm(e,t,a,n,void 0,r),n=jm(),e!==null&&!ta?(Om(e,t,r),Ws(e,t,r)):(st&&n&&mm(t),t.flags|=1,va(e,t,a,r),t.child)}function iv(e,t,a,n,r,i){return Sr(t),ho=-1,wc=e!==null&&e.type!==t.type,t.updateQueue=null,a=Tm(t,n,a,r),Sy(e,t),n=jm(),e!==null&&!ta?(Om(e,t,i),Ws(e,t,i)):(st&&n&&mm(t),t.flags|=1,va(e,t,a,i),t.child)}function lv(e,t,a,n,r){switch(h(t)){case!1:var i=t.stateNode,f=new t.type(t.memoizedProps,i.context).state;i.updater.enqueueSetState(i,f,null);break;case!0:t.flags|=128,t.flags|=65536,i=Error("Simulated error coming from DevTools");var p=r&-r;if(t.lanes|=p,f=wt,f===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=sp(p),op(p,f,t,rn(i,t)),Lu(t,p)}if(Sr(t),t.stateNode===null){if(f=Io,i=a.contextType,"contextType"in a&&i!==null&&(i===void 0||i.$$typeof!==js)&&!GN.has(a)&&(GN.add(a),p=i===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof i!="object"?" However, it is set to a "+typeof i+".":i.$$typeof===eh?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(i).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",_(a)||"Component",p)),typeof i=="object"&&i!==null&&(f=jt(i)),i=new a(n,f),t.mode&ka){Se(!0);try{i=new a(n,f)}finally{Se(!1)}}if(f=t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Jh,t.stateNode=i,i._reactInternals=t,i._reactInternalInstance=VN,typeof a.getDerivedStateFromProps=="function"&&f===null&&(f=_(a)||"Component",zN.has(f)||(zN.add(f),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",f,i.state===null?"null":"undefined",f))),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"){var v=p=f=null;if(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0?f="componentWillMount":typeof i.UNSAFE_componentWillMount=="function"&&(f="UNSAFE_componentWillMount"),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0?p="componentWillReceiveProps":typeof i.UNSAFE_componentWillReceiveProps=="function"&&(p="UNSAFE_componentWillReceiveProps"),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0?v="componentWillUpdate":typeof i.UNSAFE_componentWillUpdate=="function"&&(v="UNSAFE_componentWillUpdate"),f!==null||p!==null||v!==null){i=_(a)||"Component";var w=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";HN.has(i)||(HN.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,w,f!==null?`
142
+ `+f:"",p!==null?`
143
+ `+p:"",v!==null?`
144
+ `+v:""))}}i=t.stateNode,f=_(a)||"Component",i.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",f):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",f)),!i.getInitialState||i.getInitialState.isReactClassApproved||i.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",f),i.getDefaultProps&&!i.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",f),i.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",f),a.childContextTypes&&!qN.has(a)&&(qN.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&&!YN.has(a)&&(YN.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"||LN.has(a)||(LN.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"||oa(p))&&console.error("%s.state: must be set to an object or null",f),typeof i.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",f),i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},Em(t),f=a.contextType,i.context=typeof f=="object"&&f!==null?jt(f):Io,i.state===n&&(f=_(a)||"Component",BN.has(f)||(BN.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&ka&&ns.recordLegacyContextWarning(t,i),ns.recordUnsafeLifecycleWarnings(t,i),i.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(ap(t,a,f,n),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",L(t)||"Component"),Jh.enqueueReplaceState(i,i.state,null)),_l(t,n,i,r),Rl(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==He&&(t.flags|=134217728),i=!0}else if(e===null){i=t.stateNode;var V=t.memoizedProps;p=_r(a,V),i.props=p;var M=i.context;v=a.contextType,f=Io,typeof v=="object"&&v!==null&&(f=jt(v)),w=a.getDerivedStateFromProps,v=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function",V=t.pendingProps!==V,v||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(V||M!==f)&&Py(t,i,n,f),Jo=!1;var T=t.memoizedState;i.state=T,_l(t,n,i,r),Rl(),M=t.memoizedState,V||T!==M||Jo?(typeof w=="function"&&(ap(t,a,w,n),M=t.memoizedState),(p=Jo||Zy(t,a,p,n,T,M,f))?(v||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==He&&(t.flags|=134217728)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==He&&(t.flags|=134217728),t.memoizedProps=n,t.memoizedState=M),i.props=n,i.state=M,i.context=f,i=p):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&as)!==He&&(t.flags|=134217728),i=!1)}else{i=t.stateNode,Dm(e,t),f=t.memoizedProps,v=_r(a,f),i.props=v,w=t.pendingProps,T=i.context,M=a.contextType,p=Io,typeof M=="object"&&M!==null&&(p=jt(M)),V=a.getDerivedStateFromProps,(M=typeof V=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==w||T!==p)&&Py(t,i,n,p),Jo=!1,T=t.memoizedState,i.state=T,_l(t,n,i,r),Rl();var $=t.memoizedState;f!==w||T!==$||Jo||e!==null&&e.dependencies!==null&&ku(e.dependencies)?(typeof V=="function"&&(ap(t,a,V,n),$=t.memoizedState),(v=Jo||Zy(t,a,v,n,T,$,p)||e!==null&&e.dependencies!==null&&ku(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,$,p),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,$,p)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=$),i.props=n,i.state=$,i.context=p,i=v):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),i=!1)}if(p=i,ed(e,t),f=(t.flags&128)!==0,p||f){if(p=t.stateNode,xt(t),f&&typeof a.getDerivedStateFromError!="function")a=null,$a=-1;else if(a=dN(p),t.mode&ka){Se(!0);try{dN(p)}finally{Se(!1)}}t.flags|=1,e!==null&&f?(t.child=$r(t,e.child,null,r),t.child=$r(t,null,a,r)):va(e,t,a,r),t.memoizedState=p.state,e=t.child}else e=Ws(e,t,r);return r=t.stateNode,i&&r.props!==n&&(Qi||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",L(t)||"a component"),Qi=!0),e}function cv(e,t,a,n){return Nr(),t.flags|=256,va(e,t,a,n),t.child}function ip(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
145
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=_(t)||"Unknown",ZN[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),ZN[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=_(t)||"Unknown",XN[t]||(console.error("%s: Function components do not support contextType.",t),XN[t]=!0))}function lp(e){return{baseLanes:e,cachePool:iy()}}function cp(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=an),e}function uv(e,t,a){var n,r=t.pendingProps;d(t)&&(t.flags|=128);var i=!1,f=(t.flags&128)!==0;if((n=f)||(n=e!==null&&e.memoizedState===null?!1:(Ft.current&Nc)!==0),n&&(i=!0,t.flags&=-129),n=(t.flags&32)!==0,t.flags&=-33,e===null){if(st){if(i?jo(t):Oo(t),(e=Ut)?(a=T0(e,On),a=a!==null&&a.data!==Zr?a:null,a!==null&&(n={dehydrated:a,treeContext:Kb(),retryLane:536870912,hydrationErrors:null},t.memoizedState=n,n=Pb(a),n.return=t,t.child=n,Sa=t,Ut=null)):a=null,a===null)throw Ru(t,e),_o(t);return Yp(a)?t.lanes=32:t.lanes=536870912,null}var p=r.children;if(r=r.fallback,i){Oo(t);var v=t.mode;return p=td({mode:"hidden",children:p},v),r=vr(r,v,a,null),p.return=t,r.return=t,p.sibling=r,t.child=p,r=t.child,r.memoizedState=lp(a),r.childLanes=cp(e,n,a),t.memoizedState=eg,Tl(null,r)}return jo(t),up(t,p)}var w=e.memoizedState;if(w!==null){var V=w.dehydrated;if(V!==null){if(f)t.flags&256?(jo(t),t.flags&=-257,t=dp(e,t,a)):t.memoizedState!==null?(Oo(t),t.child=e.child,t.flags|=128,t=null):(Oo(t),p=r.fallback,v=t.mode,r=td({mode:"visible",children:r.children},v),p=vr(p,v,a,null),p.flags|=2,r.return=t,p.return=t,r.sibling=p,t.child=r,$r(t,e.child,null,a),r=t.child,r.memoizedState=lp(a),r.childLanes=cp(e,n,a),t.memoizedState=eg,t=Tl(null,r));else if(jo(t),ey(),(a&536870912)!==0&&rd(t),Yp(V)){if(n=V.nextSibling&&V.nextSibling.dataset,n){p=n.dgst;var M=n.msg;v=n.stck;var T=n.cstck}i=M,n=p,r=v,V=T,p=i,v=V,p=Error(p||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),p.stack=r||"",p.digest=n,n=v===void 0?null:v,r={value:p,source:null,stack:n},typeof n=="string"&&Oh.set(p,r),xl(r),t=dp(e,t,a)}else if(ta||ii(e,t,a,!1),n=(a&e.childLanes)!==0,ta||n){if(n=wt,n!==null&&(r=In(n,a),r!==0&&r!==w.retryLane))throw w.retryLane=r,Ra(e,r),Mt(n,e,r),Wh;$p(V)||id(),t=dp(e,t,a)}else $p(V)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Ut=fn(V.nextSibling),Sa=t,st=!0,Fo=null,Ls=!1,hn=null,On=!1,e!==null&&Wb(t,e),t=up(t,r.children),t.flags|=4096);return t}}return i?(Oo(t),p=r.fallback,v=t.mode,T=e.child,V=T.sibling,r=Zs(T,{mode:"hidden",children:r.children}),r.subtreeFlags=T.subtreeFlags&65011712,V!==null?p=Zs(V,p):(p=vr(p,v,a,null),p.flags|=2),p.return=t,r.return=t,r.sibling=p,t.child=r,Tl(null,r),r=t.child,p=e.child.memoizedState,p===null?p=lp(a):(v=p.cachePool,v!==null?(T=Kt._currentValue,v=v.parent!==T?{parent:T,pool:T}:v):v=iy(),p={baseLanes:p.baseLanes|a,cachePool:v}),r.memoizedState=p,r.childLanes=cp(e,n,a),t.memoizedState=eg,Tl(e.child,r)):(w!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&rd(t),jo(t),a=e.child,e=a.sibling,a=Zs(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a)}function up(e,t){return t=td({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function td(e,t){return e=S(22,e,null,t),e.lanes=0,e}function dp(e,t,a){return $r(t,e.child,null,a),e=up(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dv(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),bm(e.return,t,a)}function fp(e,t,a,n,r,i){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:i}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=r,f.treeForkCount=i)}function fv(e,t,a){var n=t.pendingProps,r=n.revealOrder,i=n.tail,f=n.children,p=Ft.current;if((n=(p&Nc)!==0)?(p=p&Gi|Nc,t.flags|=128):p&=Gi,F(Ft,p,t),p=r??"null",r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!PN[p])if(PN[p]=!0,r==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(r==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);p=i??"null",Wd[p]||(i==null?(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&(Wd[p]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):i!=="visible"&&i!=="collapsed"&&i!=="hidden"?(Wd[p]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',i)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(Wd[p]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',i)));e:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&f!==void 0&&f!==null&&f!==!1)if(oa(f)){for(p=0;p<f.length;p++)if(!by(f[p],p))break e}else if(p=ae(f),typeof p=="function"){if(p=p.call(f))for(var v=p.next(),w=0;!v.done;v=p.next()){if(!by(v.value,w))break e;w++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r);if(va(e,t,f,a),st?(Ro(),f=rc):f=0,!n&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dv(e,a,t);else if(e.tag===19)dv(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Hu(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),fp(t,!1,r,a,i,f);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Hu(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}fp(t,!0,a,null,i,f);break;case"together":fp(t,!1,null,null,void 0,f);break;default:t.memoizedState=null}return t.child}function Ws(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),$a=-1,er|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ii(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,a=Zs(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Zs(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function mp(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ku(e)))}function W4(e,t,a){switch(t.tag){case 3:Ne(t,t.stateNode.containerInfo),ko(t,Kt,e.memoizedState.cache),Nr();break;case 27:case 5:be(t);break;case 4:Ne(t,t.stateNode.containerInfo);break;case 10:ko(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var n=t.stateNode;n.effectDuration=-0,n.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,km(t),null;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(jo(t),t.flags|=128,null):(a&t.child.childLanes)!==0?uv(e,t,a):(jo(t),e=Ws(e,t,a),e!==null?e.sibling:null);jo(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(ii(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return fv(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),F(Ft,Ft.current,t),n)break;return null;case 22:return t.lanes=0,sv(e,t,a,t.pendingProps);case 24:ko(t,Kt,e.memoizedState.cache)}return Ws(e,t,a)}function pp(e,t,a){if(t._debugNeedsRemount&&e!==null){a=um(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var n=t.return;if(n===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===n.child)n.child=a;else{var r=n.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=a}return t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)ta=!0;else{if(!mp(e,a)&&(t.flags&128)===0)return ta=!1,W4(e,t,a);ta=(e.flags&131072)!==0}else ta=!1,(n=st)&&(Ro(),n=(t.flags&1048576)!==0),n&&(n=t.index,Ro(),Jb(t,rc,n));switch(t.lanes=0,t.tag){case 16:e:if(n=t.pendingProps,e=Uo(t.elementType),t.type=e,typeof e=="function")cm(e)?(n=_r(e,n),t.tag=1,t.type=e=yr(e),t=lv(null,t,e,n,a)):(t.tag=0,ip(t,e),t.type=e=yr(e),t=rp(null,t,e,n,a));else{if(e!=null){if(r=e.$$typeof,r===Xl){t.tag=11,t.type=e=lm(e),t=tv(null,t,e,n,a);break e}else if(r===Nd){t.tag=14,t=av(null,t,e,n,a);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===mn&&(t=" Did you wrap a component in React.lazy() more than once?"),a=_(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return rp(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=_r(n,t.pendingProps),lv(e,t,n,r,a);case 3:e:{if(Ne(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");n=t.pendingProps;var i=t.memoizedState;r=i.element,Dm(e,t),_l(t,n,null,a);var f=t.memoizedState;if(n=f.cache,ko(t,Kt,n),n!==i.cache&&ym(t,[Kt],a,!0),Rl(),n=f.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=cv(e,t,n,a);break e}else if(n!==r){r=rn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),xl(r),t=cv(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,Ut=fn(e.firstChild),Sa=t,st=!0,Fo=null,Ls=!1,hn=null,On=!0,a=DN(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Nr(),n===r){t=Ws(e,t,a);break e}va(e,t,n,a)}t=t.child}return t;case 26:return ed(e,t),e===null?(a=z0(t.type,null,t.pendingProps,null))?t.memoizedState=a:st||(a=t.type,e=t.pendingProps,n=le(Ho.current),n=dd(n).createElement(a),n[Na]=t,n[La]=e,xa(n,a,e),De(n),t.stateNode=n):t.memoizedState=z0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&st&&(n=le(Ho.current),r=ue(),n=t.stateNode=V0(t.type,t.pendingProps,n,r,!1),Ls||(r=w0(n,t.type,t.pendingProps,r),r!==null&&(xr(t,0).serverProps=r)),Sa=t,On=!0,r=Ut,zo(t.type)?(wg=r,Ut=fn(n.firstChild)):Ut=r),va(e,t,t.pendingProps.children,a),ed(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&st&&(i=ue(),n=Wf(t.type,i.ancestorInfo),r=Ut,(f=!r)||(f=$E(r,t.type,t.pendingProps,On),f!==null?(t.stateNode=f,Ls||(i=w0(f,t.type,t.pendingProps,i),i!==null&&(xr(t,0).serverProps=i)),Sa=t,Ut=fn(f.firstChild),On=!1,i=!0):i=!1,f=!i),f&&(n&&Ru(t,r),_o(t))),be(t),r=t.type,i=t.pendingProps,f=e!==null?e.memoizedProps:null,n=i.children,Hp(r,i)?n=null:f!==null&&Hp(r,f)&&(t.flags|=32),t.memoizedState!==null&&(r=Cm(e,t,I4,null,null,a),Hc._currentValue=r),ed(e,t),va(e,t,n,a),t.child;case 6:return e===null&&st&&(a=t.pendingProps,e=ue(),n=e.ancestorInfo.current,a=n!=null?gu(a,n.tag,e.ancestorInfo.implicitRootScope):!0,e=Ut,(n=!e)||(n=YE(e,t.pendingProps,On),n!==null?(t.stateNode=n,Sa=t,Ut=null,n=!0):n=!1,n=!n),n&&(a&&Ru(t,e),_o(t))),null;case 13:return uv(e,t,a);case 4:return Ne(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=$r(t,null,n,a):va(e,t,n,a),t.child;case 11:return tv(e,t,t.type,t.pendingProps,a);case 7:return va(e,t,t.pendingProps,a),t.child;case 8:return va(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,va(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.type,r=t.pendingProps,i=r.value,"value"in r||JN||(JN=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ko(t,n,i),va(e,t,r.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,typeof n!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Sr(t),r=jt(r),n=$h(n,r,void 0),t.flags|=1,va(e,t,n,a),t.child;case 14:return av(e,t,t.type,t.pendingProps,a);case 15:return nv(e,t,t.type,t.pendingProps,a);case 19:return fv(e,t,a);case 31:return K4(e,t,a);case 22:return sv(e,t,a,t.pendingProps);case 24:return Sr(t),n=jt(Kt),e===null?(r=Sm(),r===null&&(r=wt,i=vm(),r.pooledCache=i,wr(i),i!==null&&(r.pooledCacheLanes|=a),r=i),t.memoizedState={parent:n,cache:r},Em(t),ko(t,Kt,r)):((e.lanes&a)!==0&&(Dm(e,t),_l(t,null,null,a),Rl()),r=e.memoizedState,i=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),ko(t,Kt,n)):(n=i.cache,ko(t,Kt,n),n!==r.cache&&ym(t,[Kt],a,!0))),va(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function eo(e){e.flags|=4}function hp(e,t,a,n,r){if((t=(e.mode&xR)!==He)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Iv())e.flags|=8192;else throw Br=Xd,qh}else e.flags&=-16777217}function mv(e,t){if(t.type!=="stylesheet"||(t.state.loading&Ln)!==Kr)e.flags&=-16777217;else if(e.flags|=16777216,!Y0(t))if(Iv())e.flags|=8192;else throw Br=Xd,qh}function ad(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xa():536870912,e.lanes|=t,Fr|=t)}function jl(e,t){if(!st)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 Et(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)if((e.mode&Qe)!==He){for(var r=e.selfBaseDuration,i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,r+=i.treeBaseDuration,i=i.sibling;e.treeBaseDuration=r}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&Qe)!==He){r=e.actualDuration,i=e.selfBaseDuration;for(var f=e.child;f!==null;)a|=f.lanes|f.childLanes,n|=f.subtreeFlags,n|=f.flags,r+=f.actualDuration,i+=f.treeBaseDuration,f=f.sibling;e.actualDuration=r,e.treeBaseDuration=i}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function eE(e,t,a){var n=t.pendingProps;switch(pm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(t),null;case 1:return Et(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Js(Kt,t),K(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ri(t)?(gm(),eo(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hm())),Et(t),null;case 26:var r=t.type,i=t.memoizedState;return e===null?(eo(t),i!==null?(Et(t),mv(t,i)):(Et(t),hp(t,r,null,n,a))):i?i!==e.memoizedState?(eo(t),Et(t),mv(t,i)):(Et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&eo(t),Et(t),hp(t,r,e,n,a)),null;case 27:if(P(t),a=le(Ho.current),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&eo(t);else{if(!n){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Et(t),null}e=ue(),ri(t)?ty(t):(e=V0(r,n,a,e,!0),t.stateNode=e,eo(t))}return Et(t),null;case 5:if(P(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&eo(t);else{if(!n){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Et(t),null}var f=ue();if(ri(t))ty(t);else{switch(i=le(Ho.current),Wf(r,f.ancestorInfo),f=f.context,i=dd(i),f){case al:i=i.createElementNS(Ri,r);break;case xf:i=i.createElementNS(kd,r);break;default:switch(r){case"svg":i=i.createElementNS(Ri,r);break;case"math":i=i.createElementNS(kd,r);break;case"script":i=i.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?i.createElement(r,{is:n.is}):i.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(i)!=="[object HTMLUnknownElement]"||ts.call(N1,r)||(N1[r]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)))}}i[Na]=t,i[La]=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(xa(i,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&eo(t)}}return Et(t),hp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&eo(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=le(Ho.current),a=ue(),ri(t)){if(e=t.stateNode,a=t.memoizedProps,r=!Ls,n=null,i=Sa,i!==null)switch(i.tag){case 3:r&&(r=O0(e,a,n),r!==null&&(xr(t,0).serverProps=r));break;case 27:case 5:n=i.memoizedProps,r&&(r=O0(e,a,n),r!==null&&(xr(t,0).serverProps=r))}e[Na]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||y0(e.nodeValue,a)),e||_o(t,!0)}else r=a.ancestorInfo.current,r!=null&&gu(n,r.tag,a.ancestorInfo.implicitRootScope),e=dd(e).createTextNode(n),e[Na]=t,t.stateNode=e}return Et(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=ri(t),a!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Na]=t,Et(t),(t.mode&Qe)!==He&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else gm(),Nr(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Et(t),(t.mode&Qe)!==He&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=hm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(un(t),t):(un(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Et(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=n,i=ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");i[Na]=t,Et(t),(t.mode&Qe)!==He&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration))}else gm(),Nr(),(t.flags&128)===0&&(r=t.memoizedState=null),t.flags|=4,Et(t),(t.mode&Qe)!==He&&r!==null&&(r=t.child,r!==null&&(t.treeBaseDuration-=r.treeBaseDuration));r=!1}else r=hm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(un(t),t):(un(t),null)}return un(t),(t.flags&128)!==0?(t.lanes=a,(t.mode&Qe)!==He&&wl(t),t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ad(t,t.updateQueue),Et(t),(t.mode&Qe)!==He&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return K(t),e===null&&jp(t.stateNode.containerInfo),Et(t),null;case 10:return Js(t.type,t),Et(t),null;case 19:if(ee(Ft,t),n=t.memoizedState,n===null)return Et(t),null;if(r=(t.flags&128)!==0,i=n.rendering,i===null)if(r)jl(n,!1);else{if(Vt!==bo||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Hu(e),i!==null){for(t.flags|=128,jl(n,!1),e=i.updateQueue,t.updateQueue=e,ad(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Zb(a,e),a=a.sibling;return F(Ft,Ft.current&Gi|Nc,t),st&&Ps(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ma()>rf&&(t.flags|=128,r=!0,jl(n,!1),t.lanes=4194304)}else{if(!r)if(e=Hu(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ad(t,e),jl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!st)return Et(t),null}else 2*ma()-n.renderingStartTime>rf&&a!==536870912&&(t.flags|=128,r=!0,jl(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ma(),e.sibling=null,a=Ft.current,a=r?a&Gi|Nc:a&Gi,F(Ft,a,t),st&&Ps(t,n.treeForkCount),e):(Et(t),null);case 22:case 23:return un(t),_m(t),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),a=t.updateQueue,a!==null&&ad(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&ee(Lr,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Js(Kt,t),Et(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function tE(e,t){switch(pm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Qe)!==He&&wl(t),t):null;case 3:return Js(Kt,t),K(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return P(t),null;case 31:if(t.memoizedState!==null){if(un(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Qe)!==He&&wl(t),t):null;case 13:if(un(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Qe)!==He&&wl(t),t):null;case 19:return ee(Ft,t),null;case 4:return K(t),null;case 10:return Js(t.type,t),null;case 22:case 23:return un(t),_m(t),e!==null&&ee(Lr,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Qe)!==He&&wl(t),t):null;case 24:return Js(Kt,t),null;case 25:return null;default:return null}}function pv(e,t){switch(pm(t),t.tag){case 3:Js(Kt,t),K(t);break;case 26:case 27:case 5:P(t);break;case 4:K(t);break;case 31:t.memoizedState!==null&&un(t);break;case 13:un(t);break;case 19:ee(Ft,t);break;case 10:Js(t.type,t);break;case 22:case 23:un(t),_m(t),e!==null&&ee(Lr,t);break;case 24:Js(Kt,t)}}function Ds(e){return(e.mode&Qe)!==He}function hv(e,t){Ds(e)?(Es(),Ol(t,e),ws()):Ol(t,e)}function gp(e,t,a){Ds(e)?(Es(),fi(a,e,t),ws()):fi(a,e,t)}function Ol(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e&&(n=void 0,(e&Ya)!==Zd&&(Wi=!0),n=he(t,RR,a),(e&Ya)!==Zd&&(Wi=!1),n!==void 0&&typeof n!="function")){var i=void 0;i=(a.tag&bn)!==0?"useLayoutEffect":(a.tag&Ya)!==0?"useInsertionEffect":"useEffect";var f=void 0;f=n===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof n.then=="function"?`
146
+
147
+ It looks like you wrote `+i+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
148
+
149
+ `+i+`(() => {
150
+ async function fetchData() {
151
+ // You can await here
152
+ const response = await MyAPI.getData(someId);
153
+ // ...
154
+ }
155
+ fetchData();
156
+ }, [someId]); // Or [] if effect doesn't need props or state
157
+
158
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+n,he(t,function(p,v){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,v)},i,f)}a=a.next}while(a!==r)}}catch(p){ht(t,t.return,p)}}function fi(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){var f=n.inst,p=f.destroy;p!==void 0&&(f.destroy=void 0,(e&Ya)!==Zd&&(Wi=!0),r=t,he(r,_R,r,a,p),(e&Ya)!==Zd&&(Wi=!1))}n=n.next}while(n!==i)}}catch(v){ht(t,t.return,v)}}function gv(e,t){Ds(e)?(Es(),Ol(t,e),ws()):Ol(t,e)}function bp(e,t,a){Ds(e)?(Es(),fi(a,e,t),ws()):fi(a,e,t)}function bv(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.",L(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.",L(e)||"instance"));try{he(e,vy,t,a)}catch(n){ht(e,e.return,n)}}}function aE(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function nE(e,t){var a=t.memoizedProps,n=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Qi||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(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.",L(e)||"instance"));try{var r=_r(e.type,a),i=he(e,aE,t,r,n);a=KN,i!==void 0||a.has(e.type)||(a.add(e.type),he(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",L(e))})),t.__reactInternalSnapshotBeforeUpdate=i}catch(f){ht(e,e.return,f)}}function yv(e,t,a){a.props=_r(e.type,e.memoizedProps),a.state=e.memoizedState,Ds(e)?(Es(),he(e,bN,e,t,a),ws()):he(e,bN,e,t,a)}function sE(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t=="function")if(Ds(e))try{Es(),e.refCleanup=t(a)}finally{ws()}else e.refCleanup=t(a);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",L(e)),t.current=a}}function Al(e,t){try{he(e,sE,e)}catch(a){ht(e,t,a)}}function Rs(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{if(Ds(e))try{Es(),he(e,n)}finally{ws(e)}else he(e,n)}catch(r){ht(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{if(Ds(e))try{Es(),he(e,a,null)}finally{ws(e)}else he(e,a,null)}catch(r){ht(e,t,r)}else a.current=null}function vv(e,t,a,n){var r=e.memoizedProps,i=r.id,f=r.onCommit;r=r.onRender,t=t===null?"mount":"update",qd&&(t="nested-update"),typeof r=="function"&&r(i,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof f=="function"&&f(i,t,n,a)}function oE(e,t,a,n){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,t=t===null?"mount":"update",qd&&(t="nested-update"),typeof r=="function"&&r(e,t,n,a)}function xv(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{he(e,UE,n,t,a,e)}catch(r){ht(e,e.return,r)}}function yp(e,t,a){try{he(e,TE,e.stateNode,e.type,a,t,e)}catch(n){ht(e,e.return,n)}}function Nv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zo(e.type)||e.tag===4}function vp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&zo(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xp(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(k0(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(k0(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Qs));else if(n!==4&&(n===27&&zo(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(xp(e,t,a),e=e.sibling;e!==null;)xp(e,t,a),e=e.sibling}function nd(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&zo(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(nd(e,t,a),e=e.sibling;e!==null;)nd(e,t,a),e=e.sibling}function rE(e){for(var t,a=e.return;a!==null;){if(Nv(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=vp(e),nd(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(_0(a),t.flags&=-33),t=vp(e),nd(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=vp(e),xp(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Sv(e){var t=e.stateNode,a=e.memoizedProps;try{he(e,XE,e.type,a,t,e)}catch(n){ht(e,e.return,n)}}function wv(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function iE(e,t){if(e=e.containerInfo,xg=Ef,e=Hb(e),am(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var f=0,p=-1,v=-1,w=0,V=0,M=e,T=null;t:for(;;){for(var $;M!==a||r!==0&&M.nodeType!==3||(p=f+r),M!==i||n!==0&&M.nodeType!==3||(v=f+n),M.nodeType===3&&(f+=M.nodeValue.length),($=M.firstChild)!==null;)T=M,M=$;for(;;){if(M===e)break t;if(T===a&&++w===r&&(p=f),T===i&&++V===n&&(v=f),($=M.nextSibling)!==null)break;M=T,T=M.parentNode}M=$}a=p===-1||v===-1?null:{start:p,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ng={focusedElem:e,selectionRange:a},Ef=!1,ha=t;ha!==null;)if(t=ha,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ha=e;else for(;ha!==null;){switch(e=t=ha,a=e.alternate,r=e.flags,e.tag){case 0:if((r&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:(r&1024)!==0&&a!==null&&nE(e,a);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Bp(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bp(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,ha=e;break}ha=t.return}}function Ev(e,t,a){var n=ln(),r=vs(),i=Ns(),f=Ss(),p=a.flags;switch(a.tag){case 0:case 11:case 15:_s(e,a),p&4&&hv(a,bn|Mn);break;case 1:if(_s(e,a),p&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Qi||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(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.",L(a)||"instance")),Ds(a)?(Es(),he(a,Yh,a,e),ws()):he(a,Yh,a,e);else{var v=_r(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Qi||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(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.",L(a)||"instance")),Ds(a)?(Es(),he(a,pN,a,e,v,t,e.__reactInternalSnapshotBeforeUpdate),ws()):he(a,pN,a,e,v,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&bv(a),p&512&&Al(a,a.return);break;case 3:if(t=Ks(),_s(e,a),p&64&&(p=a.updateQueue,p!==null)){if(v=null,a.child!==null)switch(a.child.tag){case 27:case 5:v=a.child.stateNode;break;case 1:v=a.child.stateNode}try{he(a,vy,p,v)}catch(V){ht(a,a.return,V)}}e.effectDuration+=Cu(t);break;case 27:t===null&&p&4&&Sv(a);case 26:case 5:if(_s(e,a),t===null){if(p&4)xv(a);else if(p&64){e=a.type,t=a.memoizedProps,v=a.stateNode;try{he(a,CE,v,e,t,a)}catch(V){ht(a,a.return,V)}}}p&512&&Al(a,a.return);break;case 12:if(p&4){p=Ks(),_s(e,a),e=a.stateNode,e.effectDuration+=Sl(p);try{he(a,vv,a,t,Xo,e.effectDuration)}catch(V){ht(a,a.return,V)}}else _s(e,a);break;case 31:_s(e,a),p&4&&_v(e,a);break;case 13:_s(e,a),p&4&&kv(e,a),p&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=gE.bind(null,a),qE(e,p))));break;case 22:if(p=a.memoizedState!==null||go,!p){t=t!==null&&t.memoizedState!==null||aa,v=go;var w=aa;go=p,(aa=t)&&!w?(ks(e,a,(a.subtreeFlags&8772)!==0),(a.mode&Qe)!==He&&0<=Ae&&0<=ze&&.05<ze-Ae&&xu(a,Ae,ze)):_s(e,a),go=v,aa=w}break;case 30:break;default:_s(e,a)}(a.mode&Qe)!==He&&0<=Ae&&0<=ze&&((zt||.05<At)&&bs(a,Ae,ze,At,Ot),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<ze-Ae&&(wv(a.return.alternate,a.return)||gs(a,Ae,ze,"Mount"))),cn(n),xs(r),Ot=i,zt=f}function Dv(e){var t=e.alternate;t!==null&&(e.alternate=null,Dv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&O(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function to(e,t,a){for(a=a.child;a!==null;)Rv(e,t,a),a=a.sibling}function Rv(e,t,a){if(_a&&typeof _a.onCommitFiberUnmount=="function")try{_a.onCommitFiberUnmount(Ei,a)}catch(w){As||(As=!0,console.error("React instrumentation encountered an error: %o",w))}var n=ln(),r=vs(),i=Ns(),f=Ss();switch(a.tag){case 26:aa||Rs(a,t),to(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:aa||Rs(a,t);var p=na,v=en;zo(a.type)&&(na=a.stateNode,en=!1),to(e,t,a),he(a,ql,a.stateNode),na=p,en=v;break;case 5:aa||Rs(a,t);case 6:if(p=na,v=en,na=null,to(e,t,a),na=p,en=v,na!==null)if(en)try{he(a,AE,na,a.stateNode)}catch(w){ht(a,t,w)}else try{he(a,OE,na,a.stateNode)}catch(w){ht(a,t,w)}break;case 18:na!==null&&(en?(e=na,U0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),xi(e)):U0(na,a.stateNode));break;case 4:p=na,v=en,na=a.stateNode.containerInfo,en=!0,to(e,t,a),na=p,en=v;break;case 0:case 11:case 14:case 15:fi(Ya,a,t),aa||gp(a,t,bn),to(e,t,a);break;case 1:aa||(Rs(a,t),p=a.stateNode,typeof p.componentWillUnmount=="function"&&yv(a,t,p)),to(e,t,a);break;case 21:to(e,t,a);break;case 22:aa=(p=aa)||a.memoizedState!==null,to(e,t,a),aa=p;break;default:to(e,t,a)}(a.mode&Qe)!==He&&0<=Ae&&0<=ze&&(zt||.05<At)&&bs(a,Ae,ze,At,Ot),cn(n),xs(r),Ot=i,zt=f}function _v(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{he(t,IE,e)}catch(a){ht(t,t.return,a)}}}function kv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{he(t,FE,e)}catch(a){ht(t,t.return,a)}}function lE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new WN),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new WN),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function sd(e,t){var a=lE(e);t.forEach(function(n){if(!a.has(n)){if(a.add(n),Vs)if(Zi!==null&&Pi!==null)Ll(Pi,Zi);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=bE.bind(null,e,n);n.then(r,r)}})}function Ka(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=e,i=t,f=a[n],p=ln(),v=i;e:for(;v!==null;){switch(v.tag){case 27:if(zo(v.type)){na=v.stateNode,en=!1;break e}break;case 5:na=v.stateNode,en=!1;break e;case 3:case 4:na=v.stateNode.containerInfo,en=!0;break e}v=v.return}if(na===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Rv(r,i,f),na=null,en=!1,(f.mode&Qe)!==He&&0<=Ae&&0<=ze&&.05<ze-Ae&&gs(f,Ae,ze,"Unmount"),cn(p),r=f,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Uv(t,e),t=t.sibling}function Uv(e,t){var a=ln(),n=vs(),r=Ns(),i=Ss(),f=e.alternate,p=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ka(t,e),Wa(e),p&4&&(fi(Ya|Mn,e,e.return),Ol(Ya|Mn,e),gp(e,e.return,bn|Mn));break;case 1:if(Ka(t,e),Wa(e),p&512&&(aa||f===null||Rs(f,f.return)),p&64&&go&&(p=e.updateQueue,p!==null&&(f=p.callbacks,f!==null))){var v=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=v===null?f:v.concat(f)}break;case 26:if(v=os,Ka(t,e),Wa(e),p&512&&(aa||f===null||Rs(f,f.return)),p&4){var w=f!==null?f.memoizedState:null;if(p=e.memoizedState,f===null)if(p===null)if(e.stateNode===null){e:{p=e.type,f=e.memoizedProps,v=v.ownerDocument||v;t:switch(p){case"title":w=v.getElementsByTagName("title")[0],(!w||w[Pl]||w[Na]||w.namespaceURI===Ri||w.hasAttribute("itemprop"))&&(w=v.createElement(p),v.head.insertBefore(w,v.querySelector("head > title"))),xa(w,p,f),w[Na]=e,De(w),p=w;break e;case"link":var V=B0("link","href",v).get(p+(f.href||""));if(V){for(var M=0;M<V.length;M++)if(w=V[M],w.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&w.getAttribute("rel")===(f.rel==null?null:f.rel)&&w.getAttribute("title")===(f.title==null?null:f.title)&&w.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){V.splice(M,1);break t}}w=v.createElement(p),xa(w,p,f),v.head.appendChild(w);break;case"meta":if(V=B0("meta","content",v).get(p+(f.content||""))){for(M=0;M<V.length;M++)if(w=V[M],nt(f.content,"content"),w.getAttribute("content")===(f.content==null?null:""+f.content)&&w.getAttribute("name")===(f.name==null?null:f.name)&&w.getAttribute("property")===(f.property==null?null:f.property)&&w.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&w.getAttribute("charset")===(f.charSet==null?null:f.charSet)){V.splice(M,1);break t}}w=v.createElement(p),xa(w,p,f),v.head.appendChild(w);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}w[Na]=e,De(w),p=w}e.stateNode=p}else $0(v,e.type,e.stateNode);else e.stateNode=H0(v,p,e.memoizedProps);else w!==p?(w===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):w.count--,p===null?$0(v,e.type,e.stateNode):H0(v,p,e.memoizedProps)):p===null&&e.stateNode!==null&&yp(e,e.memoizedProps,f.memoizedProps)}break;case 27:Ka(t,e),Wa(e),p&512&&(aa||f===null||Rs(f,f.return)),f!==null&&p&4&&yp(e,e.memoizedProps,f.memoizedProps);break;case 5:if(Ka(t,e),Wa(e),p&512&&(aa||f===null||Rs(f,f.return)),e.flags&32){v=e.stateNode;try{he(e,_0,v)}catch(xe){ht(e,e.return,xe)}}p&4&&e.stateNode!=null&&(v=e.memoizedProps,yp(e,v,f!==null?f.memoizedProps:v)),p&1024&&(tg=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ka(t,e),Wa(e),p&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");p=e.memoizedProps,f=f!==null?f.memoizedProps:p,v=e.stateNode;try{he(e,jE,v,f,p)}catch(xe){ht(e,e.return,xe)}}break;case 3:if(v=Ks(),Nf=null,w=os,os=fd(t.containerInfo),Ka(t,e),os=w,Wa(e),p&4&&f!==null&&f.memoizedState.isDehydrated)try{he(e,GE,t.containerInfo)}catch(xe){ht(e,e.return,xe)}tg&&(tg=!1,Cv(e)),t.effectDuration+=Cu(v);break;case 4:p=os,os=fd(e.stateNode.containerInfo),Ka(t,e),Wa(e),os=p;break;case 12:p=Ks(),Ka(t,e),Wa(e),e.stateNode.effectDuration+=Sl(p);break;case 31:Ka(t,e),Wa(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,sd(e,p)));break;case 13:Ka(t,e),Wa(e),e.child.flags&8192&&e.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(of=ma()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,sd(e,p)));break;case 22:v=e.memoizedState!==null;var T=f!==null&&f.memoizedState!==null,$=go,me=aa;if(go=$||v,aa=me||T,Ka(t,e),aa=me,go=$,T&&!v&&!$&&!me&&(e.mode&Qe)!==He&&0<=Ae&&0<=ze&&.05<ze-Ae&&xu(e,Ae,ze),Wa(e),p&8192)e:for(t=e.stateNode,t._visibility=v?t._visibility&~oc:t._visibility|oc,!v||f===null||T||go||aa||(kr(e),(e.mode&Qe)!==He&&0<=Ae&&0<=ze&&.05<ze-Ae&&gs(e,Ae,ze,"Disconnect")),f=null,t=e;;){if(t.tag===5||t.tag===26){if(f===null){T=f=t;try{w=T.stateNode,v?he(T,ME,w):he(T,HE,T.stateNode,T.memoizedProps)}catch(xe){ht(T,T.return,xe)}}}else if(t.tag===6){if(f===null){T=t;try{V=T.stateNode,v?he(T,zE,V):he(T,BE,V,T.memoizedProps)}catch(xe){ht(T,T.return,xe)}}}else if(t.tag===18){if(f===null){T=t;try{M=T.stateNode,v?he(T,VE,M):he(T,LE,T.stateNode)}catch(xe){ht(T,T.return,xe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;f===t&&(f=null),t=t.return}f===t&&(f=null),t.sibling.return=t.return,t=t.sibling}p&4&&(p=e.updateQueue,p!==null&&(f=p.retryQueue,f!==null&&(p.retryQueue=null,sd(e,f))));break;case 19:Ka(t,e),Wa(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,sd(e,p)));break;case 30:break;case 21:break;default:Ka(t,e),Wa(e)}(e.mode&Qe)!==He&&0<=Ae&&0<=ze&&((zt||.05<At)&&bs(e,Ae,ze,At,Ot),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<ze-Ae&&(wv(e.return.alternate,e.return)||gs(e,Ae,ze,"Mount"))),cn(a),xs(n),Ot=r,zt=i}function Wa(e){var t=e.flags;if(t&2){try{he(e,rE,e)}catch(a){ht(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _s(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ev(e,t.alternate,t),t=t.sibling}function Tv(e){var t=ln(),a=vs(),n=Ns(),r=Ss();switch(e.tag){case 0:case 11:case 14:case 15:gp(e,e.return,bn),kr(e);break;case 1:Rs(e,e.return);var i=e.stateNode;typeof i.componentWillUnmount=="function"&&yv(e,e.return,i),kr(e);break;case 27:he(e,ql,e.stateNode);case 26:case 5:Rs(e,e.return),kr(e);break;case 22:e.memoizedState===null&&kr(e);break;case 30:kr(e);break;default:kr(e)}(e.mode&Qe)!==He&&0<=Ae&&0<=ze&&(zt||.05<At)&&bs(e,Ae,ze,At,Ot),cn(t),xs(a),Ot=n,zt=r}function kr(e){for(e=e.child;e!==null;)Tv(e),e=e.sibling}function jv(e,t,a,n){var r=ln(),i=vs(),f=Ns(),p=Ss(),v=a.flags;switch(a.tag){case 0:case 11:case 15:ks(e,a,n),hv(a,bn);break;case 1:if(ks(e,a,n),t=a.stateNode,typeof t.componentDidMount=="function"&&he(a,Yh,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{he(a,G4,t,e)}catch(w){ht(a,a.return,w)}}n&&v&64&&bv(a),Al(a,a.return);break;case 27:Sv(a);case 26:case 5:ks(e,a,n),n&&t===null&&v&4&&xv(a),Al(a,a.return);break;case 12:if(n&&v&4){v=Ks(),ks(e,a,n),n=a.stateNode,n.effectDuration+=Sl(v);try{he(a,vv,a,t,Xo,n.effectDuration)}catch(w){ht(a,a.return,w)}}else ks(e,a,n);break;case 31:ks(e,a,n),n&&v&4&&_v(e,a);break;case 13:ks(e,a,n),n&&v&4&&kv(e,a);break;case 22:a.memoizedState===null&&ks(e,a,n),Al(a,a.return);break;case 30:break;default:ks(e,a,n)}(a.mode&Qe)!==He&&0<=Ae&&0<=ze&&(zt||.05<At)&&bs(a,Ae,ze,At,Ot),cn(r),xs(i),Ot=f,zt=p}function ks(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)jv(e,t.alternate,t,a),t=t.sibling}function Np(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&wr(e),a!=null&&Nl(a))}function Sp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(wr(t),e!=null&&Nl(e))}function es(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var i=t.sibling;Ov(e,t,a,n,i!==null?i.actualStartTime:r),t=i}}function Ov(e,t,a,n,r){var i=ln(),f=vs(),p=Ns(),v=Ss(),w=qo,V=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Qe)!==He&&0<t.actualStartTime&&(t.flags&1)!==0&&Nu(t,t.actualStartTime,r,ra,a),es(e,t,a,n,r),V&2048&&gv(t,qa|Mn);break;case 1:(t.mode&Qe)!==He&&0<t.actualStartTime&&((t.flags&128)!==0?sm(t,t.actualStartTime,r,[]):(t.flags&1)!==0&&Nu(t,t.actualStartTime,r,ra,a)),es(e,t,a,n,r);break;case 3:var M=Ks(),T=ra;ra=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,es(e,t,a,n,r),ra=T,V&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),n=t.memoizedState.cache,n!==a&&(wr(n),a!=null&&Nl(a))),e.passiveEffectDuration+=Cu(M);break;case 12:if(V&2048){V=Ks(),es(e,t,a,n,r),e=t.stateNode,e.passiveEffectDuration+=Sl(V);try{he(t,oE,t,t.alternate,Xo,e.passiveEffectDuration)}catch($){ht(t,t.return,$)}}else es(e,t,a,n,r);break;case 31:V=ra,M=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,M!==null&&T===null?(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(ra=!1,M=M.hydrationErrors,M!==null&&sm(t,t.actualStartTime,r,M)):ra=!0):ra=!1,es(e,t,a,n,r),ra=V;break;case 13:V=ra,M=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,M===null||M.dehydrated===null||T!==null&&T.dehydrated!==null?ra=!1:(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(ra=!1,M=M.hydrationErrors,M!==null&&sm(t,t.actualStartTime,r,M)):ra=!0),es(e,t,a,n,r),ra=V;break;case 23:break;case 22:T=t.stateNode,M=t.alternate,t.memoizedState!==null?T._visibility&oo?es(e,t,a,n,r):Vl(e,t,a,n,r):T._visibility&oo?es(e,t,a,n,r):(T._visibility|=oo,mi(e,t,a,n,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),r),(t.mode&Qe)===He||ra||(e=t.actualStartTime,0<=e&&.05<r-e&&xu(t,e,r),0<=Ae&&0<=ze&&.05<ze-Ae&&xu(t,Ae,ze))),V&2048&&Np(M,t);break;case 24:es(e,t,a,n,r),V&2048&&Sp(t.alternate,t);break;default:es(e,t,a,n,r)}(t.mode&Qe)!==He&&((e=!ra&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(a=t.actualStartTime,0<=a&&.05<r-a&&gs(t,a,r,"Mount")),0<=Ae&&0<=ze&&((zt||.05<At)&&bs(t,Ae,ze,At,Ot),e&&.05<ze-Ae&&gs(t,Ae,ze,"Mount"))),cn(i),xs(f),Ot=p,zt=v,qo=w}function mi(e,t,a,n,r,i){for(r=r&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var f=t.sibling;Av(e,t,a,n,r,f!==null?f.actualStartTime:i),t=f}}function Av(e,t,a,n,r,i){var f=ln(),p=vs(),v=Ns(),w=Ss(),V=qo;r&&(t.mode&Qe)!==He&&0<t.actualStartTime&&(t.flags&1)!==0&&Nu(t,t.actualStartTime,i,ra,a);var M=t.flags;switch(t.tag){case 0:case 11:case 15:mi(e,t,a,n,r,i),gv(t,qa);break;case 23:break;case 22:var T=t.stateNode;t.memoizedState!==null?T._visibility&oo?mi(e,t,a,n,r,i):Vl(e,t,a,n,i):(T._visibility|=oo,mi(e,t,a,n,r,i)),r&&M&2048&&Np(t.alternate,t);break;case 24:mi(e,t,a,n,r,i),r&&M&2048&&Sp(t.alternate,t);break;default:mi(e,t,a,n,r,i)}(t.mode&Qe)!==He&&0<=Ae&&0<=ze&&(zt||.05<At)&&bs(t,Ae,ze,At,Ot),cn(f),xs(p),Ot=v,zt=w,qo=V}function Vl(e,t,a,n,r){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var i=t.child;i!==null;){t=i.sibling;var f=e,p=a,v=n,w=t!==null?t.actualStartTime:r,V=qo;(i.mode&Qe)!==He&&0<i.actualStartTime&&(i.flags&1)!==0&&Nu(i,i.actualStartTime,w,ra,p);var M=i.flags;switch(i.tag){case 22:Vl(f,i,p,v,w),M&2048&&Np(i.alternate,i);break;case 24:Vl(f,i,p,v,w),M&2048&&Sp(i.alternate,i);break;default:Vl(f,i,p,v,w)}qo=V,i=t}}function pi(e,t,a){if(e.subtreeFlags&Dc)for(e=e.child;e!==null;)Vv(e,t,a),e=e.sibling}function Vv(e,t,a){switch(e.tag){case 26:pi(e,t,a),e.flags&Dc&&e.memoizedState!==null&&PE(a,os,e.memoizedState,e.memoizedProps);break;case 5:pi(e,t,a);break;case 3:case 4:var n=os;os=fd(e.stateNode.containerInfo),pi(e,t,a),os=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Dc,Dc=16777216,pi(e,t,a),Dc=n):pi(e,t,a));break;default:pi(e,t,a)}}function Mv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ml(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],r=ln();ha=n,Hv(n,e),(n.mode&Qe)!==He&&0<=Ae&&0<=ze&&.05<ze-Ae&&gs(n,Ae,ze,"Unmount"),cn(r)}Mv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zv(e),e=e.sibling}function zv(e){var t=ln(),a=vs(),n=Ns(),r=Ss();switch(e.tag){case 0:case 11:case 15:Ml(e),e.flags&2048&&bp(e,e.return,qa|Mn);break;case 3:var i=Ks();Ml(e),e.stateNode.passiveEffectDuration+=Cu(i);break;case 12:i=Ks(),Ml(e),e.stateNode.passiveEffectDuration+=Sl(i);break;case 22:i=e.stateNode,e.memoizedState!==null&&i._visibility&oo&&(e.return===null||e.return.tag!==13)?(i._visibility&=~oo,od(e),(e.mode&Qe)!==He&&0<=Ae&&0<=ze&&.05<ze-Ae&&gs(e,Ae,ze,"Disconnect")):Ml(e);break;default:Ml(e)}(e.mode&Qe)!==He&&0<=Ae&&0<=ze&&(zt||.05<At)&&bs(e,Ae,ze,At,Ot),cn(t),xs(a),zt=r,Ot=n}function od(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],r=ln();ha=n,Hv(n,e),(n.mode&Qe)!==He&&0<=Ae&&0<=ze&&.05<ze-Ae&&gs(n,Ae,ze,"Unmount"),cn(r)}Mv(e)}for(e=e.child;e!==null;)Lv(e),e=e.sibling}function Lv(e){var t=ln(),a=vs(),n=Ns(),r=Ss();switch(e.tag){case 0:case 11:case 15:bp(e,e.return,qa),od(e);break;case 22:var i=e.stateNode;i._visibility&oo&&(i._visibility&=~oo,od(e));break;default:od(e)}(e.mode&Qe)!==He&&0<=Ae&&0<=ze&&(zt||.05<At)&&bs(e,Ae,ze,At,Ot),cn(t),xs(a),zt=r,Ot=n}function Hv(e,t){for(;ha!==null;){var a=ha,n=a,r=t,i=ln(),f=vs(),p=Ns(),v=Ss();switch(n.tag){case 0:case 11:case 15:bp(n,r,qa);break;case 23:case 22:n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool,r!=null&&wr(r));break;case 24:Nl(n.memoizedState.cache)}if((n.mode&Qe)!==He&&0<=Ae&&0<=ze&&(zt||.05<At)&&bs(n,Ae,ze,At,Ot),cn(i),xs(f),zt=v,Ot=p,n=a.child,n!==null)n.return=a,ha=n;else e:for(a=e;ha!==null;){if(n=ha,i=n.sibling,f=n.return,Dv(n),n===a){ha=null;break e}if(i!==null){i.return=f,ha=i;break e}ha=f}}}function cE(){jR.forEach(function(e){return e()})}function Bv(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||I.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function dn(e){if((ut&ia)!==ga&&Pe!==0)return Pe&-Pe;var t=I.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Cp()):sn()}function $v(){if(an===0)if((Pe&536870912)===0||st){var e=Ed;Ed<<=1,(Ed&3932160)===0&&(Ed=262144),an=e}else an=536870912;return e=gn.current,e!==null&&(e.flags|=32),an}function Mt(e,t,a){if(Wi&&console.error("useInsertionEffect must not schedule updates."),fg&&(uf=!0),(e===wt&&(yt===Gr||yt===Ir)||e.cancelPendingCommit!==null)&&(gi(e,0),Vo(e,Pe,an,!1)),Qa(e,a),(ut&ia)!==ga&&e===wt){if(Os)switch(t.tag){case 0:case 11:case 15:e=Je&&L(Je)||"Unknown",p1.has(e)||(p1.add(e),t=L(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:m1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),m1=!0)}}else Vs&&Fn(e,t,a),vE(t),e===wt&&((ut&ia)===ga&&(tr|=a),Vt===Ko&&Vo(e,Pe,an,!1)),Us(e)}function Yv(e,t,a){if((ut&(ia|yn))!==ga)throw Error("Should not already be working.");if(Pe!==0&&Je!==null){var n=Je,r=ma();switch(rN){case kc:case Gr:var i=dc;kt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Suspended",i,r,kn,void 0,"primary-light")):console.timeStamp("Suspended",i,r,kn,void 0,"primary-light"));break;case Ir:i=dc,kt&&((n=n._debugTask)?n.run(console.timeStamp.bind(console,"Action",i,r,kn,void 0,"primary-light")):console.timeStamp("Action",i,r,kn,void 0,"primary-light"));break;default:kt&&(n=r-dc,3>n||console.timeStamp("Blocked",dc,r,kn,void 0,5>n?"primary-light":10>n?"primary":100>n?"primary-dark":"error"))}}i=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||En(e,t))?dE(e,t):Ep(e,t,!0);var f=a;do{if(i===bo){Ji&&!a&&Vo(e,t,0,!1),t=yt,dc=Wt(),rN=t;break}else{if(n=ma(),r=e.current.alternate,f&&!uE(r)){Kn(t),r=pa,i=n,!kt||i<=r||(Yt?Yt.run(console.timeStamp.bind(console,"Teared Render",r,i,ct,it,"error")):console.timeStamp("Teared Render",r,i,ct,it,"error")),Ur(t,n),i=Ep(e,t,!1),f=!1;continue}if(i===qr){if(f=t,e.errorRecoveryDisabledLanes&f)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){Kn(t),om(pa,n,t,Yt),Ur(t,n),t=p;e:{n=e,i=f,f=Cc;var v=n.current.memoizedState.isDehydrated;if(v&&(gi(n,p).flags|=256),p=Ep(n,p,!1),p!==qr){if(sg&&!v){n.errorRecoveryDisabledLanes|=i,tr|=i,i=Ko;break e}n=Ga,Ga=f,n!==null&&(Ga===null?Ga=n:Ga.push.apply(Ga,n))}i=p}if(f=!1,i!==qr)continue;n=ma()}}if(i===_c){Kn(t),om(pa,n,t,Yt),Ur(t,n),gi(e,0),Vo(e,t,0,!0);break}e:{switch(a=e,i){case bo:case _c:throw Error("Root did not complete. This is a bug in React.");case Ko:if((t&4194048)!==t)break;case tf:Kn(t),Yb(pa,n,t,Yt),Ur(t,n),r=t,(r&127)!==0?Bd=n:(r&4194048)!==0&&($d=n),Vo(a,t,an,!Wo);break e;case qr:Ga=null;break;case ef:case e1:break;default:throw Error("Unknown root exit status.")}if(I.actQueue!==null)Dp(a,r,t,Ga,Tc,sf,an,tr,Fr,i,null,null,pa,n);else{if((t&62914560)===t&&(f=of+n1-ma(),10<f)){if(Vo(a,t,an,!Wo),Fa(a,0,!0)!==0)break e;rs=t,a.timeoutHandle=S1(qv.bind(null,a,r,Ga,Tc,sf,t,an,tr,Fr,Wo,i,"Throttled",pa,n),f);break e}qv(a,r,Ga,Tc,sf,t,an,tr,Fr,Wo,i,null,pa,n)}}}break}while(!0);Us(e)}function qv(e,t,a,n,r,i,f,p,v,w,V,M,T,$){e.timeoutHandle=Jr;var me=t.subtreeFlags,xe=null;if((me&8192||(me&16785408)===16785408)&&(xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qs},Vv(t,i,xe),me=(i&62914560)===i?of-ma():(i&4194048)===i?a1-ma():0,me=JE(xe,me),me!==null)){rs=i,e.cancelPendingCommit=me(Dp.bind(null,e,t,i,a,n,r,f,p,v,V,xe,xe.waitingForViewTransition?"Waiting for the previous Animation":0<xe.count?0<xe.imgCount?"Suspended on CSS and Images":"Suspended on CSS":xe.imgCount===1?"Suspended on an Image":0<xe.imgCount?"Suspended on Images":null,T,$)),Vo(e,i,f,!w);return}Dp(e,t,i,a,n,r,f,p,v,V,xe,M,T,$)}function uE(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var r=a[n],i=r.getSnapshot;r=r.value;try{if(!Ba(i(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vo(e,t,a,n){t&=~og,t&=~tr,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var i=31-za(r),f=1<<i;n[i]=-1,r&=~f}a!==0&&ba(e,a,t)}function hi(){return(ut&(ia|yn))===ga?(Hl(0),!1):!0}function wp(){if(Je!==null){if(yt===tn)var e=Je.return;else e=Je,_u(),Am(e),Yi=null,xc=0,e=Je;for(;e!==null;)pv(e.alternate,e),e=e.return;Je=null}}function Ur(e,t){(e&127)!==0&&(Ar=t),(e&4194048)!==0&&(uo=t),(e&62914560)!==0&&(sN=t),(e&2080374784)!==0&&(oN=t)}function gi(e,t){kt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",it,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",it,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",it,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",it,"primary-light"));var a=pa;if(pa=Wt(),Pe!==0&&0<a){if(Kn(Pe),Vt===ef||Vt===Ko)Yb(a,pa,t,Yt);else{var n=pa,r=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";r?r.run(console.timeStamp.bind(console,f,a,n,ct,it,i)):console.timeStamp(f,a,n,ct,it,i)}}Ur(Pe,pa)}if(a=Yt,Yt=null,(t&127)!==0){Yt=lc,r=0<=Hs&&Hs<Ar?Ar:Hs,n=0<=Vr&&Vr<Ar?Ar:Vr,i=0<=n?n:0<=r?r:pa,0<=Bd?(Kn(2),qb(Bd,i,t,a)):Yd&127,a=r;var p=n,v=cc,w=0<Hi,V=Qo===ic,M=Qo===Hd;if(r=pa,n=lc,i=zh,f=Lh,kt){if(ct="Blocking",0<a?a>r&&(a=r):a=r,0<p?p>a&&(p=a):p=a,v!==null&&a>p){var T=w?"secondary-light":"warning";n?n.run(console.timeStamp.bind(console,w?"Consecutive":"Event: "+v,p,a,ct,it,T)):console.timeStamp(w?"Consecutive":"Event: "+v,p,a,ct,it,T)}r>a&&(p=V?"error":(t&738197653)===t?"tertiary-light":"primary-light",V=M?"Promise Resolved":V?"Cascading Update":5<r-a?"Update Blocked":"Update",M=[],f!=null&&M.push(["Component name",f]),i!=null&&M.push(["Method name",i]),a={start:a,end:r,detail:{devtools:{properties:M,track:ct,trackGroup:it,color:p}}},n?n.run(performance.measure.bind(performance,V,a)):performance.measure(V,a))}Hs=-1.1,Qo=0,Lh=zh=null,Bd=-1.1,Hi=Vr,Vr=-1.1,Ar=Wt()}if((t&4194048)!==0&&(Yt=uc,r=0<=fo&&fo<uo?uo:fo,a=0<=An&&An<uo?uo:An,n=0<=Zo&&Zo<uo?uo:Zo,i=0<=n?n:0<=a?a:pa,0<=$d?(Kn(256),qb($d,i,t,Yt)):Yd&4194048,M=n,p=Mr,v=0<Po,w=Hh===Hd,i=pa,n=uc,f=aN,V=nN,kt&&(ct="Transition",0<a?a>i&&(a=i):a=i,0<r?r>a&&(r=a):r=a,0<M?M>r&&(M=r):M=r,r>M&&p!==null&&(T=v?"secondary-light":"warning",n?n.run(console.timeStamp.bind(console,v?"Consecutive":"Event: "+p,M,r,ct,it,T)):console.timeStamp(v?"Consecutive":"Event: "+p,M,r,ct,it,T)),a>r&&(n?n.run(console.timeStamp.bind(console,"Action",r,a,ct,it,"primary-dark")):console.timeStamp("Action",r,a,ct,it,"primary-dark")),i>a&&(r=w?"Promise Resolved":5<i-a?"Update Blocked":"Update",M=[],V!=null&&M.push(["Component name",V]),f!=null&&M.push(["Method name",f]),a={start:a,end:i,detail:{devtools:{properties:M,track:ct,trackGroup:it,color:"primary-light"}}},n?n.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),An=fo=-1.1,Hh=0,$d=-1.1,Po=Zo,Zo=-1.1,uo=Wt()),(t&62914560)!==0&&(Yd&62914560)!==0&&(Kn(4194304),rm(sN,pa)),(t&2080374784)!==0&&(Yd&2080374784)!==0&&(Kn(268435456),rm(oN,pa)),a=e.timeoutHandle,a!==Jr&&(e.timeoutHandle=Jr,IR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),rs=0,wp(),wt=e,Je=a=Zs(e.current,null),Pe=t,yt=tn,vn=null,Wo=!1,Ji=En(e,t),sg=!1,Vt=bo,Fr=an=og=tr=er=0,Ga=Cc=null,sf=!1,(t&8)!==0&&(t|=t&32),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=t;0<n;)r=31-za(n),i=1<<r,t|=e[r],n&=~i;return $s=t,Su(),e=Px(),1e3<e-Zx&&(I.recentlyCreatedOwnerStacks=0,Zx=e),ns.discardPendingWarnings(),a}function Gv(e,t){$e=null,I.H=Ec,I.getCurrentStack=null,Os=!1,pn=null,t===$i||t===Fd?(t=dy(),yt=kc):t===qh?(t=dy(),yt=t1):yt=t===Wh?ng:t!==null&&typeof t=="object"&&typeof t.then=="function"?Uc:af,vn=t;var a=Je;a===null?(Vt=_c,Ku(e,rn(t,e.current))):a.mode&Qe&&Nm(a)}function Iv(){var e=gn.current;return e===null?!0:(Pe&4194048)===Pe?Vn===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?e===Vn:!1}function Fv(){var e=I.H;return I.H=Ec,e===null?Ec:e}function Xv(){var e=I.A;return I.A=TR,e}function rd(e){Yt===null&&(Yt=e._debugTask==null?null:e._debugTask)}function id(){Vt=Ko,Wo||(Pe&4194048)!==Pe&&gn.current!==null||(Ji=!0),(er&134217727)===0&&(tr&134217727)===0||wt===null||Vo(wt,Pe,an,!1)}function Ep(e,t,a){var n=ut;ut|=ia;var r=Fv(),i=Xv();if(wt!==e||Pe!==t){if(Vs){var f=e.memoizedUpdaters;0<f.size&&(Ll(e,Pe),f.clear()),ca(e,t)}Tc=null,gi(e,t)}t=!1,f=Vt;e:do try{if(yt!==tn&&Je!==null){var p=Je,v=vn;switch(yt){case ng:wp(),f=tf;break e;case kc:case Gr:case Ir:case Uc:gn.current===null&&(t=!0);var w=yt;if(yt=tn,vn=null,bi(e,p,v,w),a&&Ji){f=bo;break e}break;default:w=yt,yt=tn,vn=null,bi(e,p,v,w)}}Qv(),f=Vt;break}catch(V){Gv(e,V)}while(!0);return t&&e.shellSuspendCounter++,_u(),ut=n,I.H=r,I.A=i,Je===null&&(wt=null,Pe=0,Su()),f}function Qv(){for(;Je!==null;)Zv(Je)}function dE(e,t){var a=ut;ut|=ia;var n=Fv(),r=Xv();if(wt!==e||Pe!==t){if(Vs){var i=e.memoizedUpdaters;0<i.size&&(Ll(e,Pe),i.clear()),ca(e,t)}Tc=null,rf=ma()+s1,gi(e,t)}else Ji=En(e,t);e:do try{if(yt!==tn&&Je!==null)t:switch(t=Je,i=vn,yt){case af:yt=tn,vn=null,bi(e,t,i,af);break;case Gr:case Ir:if(cy(i)){yt=tn,vn=null,Pv(t);break}t=function(){yt!==Gr&&yt!==Ir||wt!==e||(yt=nf),Us(e)},i.then(t,t);break e;case kc:yt=nf;break e;case t1:yt=ag;break e;case nf:cy(i)?(yt=tn,vn=null,Pv(t)):(yt=tn,vn=null,bi(e,t,i,nf));break;case ag:var f=null;switch(Je.tag){case 26:f=Je.memoizedState;case 5:case 27:var p=Je;if(f?Y0(f):p.stateNode.complete){yt=tn,vn=null;var v=p.sibling;if(v!==null)Je=v;else{var w=p.return;w!==null?(Je=w,ld(w)):Je=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}yt=tn,vn=null,bi(e,t,i,ag);break;case Uc:yt=tn,vn=null,bi(e,t,i,Uc);break;case ng:wp(),Vt=tf;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}I.actQueue!==null?Qv():fE();break}catch(V){Gv(e,V)}while(!0);return _u(),I.H=n,I.A=r,ut=a,Je!==null?bo:(wt=null,Pe=0,Su(),Vt)}function fE(){for(;Je!==null&&!dD();)Zv(Je)}function Zv(e){var t=e.alternate;(e.mode&Qe)!==He?(xm(e),t=he(e,pp,t,e,$s),Nm(e)):t=he(e,pp,t,e,$s),e.memoizedProps=e.pendingProps,t===null?ld(e):Je=t}function Pv(e){var t=he(e,mE,e);e.memoizedProps=e.pendingProps,t===null?ld(e):Je=t}function mE(e){var t=e.alternate,a=(e.mode&Qe)!==He;switch(a&&xm(e),e.tag){case 15:case 0:t=iv(t,e,e.pendingProps,e.type,void 0,Pe);break;case 11:t=iv(t,e,e.pendingProps,e.type.render,e.ref,Pe);break;case 5:Am(e);default:pv(t,e),e=Je=Zb(e,$s),t=pp(t,e,$s)}return a&&Nm(e),t}function bi(e,t,a,n){_u(),Am(t),Yi=null,xc=0;var r=t.return;try{if(J4(e,r,t,a,Pe)){Vt=_c,Ku(e,rn(a,e.current)),Je=null;return}}catch(i){if(r!==null)throw Je=r,i;Vt=_c,Ku(e,rn(a,e.current)),Je=null;return}t.flags&32768?(st||n===af?e=!0:Ji||(Pe&536870912)!==0?e=!1:(Wo=e=!0,(n===Gr||n===Ir||n===kc||n===Uc)&&(n=gn.current,n!==null&&n.tag===13&&(n.flags|=16384))),Jv(t,e)):ld(t)}function ld(e){var t=e;do{if((t.flags&32768)!==0){Jv(t,Wo);return}var a=t.alternate;if(e=t.return,xm(t),a=he(t,eE,a,t,$s),(t.mode&Qe)!==He&&sy(t),a!==null){Je=a;return}if(t=t.sibling,t!==null){Je=t;return}Je=t=e}while(t!==null);Vt===bo&&(Vt=e1)}function Jv(e,t){do{var a=tE(e.alternate,e);if(a!==null){a.flags&=32767,Je=a;return}if((e.mode&Qe)!==He){sy(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);Vt=tf,Je=null}function Dp(e,t,a,n,r,i,f,p,v,w,V,M,T,$){e.cancelPendingCommit=null;do zl();while(sa!==nr);if(ns.flushLegacyContextWarning(),ns.flushPendingUnsafeLifecycleWarnings(),(ut&(ia|yn))!==ga)throw Error("Should not already be working.");if(Kn(a),w===qr?om(T,$,a,Yt):n!==null?L4(T,$,a,n,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Yt):z4(T,$,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|=jh,Ea(e,a,i,f,p,v),e===wt&&(Je=wt=null,Pe=0),Ki=t,sr=e,rs=a,lg=i,ug=r,u1=n,cg=$,d1=M,is=lf,f1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,yE(wi,function(){return zc=window.event,is===lf&&(is=ig),a0(),null})):(e.callbackNode=null,e.callbackPriority=0),co=null,Xo=Wt(),M!==null&&H4($,Xo,M,Yt),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=I.T,I.T=null,r=gt.p,gt.p=_n,f=ut,ut|=yn;try{iE(e,t,a)}finally{ut=f,gt.p=r,I.T=n}}sa=r1,Kv(),Wv(),e0()}}function Kv(){if(sa===r1){sa=nr;var e=sr,t=Ki,a=rs,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=I.T,I.T=null;var r=gt.p;gt.p=_n;var i=ut;ut|=yn;try{Zi=a,Pi=e,Tu(),Uv(t,e),Pi=Zi=null,a=Ng;var f=Hb(e.containerInfo),p=a.focusedElem,v=a.selectionRange;if(f!==p&&p&&p.ownerDocument&&Lb(p.ownerDocument.documentElement,p)){if(v!==null&&am(p)){var w=v.start,V=v.end;if(V===void 0&&(V=w),"selectionStart"in p)p.selectionStart=w,p.selectionEnd=Math.min(V,p.value.length);else{var M=p.ownerDocument||document,T=M&&M.defaultView||window;if(T.getSelection){var $=T.getSelection(),me=p.textContent.length,xe=Math.min(v.start,me),Dt=v.end===void 0?xe:Math.min(v.end,me);!$.extend&&xe>Dt&&(f=Dt,Dt=xe,xe=f);var lt=zb(p,xe),U=zb(p,Dt);if(lt&&U&&($.rangeCount!==1||$.anchorNode!==lt.node||$.anchorOffset!==lt.offset||$.focusNode!==U.node||$.focusOffset!==U.offset)){var j=M.createRange();j.setStart(lt.node,lt.offset),$.removeAllRanges(),xe>Dt?($.addRange(j),$.extend(U.node,U.offset)):(j.setEnd(U.node,U.offset),$.addRange(j))}}}}for(M=[],$=p;$=$.parentNode;)$.nodeType===1&&M.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<M.length;p++){var A=M[p];A.element.scrollLeft=A.left,A.element.scrollTop=A.top}}Ef=!!xg,Ng=xg=null}finally{ut=i,gt.p=r,I.T=n}}e.current=t,sa=i1}}function Wv(){if(sa===i1){sa=nr;var e=f1;if(e!==null){Xo=Wt();var t=lo,a=Xo;!kt||a<=t||console.timeStamp(e,t,a,ct,it,"secondary-light")}e=sr,t=Ki,a=rs;var n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=I.T,I.T=null;var r=gt.p;gt.p=_n;var i=ut;ut|=yn;try{Zi=a,Pi=e,Tu(),Ev(e,t.alternate,t),Pi=Zi=null}finally{ut=i,gt.p=r,I.T=n}}e=cg,t=d1,lo=Wt(),e=t===null?e:Xo,t=lo,a=is===rg,n=Yt,co!==null?Gb(e,t,co,!1,n):!kt||t<=e||(n?n.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,ct,it,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,ct,it,a?"error":"secondary-dark")),sa=l1}}function e0(){if(sa===c1||sa===l1){if(sa===c1){var e=lo;lo=Wt();var t=lo,a=is===rg;!kt||t<=e||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,ct,it,a?" error":"secondary-light"),is!==rg&&(is=o1)}sa=nr,fD(),e=sr;var n=Ki;t=rs,a=u1;var r=n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0;r?sa=cf:(sa=nr,Ki=sr=null,t0(e,e.pendingLanes),Xr=0,Oc=null);var i=e.pendingLanes;if(i===0&&(ar=null),r||r0(e),i=Xn(t),n=n.stateNode,_a&&typeof _a.onCommitFiberRoot=="function")try{var f=(n.current.flags&128)===128;switch(i){case _n:var p=uh;break;case Ms:p=dh;break;case no:p=wi;break;case Rd:p=fh;break;default:p=wi}_a.onCommitFiberRoot(Ei,n,p,f)}catch(M){As||(As=!0,console.error("React instrumentation encountered an error: %o",M))}if(Vs&&e.memoizedUpdaters.clear(),cE(),a!==null){f=I.T,p=gt.p,gt.p=_n,I.T=null;try{var v=e.onRecoverableError;for(n=0;n<a.length;n++){var w=a[n],V=pE(w.stack);he(w.source,v,w.value,V)}}finally{I.T=f,gt.p=p}}(rs&3)!==0&&zl(),Us(e),i=e.pendingLanes,(t&261930)!==0&&(i&42)!==0?(Gd=!0,e===dg?jc++:(jc=0,dg=e)):jc=0,r||Ur(t,lo),Hl(0)}}function pE(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function t0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Nl(t)))}function zl(){return Kv(),Wv(),e0(),a0()}function a0(){if(sa!==cf)return!1;var e=sr,t=lg;lg=0;var a=Xn(rs),n=no>a?no:a;a=I.T;var r=gt.p;try{gt.p=n,I.T=null;var i=ug;ug=null,n=sr;var f=rs;if(sa=nr,Ki=sr=null,rs=0,(ut&(ia|yn))!==ga)throw Error("Cannot flush passive effects while already rendering.");Kn(f),fg=!0,uf=!1;var p=0;if(co=null,p=ma(),is===o1)rm(lo,p,ER);else{var v=lo,w=p,V=is===ig;!kt||w<=v||(Yt?Yt.run(console.timeStamp.bind(console,V?"Waiting for Paint":"Waiting",v,w,ct,it,"secondary-light")):console.timeStamp(V?"Waiting for Paint":"Waiting",v,w,ct,it,"secondary-light"))}v=ut,ut|=yn;var M=n.current;Tu(),zv(M);var T=n.current;M=cg,Tu(),Ov(n,T,f,i,M),r0(n),ut=v;var $=ma();if(T=p,M=Yt,co!==null?Gb(T,$,co,!0,M):!kt||$<=T||(M?M.run(console.timeStamp.bind(console,"Remaining Effects",T,$,ct,it,"secondary-dark")):console.timeStamp("Remaining Effects",T,$,ct,it,"secondary-dark")),Ur(f,$),Hl(0,!1),uf?n===Oc?Xr++:(Xr=0,Oc=n):Xr=0,uf=fg=!1,_a&&typeof _a.onPostCommitFiberRoot=="function")try{_a.onPostCommitFiberRoot(Ei,n)}catch(xe){As||(As=!0,console.error("React instrumentation encountered an error: %o",xe))}var me=n.current.stateNode;return me.effectDuration=0,me.passiveEffectDuration=0,!0}finally{gt.p=r,I.T=a,t0(e,t)}}function n0(e,t,a){t=rn(a,t),oy(t),t=np(e.stateNode,t,2),e=To(e,t,2),e!==null&&(Qa(e,2),Us(e))}function ht(e,t,a){if(Wi=!1,e.tag===3)n0(e,e,a);else{for(;t!==null;){if(t.tag===3){n0(t,e,a);return}if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ar===null||!ar.has(n))){e=rn(a,e),oy(e),a=sp(2),n=To(t,a,2),n!==null&&(op(a,n,t,e),Qa(n,2),Us(n));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
159
+
160
+ Error message:
161
+
162
+ %s`,a)}}function Rp(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new OR;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(sg=!0,r.add(a),n=hE.bind(null,e,t,a),Vs&&Ll(e,a),t.then(n,n))}function hE(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Hs&&(Ar=Hs=Wt(),lc=Ld("Promise Resolved"),Qo=Hd):(a&4194048)!==0&&0>An&&(uo=An=Wt(),uc=Ld("Promise Resolved"),Hh=Hd),Bv()&&I.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
163
+
164
+ When testing, code that resolves suspended data should be wrapped into act(...):
165
+
166
+ act(() => {
167
+ /* finish loading suspended data */
168
+ });
169
+ /* assert on the output */
170
+
171
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),wt===e&&(Pe&a)===a&&(Vt===Ko||Vt===ef&&(Pe&62914560)===Pe&&ma()-of<n1?(ut&ia)===ga&&gi(e,0):og|=a,Fr===Pe&&(Fr=0)),Us(e)}function s0(e,t){t===0&&(t=Xa()),e=Ra(e,t),e!==null&&(Qa(e,t),Us(e))}function gE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),s0(e,a)}function bE(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}n!==null&&n.delete(t),s0(e,a)}function _p(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var n=e,r=t,i=r.type===xd;i=a||i,r.tag!==22?r.flags&67108864?i&&he(r,o0,n,r):_p(n,r,i):r.memoizedState===null&&(i&&r.flags&8192?he(r,o0,n,r):r.subtreeFlags&67108864&&he(r,_p,n,r,i)),t=t.sibling}}function o0(e,t){Se(!0);try{Tv(t),Lv(t),jv(e,t.alternate,t,!1),Av(e,t,0,null,!1,0)}finally{Se(!1)}}function r0(e){var t=!0;e.current.mode&(ka|as)||(t=!1),_p(e,e.current,t)}function i0(e){if((ut&ia)===ga){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=L(e)||"ReactComponent",df!==null){if(df.has(t))return;df.add(t)}else df=new Set([t]);he(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Ll(e,t){Vs&&e.memoizedUpdaters.forEach(function(a){Fn(e,a,t)})}function yE(e,t){var a=I.actQueue;return a!==null?(a.push(t),MR):ch(e,t)}function vE(e){Bv()&&I.actQueue===null&&he(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
172
+
173
+ When testing, code that causes React state updates should be wrapped into act(...):
174
+
175
+ act(() => {
176
+ /* fire events that update state */
177
+ });
178
+ /* assert on the output */
179
+
180
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,L(e))})}function Us(e){e!==el&&e.next===null&&(el===null?ff=el=e:el=el.next=e),mf=!0,I.actQueue!==null?pg||(pg=!0,d0()):mg||(mg=!0,d0())}function Hl(e,t){if(!hg&&mf){hg=!0;do for(var a=!1,n=ff;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var i=0;else{var f=n.suspendedLanes,p=n.pingedLanes;i=(1<<31-za(42|e)+1)-1,i&=r&~(f&~p),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,u0(n,i))}else i=Pe,i=Fa(n,n===wt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==Jr),(i&3)===0||En(n,i)||(a=!0,u0(n,i));n=n.next}while(a);hg=!1}}function xE(){zc=window.event,kp()}function kp(){mf=pg=mg=!1;var e=0;or!==0&&_E()&&(e=or);for(var t=ma(),a=null,n=ff;n!==null;){var r=n.next,i=l0(n,t);i===0?(n.next=null,a===null?ff=r:a.next=r,r===null&&(el=a)):(a=n,(e!==0||(i&3)!==0)&&(mf=!0)),n=r}sa!==nr&&sa!==cf||Hl(e),or!==0&&(or=0)}function l0(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var f=31-za(i),p=1<<f,v=r[f];v===-1?((p&a)===0||(p&n)!==0)&&(r[f]=Oa(p,t)):v<=t&&(e.expiredLanes|=p),i&=~p}if(t=wt,a=Pe,a=Fa(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Jr),n=e.callbackNode,a===0||e===t&&(yt===Gr||yt===Ir)||e.cancelPendingCommit!==null)return n!==null&&Up(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||En(e,a)){if(t=a&-a,t!==e.callbackPriority||I.actQueue!==null&&n!==gg)Up(n);else return t;switch(Xn(a)){case _n:case Ms:a=dh;break;case no:a=wi;break;case Rd:a=fh;break;default:a=wi}return n=c0.bind(null,e),I.actQueue!==null?(I.actQueue.push(n),a=gg):a=ch(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&Up(n),e.callbackPriority=2,e.callbackNode=null,2}function c0(e,t){if(Gd=qd=!1,zc=window.event,sa!==nr&&sa!==cf)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(is===lf&&(is=ig),zl()&&e.callbackNode!==a)return null;var n=Pe;return n=Fa(e,e===wt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Jr),n===0?null:(Yv(e,n,t),l0(e,ma()),e.callbackNode!=null&&e.callbackNode===a?c0.bind(null,e):null)}function u0(e,t){if(zl())return null;qd=Gd,Gd=!1,Yv(e,t,!0)}function Up(e){e!==gg&&e!==null&&uD(e)}function d0(){I.actQueue!==null&&I.actQueue.push(function(){return kp(),null}),FR(function(){(ut&(ia|yn))!==ga?ch(uh,xE):kp()})}function Cp(){if(or===0){var e=zr;e===0&&(e=wd,wd<<=1,(wd&261888)===0&&(wd=256)),or=e}return or}function f0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(nt(e,"action"),bl(""+e))}function m0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function NE(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var i=f0((r[La]||null).action),f=n.submitter;f&&(t=(t=f[La]||null)?f0(t.formAction):f.getAttribute("formAction"),t!==null&&(i=t,f=null));var p=new Td("action","action",null,n,r);e.push({event:p,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(or!==0){var v=f?m0(r,f):new FormData(r),w={pending:!0,data:v,method:r.method,action:i};Object.freeze(w),Pm(a,w,null,v)}}else typeof i=="function"&&(p.preventDefault(),v=f?m0(r,f):new FormData(r),w={pending:!0,data:v,method:r.method,action:i},Object.freeze(w),Pm(a,w,i,v))},currentTarget:r}]})}}function cd(e,t,a){e.currentTarget=a;try{t(e)}catch(n){kh(n)}e.currentTarget=null}function p0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a];e:{var r=void 0,i=n.event;if(n=n.listeners,t)for(var f=n.length-1;0<=f;f--){var p=n[f],v=p.instance,w=p.currentTarget;if(p=p.listener,v!==r&&i.isPropagationStopped())break e;v!==null?he(v,cd,i,p,w):cd(i,p,w),r=v}else for(f=0;f<n.length;f++){if(p=n[f],v=p.instance,w=p.currentTarget,p=p.listener,v!==r&&i.isPropagationStopped())break e;v!==null?he(v,cd,i,p,w):cd(i,p,w),r=v}}}}function rt(e,t){bg.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[mh];a===void 0&&(a=t[mh]=new Set);var n=e+"__bubble";a.has(n)||(h0(t,e,2,!1),a.add(n))}function Tp(e,t,a){bg.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var n=0;t&&(n|=4),h0(a,e,n,t)}function jp(e){if(!e[pf]){e[pf]=!0,dx.forEach(function(a){a!=="selectionchange"&&(bg.has(a)||Tp(a,!1,e),Tp(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pf]||(t[pf]=!0,Tp("selectionchange",!1,t))}}function h0(e,t,a,n){switch(Q0(t)){case _n:var r=tD;break;case Ms:r=aD;break;default:r=Qp}a=r.bind(null,t,a,e),r=void 0,!yh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Op(e,t,a,n,r){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var p=n.stateNode.containerInfo;if(p===r)break;if(f===4)for(f=n.return;f!==null;){var v=f.tag;if((v===3||v===4)&&f.stateNode.containerInfo===r)return;f=f.return}for(;p!==null;){if(f=W(p),f===null)return;if(v=f.tag,v===5||v===6||v===26||v===27){n=i=f;continue e}p=p.parentNode}}n=n.return}Rb(function(){var w=i,V=em(a),M=[];e:{var T=Qx.get(e);if(T!==void 0){var $=Td,me=e;switch(e){case"keypress":if(bu(a)===0)break e;case"keydown":case"keyup":$=JD;break;case"focusin":me="focus",$=Sh;break;case"focusout":me="blur",$=Sh;break;case"beforeblur":case"afterblur":$=Sh;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Ax;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=HD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=eR;break;case Gx:case Ix:case Fx:$=YD;break;case Xx:$=aR;break;case"scroll":case"scrollend":$=zD;break;case"wheel":$=sR;break;case"copy":case"cut":case"paste":$=GD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Mx;break;case"toggle":case"beforetoggle":$=rR}var xe=(t&4)!==0,Dt=!xe&&(e==="scroll"||e==="scrollend"),lt=xe?T!==null?T+"Capture":null:T;xe=[];for(var U=w,j;U!==null;){var A=U;if(j=A.stateNode,A=A.tag,A!==5&&A!==26&&A!==27||j===null||lt===null||(A=yl(U,lt),A!=null&&xe.push(Bl(U,A,j))),Dt)break;U=U.return}0<xe.length&&(T=new $(T,me,null,a,V),M.push({event:T,listeners:xe}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",T&&a!==Jl&&(me=a.relatedTarget||a.fromElement)&&(W(me)||me[$o]))break e;if(($||T)&&(T=V.window===V?V:(T=V.ownerDocument)?T.defaultView||T.parentWindow:window,$?(me=a.relatedTarget||a.toElement,$=w,me=me?W(me):null,me!==null&&(Dt=Z(me),xe=me.tag,me!==Dt||xe!==5&&xe!==27&&xe!==6)&&(me=null)):($=null,me=w),$!==me)){if(xe=Ax,A="onMouseLeave",lt="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(xe=Mx,A="onPointerLeave",lt="onPointerEnter",U="pointer"),Dt=$==null?T:de($),j=me==null?T:de(me),T=new xe(A,U+"leave",$,a,V),T.target=Dt,T.relatedTarget=j,A=null,W(V)===w&&(xe=new xe(lt,U+"enter",me,a,V),xe.target=j,xe.relatedTarget=Dt,A=xe),Dt=A,$&&me)t:{for(xe=SE,lt=$,U=me,j=0,A=lt;A;A=xe(A))j++;A=0;for(var J=U;J;J=xe(J))A++;for(;0<j-A;)lt=xe(lt),j--;for(;0<A-j;)U=xe(U),A--;for(;j--;){if(lt===U||U!==null&&lt===U.alternate){xe=lt;break t}lt=xe(lt),U=xe(U)}xe=null}else xe=null;$!==null&&g0(M,T,$,xe,!1),me!==null&&Dt!==null&&g0(M,Dt,me,xe,!0)}}e:{if(T=w?de(w):window,$=T.nodeName&&T.nodeName.toLowerCase(),$==="select"||$==="input"&&T.type==="file")var ge=Ob;else if(Tb(T))if(Yx)ge=A4;else{ge=j4;var Ye=T4}else $=T.nodeName,!$||$.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?w&&gl(w.elementType)&&(ge=Ob):ge=O4;if(ge&&(ge=ge(e,w))){jb(M,ge,a,V);break e}Ye&&Ye(e,T,w),e==="focusout"&&w&&T.type==="number"&&w.memoizedProps.value!=null&&Ve(T,"number",T.value)}switch(Ye=w?de(w):window,e){case"focusin":(Tb(Ye)||Ye.contentEditable==="true")&&(Ti=Ye,Eh=w,sc=null);break;case"focusout":sc=Eh=Ti=null;break;case"mousedown":Dh=!0;break;case"contextmenu":case"mouseup":case"dragend":Dh=!1,Bb(M,a,V);break;case"selectionchange":if(uR)break;case"keydown":case"keyup":Bb(M,a,V)}var Oe;if(wh)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Ci?Ub(e,a)&&(ke="onCompositionEnd"):e==="keydown"&&a.keyCode===zx&&(ke="onCompositionStart");ke&&(Lx&&a.locale!=="ko"&&(Ci||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Ci&&(Oe=_b()):(Yo=V,vh="value"in Yo?Yo.value:Yo.textContent,Ci=!0)),Ye=ud(w,ke),0<Ye.length&&(ke=new Vx(ke,e,null,a,V),M.push({event:ke,listeners:Ye}),Oe?ke.data=Oe:(Oe=Cb(a),Oe!==null&&(ke.data=Oe)))),(Oe=lR?_4(e,a):k4(e,a))&&(ke=ud(w,"onBeforeInput"),0<ke.length&&(Ye=new FD("onBeforeInput","beforeinput",null,a,V),M.push({event:Ye,listeners:ke}),Ye.data=Oe)),NE(M,e,w,a,V)}p0(M,t)})}function Bl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ud(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,i=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||i===null||(r=yl(e,a),r!=null&&n.unshift(Bl(e,r,i)),r=yl(e,t),r!=null&&n.push(Bl(e,r,i))),e.tag===3)return n;e=e.return}return[]}function SE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function g0(e,t,a,n,r){for(var i=t._reactName,f=[];a!==null&&a!==n;){var p=a,v=p.alternate,w=p.stateNode;if(p=p.tag,v!==null&&v===n)break;p!==5&&p!==26&&p!==27||w===null||(v=w,r?(w=yl(a,i),w!=null&&f.unshift(Bl(a,w,v))):r||(w=yl(a,i),w!=null&&f.push(Bl(a,w,v)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}function Ap(e,t){w4(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||jx||(jx=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Cr,possibleRegistrationNames:ph};gl(e)||typeof t.is=="string"||D4(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function fa(e,t,a,n){t!==a&&(a=Mo(a),Mo(t)!==a&&(n[e]=t))}function wE(e,t,a){t.forEach(function(n){a[v0(n)]=n==="style"?Mp(e):e.getAttribute(n)})}function Cs(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function b0(e,t){return e=e.namespaceURI===kd||e.namespaceURI===Ri?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Mo(e){return Ht(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.",ft(e)),Bt(e)),(typeof e=="string"?e:""+e).replace(zR,`
181
+ `).replace(LR,"")}function y0(e,t){return t=Mo(t),Mo(e)===t}function Nt(e,t,a,n,r,i){switch(a){case"children":typeof n=="string"?(gu(n,t,!1),t==="body"||t==="textarea"&&n===""||hl(e,n)):(typeof n=="number"||typeof n=="bigint")&&(gu(""+n,t,!1),t!=="body"&&hl(e,""+n));break;case"className":oi(e,"class",n);break;case"tabIndex":oi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":oi(e,a,n);break;case"style":wb(e,n,i);break;case"data":if(t!=="object"){oi(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}nt(n,a),n=bl(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(n!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof n=="function"&&(r.encType==null&&r.method==null||bf||(bf=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),r.target==null||gf||(gf=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||r.type==="submit"||r.type==="image"||hf?t!=="button"||r.type==null||r.type==="submit"||hf?typeof n=="function"&&(r.name==null||b1||(b1=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),r.formEncType==null&&r.formMethod==null||bf||(bf=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),r.formTarget==null||gf||(gf=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(hf=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(hf=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&Nt(e,t,"name",r.name,r,null),Nt(e,t,"formEncType",r.formEncType,r,null),Nt(e,t,"formMethod",r.formMethod,r,null),Nt(e,t,"formTarget",r.formTarget,r,null)):(Nt(e,t,"encType",r.encType,r,null),Nt(e,t,"method",r.method,r,null),Nt(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}nt(n,a),n=bl(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(typeof n!="function"&&Cs(a,n),e.onclick=Qs);break;case"onScroll":n!=null&&(typeof n!="function"&&Cs(a,n),rt("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Cs(a,n),rt("scrollend",e));break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=n.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}nt(n,a),a=bl(""+n),e.setAttributeNS(Qr,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?(nt(n,a),e.setAttribute(a,""+n)):e.removeAttribute(a);break;case"inert":n!==""||yf[a]||(yf[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?(nt(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?(nt(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):(nt(n,a),e.setAttribute(a,n));break;case"popover":rt("beforetoggle",e),rt("toggle",e),Fs(e,"popover",n);break;case"xlinkActuate":Qn(e,Qr,"xlink:actuate",n);break;case"xlinkArcrole":Qn(e,Qr,"xlink:arcrole",n);break;case"xlinkRole":Qn(e,Qr,"xlink:role",n);break;case"xlinkShow":Qn(e,Qr,"xlink:show",n);break;case"xlinkTitle":Qn(e,Qr,"xlink:title",n);break;case"xlinkType":Qn(e,Qr,"xlink:type",n);break;case"xmlBase":Qn(e,yg,"xml:base",n);break;case"xmlLang":Qn(e,yg,"xml:lang",n);break;case"xmlSpace":Qn(e,yg,"xml:space",n);break;case"is":i!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Fs(e,"is",n);break;case"innerText":case"textContent":break;case"popoverTarget":y1||n==null||typeof n!="object"||(y1=!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=Eb(a),Fs(e,a,n)):Cr.hasOwnProperty(a)&&n!=null&&typeof n!="function"&&Cs(a,n)}}function Vp(e,t,a,n,r,i){switch(a){case"style":wb(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=n.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof n=="string"?hl(e,n):(typeof n=="number"||typeof n=="bigint")&&hl(e,""+n);break;case"onScroll":n!=null&&(typeof n!="function"&&Cs(a,n),rt("scroll",e));break;case"onScrollEnd":n!=null&&(typeof n!="function"&&Cs(a,n),rt("scrollend",e));break;case"onClick":n!=null&&(typeof n!="function"&&Cs(a,n),e.onclick=Qs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Cr.hasOwnProperty(a))n!=null&&typeof n!="function"&&Cs(a,n);else e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),i=e[La]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,r),typeof n=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Fs(e,a,n)}}}function xa(e,t,a){switch(Ap(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",e),rt("load",e);var n=!1,r=!1,i;for(i in a)if(a.hasOwnProperty(i)){var f=a[i];if(f!=null)switch(i){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,i,f,a,null)}}r&&Nt(e,t,"srcSet",a.srcSet,a,null),n&&Nt(e,t,"src",a.src,a,null);return;case"input":Pt("input",a),rt("invalid",e);var p=i=f=r=null,v=null,w=null;for(n in a)if(a.hasOwnProperty(n)){var V=a[n];if(V!=null)switch(n){case"name":r=V;break;case"type":f=V;break;case"checked":v=V;break;case"defaultChecked":w=V;break;case"value":i=V;break;case"defaultValue":p=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,n,V,a,null)}}je(e,a),Me(e,i,p,v,w,f,r,!1);return;case"select":Pt("select",a),rt("invalid",e),n=f=i=null;for(r in a)if(a.hasOwnProperty(r)&&(p=a[r],p!=null))switch(r){case"value":i=p;break;case"defaultValue":f=p;break;case"multiple":n=p;default:Nt(e,t,r,p,a,null)}Rt(e,a),t=i,a=f,e.multiple=!!n,t!=null?tt(e,!!n,t,!1):a!=null&&tt(e,!!n,a,!0);return;case"textarea":Pt("textarea",a),rt("invalid",e),i=r=n=null;for(f in a)if(a.hasOwnProperty(f)&&(p=a[f],p!=null))switch(f){case"value":n=p;break;case"defaultValue":r=p;break;case"children":i=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Nt(e,t,f,p,a,null)}Gt(e,a),pt(e,n,r,i);return;case"option":Te(e,a);for(v in a)a.hasOwnProperty(v)&&(n=a[v],n!=null)&&(v==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Nt(e,t,v,n,a,null));return;case"dialog":rt("beforetoggle",e),rt("toggle",e),rt("cancel",e),rt("close",e);break;case"iframe":case"object":rt("load",e);break;case"video":case"audio":for(n=0;n<Ac.length;n++)rt(Ac[n],e);break;case"image":rt("error",e),rt("load",e);break;case"details":rt("toggle",e);break;case"embed":case"source":case"link":rt("error",e),rt("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(w in a)if(a.hasOwnProperty(w)&&(n=a[w],n!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,w,n,a,null)}return;default:if(gl(t)){for(V in a)a.hasOwnProperty(V)&&(n=a[V],n!==void 0&&Vp(e,t,V,n,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(n=a[p],n!=null&&Nt(e,t,p,n,a,null))}function EE(e,t,a,n){switch(Ap(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,f=null,p=null,v=null,w=null,V=null;for($ in a){var M=a[$];if(a.hasOwnProperty($)&&M!=null)switch($){case"checked":break;case"value":break;case"defaultValue":v=M;default:n.hasOwnProperty($)||Nt(e,t,$,null,n,M)}}for(var T in n){var $=n[T];if(M=a[T],n.hasOwnProperty(T)&&($!=null||M!=null))switch(T){case"type":i=$;break;case"name":r=$;break;case"checked":w=$;break;case"defaultChecked":V=$;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:$!==M&&Nt(e,t,T,$,n,M)}}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||g1||(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"),g1=!0),!t||n||h1||(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"),h1=!0),Ee(e,f,p,v,w,V,i,r);return;case"select":$=f=p=T=null;for(i in a)if(v=a[i],a.hasOwnProperty(i)&&v!=null)switch(i){case"value":break;case"multiple":$=v;default:n.hasOwnProperty(i)||Nt(e,t,i,null,n,v)}for(r in n)if(i=n[r],v=a[r],n.hasOwnProperty(r)&&(i!=null||v!=null))switch(r){case"value":T=i;break;case"defaultValue":p=i;break;case"multiple":f=i;default:i!==v&&Nt(e,t,r,i,n,v)}n=p,t=f,a=$,T!=null?tt(e,!!t,T,!1):!!a!=!!t&&(n!=null?tt(e,!!t,n,!0):tt(e,!!t,t?[]:"",!1));return;case"textarea":$=T=null;for(p in a)if(r=a[p],a.hasOwnProperty(p)&&r!=null&&!n.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Nt(e,t,p,null,n,r)}for(f in n)if(r=n[f],i=a[f],n.hasOwnProperty(f)&&(r!=null||i!=null))switch(f){case"value":T=r;break;case"defaultValue":$=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==i&&Nt(e,t,f,r,n,i)}ua(e,T,$);return;case"option":for(var me in a)T=a[me],a.hasOwnProperty(me)&&T!=null&&!n.hasOwnProperty(me)&&(me==="selected"?e.selected=!1:Nt(e,t,me,null,n,T));for(v in n)T=n[v],$=a[v],n.hasOwnProperty(v)&&T!==$&&(T!=null||$!=null)&&(v==="selected"?e.selected=T&&typeof T!="function"&&typeof T!="symbol":Nt(e,t,v,T,n,$));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in a)T=a[xe],a.hasOwnProperty(xe)&&T!=null&&!n.hasOwnProperty(xe)&&Nt(e,t,xe,null,n,T);for(w in n)if(T=n[w],$=a[w],n.hasOwnProperty(w)&&T!==$&&(T!=null||$!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,w,T,n,$)}return;default:if(gl(t)){for(var Dt in a)T=a[Dt],a.hasOwnProperty(Dt)&&T!==void 0&&!n.hasOwnProperty(Dt)&&Vp(e,t,Dt,void 0,n,T);for(V in n)T=n[V],$=a[V],!n.hasOwnProperty(V)||T===$||T===void 0&&$===void 0||Vp(e,t,V,T,n,$);return}}for(var lt in a)T=a[lt],a.hasOwnProperty(lt)&&T!=null&&!n.hasOwnProperty(lt)&&Nt(e,t,lt,null,n,T);for(M in n)T=n[M],$=a[M],!n.hasOwnProperty(M)||T===$||T==null&&$==null||Nt(e,t,M,T,n,$)}function v0(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Mp(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var n=e[a];t[n]=e.getPropertyValue(n)}return t}function x0(e,t,a){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var n,r=n="",i;for(i in t)if(t.hasOwnProperty(i)){var f=t[i];f!=null&&typeof f!="boolean"&&f!==""&&(i.indexOf("--")===0?(vt(f,i),n+=r+i+":"+(""+f).trim()):typeof f!="number"||f===0||Cx.has(i)?(vt(f,i),n+=r+i.replace(Dx,"-$1").toLowerCase().replace(Rx,"-ms-")+":"+(""+f).trim()):n+=r+i.replace(Dx,"-$1").toLowerCase().replace(Rx,"-ms-")+":"+f+"px",r=";")}n=n||null,t=e.getAttribute("style"),t!==n&&(n=Mo(n),Mo(t)!==n&&(a.style=Mp(e)))}}function Rn(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(nt(n,t),e===""+n)return}fa(t,e,n,i)}function N0(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null){switch(typeof n){case"function":case"symbol":return}if(!n)return}else switch(typeof n){case"function":case"symbol":break;default:if(n)return}fa(t,e,n,i)}function zp(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":return}else if(n!=null)switch(typeof n){case"function":case"symbol":break;default:if(nt(n,a),e===""+n)return}fa(t,e,n,i)}function S0(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(n))return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(!isNaN(n)&&(nt(n,t),e===""+n))return}fa(t,e,n,i)}function Lp(e,t,a,n,r,i){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return}else if(n!=null)switch(typeof n){case"function":case"symbol":case"boolean":break;default:if(nt(n,t),a=bl(""+n),e===a)return}fa(t,e,n,i)}function w0(e,t,a,n){for(var r={},i=new Set,f=e.attributes,p=0;p<f.length;p++)switch(f[p].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:i.add(f[p].name)}if(gl(t)){for(var v in a)if(a.hasOwnProperty(v)){var w=a[v];if(w!=null){if(Cr.hasOwnProperty(v))typeof w!="function"&&Cs(v,w);else if(a.suppressHydrationWarning!==!0)switch(v){case"children":typeof w!="string"&&typeof w!="number"||fa("children",e.textContent,w,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=e.innerHTML,w=w?w.__html:void 0,w!=null&&(w=b0(e,w),fa(v,f,w,r));continue;case"style":i.delete(v),x0(e,w,r);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":i.delete(v.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",v);continue;case"className":i.delete("class"),f=Is(e,"class",w),fa("className",f,w,r);continue;default:n.context===yo&&t!=="svg"&&t!=="math"?i.delete(v.toLowerCase()):i.delete(v),f=Is(e,v,w),fa(v,f,w,r)}}}}else for(w in a)if(a.hasOwnProperty(w)&&(v=a[w],v!=null)){if(Cr.hasOwnProperty(w))typeof v!="function"&&Cs(w,v);else if(a.suppressHydrationWarning!==!0)switch(w){case"children":typeof v!="string"&&typeof v!="number"||fa("children",e.textContent,v,r);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":f=e.innerHTML,v=v?v.__html:void 0,v!=null&&(v=b0(e,v),f!==v&&(r[w]={__html:f}));continue;case"className":Rn(e,w,"class",v,i,r);continue;case"tabIndex":Rn(e,w,"tabindex",v,i,r);continue;case"style":i.delete(w),x0(e,v,r);continue;case"multiple":i.delete(w),fa(w,e.multiple,v,r);continue;case"muted":i.delete(w),fa(w,e.muted,v,r);continue;case"autoFocus":i.delete("autofocus"),fa(w,e.autofocus,v,r);continue;case"data":if(t!=="object"){i.delete(w),f=e.getAttribute("data"),fa(w,f,v,r);continue}case"src":case"href":if(!(v!==""||t==="a"&&w==="href"||t==="object"&&w==="data")){console.error(w==="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.',w,w);continue}Lp(e,w,w,v,i,r);continue;case"action":case"formAction":if(f=e.getAttribute(w),typeof v=="function"){i.delete(w.toLowerCase()),w==="formAction"?(i.delete("name"),i.delete("formenctype"),i.delete("formmethod"),i.delete("formtarget")):(i.delete("enctype"),i.delete("method"),i.delete("target"));continue}else if(f===HR){i.delete(w.toLowerCase()),fa(w,"function",v,r);continue}Lp(e,w,w.toLowerCase(),v,i,r);continue;case"xlinkHref":Lp(e,w,"xlink:href",v,i,r);continue;case"contentEditable":zp(e,w,"contenteditable",v,i,r);continue;case"spellCheck":zp(e,w,"spellcheck",v,i,r);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":zp(e,w,w,v,i,r);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":N0(e,w,w.toLowerCase(),v,i,r);continue;case"capture":case"download":e:{p=e;var V=f=w,M=r;if(i.delete(V),p=p.getAttribute(V),p===null)switch(typeof v){case"undefined":case"function":case"symbol":break e;default:if(v===!1)break e}else if(v!=null)switch(typeof v){case"function":case"symbol":break;case"boolean":if(v===!0&&p==="")break e;break;default:if(nt(v,f),p===""+v)break e}fa(f,p,v,M)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,V=f=w,M=r,i.delete(V),p=p.getAttribute(V),p===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(v)||1>v)break e}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(v)||1>v)&&(nt(v,f),p===""+v))break e}fa(f,p,v,M)}continue;case"rowSpan":S0(e,w,"rowspan",v,i,r);continue;case"start":S0(e,w,w,v,i,r);continue;case"xHeight":Rn(e,w,"x-height",v,i,r);continue;case"xlinkActuate":Rn(e,w,"xlink:actuate",v,i,r);continue;case"xlinkArcrole":Rn(e,w,"xlink:arcrole",v,i,r);continue;case"xlinkRole":Rn(e,w,"xlink:role",v,i,r);continue;case"xlinkShow":Rn(e,w,"xlink:show",v,i,r);continue;case"xlinkTitle":Rn(e,w,"xlink:title",v,i,r);continue;case"xlinkType":Rn(e,w,"xlink:type",v,i,r);continue;case"xmlBase":Rn(e,w,"xml:base",v,i,r);continue;case"xmlLang":Rn(e,w,"xml:lang",v,i,r);continue;case"xmlSpace":Rn(e,w,"xml:space",v,i,r);continue;case"inert":v!==""||yf[w]||(yf[w]=!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.",w)),N0(e,w,w,v,i,r);continue;default:if(!(2<w.length)||w[0]!=="o"&&w[0]!=="O"||w[1]!=="n"&&w[1]!=="N"){p=Eb(w),f=!1,n.context===yo&&t!=="svg"&&t!=="math"?i.delete(p.toLowerCase()):(V=w.toLowerCase(),V=Ud.hasOwnProperty(V)&&Ud[V]||null,V!==null&&V!==w&&(f=!0,i.delete(V)),i.delete(p));e:if(V=e,M=p,p=v,Aa(M))if(V.hasAttribute(M))V=V.getAttribute(M),nt(p,M),p=V===""+p?p:V;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(V=M.toLowerCase().slice(0,5),V!=="data-"&&V!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;f||fa(w,p,v,r)}}}return 0<i.size&&a.suppressHydrationWarning!==!0&&wE(e,i,r),Object.keys(r).length===0?null:r}function DE(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function E0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function RE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],i=r.transferSize,f=r.initiatorType,p=r.duration;if(i&&p&&E0(f)){for(f=0,p=r.responseEnd,n+=1;n<a.length;n++){var v=a[n],w=v.startTime;if(w>p)break;var V=v.transferSize,M=v.initiatorType;V&&E0(M)&&(v=v.responseEnd,f+=V*(v<p?1:(p-w)/(v-w)))}if(--n,t+=8*(i+f)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function dd(e){return e.nodeType===9?e:e.ownerDocument}function D0(e){switch(e){case Ri:return al;case kd:return xf;default:return yo}}function R0(e,t){if(e===yo)switch(t){case"svg":return al;case"math":return xf;default:return yo}return e===al&&t==="foreignObject"?yo:e}function Hp(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function _E(){var e=window.event;return e&&e.type==="popstate"?e===Sg?!1:(Sg=e,!0):(Sg=null,!1)}function $l(){var e=window.event;return e&&e!==zc?e.type:null}function Yl(){var e=window.event;return e&&e!==zc?e.timeStamp:-1.1}function kE(e){setTimeout(function(){throw e})}function UE(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function CE(){}function TE(e,t,a,n){EE(e,t,a,n),e[La]=n}function _0(e){hl(e,"")}function jE(e,t,a){e.nodeValue=a}function k0(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[La]||null;if(t!==null){var a=se(e);a!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,he(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,he(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function zo(e){return e==="head"}function OE(e,t){e.removeChild(t)}function AE(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function U0(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a===Mc||a===vf){if(n===0){e.removeChild(r),xi(t);return}n--}else if(a===Vc||a===rr||a===Pr||a===tl||a===Zr)n++;else if(a===$R)ql(e.ownerDocument.documentElement);else if(a===qR){a=e.ownerDocument.head,ql(a);for(var i=a.firstChild;i;){var f=i.nextSibling,p=i.nodeName;i[Pl]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=f}}else a===YR&&ql(e.ownerDocument.body);a=r}while(a);xi(t)}function C0(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a===Mc){if(e===0)break;e--}else a!==Vc&&a!==rr&&a!==Pr&&a!==tl||e++;a=n}while(a)}function VE(e){C0(e,!0)}function ME(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function zE(e){e.nodeValue=""}function LE(e){C0(e,!1)}function HE(e,t){t=t[GR],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function BE(e,t){e.nodeValue=t}function Bp(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Bp(a),O(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function $E(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Pl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){nt(r.name,"name");var i=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=fn(e.nextSibling),e===null)break}return null}function YE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=fn(e.nextSibling),e===null))return null;return e}function T0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fn(e.nextSibling),e===null))return null;return e}function $p(e){return e.data===rr||e.data===Pr}function Yp(e){return e.data===tl||e.data===rr&&e.ownerDocument.readyState!==x1}function qE(e,t){var a=e.ownerDocument;if(e.data===Pr)e._reactRetry=t;else if(e.data!==rr||a.readyState!==x1)t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function fn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Vc||t===tl||t===rr||t===Pr||t===Zr||t===vg||t===v1)break;if(t===Mc||t===vf)return null}}return e}function j0(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},n=e.attributes,r=0;r<n.length;r++){var i=n[r];a[v0(i.name)]=i.name.toLowerCase()==="style"?Mp(e):i.value}return{type:t,props:a}}return e.nodeType===8?e.data===Zr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function O0(e,t,a){return a===null||a[BR]!==!0?(e.nodeValue===t?e=null:(t=Mo(t),e=Mo(e.nodeValue)===t?null:e.nodeValue),e):null}function qp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Mc||a===vf){if(t===0)return fn(e.nextSibling);t--}else a!==Vc&&a!==tl&&a!==rr&&a!==Pr&&a!==Zr||t++}e=e.nextSibling}return null}function A0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Vc||a===tl||a===rr||a===Pr||a===Zr){if(t===0)return e;t--}else a!==Mc&&a!==vf||t++}e=e.previousSibling}return null}function GE(e){xi(e)}function IE(e){xi(e)}function FE(e){xi(e)}function V0(e,t,a,n,r){switch(r&&Wf(e,n.ancestorInfo),t=dd(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function XE(e,t,a,n){if(!a[$o]&&se(a)){var r=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",r,r,r)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(r=a.attributes;r.length;)a.removeAttributeNode(r[0]);xa(a,e,t),a[Na]=n,a[La]=t}function ql(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);O(e)}function fd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function M0(e,t,a){var n=nl;if(n&&typeof t=="string"&&t){var r=ye(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),R1.has(r)||(R1.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),xa(t,"link",e),De(t),n.head.appendChild(t)))}}function z0(e,t,a,n){var r=(r=Ho.current)?fd(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=yi(a.href),t=Le(r).hoistableStyles,n=t.get(a),n||(n={type:"style",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=yi(a.href);var i=Le(r).hoistableStyles,f=i.get(e);if(!f&&(r=r.ownerDocument||r,f={type:"stylesheet",instance:null,count:0,state:{loading:Kr,preload:null}},i.set(e,f),(i=r.querySelector(Gl(e)))&&!i._p&&(f.instance=i,f.state.loading=Lc|Ln),!Hn.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};Hn.set(e,p),i||QE(r,e,p,f.state)}if(t&&n===null)throw a=`
182
+
183
+ - `+md(t)+`
184
+ + `+md(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return f}if(t&&n!==null)throw a=`
185
+
186
+ - `+md(t)+`
187
+ + `+md(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=vi(a),t=Le(r).hoistableScripts,n=t.get(a),n||(n={type:"script",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function md(e){var t=0,a="<link";return typeof e.rel=="string"?(t++,a+=' rel="'+e.rel+'"'):ts.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,a+=' href="'+e.href+'"'):ts.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,a+=' precedence="'+e.precedence+'"'):ts.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function yi(e){return'href="'+ye(e)+'"'}function Gl(e){return'link[rel="stylesheet"]['+e+"]"}function L0(e){return et({},e,{"data-precedence":e.precedence,precedence:null})}function QE(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=Lc:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=Lc}),t.addEventListener("error",function(){return n.loading|=E1}),xa(t,"link",a),De(t),e.head.appendChild(t))}function vi(e){return'[src="'+ye(e)+'"]'}function Il(e){return"script[async]"+e}function H0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+ye(a.href)+'"]');if(n)return t.instance=n,De(n),n;var r=et({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),De(n),xa(n,"style",r),pd(n,a.precedence,e),t.instance=n;case"stylesheet":r=yi(a.href);var i=e.querySelector(Gl(r));if(i)return t.state.loading|=Ln,t.instance=i,De(i),i;n=L0(a),(r=Hn.get(r))&&Gp(n,r),i=(e.ownerDocument||e).createElement("link"),De(i);var f=i;return f._p=new Promise(function(p,v){f.onload=p,f.onerror=v}),xa(i,"link",n),t.state.loading|=Ln,pd(i,a.precedence,e),t.instance=i;case"script":return i=vi(a.src),(r=e.querySelector(Il(i)))?(t.instance=r,De(r),r):(n=a,(r=Hn.get(i))&&(n=et({},a),Ip(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),De(r),xa(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Ln)===Kr&&(n=t.instance,t.state.loading|=Ln,pd(n,a.precedence,e));return t.instance}function pd(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,i=r,f=0;f<n.length;f++){var p=n[f];if(p.dataset.precedence===t)i=p;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Gp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ip(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function B0(e,t,a){if(Nf===null){var n=new Map,r=Nf=new Map;r.set(a,n)}else r=Nf,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var i=a[r];if(!(i[Pl]||i[Na]||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 $0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function ZE(e,t,a){var n=!a.ancestorInfo.containerTagInScope;if(a.context===al||t.itemProp!=null)return!n||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){n&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var r=t.onError,i=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),r&&a.push("`onError`"),i!=null&&a.push("`disabled`"),r=DE(a,"and"),r+=a.length===1?" prop":" props",i=a.length===1?"an "+r:"the "+r,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,i,r)}n&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return t.rel==="stylesheet"?(e=t.precedence,t=t.disabled,typeof e!="string"&&n&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null):!0;case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){n&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":n&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Y0(e){return!(e.type==="stylesheet"&&(e.state.loading&D1)===Kr)}function PE(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&Ln)===Kr){if(a.instance===null){var r=yi(n.href),i=t.querySelector(Gl(r));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=hd.bind(e),t.then(e,e)),a.state.loading|=Ln,a.instance=i,De(i);return}i=t.ownerDocument||t,n=L0(n),(r=Hn.get(r))&&Gp(n,r),i=i.createElement("link"),De(i);var f=i;f._p=new Promise(function(p,v){f.onload=p,f.onerror=v}),xa(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&D1)===Kr&&(e.count++,a=hd.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function JE(e,t){return e.stylesheets&&e.count===0&&gd(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&gd(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},XR+t);0<e.imgBytes&&Eg===0&&(Eg=125*RE()*ZR);var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&gd(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Eg?50:QR)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function hd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function gd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Sf=new Map,t.forEach(KE,e),Sf=null,hd.call(e))}function KE(e,t){if(!(t.state.loading&Ln)){var a=Sf.get(e);if(a)var n=a.get(Dg);else{a=new Map,Sf.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var f=r[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(Dg,n)}r=t.instance,f=r.getAttribute("data-precedence"),i=a.get(f)||n,i===n&&a.set(Dg,r),a.set(f,r),this.count++,n=hd.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),i?i.parentNode.insertBefore(r,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=Ln}}function WE(e,t,a,n,r,i,f,p,v){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Jr,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=us(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=us(0),this.hiddenUpdates=us(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function q0(e,t,a,n,r,i,f,p,v,w,V,M){return e=new WE(e,t,a,f,v,w,V,M,p),t=vR,i===!0&&(t|=ka|as),t|=Qe,i=S(3,null,null,t),e.current=i,i.stateNode=e,t=vm(),wr(t),e.pooledCache=t,wr(t),i.memoizedState={element:n,isDehydrated:a,cache:t},Em(i),e}function G0(e){return e?(e=Io,e):Io}function Fp(e,t,a,n,r,i){if(_a&&typeof _a.onScheduleFiberRoot=="function")try{_a.onScheduleFiberRoot(Ei,n,a)}catch(f){As||(As=!0,console.error("React instrumentation encountered an error: %o",f))}r=G0(r),n.context===null?n.context=r:n.pendingContext=r,Os&&pn!==null&&!C1&&(C1=!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.`,L(pn)||"Unknown")),n=Co(t),n.payload={element:a},i=i===void 0?null:i,i!==null&&(typeof i!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",i),n.callback=i),a=To(e,n,t),a!==null&&(ys(t,"root.render()",null),Mt(a,e,t),Dl(a,e,t))}function I0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Xp(e,t){I0(e,t),(e=e.alternate)&&I0(e,t)}function F0(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&Mt(t,e,67108864),Xp(e,67108864)}}function X0(e){if(e.tag===13||e.tag===31){var t=dn(e);t=Za(t);var a=Ra(e,t);a!==null&&Mt(a,e,t),Xp(e,t)}}function eD(){return pn}function tD(e,t,a,n){var r=I.T;I.T=null;var i=gt.p;try{gt.p=_n,Qp(e,t,a,n)}finally{gt.p=i,I.T=r}}function aD(e,t,a,n){var r=I.T;I.T=null;var i=gt.p;try{gt.p=Ms,Qp(e,t,a,n)}finally{gt.p=i,I.T=r}}function Qp(e,t,a,n){if(Ef){var r=Zp(n);if(r===null)Op(e,t,n,Df,a),Z0(e,n);else if(nD(r,e,t,a,n))n.stopPropagation();else if(Z0(e,n),t&4&&-1<JR.indexOf(e)){for(;r!==null;){var i=se(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=wa(i.pendingLanes);if(f!==0){var p=i;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var v=1<<31-za(f);p.entanglements[1]|=v,f&=~v}Us(i),(ut&(ia|yn))===ga&&(rf=ma()+s1,Hl(0))}}break;case 31:case 13:p=Ra(i,2),p!==null&&Mt(p,i,2),hi(),Xp(i,2)}if(i=Zp(n),i===null&&Op(e,t,n,Df,a),i===r)break;r=i}r!==null&&n.stopPropagation()}else Op(e,t,n,null,a)}}function Zp(e){return e=em(e),Pp(e)}function Pp(e){if(Df=null,e=W(e),e!==null){var t=Z(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=X(t),e!==null)return e;e=null}else if(a===31){if(e=te(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Df=e,null}function Q0(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 _n;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Ms;case"message":switch(mD()){case uh:return _n;case dh:return Ms;case wi:case pD:return no;case fh:return Rd;default:return no}default:return no}}function Z0(e,t){switch(e){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":lr=null;break;case"mouseover":case"mouseout":cr=null;break;case"pointerover":case"pointerout":Bc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$c.delete(t.pointerId)}}function Fl(e,t,a,n,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:i,targetContainers:[r]},t!==null&&(t=se(t),t!==null&&F0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function nD(e,t,a,n,r){switch(t){case"focusin":return ir=Fl(ir,e,t,a,n,r),!0;case"dragenter":return lr=Fl(lr,e,t,a,n,r),!0;case"mouseover":return cr=Fl(cr,e,t,a,n,r),!0;case"pointerover":var i=r.pointerId;return Bc.set(i,Fl(Bc.get(i)||null,e,t,a,n,r)),!0;case"gotpointercapture":return i=r.pointerId,$c.set(i,Fl($c.get(i)||null,e,t,a,n,r)),!0}return!1}function P0(e){var t=W(e.target);if(t!==null){var a=Z(t);if(a!==null){if(t=a.tag,t===13){if(t=X(a),t!==null){e.blockedOn=t,x(e.priority,function(){X0(a)});return}}else if(t===31){if(t=te(a),t!==null){e.blockedOn=t,x(e.priority,function(){X0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Zp(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a),r=n;Jl!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Jl=r,a.target.dispatchEvent(n),Jl===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Jl=null}else return t=se(a),t!==null&&F0(t),e.blockedOn=a,!1;t.shift()}return!0}function J0(e,t,a){bd(e)&&a.delete(t)}function sD(){Rg=!1,ir!==null&&bd(ir)&&(ir=null),lr!==null&&bd(lr)&&(lr=null),cr!==null&&bd(cr)&&(cr=null),Bc.forEach(J0),$c.forEach(J0)}function yd(e,t){e.blockedOn===t&&(e.blockedOn=null,Rg||(Rg=!0,Jt.unstable_scheduleCallback(Jt.unstable_NormalPriority,sD)))}function K0(e){Rf!==e&&(Rf=e,Jt.unstable_scheduleCallback(Jt.unstable_NormalPriority,function(){Rf===e&&(Rf=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(Pp(n||a)===null)continue;break}var i=se(a);i!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:r,method:a.method,action:n},Object.freeze(a),Pm(i,a,n,r))}}))}function xi(e){function t(v){return yd(v,e)}ir!==null&&yd(ir,e),lr!==null&&yd(lr,e),cr!==null&&yd(cr,e),Bc.forEach(t),$c.forEach(t);for(var a=0;a<ur.length;a++){var n=ur[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<ur.length&&(a=ur[0],a.blockedOn===null);)P0(a),a.blockedOn===null&&ur.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],i=a[n+1],f=r[La]||null;if(typeof i=="function")f||K0(a);else if(f){var p=null;if(i&&i.hasAttribute("formAction")){if(r=i,f=i[La]||null)p=f.formAction;else if(Pp(r)!==null)continue}else p=f.action;typeof p=="function"?a[n+1]=p:(a.splice(n,3),n-=3),K0(a)}}}function W0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return r=f})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Jp(e){this._internalRoot=e}function vd(e){this._internalRoot=e}function ex(e){e[$o]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Jt=dk(),Kp=iu(),oD=mk(),et=Object.assign,rD=Symbol.for("react.element"),Ts=Symbol.for("react.transitional.element"),Ni=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),xd=Symbol.for("react.strict_mode"),Wp=Symbol.for("react.profiler"),eh=Symbol.for("react.consumer"),js=Symbol.for("react.context"),Xl=Symbol.for("react.forward_ref"),th=Symbol.for("react.suspense"),ah=Symbol.for("react.suspense_list"),Nd=Symbol.for("react.memo"),mn=Symbol.for("react.lazy"),nh=Symbol.for("react.activity"),iD=Symbol.for("react.memo_cache_sentinel"),tx=Symbol.iterator,lD=Symbol.for("react.client.reference"),oa=Array.isArray,I=Kp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gt=oD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,cD=Object.freeze({pending:!1,data:null,method:null,action:null}),sh=[],oh=[],ao=-1,Lo=pe(null),Ql=pe(null),Ho=pe(null),Sd=pe(null),Zl=0,ax,nx,sx,ox,rx,ix,lx;we.__reactDisabledLog=!0;var rh,cx,ih=!1,lh=new(typeof WeakMap=="function"?WeakMap:Map),pn=null,Os=!1,ts=Object.prototype.hasOwnProperty,ch=Jt.unstable_scheduleCallback,uD=Jt.unstable_cancelCallback,dD=Jt.unstable_shouldYield,fD=Jt.unstable_requestPaint,ma=Jt.unstable_now,mD=Jt.unstable_getCurrentPriorityLevel,uh=Jt.unstable_ImmediatePriority,dh=Jt.unstable_UserBlockingPriority,wi=Jt.unstable_NormalPriority,pD=Jt.unstable_LowPriority,fh=Jt.unstable_IdlePriority,hD=Jt.log,gD=Jt.unstable_setDisableYieldValue,Ei=null,_a=null,As=!1,Vs=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",za=Math.clz32?Math.clz32:wn,bD=Math.log,yD=Math.LN2,wd=256,Ed=262144,Dd=4194304,_n=2,Ms=8,no=32,Rd=268435456,Bo=Math.random().toString(36).slice(2),Na="__reactFiber$"+Bo,La="__reactProps$"+Bo,$o="__reactContainer$"+Bo,mh="__reactEvents$"+Bo,vD="__reactListeners$"+Bo,xD="__reactHandles$"+Bo,ux="__reactResources$"+Bo,Pl="__reactMarker$"+Bo,dx=new Set,Cr={},ph={},ND={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},SD=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fx={},mx={},wD=/[\n"\\]/g,px=!1,hx=!1,gx=!1,bx=!1,yx=!1,vx=!1,xx=["value","defaultValue"],Nx=!1,Sx=/["'&<>\n\t]|^\s|\s$/,ED="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),wx="applet caption html table td th marquee object template foreignObject desc title".split(" "),DD=wx.concat(["button"]),RD="dd dt li option optgroup p rp rt".split(" "),Ex={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},_d={},hh={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Dx=/([A-Z])/g,Rx=/^ms-/,_D=/^(?:webkit|moz|o)[A-Z]/,kD=/^-ms-/,UD=/-(.)/g,_x=/;\s*$/,Di={},gh={},kx=!1,Ux=!1,Cx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),kd="http://www.w3.org/1998/Math/MathML",Ri="http://www.w3.org/2000/svg",CD=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ud={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Tx={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},_i={},TD=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),jD=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),jx=!1,Ha={},Ox=/^on./,OD=/^on[^A-Z]/,AD=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),VD=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),MD=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,Jl=null,ki=null,Ui=null,bh=!1,zs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yh=!1;if(zs)try{var Kl={};Object.defineProperty(Kl,"passive",{get:function(){yh=!0}}),window.addEventListener("test",Kl,Kl),window.removeEventListener("test",Kl,Kl)}catch{yh=!1}var Yo=null,vh=null,Cd=null,Tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Td=Pa(Tr),Wl=et({},Tr,{view:0,detail:0}),zD=Pa(Wl),xh,Nh,ec,jd=et({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ec&&(ec&&e.type==="mousemove"?(xh=e.screenX-ec.screenX,Nh=e.screenY-ec.screenY):Nh=xh=0,ec=e),xh)},movementY:function(e){return"movementY"in e?e.movementY:Nh}}),Ax=Pa(jd),LD=et({},jd,{dataTransfer:0}),HD=Pa(LD),BD=et({},Wl,{relatedTarget:0}),Sh=Pa(BD),$D=et({},Tr,{animationName:0,elapsedTime:0,pseudoElement:0}),YD=Pa($D),qD=et({},Tr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),GD=Pa(qD),ID=et({},Tr,{data:0}),Vx=Pa(ID),FD=Vx,XD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QD={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ZD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},PD=et({},Wl,{key:function(e){if(e.key){var t=XD[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?QD[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tm,charCode:function(e){return e.type==="keypress"?bu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),JD=Pa(PD),KD=et({},jd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mx=Pa(KD),WD=et({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tm}),eR=Pa(WD),tR=et({},Tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),aR=Pa(tR),nR=et({},jd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sR=Pa(nR),oR=et({},Tr,{newState:0,oldState:0}),rR=Pa(oR),iR=[9,13,27,32],zx=229,wh=zs&&"CompositionEvent"in window,tc=null;zs&&"documentMode"in document&&(tc=document.documentMode);var lR=zs&&"TextEvent"in window&&!tc,Lx=zs&&(!wh||tc&&8<tc&&11>=tc),Hx=32,Bx=String.fromCharCode(Hx),$x=!1,Ci=!1,cR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},ac=null,nc=null,Yx=!1;zs&&(Yx=U4("input")&&(!document.documentMode||9<document.documentMode));var Ba=typeof Object.is=="function"?Object.is:V4,uR=zs&&"documentMode"in document&&11>=document.documentMode,Ti=null,Eh=null,sc=null,Dh=!1,ji={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionrun:gr("Transition","TransitionRun"),transitionstart:gr("Transition","TransitionStart"),transitioncancel:gr("Transition","TransitionCancel"),transitionend:gr("Transition","TransitionEnd")},Rh={},qx={};zs&&(qx=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 Gx=br("animationend"),Ix=br("animationiteration"),Fx=br("animationstart"),dR=br("transitionrun"),fR=br("transitionstart"),mR=br("transitioncancel"),Xx=br("transitionend"),Qx=new Map,_h="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");_h.push("scrollEnd");var Zx=0;if(typeof performance=="object"&&typeof performance.now=="function")var pR=performance,Px=function(){return pR.now()};else{var hR=Date;Px=function(){return hR.now()}}var kh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},gR="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Od=0,Uh=1,Ch=2,Th=3,Ad="– ",Vd="+ ",Jx="  ",kt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",kn="Components ⚛",it="Scheduler ⚛",ct="Blocking",qo=!1,so={color:"primary",properties:null,tooltipText:"",track:kn},Go={start:-0,end:-0,detail:{devtools:so}},bR=["Changed Props",""],Kx="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",yR=["Changed Props",Kx],oc=1,oo=2,Un=[],Oi=0,jh=0,Io={};Object.freeze(Io);var Cn=null,Ai=null,He=0,vR=1,Qe=2,ka=8,as=16,xR=32,Wx=!1;try{var eN=Object.preventExtensions({})}catch{Wx=!0}var Oh=new WeakMap,Vi=[],Mi=0,Md=null,rc=0,Tn=[],jn=0,jr=null,ro=1,io="",Sa=null,Ut=null,st=!1,Ls=!1,hn=null,Fo=null,On=!1,Ah=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Vh=pe(null),Mh=pe(null),tN={},zd=null,zi=null,Li=!1,NR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},SR=Jt.unstable_scheduleCallback,wR=Jt.unstable_NormalPriority,Kt={$$typeof:js,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Wt=Jt.unstable_now,Ld=console.createTask?console.createTask:function(){return null},ic=1,Hd=2,pa=-0,Xo=-0,lo=-0,co=null,$a=-1.1,Or=-0,At=-0,Ae=-1.1,ze=-1.1,Ot=null,zt=!1,Ar=-0,Hs=-1.1,lc=null,Qo=0,zh=null,Lh=null,Vr=-1.1,cc=null,Hi=-1.1,Bd=-1.1,uo=-0,fo=-1.1,An=-1.1,Hh=0,uc=null,aN=null,nN=null,Zo=-1.1,Mr=null,Po=-1.1,$d=-1.1,sN=-0,oN=-0,Yd=0,ER=null,rN=0,dc=-1.1,qd=!1,Gd=!1,fc=null,Bh=0,zr=0,Bi=null,iN=I.S;I.S=function(e,t){if(a1=ma(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>fo&&0>An){fo=Wt();var a=Yl(),n=$l();(a!==Po||n!==Mr)&&(Po=-1.1),Zo=a,Mr=n}Y4(e,t)}iN!==null&&iN(e,t)};var Lr=pe(null),ns={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},mc=[],pc=[],hc=[],gc=[],bc=[],yc=[],Hr=new Set;ns.recordUnsafeLifecycleWarnings=function(e,t){Hr.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&mc.push(e),e.mode&ka&&typeof t.UNSAFE_componentWillMount=="function"&&pc.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&hc.push(e),e.mode&ka&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&gc.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&bc.push(e),e.mode&ka&&typeof t.UNSAFE_componentWillUpdate=="function"&&yc.push(e))},ns.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<mc.length&&(mc.forEach(function(p){e.add(L(p)||"Component"),Hr.add(p.type)}),mc=[]);var t=new Set;0<pc.length&&(pc.forEach(function(p){t.add(L(p)||"Component"),Hr.add(p.type)}),pc=[]);var a=new Set;0<hc.length&&(hc.forEach(function(p){a.add(L(p)||"Component"),Hr.add(p.type)}),hc=[]);var n=new Set;0<gc.length&&(gc.forEach(function(p){n.add(L(p)||"Component"),Hr.add(p.type)}),gc=[]);var r=new Set;0<bc.length&&(bc.forEach(function(p){r.add(L(p)||"Component"),Hr.add(p.type)}),bc=[]);var i=new Set;if(0<yc.length&&(yc.forEach(function(p){i.add(L(p)||"Component"),Hr.add(p.type)}),yc=[]),0<t.size){var f=N(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=N(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=N(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=N(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=N(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move data fetching code or side effects to componentDidUpdate.
210
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
211
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,f)),0<r.size&&(f=N(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
214
+
215
+ * Move data fetching code or side effects to componentDidUpdate.
216
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
+
218
+ Please update the following components: %s`,f))};var Id=new Map,lN=new Set;ns.recordLegacyContextWarning=function(e,t){for(var a=null,n=e;n!==null;)n.mode&ka&&(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."):!lN.has(e.type)&&(n=Id.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(n===void 0&&(n=[],Id.set(a,n)),n.push(e))},ns.flushLegacyContextWarning=function(){Id.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(r){a.add(L(r)||"Component"),lN.add(r.type)});var n=N(a);he(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
219
+
220
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
221
+
222
+ Please update the following components: %s
223
+
224
+ Learn more about this warning here: https://react.dev/link/legacy-context`,n)})}})},ns.discardPendingWarnings=function(){mc=[],pc=[],hc=[],gc=[],bc=[],yc=[],Id=new Map};var cN={react_stack_bottom_frame:function(e,t,a){var n=Os;Os=!0;try{return e(t,a)}finally{Os=n}}},$h=cN.react_stack_bottom_frame.bind(cN),uN={react_stack_bottom_frame:function(e){var t=Os;Os=!0;try{return e.render()}finally{Os=t}}},dN=uN.react_stack_bottom_frame.bind(uN),fN={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){ht(e,e.return,a)}}},Yh=fN.react_stack_bottom_frame.bind(fN),mN={react_stack_bottom_frame:function(e,t,a,n,r){try{t.componentDidUpdate(a,n,r)}catch(i){ht(e,e.return,i)}}},pN=mN.react_stack_bottom_frame.bind(mN),hN={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},DR=hN.react_stack_bottom_frame.bind(hN),gN={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(n){ht(e,t,n)}}},bN=gN.react_stack_bottom_frame.bind(gN),yN={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},RR=yN.react_stack_bottom_frame.bind(yN),vN={react_stack_bottom_frame:function(e,t,a){try{a()}catch(n){ht(e,t,n)}}},_R=vN.react_stack_bottom_frame.bind(vN),xN={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},kR=xN.react_stack_bottom_frame.bind(xN),$i=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),qh=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Fd=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Xd={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Br=null,vc=!1,Yi=null,xc=0,Ze=null,Gh,NN=Gh=!1,SN={},wN={},EN={};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=L(e),r=n||"null";if(!SN[r]){SN[r]=!0,a=a._owner,e=e._debugOwner;var i="";e&&typeof e.tag=="number"&&(r=L(e))&&(i=`
225
+
226
+ Check the render method of \``+r+"`."),i||n&&(i=`
227
+
228
+ Check the top-level render call using <`+n+">.");var f="";a!=null&&e!==a&&(n=null,typeof a.tag=="number"?n=L(a):typeof a.name=="string"&&(n=a.name),n&&(f=" It was passed a child from "+n+".")),he(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',i,f)})}}};var $r=gy(!0),DN=gy(!1),RN=0,_N=1,kN=2,Ih=3,Jo=!1,UN=!1,Fh=null,Xh=!1,qi=pe(null),Qd=pe(0),gn=pe(null),Vn=null,Gi=1,Nc=2,Ft=pe(0),Zd=0,Mn=1,Ya=2,bn=4,qa=8,Ii,CN=new Set,TN=new Set,Qh=new Set,jN=new Set,mo=0,$e=null,St=null,ea=null,Pd=!1,Fi=!1,Yr=!1,Jd=0,Sc=0,po=null,UR=0,CR=25,q=null,zn=null,ho=-1,wc=!1,Ec={readContext:jt,use:Ao,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};Ec.useEffectEvent=$t;var Zh=null,ON=null,Ph=null,AN=null,Bs=null,ss=null,Kd=null;Zh={readContext:function(e){return jt(e)},use:Ao,useCallback:function(e,t){return q="useCallback",We(),li(t),Fm(e,t)},useContext:function(e){return q="useContext",We(),jt(e)},useEffect:function(e,t){return q="useEffect",We(),li(t),Iu(e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",We(),li(a),Im(e,t,a)},useInsertionEffect:function(e,t){q="useInsertionEffect",We(),li(t),Dr(4,Ya,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",We(),li(t),Gm(e,t)},useMemo:function(e,t){q="useMemo",We(),li(t);var a=I.H;I.H=Bs;try{return Xm(e,t)}finally{I.H=a}},useReducer:function(e,t,a){q="useReducer",We();var n=I.H;I.H=Bs;try{return Vm(e,t,a)}finally{I.H=n}},useRef:function(e){return q="useRef",We(),Ym(e)},useState:function(e){q="useState",We();var t=I.H;I.H=Bs;try{return Hm(e)}finally{I.H=t}},useDebugValue:function(){q="useDebugValue",We()},useDeferredValue:function(e,t){return q="useDeferredValue",We(),Qm(e,t)},useTransition:function(){return q="useTransition",We(),Jm()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",We(),zm(e,t,a)},useId:function(){return q="useId",We(),Km()},useFormState:function(e,t){return q="useFormState",We(),Bu(),ui(e,t)},useActionState:function(e,t){return q="useActionState",We(),ui(e,t)},useOptimistic:function(e){return q="useOptimistic",We(),Bm(e)},useHostTransitionStatus:Rr,useMemoCache:Er,useCacheRefresh:function(){return q="useCacheRefresh",We(),Wm()},useEffectEvent:function(e){return q="useEffectEvent",We(),qm(e)}},ON={readContext:function(e){return jt(e)},use:Ao,useCallback:function(e,t){return q="useCallback",oe(),Fm(e,t)},useContext:function(e){return q="useContext",oe(),jt(e)},useEffect:function(e,t){return q="useEffect",oe(),Iu(e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",oe(),Im(e,t,a)},useInsertionEffect:function(e,t){q="useInsertionEffect",oe(),Dr(4,Ya,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",oe(),Gm(e,t)},useMemo:function(e,t){q="useMemo",oe();var a=I.H;I.H=Bs;try{return Xm(e,t)}finally{I.H=a}},useReducer:function(e,t,a){q="useReducer",oe();var n=I.H;I.H=Bs;try{return Vm(e,t,a)}finally{I.H=n}},useRef:function(e){return q="useRef",oe(),Ym(e)},useState:function(e){q="useState",oe();var t=I.H;I.H=Bs;try{return Hm(e)}finally{I.H=t}},useDebugValue:function(){q="useDebugValue",oe()},useDeferredValue:function(e,t){return q="useDeferredValue",oe(),Qm(e,t)},useTransition:function(){return q="useTransition",oe(),Jm()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",oe(),zm(e,t,a)},useId:function(){return q="useId",oe(),Km()},useActionState:function(e,t){return q="useActionState",oe(),ui(e,t)},useFormState:function(e,t){return q="useFormState",oe(),Bu(),ui(e,t)},useOptimistic:function(e){return q="useOptimistic",oe(),Bm(e)},useHostTransitionStatus:Rr,useMemoCache:Er,useCacheRefresh:function(){return q="useCacheRefresh",oe(),Wm()},useEffectEvent:function(e){return q="useEffectEvent",oe(),qm(e)}},Ph={readContext:function(e){return jt(e)},use:Ao,useCallback:function(e,t){return q="useCallback",oe(),Qu(e,t)},useContext:function(e){return q="useContext",oe(),jt(e)},useEffect:function(e,t){q="useEffect",oe(),Ja(2048,qa,e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",oe(),Xu(e,t,a)},useInsertionEffect:function(e,t){return q="useInsertionEffect",oe(),Ja(4,Ya,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",oe(),Ja(4,bn,e,t)},useMemo:function(e,t){q="useMemo",oe();var a=I.H;I.H=ss;try{return Zu(e,t)}finally{I.H=a}},useReducer:function(e,t,a){q="useReducer",oe();var n=I.H;I.H=ss;try{return ci(e,t,a)}finally{I.H=n}},useRef:function(){return q="useRef",oe(),bt().memoizedState},useState:function(){q="useState",oe();var e=I.H;I.H=ss;try{return ci(Wn)}finally{I.H=e}},useDebugValue:function(){q="useDebugValue",oe()},useDeferredValue:function(e,t){return q="useDeferredValue",oe(),Ly(e,t)},useTransition:function(){return q="useTransition",oe(),Gy()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",oe(),Yu(e,t,a)},useId:function(){return q="useId",oe(),bt().memoizedState},useFormState:function(e){return q="useFormState",oe(),Bu(),qu(e)},useActionState:function(e){return q="useActionState",oe(),qu(e)},useOptimistic:function(e,t){return q="useOptimistic",oe(),ky(e,t)},useHostTransitionStatus:Rr,useMemoCache:Er,useCacheRefresh:function(){return q="useCacheRefresh",oe(),bt().memoizedState},useEffectEvent:function(e){return q="useEffectEvent",oe(),Fu(e)}},AN={readContext:function(e){return jt(e)},use:Ao,useCallback:function(e,t){return q="useCallback",oe(),Qu(e,t)},useContext:function(e){return q="useContext",oe(),jt(e)},useEffect:function(e,t){q="useEffect",oe(),Ja(2048,qa,e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",oe(),Xu(e,t,a)},useInsertionEffect:function(e,t){return q="useInsertionEffect",oe(),Ja(4,Ya,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",oe(),Ja(4,bn,e,t)},useMemo:function(e,t){q="useMemo",oe();var a=I.H;I.H=Kd;try{return Zu(e,t)}finally{I.H=a}},useReducer:function(e,t,a){q="useReducer",oe();var n=I.H;I.H=Kd;try{return Ul(e,t,a)}finally{I.H=n}},useRef:function(){return q="useRef",oe(),bt().memoizedState},useState:function(){q="useState",oe();var e=I.H;I.H=Kd;try{return Ul(Wn)}finally{I.H=e}},useDebugValue:function(){q="useDebugValue",oe()},useDeferredValue:function(e,t){return q="useDeferredValue",oe(),Hy(e,t)},useTransition:function(){return q="useTransition",oe(),Iy()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",oe(),Yu(e,t,a)},useId:function(){return q="useId",oe(),bt().memoizedState},useFormState:function(e){return q="useFormState",oe(),Bu(),Gu(e)},useActionState:function(e){return q="useActionState",oe(),Gu(e)},useOptimistic:function(e,t){return q="useOptimistic",oe(),Cy(e,t)},useHostTransitionStatus:Rr,useMemoCache:Er,useCacheRefresh:function(){return q="useCacheRefresh",oe(),bt().memoizedState},useEffectEvent:function(e){return q="useEffectEvent",oe(),Fu(e)}},Bs={readContext:function(e){return b(),jt(e)},use:function(e){return g(),Ao(e)},useCallback:function(e,t){return q="useCallback",g(),We(),Fm(e,t)},useContext:function(e){return q="useContext",g(),We(),jt(e)},useEffect:function(e,t){return q="useEffect",g(),We(),Iu(e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",g(),We(),Im(e,t,a)},useInsertionEffect:function(e,t){q="useInsertionEffect",g(),We(),Dr(4,Ya,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",g(),We(),Gm(e,t)},useMemo:function(e,t){q="useMemo",g(),We();var a=I.H;I.H=Bs;try{return Xm(e,t)}finally{I.H=a}},useReducer:function(e,t,a){q="useReducer",g(),We();var n=I.H;I.H=Bs;try{return Vm(e,t,a)}finally{I.H=n}},useRef:function(e){return q="useRef",g(),We(),Ym(e)},useState:function(e){q="useState",g(),We();var t=I.H;I.H=Bs;try{return Hm(e)}finally{I.H=t}},useDebugValue:function(){q="useDebugValue",g(),We()},useDeferredValue:function(e,t){return q="useDeferredValue",g(),We(),Qm(e,t)},useTransition:function(){return q="useTransition",g(),We(),Jm()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",g(),We(),zm(e,t,a)},useId:function(){return q="useId",g(),We(),Km()},useFormState:function(e,t){return q="useFormState",g(),We(),ui(e,t)},useActionState:function(e,t){return q="useActionState",g(),We(),ui(e,t)},useOptimistic:function(e){return q="useOptimistic",g(),We(),Bm(e)},useMemoCache:function(e){return g(),Er(e)},useHostTransitionStatus:Rr,useCacheRefresh:function(){return q="useCacheRefresh",We(),Wm()},useEffectEvent:function(e){return q="useEffectEvent",g(),We(),qm(e)}},ss={readContext:function(e){return b(),jt(e)},use:function(e){return g(),Ao(e)},useCallback:function(e,t){return q="useCallback",g(),oe(),Qu(e,t)},useContext:function(e){return q="useContext",g(),oe(),jt(e)},useEffect:function(e,t){q="useEffect",g(),oe(),Ja(2048,qa,e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",g(),oe(),Xu(e,t,a)},useInsertionEffect:function(e,t){return q="useInsertionEffect",g(),oe(),Ja(4,Ya,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",g(),oe(),Ja(4,bn,e,t)},useMemo:function(e,t){q="useMemo",g(),oe();var a=I.H;I.H=ss;try{return Zu(e,t)}finally{I.H=a}},useReducer:function(e,t,a){q="useReducer",g(),oe();var n=I.H;I.H=ss;try{return ci(e,t,a)}finally{I.H=n}},useRef:function(){return q="useRef",g(),oe(),bt().memoizedState},useState:function(){q="useState",g(),oe();var e=I.H;I.H=ss;try{return ci(Wn)}finally{I.H=e}},useDebugValue:function(){q="useDebugValue",g(),oe()},useDeferredValue:function(e,t){return q="useDeferredValue",g(),oe(),Ly(e,t)},useTransition:function(){return q="useTransition",g(),oe(),Gy()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",g(),oe(),Yu(e,t,a)},useId:function(){return q="useId",g(),oe(),bt().memoizedState},useFormState:function(e){return q="useFormState",g(),oe(),qu(e)},useActionState:function(e){return q="useActionState",g(),oe(),qu(e)},useOptimistic:function(e,t){return q="useOptimistic",g(),oe(),ky(e,t)},useMemoCache:function(e){return g(),Er(e)},useHostTransitionStatus:Rr,useCacheRefresh:function(){return q="useCacheRefresh",oe(),bt().memoizedState},useEffectEvent:function(e){return q="useEffectEvent",g(),oe(),Fu(e)}},Kd={readContext:function(e){return b(),jt(e)},use:function(e){return g(),Ao(e)},useCallback:function(e,t){return q="useCallback",g(),oe(),Qu(e,t)},useContext:function(e){return q="useContext",g(),oe(),jt(e)},useEffect:function(e,t){q="useEffect",g(),oe(),Ja(2048,qa,e,t)},useImperativeHandle:function(e,t,a){return q="useImperativeHandle",g(),oe(),Xu(e,t,a)},useInsertionEffect:function(e,t){return q="useInsertionEffect",g(),oe(),Ja(4,Ya,e,t)},useLayoutEffect:function(e,t){return q="useLayoutEffect",g(),oe(),Ja(4,bn,e,t)},useMemo:function(e,t){q="useMemo",g(),oe();var a=I.H;I.H=ss;try{return Zu(e,t)}finally{I.H=a}},useReducer:function(e,t,a){q="useReducer",g(),oe();var n=I.H;I.H=ss;try{return Ul(e,t,a)}finally{I.H=n}},useRef:function(){return q="useRef",g(),oe(),bt().memoizedState},useState:function(){q="useState",g(),oe();var e=I.H;I.H=ss;try{return Ul(Wn)}finally{I.H=e}},useDebugValue:function(){q="useDebugValue",g(),oe()},useDeferredValue:function(e,t){return q="useDeferredValue",g(),oe(),Hy(e,t)},useTransition:function(){return q="useTransition",g(),oe(),Iy()},useSyncExternalStore:function(e,t,a){return q="useSyncExternalStore",g(),oe(),Yu(e,t,a)},useId:function(){return q="useId",g(),oe(),bt().memoizedState},useFormState:function(e){return q="useFormState",g(),oe(),Gu(e)},useActionState:function(e){return q="useActionState",g(),oe(),Gu(e)},useOptimistic:function(e,t){return q="useOptimistic",g(),oe(),Cy(e,t)},useMemoCache:function(e){return g(),Er(e)},useHostTransitionStatus:Rr,useCacheRefresh:function(){return q="useCacheRefresh",oe(),bt().memoizedState},useEffectEvent:function(e){return q="useEffectEvent",g(),oe(),Fu(e)}};var VN={},MN=new Set,zN=new Set,LN=new Set,HN=new Set,BN=new Set,$N=new Set,YN=new Set,qN=new Set,GN=new Set,IN=new Set;Object.freeze(VN);var Jh={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=dn(e),r=Co(n);r.payload=t,a!=null&&(tp(a),r.callback=a),t=To(e,r,n),t!==null&&(ys(n,"this.setState()",e),Mt(t,e,n),Dl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=dn(e),r=Co(n);r.tag=_N,r.payload=t,a!=null&&(tp(a),r.callback=a),t=To(e,r,n),t!==null&&(ys(n,"this.replaceState()",e),Mt(t,e,n),Dl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=dn(e),n=Co(a);n.tag=kN,t!=null&&(tp(t),n.callback=t),t=To(e,n,a),t!==null&&(ys(a,"this.forceUpdate()",e),Mt(t,e,a),Dl(t,e,a))}},Xi=null,Kh=null,Wh=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),ta=!1,FN={},XN={},QN={},ZN={},Qi=!1,PN={},Wd={},eg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},JN=!1,KN=null;KN=new Set;var go=!1,aa=!1,tg=!1,WN=typeof WeakSet=="function"?WeakSet:Set,ha=null,Zi=null,Pi=null,na=null,en=!1,os=null,ra=!1,Dc=8192,TR={getCacheForType:function(e){var t=jt(Kt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return jt(Kt).controller.signal},getOwner:function(){return pn}};if(typeof Symbol=="function"&&Symbol.for){var Rc=Symbol.for;Rc("selector.component"),Rc("selector.has_pseudo_class"),Rc("selector.role"),Rc("selector.test_id"),Rc("selector.text")}var jR=[],OR=typeof WeakMap=="function"?WeakMap:Map,ga=0,ia=2,yn=4,bo=0,_c=1,qr=2,ef=3,Ko=4,tf=6,e1=5,ut=ga,wt=null,Je=null,Pe=0,tn=0,af=1,Gr=2,kc=3,t1=4,ag=5,Uc=6,nf=7,ng=8,Ir=9,yt=tn,vn=null,Wo=!1,Ji=!1,sg=!1,$s=0,Vt=bo,er=0,tr=0,og=0,an=0,Fr=0,Cc=null,Ga=null,sf=!1,of=0,a1=0,n1=300,rf=1/0,s1=500,Tc=null,Yt=null,ar=null,lf=0,rg=1,ig=2,o1=3,nr=0,r1=1,i1=2,l1=3,c1=4,cf=5,sa=0,sr=null,Ki=null,rs=0,lg=0,cg=-0,ug=null,u1=null,d1=null,is=lf,f1=null,AR=50,jc=0,dg=null,fg=!1,uf=!1,VR=50,Xr=0,Oc=null,Wi=!1,df=null,m1=!1,p1=new Set,MR={},ff=null,el=null,mg=!1,pg=!1,mf=!1,hg=!1,or=0,gg={};(function(){for(var e=0;e<_h.length;e++){var t=_h[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Jn(a,"on"+t)}Jn(Gx,"onAnimationEnd"),Jn(Ix,"onAnimationIteration"),Jn(Fx,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(dR,"onTransitionRun"),Jn(fR,"onTransitionStart"),Jn(mR,"onTransitionCancel"),Jn(Xx,"onTransitionEnd")})(),Be("onMouseEnter",["mouseout","mouseover"]),Be("onMouseLeave",["mouseout","mouseover"]),Be("onPointerEnter",["pointerout","pointerover"]),Be("onPointerLeave",["pointerout","pointerover"]),Xe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ac)),pf="_reactListening"+Math.random().toString(36).slice(2),h1=!1,g1=!1,hf=!1,b1=!1,gf=!1,bf=!1,y1=!1,yf={},zR=/\r\n?/g,LR=/\u0000|\uFFFD/g,Qr="http://www.w3.org/1999/xlink",yg="http://www.w3.org/XML/1998/namespace",HR="javascript:throw new Error('React form unexpectedly submitted.')",BR="suppressHydrationWarning",Zr="&",vf="/&",Vc="$",Mc="/$",rr="$?",Pr="$~",tl="$!",$R="html",YR="body",qR="head",vg="F!",v1="F",x1="loading",GR="style",yo=0,al=1,xf=2,xg=null,Ng=null,N1={dialog:!0,webview:!0},Sg=null,zc=void 0,S1=typeof setTimeout=="function"?setTimeout:void 0,IR=typeof clearTimeout=="function"?clearTimeout:void 0,Jr=-1,w1=typeof Promise=="function"?Promise:void 0,FR=typeof queueMicrotask=="function"?queueMicrotask:typeof w1<"u"?function(e){return w1.resolve(null).then(e).catch(kE)}:S1,wg=null,Kr=0,Lc=1,E1=2,D1=3,Ln=4,Hn=new Map,R1=new Set,vo=gt.d;gt.d={f:function(){var e=vo.f(),t=hi();return e||t},r:function(e){var t=se(e);t!==null&&t.tag===5&&t.type==="form"?qy(t):vo.r(e)},D:function(e){vo.D(e),M0("dns-prefetch",e,null)},C:function(e,t){vo.C(e,t),M0("preconnect",e,t)},L:function(e,t,a){vo.L(e,t,a);var n=nl;if(n&&e&&t){var r='link[rel="preload"][as="'+ye(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+ye(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+ye(a.imageSizes)+'"]')):r+='[href="'+ye(e)+'"]';var i=r;switch(t){case"style":i=yi(e);break;case"script":i=vi(e)}Hn.has(i)||(e=et({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Hn.set(i,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Gl(i))||t==="script"&&n.querySelector(Il(i))||(t=n.createElement("link"),xa(t,"link",e),De(t),n.head.appendChild(t)))}},m:function(e,t){vo.m(e,t);var a=nl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+ye(n)+'"][href="'+ye(e)+'"]',i=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=vi(e)}if(!Hn.has(i)&&(e=et({rel:"modulepreload",href:e},t),Hn.set(i,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Il(i)))return}n=a.createElement("link"),xa(n,"link",e),De(n),a.head.appendChild(n)}}},X:function(e,t){vo.X(e,t);var a=nl;if(a&&e){var n=Le(a).hoistableScripts,r=vi(e),i=n.get(r);i||(i=a.querySelector(Il(r)),i||(e=et({src:e,async:!0},t),(t=Hn.get(r))&&Ip(e,t),i=a.createElement("script"),De(i),xa(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}},S:function(e,t,a){vo.S(e,t,a);var n=nl;if(n&&e){var r=Le(n).hoistableStyles,i=yi(e);t=t||"default";var f=r.get(i);if(!f){var p={loading:Kr,preload:null};if(f=n.querySelector(Gl(i)))p.loading=Lc|Ln;else{e=et({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Hn.get(i))&&Gp(e,a);var v=f=n.createElement("link");De(v),xa(v,"link",e),v._p=new Promise(function(w,V){v.onload=w,v.onerror=V}),v.addEventListener("load",function(){p.loading|=Lc}),v.addEventListener("error",function(){p.loading|=E1}),p.loading|=Ln,pd(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:p},r.set(i,f)}}},M:function(e,t){vo.M(e,t);var a=nl;if(a&&e){var n=Le(a).hoistableScripts,r=vi(e),i=n.get(r);i||(i=a.querySelector(Il(r)),i||(e=et({src:e,async:!0,type:"module"},t),(t=Hn.get(r))&&Ip(e,t),i=a.createElement("script"),De(i),xa(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(r,i))}}};var nl=typeof document>"u"?null:document,Nf=null,XR=6e4,QR=800,ZR=500,Eg=0,Dg=null,Sf=null,Wr=cD,Hc={$$typeof:js,Provider:null,Consumer:null,_currentValue:Wr,_currentValue2:Wr,_threadCount:0},_1="%c%s%c",k1="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",U1="",wf=" ",PR=Function.prototype.bind,C1=!1,T1=null,j1=null,O1=null,A1=null,V1=null,M1=null,z1=null,L1=null,H1=null,B1=null;T1=function(e,t,a,n){t=s(e,t),t!==null&&(a=o(t.memoizedState,a,0,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=et({},e.memoizedProps),a=Ra(e,2),a!==null&&Mt(a,e,2))},j1=function(e,t,a){t=s(e,t),t!==null&&(a=u(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=et({},e.memoizedProps),a=Ra(e,2),a!==null&&Mt(a,e,2))},O1=function(e,t,a,n){t=s(e,t),t!==null&&(a=l(t.memoizedState,a,n),t.memoizedState=a,t.baseState=a,e.memoizedProps=et({},e.memoizedProps),a=Ra(e,2),a!==null&&Mt(a,e,2))},A1=function(e,t,a){e.pendingProps=o(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ra(e,2),t!==null&&Mt(t,e,2)},V1=function(e,t){e.pendingProps=u(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ra(e,2),t!==null&&Mt(t,e,2)},M1=function(e,t,a){e.pendingProps=l(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ra(e,2),t!==null&&Mt(t,e,2)},z1=function(e){var t=Ra(e,2);t!==null&&Mt(t,e,2)},L1=function(e){var t=Xa(),a=Ra(e,t);a!==null&&Mt(a,e,t)},H1=function(e){h=e},B1=function(e){d=e};var Ef=!0,Df=null,Rg=!1,ir=null,lr=null,cr=null,Bc=new Map,$c=new Map,ur=[],JR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Rf=null;if(vd.prototype.render=Jp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):H(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var n=t.current,r=dn(n);Fp(n,r,a,t,null,null)},vd.prototype.unmount=Jp.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(ut&(ia|yn))!==ga&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Fp(e.current,2,null,e,null,null),hi(),t[$o]=null}},vd.prototype.unstable_scheduleHydration=function(e){if(e){var t=sn();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ur.length&&t!==0&&t<ur[a].priority;a++);ur.splice(a,0,e),a===0&&P0(e)}},(function(){var e=Kp.version;if(e!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
229
+ - react: `+(e+`
230
+ - react-dom: 19.2.4
231
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),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=ie(t),e=e!==null?ne(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.4"};return e.overrideHookState=T1,e.overrideHookStateDeletePath=j1,e.overrideHookStateRenamePath=O1,e.overrideProps=A1,e.overridePropsDeletePath=V1,e.overridePropsRenamePath=M1,e.scheduleUpdate=z1,e.scheduleRetry=L1,e.setErrorHandler=H1,e.setSuspenseHandler=B1,e.scheduleRefresh=k,e.scheduleRoot=R,e.setRefreshHandler=B,e.getCurrentFiber=eD,Sn(e)})()&&zs&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var $1=window.location.protocol;/^(https?|file):$/.test($1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+($1==="file:"?`
232
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}qc.createRoot=function(e,t){if(!H(e))throw Error("Target container is not a DOM element.");ex(e);var a=!1,n="",r=Jy,i=Ky,f=Wy;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Ts&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
233
+
234
+ let root = createRoot(domContainer);
235
+ root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=q0(e,1,!1,null,null,a,n,null,r,i,f,W0),e[$o]=t.current,jp(e),new Jp(t)},qc.hydrateRoot=function(e,t,a){if(!H(e))throw Error("Target container is not a DOM element.");ex(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var n=!1,r="",i=Jy,f=Ky,p=Wy,v=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),t=q0(e,1,!0,t,a??null,n,r,v,i,f,p,W0),t.context=G0(null),a=t.current,n=dn(a),n=Za(n),r=Co(n),r.callback=null,To(a,r,n),ys(n,"hydrateRoot()",null),a=n,t.current.lanes=a,Qa(t,a),Us(t),e[$o]=t.current,jp(e),new vd(t)},qc.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),qc}var yS;function hk(){return yS||(yS=1,Ag.exports=pk()),Ag.exports}var gk=hk();var Dw=s=>{throw TypeError(s)},bk=(s,o,l)=>o.has(s)||Dw("Cannot "+l),Lg=(s,o,l)=>(bk(s,o,"read from private field"),l?l.call(s):o.get(s)),yk=(s,o,l)=>o.has(s)?Dw("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(s):o.set(s,l),vS="popstate";function xS(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function vk(s={}){function o(c,u){let d=u.state?.masked,{pathname:h,search:g,hash:b}=d||c.location;return au("",{pathname:h,search:g,hash:b},u.state&&u.state.usr||null,u.state&&u.state.key||"default",d?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function l(c,u){return typeof u=="string"?u:qs(u)}return Nk(o,l,null,s)}function at(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function qt(s,o){if(!s){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function xk(){return Math.random().toString(36).substring(2,10)}function NS(s,o){return{usr:s.state,key:s.key,idx:o,masked:s.unstable_mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function au(s,o,l=null,c,u){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof o=="string"?wo(o):o,state:l,key:o&&o.key||c||xk(),unstable_mask:u}}function qs({pathname:s="/",search:o="",hash:l=""}){return o&&o!=="?"&&(s+=o.charAt(0)==="?"?o:"?"+o),l&&l!=="#"&&(s+=l.charAt(0)==="#"?l:"#"+l),s}function wo(s){let o={};if(s){let l=s.indexOf("#");l>=0&&(o.hash=s.substring(l),s=s.substring(0,l));let c=s.indexOf("?");c>=0&&(o.search=s.substring(c),s=s.substring(0,c)),s&&(o.pathname=s)}return o}function Nk(s,o,l,c={}){let{window:u=document.defaultView,v5Compat:d=!1}=c,h=u.history,g="POP",b=null,y=D();y==null&&(y=0,h.replaceState({...h.state,idx:y},""));function D(){return(h.state||{idx:null}).idx}function N(){g="POP";let H=D(),Z=H==null?null:H-y;y=H,b&&b({action:g,location:B.location,delta:Z})}function S(H,Z){g="PUSH";let X=xS(H)?H:au(B.location,H,Z);y=D()+1;let te=NS(X,y),fe=B.createHref(X.unstable_mask||X);try{h.pushState(te,"",fe)}catch(ie){if(ie instanceof DOMException&&ie.name==="DataCloneError")throw ie;u.location.assign(fe)}d&&b&&b({action:g,location:B.location,delta:1})}function R(H,Z){g="REPLACE";let X=xS(H)?H:au(B.location,H,Z);y=D();let te=NS(X,y),fe=B.createHref(X.unstable_mask||X);h.replaceState(te,"",fe),d&&b&&b({action:g,location:B.location,delta:0})}function k(H){return Rw(H)}let B={get action(){return g},get location(){return s(u,h)},listen(H){if(b)throw new Error("A history only accepts one active listener");return u.addEventListener(vS,N),b=H,()=>{u.removeEventListener(vS,N),b=null}},createHref(H){return o(u,H)},createURL:k,encodeLocation(H){let Z=k(H);return{pathname:Z.pathname,search:Z.search,hash:Z.hash}},push:S,replace:R,go(H){return h.go(H)}};return B}function Rw(s,o=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),at(l,"No window.location.(origin|href) available to create URL");let c=typeof s=="string"?s:qs(s);return c=c.replace(/ $/,"%20"),!o&&c.startsWith("//")&&(c=l+c),new URL(c,l)}var Zc,SS=class{constructor(s){if(yk(this,Zc,new Map),s)for(let[o,l]of s)this.set(o,l)}get(s){if(Lg(this,Zc).has(s))return Lg(this,Zc).get(s);if(s.defaultValue!==void 0)return s.defaultValue;throw new Error("No value found for context")}set(s,o){Lg(this,Zc).set(s,o)}};Zc=new WeakMap;var Sk=new Set(["lazy","caseSensitive","path","id","index","children"]);function wk(s){return Sk.has(s)}var Ek=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Dk(s){return Ek.has(s)}function Rk(s){return s.index===!0}function nu(s,o,l=[],c={},u=!1){return s.map((d,h)=>{let g=[...l,String(h)],b=typeof d.id=="string"?d.id:g.join("-");if(at(d.index!==!0||!d.children,"Cannot specify children on an index route"),at(u||!c[b],`Found a route id collision on id "${b}". Route id's must be globally unique within Data Router usages`),Rk(d)){let y={...d,id:b};return c[b]=wS(y,o(y)),y}else{let y={...d,id:b,children:void 0};return c[b]=wS(y,o(y)),d.children&&(y.children=nu(d.children,o,g,c,u)),y}})}function wS(s,o){return Object.assign(s,{...o,...typeof o.lazy=="object"&&o.lazy!=null?{lazy:{...s.lazy,...o.lazy}}:{}})}function dr(s,o,l="/"){return Pc(s,o,l,!1)}function Pc(s,o,l,c){let u=typeof o=="string"?wo(o):o,d=Yn(u.pathname||"/",l);if(d==null)return null;let h=_w(s);kk(h);let g=null;for(let b=0;g==null&&b<h.length;++b){let y=Hk(d);g=zk(h[b],y,c)}return g}function _k(s,o){let{route:l,pathname:c,params:u}=s;return{id:l.id,pathname:c,params:u,data:o[l.id],loaderData:o[l.id],handle:l.handle}}function _w(s,o=[],l=[],c="",u=!1){let d=(h,g,b=u,y)=>{let D={relativePath:y===void 0?h.path||"":y,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(D.relativePath.startsWith("/")){if(!D.relativePath.startsWith(c)&&b)return;at(D.relativePath.startsWith(c),`Absolute route path "${D.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),D.relativePath=D.relativePath.slice(c.length)}let N=ls([c,D.relativePath]),S=l.concat(D);h.children&&h.children.length>0&&(at(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${N}".`),_w(h.children,o,S,N,b)),!(h.path==null&&!h.index)&&o.push({path:N,score:Vk(N,h.index),routesMeta:S})};return s.forEach((h,g)=>{if(h.path===""||!h.path?.includes("?"))d(h,g);else for(let b of kw(h.path))d(h,g,!0,b)}),o}function kw(s){let o=s.split("/");if(o.length===0)return[];let[l,...c]=o,u=l.endsWith("?"),d=l.replace(/\?$/,"");if(c.length===0)return u?[d,""]:[d];let h=kw(c.join("/")),g=[];return g.push(...h.map(b=>b===""?d:[d,b].join("/"))),u&&g.push(...h),g.map(b=>s.startsWith("/")&&b===""?"/":b)}function kk(s){s.sort((o,l)=>o.score!==l.score?l.score-o.score:Mk(o.routesMeta.map(c=>c.childrenIndex),l.routesMeta.map(c=>c.childrenIndex)))}var Uk=/^:[\w-]+$/,Ck=3,Tk=2,jk=1,Ok=10,Ak=-2,ES=s=>s==="*";function Vk(s,o){let l=s.split("/"),c=l.length;return l.some(ES)&&(c+=Ak),o&&(c+=Tk),l.filter(u=>!ES(u)).reduce((u,d)=>u+(Uk.test(d)?Ck:d===""?jk:Ok),c)}function Mk(s,o){return s.length===o.length&&s.slice(0,-1).every((c,u)=>c===o[u])?s[s.length-1]-o[o.length-1]:0}function zk(s,o,l=!1){let{routesMeta:c}=s,u={},d="/",h=[];for(let g=0;g<c.length;++g){let b=c[g],y=g===c.length-1,D=d==="/"?o:o.slice(d.length)||"/",N=$f({path:b.relativePath,caseSensitive:b.caseSensitive,end:y},D),S=b.route;if(!N&&y&&l&&!c[c.length-1].route.index&&(N=$f({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},D)),!N)return null;Object.assign(u,N.params),h.push({params:u,pathname:ls([d,N.pathname]),pathnameBase:Yk(ls([d,N.pathnameBase])),route:S}),N.pathnameBase!=="/"&&(d=ls([d,N.pathnameBase]))}return h}function $f(s,o){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[l,c]=Lk(s.path,s.caseSensitive,s.end),u=o.match(l);if(!u)return null;let d=u[0],h=d.replace(/(.)\/+$/,"$1"),g=u.slice(1);return{params:c.reduce((y,{paramName:D,isOptional:N},S)=>{if(D==="*"){let k=g[S]||"";h=d.slice(0,d.length-k.length).replace(/(.)\/+$/,"$1")}const R=g[S];return N&&!R?y[D]=void 0:y[D]=(R||"").replace(/%2F/g,"/"),y},{}),pathname:d,pathnameBase:h,pattern:s}}function Lk(s,o=!1,l=!0){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,b,y,D)=>{if(c.push({paramName:g,isOptional:b!=null}),b){let N=D.charAt(y+h.length);return N&&N!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(c.push({paramName:"*"}),u+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?u+="\\/*$":s!==""&&s!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,o?void 0:"i"),c]}function Hk(s){try{return s.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return 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 (${o}).`),s}}function Yn(s,o){if(o==="/")return s;if(!s.toLowerCase().startsWith(o.toLowerCase()))return null;let l=o.endsWith("/")?o.length-1:o.length,c=s.charAt(l);return c&&c!=="/"?null:s.slice(l)||"/"}function Bk({basename:s,pathname:o}){return o==="/"?s:ls([s,o])}var Uw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lb=s=>Uw.test(s);function $k(s,o="/"){let{pathname:l,search:c="",hash:u=""}=typeof s=="string"?wo(s):s,d;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?d=DS(l.substring(1),"/"):d=DS(l,o)):d=o,{pathname:d,search:qk(c),hash:Gk(u)}}function DS(s,o){let l=o.replace(/\/+$/,"").split("/");return s.split("/").forEach(u=>{u===".."?l.length>1&&l.pop():u!=="."&&l.push(u)}),l.length>1?l.join("/"):"/"}function Hg(s,o,l,c){return`Cannot include a '${s}' character in a manually specified \`to.${o}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Cw(s){return s.filter((o,l)=>l===0||o.route.path&&o.route.path.length>0)}function Gf(s){let o=Cw(s);return o.map((l,c)=>c===o.length-1?l.pathname:l.pathnameBase)}function lu(s,o,l,c=!1){let u;typeof s=="string"?u=wo(s):(u={...s},at(!u.pathname||!u.pathname.includes("?"),Hg("?","pathname","search",u)),at(!u.pathname||!u.pathname.includes("#"),Hg("#","pathname","hash",u)),at(!u.search||!u.search.includes("#"),Hg("#","search","hash",u)));let d=s===""||u.pathname==="",h=d?"/":u.pathname,g;if(h==null)g=l;else{let N=o.length-1;if(!c&&h.startsWith("..")){let S=h.split("/");for(;S[0]==="..";)S.shift(),N-=1;u.pathname=S.join("/")}g=N>=0?o[N]:"/"}let b=$k(u,g),y=h&&h!=="/"&&h.endsWith("/"),D=(d||h===".")&&l.endsWith("/");return!b.pathname.endsWith("/")&&(y||D)&&(b.pathname+="/"),b}var ls=s=>s.join("/").replace(/\/\/+/g,"/"),Yk=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),qk=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Gk=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,cu=class{constructor(s,o,l,c=!1){this.status=s,this.statusText=o||"",this.internal=c,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function su(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function uu(s){return s.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Tw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function jw(s,o){let l=s;if(typeof l!="string"||!Uw.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let c=l,u=!1;if(Tw)try{let d=new URL(window.location.href),h=l.startsWith("//")?new URL(d.protocol+l):new URL(l),g=Yn(h.pathname,o);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 mr=Symbol("Uninstrumented");function Ik(s,o){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};s.forEach(u=>u({id:o.id,index:o.index,path:o.path,instrument(d){let h=Object.keys(l);for(let g of h)d[g]&&l[g].push(d[g])}}));let c={};if(typeof o.lazy=="function"&&l.lazy.length>0){let u=ll(l.lazy,o.lazy,()=>{});u&&(c.lazy=u)}if(typeof o.lazy=="object"){let u=o.lazy;["middleware","loader","action"].forEach(d=>{let h=u[d],g=l[`lazy.${d}`];if(typeof h=="function"&&g.length>0){let b=ll(g,h,()=>{});b&&(c.lazy=Object.assign(c.lazy||{},{[d]:b}))}})}return["loader","action"].forEach(u=>{let d=o[u];if(typeof d=="function"&&l[u].length>0){let h=d[mr]??d,g=ll(l[u],h,(...b)=>RS(b[0]));g&&(u==="loader"&&h.hydrate===!0&&(g.hydrate=!0),g[mr]=h,c[u]=g)}}),o.middleware&&o.middleware.length>0&&l.middleware.length>0&&(c.middleware=o.middleware.map(u=>{let d=u[mr]??u,h=ll(l.middleware,d,(...g)=>RS(g[0]));return h?(h[mr]=d,h):u})),c}function Fk(s,o){let l={navigate:[],fetch:[]};if(o.forEach(c=>c({instrument(u){let d=Object.keys(u);for(let h of d)u[h]&&l[h].push(u[h])}})),l.navigate.length>0){let c=s.navigate[mr]??s.navigate,u=ll(l.navigate,c,(...d)=>{let[h,g]=d;return{to:typeof h=="number"||typeof h=="string"?h:h?qs(h):".",..._S(s,g??{})}});u&&(u[mr]=c,s.navigate=u)}if(l.fetch.length>0){let c=s.fetch[mr]??s.fetch,u=ll(l.fetch,c,(...d)=>{let[h,,g,b]=d;return{href:g??".",fetcherKey:h,..._S(s,b??{})}});u&&(u[mr]=c,s.fetch=u)}return s}function ll(s,o,l){return s.length===0?null:async(...c)=>{let u=await Ow(s,l(...c),()=>o(...c),s.length-1);if(u.type==="error")throw u.value;return u.value}}async function Ow(s,o,l,c){let u=s[c],d;if(u){let h,g=async()=>(h?console.error("You cannot call instrumented handlers more than once"):h=Ow(s,o,l,c-1),d=await h,at(d,"Expected a result"),d.type==="error"&&d.value instanceof Error?{status:"error",error:d.value}:{status:"success",error:void 0});try{await u(g,o)}catch(b){console.error("An instrumentation function threw an error:",b)}h||await g(),await h}else try{d={type:"success",value:await l()}}catch(h){d={type:"error",value:h}}return d||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function RS(s){let{request:o,context:l,params:c,unstable_pattern:u}=s;return{request:Xk(o),params:{...c},unstable_pattern:u,context:Qk(l)}}function _S(s,o){return{currentUrl:qs(s.state.location),..."formMethod"in o?{formMethod:o.formMethod}:{},..."formEncType"in o?{formEncType:o.formEncType}:{},..."formData"in o?{formData:o.formData}:{},..."body"in o?{body:o.body}:{}}}function Xk(s){return{method:s.method,url:s.url,headers:{get:(...o)=>s.headers.get(...o)}}}function Qk(s){if(Pk(s)){let o={...s};return Object.freeze(o),o}else return{get:o=>s.get(o)}}var Zk=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Pk(s){if(s===null||typeof s!="object")return!1;const o=Object.getPrototypeOf(s);return o===Object.prototype||o===null||Object.getOwnPropertyNames(o).sort().join("\0")===Zk}var Aw=["POST","PUT","PATCH","DELETE"],Jk=new Set(Aw),Kk=["GET",...Aw],Wk=new Set(Kk),Vw=new Set([301,302,303,307,308]),eU=new Set([307,308]),Bg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},tU={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Gc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},aU=s=>({hasErrorBoundary:!!s.hasErrorBoundary}),Mw="remix-router-transitions",zw=Symbol("ResetLoaderData");function nU(s){const o=s.window?s.window:typeof window<"u"?window:void 0,l=typeof o<"u"&&typeof o.document<"u"&&typeof o.document.createElement<"u";at(s.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=s.hydrationRouteProperties||[],u=s.mapRouteProperties||aU,d=u;if(s.unstable_instrumentations){let C=s.unstable_instrumentations;d=z=>({...u(z),...Ik(C.map(G=>G.route).filter(Boolean),z)})}let h={},g=nu(s.routes,d,void 0,h),b,y=s.basename||"/";y.startsWith("/")||(y=`/${y}`);let D=s.dataStrategy||lU,N={...s.future},S=null,R=new Set,k=null,B=null,H=null,Z=s.hydrationData!=null,X=dr(g,s.history.location,y),te=!1,fe=null,ie,ne;if(X==null&&!s.patchRoutesOnNavigation){let C=Bn(404,{pathname:s.history.location.pathname}),{matches:z,route:G}=Uf(g);ie=!0,ne=!ie,X=z,fe={[G.id]:C}}else if(X&&!s.hydrationData&&Aa(X,g,s.history.location.pathname).active&&(X=null),X)if(X.some(C=>C.route.lazy))ie=!1,ne=!ie;else if(!X.some(C=>cb(C.route)))ie=!0,ne=!ie;else{let C=s.hydrationData?s.hydrationData.loaderData:null,z=s.hydrationData?s.hydrationData.errors:null,G=X;if(z){let re=X.findIndex(ce=>z[ce.route.id]!==void 0);G=G.slice(0,re+1)}ne=!1,ie=G.every(re=>{let ce=Lw(re.route,C,z);return ne=ne||ce.renderFallback,!ce.shouldLoad})}else{ie=!1,ne=!ie,X=[];let C=Aa(null,g,s.history.location.pathname);C.active&&C.matches&&(te=!0,X=C.matches)}let ae,_={historyAction:s.history.action,location:s.history.location,matches:X,initialized:ie,renderFallback:ne,navigation:Bg,restoreScrollPosition:s.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:s.hydrationData&&s.hydrationData.loaderData||{},actionData:s.hydrationData&&s.hydrationData.actionData||null,errors:s.hydrationData&&s.hydrationData.errors||fe,fetchers:new Map,blockers:new Map},Q="POP",L=null,pe=!1,ee,F=!1,le=new Map,Ne=null,K=!1,ue=!1,be=new Set,P=new Map,we=0,Y=-1,ve=new Map,Ce=new Set,_e=new Map,dt=new Map,Tt=new Set,Ke=new Map,Qt,Re=null;function Lt(){if(S=s.history.listen(({action:C,location:z,delta:G})=>{if(Qt){Qt(),Qt=void 0;return}qt(Ke.size===0||G!=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 re=de({currentLocation:_.location,nextLocation:z,historyAction:C});if(re&&G!=null){let ce=new Promise(Ue=>{Qt=Ue});s.history.go(G*-1),se(re,{state:"blocked",location:z,proceed(){se(re,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),ce.then(()=>s.history.go(G))},reset(){let Ue=new Map(_.blockers);Ue.set(re,Gc),ft({blockers:Ue})}}),L?.resolve(),L=null;return}return vt(C,z)}),l){RU(o,le);let C=()=>_U(o,le);o.addEventListener("pagehide",C),Ne=()=>o.removeEventListener("pagehide",C)}return _.initialized||vt("POP",_.location,{initialHydration:!0}),ae}function he(){S&&S(),Ne&&Ne(),R.clear(),ee&&ee.abort(),_.fetchers.forEach((C,z)=>Za(z)),_.blockers.forEach((C,z)=>W(z))}function xt(C){return R.add(C),()=>R.delete(C)}function ft(C,z={}){C.matches&&(C.matches=C.matches.map(ce=>{let Ue=h[ce.route.id],ye=ce.route;return ye.element!==Ue.element||ye.errorElement!==Ue.errorElement||ye.hydrateFallbackElement!==Ue.hydrateFallbackElement?{...ce,route:Ue}:ce})),_={..._,...C};let G=[],re=[];_.fetchers.forEach((ce,Ue)=>{ce.state==="idle"&&(Tt.has(Ue)?G.push(Ue):re.push(Ue))}),Tt.forEach(ce=>{!_.fetchers.has(ce)&&!P.has(ce)&&G.push(ce)}),[...R].forEach(ce=>ce(_,{deletedFetchers:G,newErrors:C.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),G.forEach(ce=>Za(ce)),re.forEach(ce=>_.fetchers.delete(ce))}function Ht(C,z,{flushSync:G}={}){let re=_.actionData!=null&&_.navigation.formMethod!=null&&Ca(_.navigation.formMethod)&&_.navigation.state==="loading"&&C.state?._isRedirect!==!0,ce;z.actionData?Object.keys(z.actionData).length>0?ce=z.actionData:ce=null:re?ce=_.actionData:ce=null;let Ue=z.loaderData?zS(_.loaderData,z.loaderData,z.matches||[],z.errors):_.loaderData,ye=_.blockers;ye.size>0&&(ye=new Map(ye),ye.forEach((Ve,Te)=>ye.set(Te,Gc)));let je=K?!1:Pt(C,z.matches||_.matches),Ee=pe===!0||_.navigation.formMethod!=null&&Ca(_.navigation.formMethod)&&C.state?._isRedirect!==!0;b&&(g=b,b=void 0),K||Q==="POP"||(Q==="PUSH"?s.history.push(C,C.state):Q==="REPLACE"&&s.history.replace(C,C.state));let Me;if(Q==="POP"){let Ve=le.get(_.location.pathname);Ve&&Ve.has(C.pathname)?Me={currentLocation:_.location,nextLocation:C}:le.has(C.pathname)&&(Me={currentLocation:C,nextLocation:_.location})}else if(F){let Ve=le.get(_.location.pathname);Ve?Ve.add(C.pathname):(Ve=new Set([C.pathname]),le.set(_.location.pathname,Ve)),Me={currentLocation:_.location,nextLocation:C}}ft({...z,actionData:ce,loaderData:Ue,historyAction:Q,location:C,initialized:!0,renderFallback:!1,navigation:Bg,revalidation:"idle",restoreScrollPosition:je,preventScrollReset:Ee,blockers:ye},{viewTransitionOpts:Me,flushSync:G===!0}),Q="POP",pe=!1,F=!1,K=!1,ue=!1,L?.resolve(),L=null,Re?.resolve(),Re=null}async function Bt(C,z){if(L?.resolve(),L=null,typeof C=="number"){L||(L=$S());let Rt=L.promise;return s.history.go(C),Rt}let G=Wg(_.location,_.matches,y,C,z?.fromRouteId,z?.relative),{path:re,submission:ce,error:Ue}=kS(!1,G,z),ye;z?.unstable_mask&&(ye={pathname:"",search:"",hash:"",...typeof z.unstable_mask=="string"?wo(z.unstable_mask):{..._.location.unstable_mask,...z.unstable_mask}});let je=_.location,Ee=au(je,re,z&&z.state,void 0,ye);Ee={...Ee,...s.history.encodeLocation(Ee)};let Me=z&&z.replace!=null?z.replace:void 0,Ve="PUSH";Me===!0?Ve="REPLACE":Me===!1||ce!=null&&Ca(ce.formMethod)&&ce.formAction===_.location.pathname+_.location.search&&(Ve="REPLACE");let Te=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,mt=(z&&z.flushSync)===!0,tt=de({currentLocation:je,nextLocation:Ee,historyAction:Ve});if(tt){se(tt,{state:"blocked",location:Ee,proceed(){se(tt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ee}),Bt(C,z)},reset(){let Rt=new Map(_.blockers);Rt.set(tt,Gc),ft({blockers:Rt})}});return}await vt(Ve,Ee,{submission:ce,pendingError:Ue,preventScrollReset:Te,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:mt,callSiteDefaultShouldRevalidate:z&&z.unstable_defaultShouldRevalidate})}function nt(){Re||(Re=$S()),Qa(),ft({revalidation:"loading"});let C=Re.promise;return _.navigation.state==="submitting"?C:_.navigation.state==="idle"?(vt(_.historyAction,_.location,{startUninterruptedRevalidation:!0}),C):(vt(Q||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:F===!0}),C)}async function vt(C,z,G){ee&&ee.abort(),ee=null,Q=C,K=(G&&G.startUninterruptedRevalidation)===!0,Be(_.location,_.matches),pe=(G&&G.preventScrollReset)===!0,F=(G&&G.enableViewTransition)===!0;let re=b||g,ce=G&&G.overrideNavigation,Ue=G?.initialHydration&&_.matches&&_.matches.length>0&&!te?_.matches:dr(re,z,y),ye=(G&&G.flushSync)===!0;if(Ue&&_.initialized&&!ue&&gU(_.location,z)&&!(G&&G.submission&&Ca(G.submission.formMethod))){Ht(z,{matches:Ue},{flushSync:ye});return}let je=Aa(Ue,re,z.pathname);if(je.active&&je.matches&&(Ue=je.matches),!Ue){let{error:Gt,notFoundMatches:ua,route:pt}=Le(z.pathname);Ht(z,{matches:ua,loaderData:{},errors:{[pt.id]:Gt}},{flushSync:ye});return}ee=new AbortController;let Ee=rl(s.history,z,ee.signal,G&&G.submission),Me=s.getContext?await s.getContext():new SS,Ve;if(G&&G.pendingError)Ve=[fr(Ue).route.id,{type:"error",error:G.pendingError}];else if(G&&G.submission&&Ca(G.submission.formMethod)){let Gt=await Zt(Ee,z,G.submission,Ue,Me,je.active,G&&G.initialHydration===!0,{replace:G.replace,flushSync:ye});if(Gt.shortCircuited)return;if(Gt.pendingActionResult){let[ua,pt]=Gt.pendingActionResult;if(xn(pt)&&su(pt.error)&&pt.error.status===404){ee=null,Ht(z,{matches:Gt.matches,loaderData:{},errors:{[ua]:pt.error}});return}}Ue=Gt.matches||Ue,Ve=Gt.pendingActionResult,ce=$g(z,G.submission),ye=!1,je.active=!1,Ee=rl(s.history,Ee.url,Ee.signal)}let{shortCircuited:Te,matches:mt,loaderData:tt,errors:Rt}=await Sn(Ee,z,Ue,Me,je.active,ce,G&&G.submission,G&&G.fetcherSubmission,G&&G.replace,G&&G.initialHydration===!0,ye,Ve,G&&G.callSiteDefaultShouldRevalidate);Te||(ee=null,Ht(z,{matches:mt||Ue,...LS(Ve),loaderData:tt,errors:Rt}))}async function Zt(C,z,G,re,ce,Ue,ye,je={}){Qa();let Ee=EU(z,G);if(ft({navigation:Ee},{flushSync:je.flushSync===!0}),Ue){let Te=await Is(re,z.pathname,C.signal);if(Te.type==="aborted")return{shortCircuited:!0};if(Te.type==="error"){if(Te.partialMatches.length===0){let{matches:tt,route:Rt}=Uf(g);return{matches:tt,pendingActionResult:[Rt.id,{type:"error",error:Te.error}]}}let mt=fr(Te.partialMatches).route.id;return{matches:Te.partialMatches,pendingActionResult:[mt,{type:"error",error:Te.error}]}}else if(Te.matches)re=Te.matches;else{let{notFoundMatches:mt,error:tt,route:Rt}=Le(z.pathname);return{matches:mt,pendingActionResult:[Rt.id,{type:"error",error:tt}]}}}let Me,Ve=Vf(re,z);if(!Ve.route.action&&!Ve.route.lazy)Me={type:"error",error:Bn(405,{method:C.method,pathname:z.pathname,routeId:Ve.route.id})};else{let Te=cl(d,h,C,re,Ve,ye?[]:c,ce),mt=await Xa(C,Te,ce,null);if(Me=mt[Ve.route.id],!Me){for(let tt of re)if(mt[tt.route.id]){Me=mt[tt.route.id];break}}if(C.signal.aborted)return{shortCircuited:!0}}if(ti(Me)){let Te;return je&&je.replace!=null?Te=je.replace:Te=AS(Me.response.headers.get("Location"),new URL(C.url),y,s.history)===_.location.pathname+_.location.search,await Oa(C,Me,!0,{submission:G,replace:Te}),{shortCircuited:!0}}if(xn(Me)){let Te=fr(re,Ve.route.id);return(je&&je.replace)!==!0&&(Q="PUSH"),{matches:re,pendingActionResult:[Te.route.id,Me,Ve.route.id]}}return{matches:re,pendingActionResult:[Ve.route.id,Me]}}async function Sn(C,z,G,re,ce,Ue,ye,je,Ee,Me,Ve,Te,mt){let tt=Ue||$g(z,ye),Rt=ye||je||BS(tt),Gt=!K&&!Me;if(ce){if(Gt){let da=Se(Te);ft({navigation:tt,...da!==void 0?{actionData:da}:{}},{flushSync:Ve})}let ot=await Is(G,z.pathname,C.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){if(ot.partialMatches.length===0){let{matches:Eo,route:ps}=Uf(g);return{matches:Eo,loaderData:{},errors:{[ps.id]:ot.error}}}let da=fr(ot.partialMatches).route.id;return{matches:ot.partialMatches,loaderData:{},errors:{[da]:ot.error}}}else if(ot.matches)G=ot.matches;else{let{error:da,notFoundMatches:Eo,route:ps}=Le(z.pathname);return{matches:Eo,loaderData:{},errors:{[ps.id]:da}}}}let ua=b||g,{dsMatches:pt,revalidatingFetchers:Va}=US(C,re,d,h,s.history,_,G,Rt,z,Me?[]:c,Me===!0,ue,be,Tt,_e,Ce,ua,y,s.patchRoutesOnNavigation!=null,Te,mt);if(Y=++we,!s.dataStrategy&&!pt.some(ot=>ot.shouldLoad)&&!pt.some(ot=>ot.route.middleware&&ot.route.middleware.length>0)&&Va.length===0){let ot=sn();return Ht(z,{matches:G,loaderData:{},errors:Te&&xn(Te[1])?{[Te[0]]:Te[1].error}:null,...LS(Te),...ot?{fetchers:new Map(_.fetchers)}:{}},{flushSync:Ve}),{shortCircuited:!0}}if(Gt){let ot={};if(!ce){ot.navigation=tt;let da=Se(Te);da!==void 0&&(ot.actionData=da)}Va.length>0&&(ot.fetchers=wn(Va)),ft(ot,{flushSync:Ve})}Va.forEach(ot=>{ca(ot.key),ot.controller&&P.set(ot.key,ot.controller)});let It=()=>Va.forEach(ot=>ca(ot.key));ee&&ee.signal.addEventListener("abort",It);let{loaderResults:Dn,fetcherResults:Da}=await us(pt,Va,C,re);if(C.signal.aborted)return{shortCircuited:!0};ee&&ee.signal.removeEventListener("abort",It),Va.forEach(ot=>P.delete(ot.key));let on=Cf(Dn);if(on)return await Oa(C,on.result,!0,{replace:Ee}),{shortCircuited:!0};if(on=Cf(Da),on)return Ce.add(on.key),await Oa(C,on.result,!0,{replace:Ee}),{shortCircuited:!0};let{loaderData:Xs,errors:fs}=MS(_,G,Dn,Te,Va,Da);Me&&_.errors&&(fs={..._.errors,...fs});let Zn=sn(),ms=x(Y),Pn=Zn||ms||Va.length>0;return{matches:G,loaderData:Xs,errors:fs,...Pn?{fetchers:new Map(_.fetchers)}:{}}}function Se(C){if(C&&!xn(C[1]))return{[C[0]]:C[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function wn(C){return C.forEach(z=>{let G=_.fetchers.get(z.key),re=Ic(void 0,G?G.data:void 0);_.fetchers.set(z.key,re)}),new Map(_.fetchers)}async function wa(C,z,G,re){ca(C);let ce=(re&&re.flushSync)===!0,Ue=b||g,ye=Wg(_.location,_.matches,y,G,z,re?.relative),je=dr(Ue,ye,y),Ee=Aa(je,Ue,ye);if(Ee.active&&Ee.matches&&(je=Ee.matches),!je){ba(C,z,Bn(404,{pathname:ye}),{flushSync:ce});return}let{path:Me,submission:Ve,error:Te}=kS(!0,ye,re);if(Te){ba(C,z,Te,{flushSync:ce});return}let mt=s.getContext?await s.getContext():new SS,tt=(re&&re.preventScrollReset)===!0;if(Ve&&Ca(Ve.formMethod)){await Fa(C,z,Me,je,mt,Ee.active,ce,tt,Ve,re&&re.unstable_defaultShouldRevalidate);return}_e.set(C,{routeId:z,path:Me}),await En(C,z,Me,je,mt,Ee.active,ce,tt,Ve)}async function Fa(C,z,G,re,ce,Ue,ye,je,Ee,Me){Qa(),_e.delete(C);let Ve=_.fetchers.get(C);Ea(C,DU(Ee,Ve),{flushSync:ye});let Te=new AbortController,mt=rl(s.history,G,Te.signal,Ee);if(Ue){let _t=await Is(re,new URL(mt.url).pathname,mt.signal,C);if(_t.type==="aborted")return;if(_t.type==="error"){ba(C,z,_t.error,{flushSync:ye});return}else if(_t.matches)re=_t.matches;else{ba(C,z,Bn(404,{pathname:G}),{flushSync:ye});return}}let tt=Vf(re,G);if(!tt.route.action&&!tt.route.lazy){let _t=Bn(405,{method:Ee.formMethod,pathname:G,routeId:z});ba(C,z,_t,{flushSync:ye});return}P.set(C,Te);let Rt=we,Gt=cl(d,h,mt,re,tt,c,ce),ua=await Xa(mt,Gt,ce,C),pt=ua[tt.route.id];if(!pt){for(let _t of Gt)if(ua[_t.route.id]){pt=ua[_t.route.id];break}}if(mt.signal.aborted){P.get(C)===Te&&P.delete(C);return}if(Tt.has(C)){if(ti(pt)||xn(pt)){Ea(C,No(void 0));return}}else{if(ti(pt))if(P.delete(C),Y>Rt){Ea(C,No(void 0));return}else return Ce.add(C),Ea(C,Ic(Ee)),Oa(mt,pt,!1,{fetcherSubmission:Ee,preventScrollReset:je});if(xn(pt)){ba(C,z,pt.error);return}}let Va=_.navigation.location||_.location,It=rl(s.history,Va,Te.signal),Dn=b||g,Da=_.navigation.state!=="idle"?dr(Dn,_.navigation.location,y):_.matches;at(Da,"Didn't find any matches after fetcher action");let on=++we;ve.set(C,on);let Xs=Ic(Ee,pt.data);_.fetchers.set(C,Xs);let{dsMatches:fs,revalidatingFetchers:Zn}=US(It,ce,d,h,s.history,_,Da,Ee,Va,c,!1,ue,be,Tt,_e,Ce,Dn,y,s.patchRoutesOnNavigation!=null,[tt.route.id,pt],Me);Zn.filter(_t=>_t.key!==C).forEach(_t=>{let Do=_t.key,pl=_.fetchers.get(Do),hu=Ic(void 0,pl?pl.data:void 0);_.fetchers.set(Do,hu),ca(Do),_t.controller&&P.set(Do,_t.controller)}),ft({fetchers:new Map(_.fetchers)});let ms=()=>Zn.forEach(_t=>ca(_t.key));Te.signal.addEventListener("abort",ms);let{loaderResults:Pn,fetcherResults:ot}=await us(fs,Zn,It,ce);if(Te.signal.aborted)return;if(Te.signal.removeEventListener("abort",ms),ve.delete(C),P.delete(C),Zn.forEach(_t=>P.delete(_t.key)),_.fetchers.has(C)){let _t=No(pt.data);_.fetchers.set(C,_t)}let da=Cf(Pn);if(da)return Oa(It,da.result,!1,{preventScrollReset:je});if(da=Cf(ot),da)return Ce.add(da.key),Oa(It,da.result,!1,{preventScrollReset:je});let{loaderData:Eo,errors:ps}=MS(_,Da,Pn,void 0,Zn,ot);x(on),_.navigation.state==="loading"&&on>Y?(at(Q,"Expected pending action"),ee&&ee.abort(),Ht(_.navigation.location,{matches:Da,loaderData:Eo,errors:ps,fetchers:new Map(_.fetchers)})):(ft({errors:ps,loaderData:zS(_.loaderData,Eo,Da,ps),fetchers:new Map(_.fetchers)}),ue=!1)}async function En(C,z,G,re,ce,Ue,ye,je,Ee){let Me=_.fetchers.get(C);Ea(C,Ic(Ee,Me?Me.data:void 0),{flushSync:ye});let Ve=new AbortController,Te=rl(s.history,G,Ve.signal);if(Ue){let pt=await Is(re,new URL(Te.url).pathname,Te.signal,C);if(pt.type==="aborted")return;if(pt.type==="error"){ba(C,z,pt.error,{flushSync:ye});return}else if(pt.matches)re=pt.matches;else{ba(C,z,Bn(404,{pathname:G}),{flushSync:ye});return}}let mt=Vf(re,G);P.set(C,Ve);let tt=we,Rt=cl(d,h,Te,re,mt,c,ce),ua=(await Xa(Te,Rt,ce,C))[mt.route.id];if(P.get(C)===Ve&&P.delete(C),!Te.signal.aborted){if(Tt.has(C)){Ea(C,No(void 0));return}if(ti(ua))if(Y>tt){Ea(C,No(void 0));return}else{Ce.add(C),await Oa(Te,ua,!1,{preventScrollReset:je});return}if(xn(ua)){ba(C,z,ua.error);return}Ea(C,No(ua.data))}}async function Oa(C,z,G,{submission:re,fetcherSubmission:ce,preventScrollReset:Ue,replace:ye}={}){G||(L?.resolve(),L=null),z.response.headers.has("X-Remix-Revalidate")&&(ue=!0);let je=z.response.headers.get("Location");at(je,"Expected a Location header on the redirect Response"),je=AS(je,new URL(C.url),y,s.history);let Ee=au(_.location,je,{_isRedirect:!0});if(l){let Rt=!1;if(z.response.headers.has("X-Remix-Reload-Document"))Rt=!0;else if(lb(je)){const Gt=Rw(je,!0);Rt=Gt.origin!==o.location.origin||Yn(Gt.pathname,y)==null}if(Rt){ye?o.location.replace(je):o.location.assign(je);return}}ee=null;let Me=ye===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ve,formAction:Te,formEncType:mt}=_.navigation;!re&&!ce&&Ve&&Te&&mt&&(re=BS(_.navigation));let tt=re||ce;if(eU.has(z.response.status)&&tt&&Ca(tt.formMethod))await vt(Me,Ee,{submission:{...tt,formAction:je},preventScrollReset:Ue||pe,enableViewTransition:G?F:void 0});else{let Rt=$g(Ee,re);await vt(Me,Ee,{overrideNavigation:Rt,fetcherSubmission:ce,preventScrollReset:Ue||pe,enableViewTransition:G?F:void 0})}}async function Xa(C,z,G,re){let ce,Ue={};try{ce=await uU(D,C,z,re,G,!1)}catch(ye){return z.filter(je=>je.shouldLoad).forEach(je=>{Ue[je.route.id]={type:"error",error:ye}}),Ue}if(C.signal.aborted)return Ue;if(!Ca(C.method))for(let ye of z){if(ce[ye.route.id]?.type==="error")break;!ce.hasOwnProperty(ye.route.id)&&!_.loaderData.hasOwnProperty(ye.route.id)&&(!_.errors||!_.errors.hasOwnProperty(ye.route.id))&&ye.shouldCallHandler()&&(ce[ye.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ye.route.id}`)})}for(let[ye,je]of Object.entries(ce))if(xU(je)){let Ee=je.result;Ue[ye]={type:"redirect",response:pU(Ee,C,ye,z,y)}}else Ue[ye]=await mU(je);return Ue}async function us(C,z,G,re){let ce=Xa(G,C,re,null),Ue=Promise.all(z.map(async Ee=>{if(Ee.matches&&Ee.match&&Ee.request&&Ee.controller){let Ve=(await Xa(Ee.request,Ee.matches,re,Ee.key))[Ee.match.route.id];return{[Ee.key]:Ve}}else return Promise.resolve({[Ee.key]:{type:"error",error:Bn(404,{pathname:Ee.path})}})})),ye=await ce,je=(await Ue).reduce((Ee,Me)=>Object.assign(Ee,Me),{});return{loaderResults:ye,fetcherResults:je}}function Qa(){ue=!0,_e.forEach((C,z)=>{P.has(z)&&be.add(z),ca(z)})}function Ea(C,z,G={}){_.fetchers.set(C,z),ft({fetchers:new Map(_.fetchers)},{flushSync:(G&&G.flushSync)===!0})}function ba(C,z,G,re={}){let ce=fr(_.matches,z);Za(C),ft({errors:{[ce.route.id]:G},fetchers:new Map(_.fetchers)},{flushSync:(re&&re.flushSync)===!0})}function ds(C){return dt.set(C,(dt.get(C)||0)+1),Tt.has(C)&&Tt.delete(C),_.fetchers.get(C)||tU}function In(C,z){ca(C,z?.reason),Ea(C,No(null))}function Za(C){let z=_.fetchers.get(C);P.has(C)&&!(z&&z.state==="loading"&&ve.has(C))&&ca(C),_e.delete(C),ve.delete(C),Ce.delete(C),Tt.delete(C),be.delete(C),_.fetchers.delete(C)}function Fn(C){let z=(dt.get(C)||0)-1;z<=0?(dt.delete(C),Tt.add(C)):dt.set(C,z),ft({fetchers:new Map(_.fetchers)})}function ca(C,z){let G=P.get(C);G&&(G.abort(z),P.delete(C))}function Xn(C){for(let z of C){let G=ds(z),re=No(G.data);_.fetchers.set(z,re)}}function sn(){let C=[],z=!1;for(let G of Ce){let re=_.fetchers.get(G);at(re,`Expected fetcher: ${G}`),re.state==="loading"&&(Ce.delete(G),C.push(G),z=!0)}return Xn(C),z}function x(C){let z=[];for(let[G,re]of ve)if(re<C){let ce=_.fetchers.get(G);at(ce,`Expected fetcher: ${G}`),ce.state==="loading"&&(ca(G),ve.delete(G),z.push(G))}return Xn(z),z.length>0}function O(C,z){let G=_.blockers.get(C)||Gc;return Ke.get(C)!==z&&Ke.set(C,z),G}function W(C){_.blockers.delete(C),Ke.delete(C)}function se(C,z){let G=_.blockers.get(C)||Gc;at(G.state==="unblocked"&&z.state==="blocked"||G.state==="blocked"&&z.state==="blocked"||G.state==="blocked"&&z.state==="proceeding"||G.state==="blocked"&&z.state==="unblocked"||G.state==="proceeding"&&z.state==="unblocked",`Invalid blocker state transition: ${G.state} -> ${z.state}`);let re=new Map(_.blockers);re.set(C,z),ft({blockers:re})}function de({currentLocation:C,nextLocation:z,historyAction:G}){if(Ke.size===0)return;Ke.size>1&&qt(!1,"A router only supports one blocker at a time");let re=Array.from(Ke.entries()),[ce,Ue]=re[re.length-1],ye=_.blockers.get(ce);if(!(ye&&ye.state==="proceeding")&&Ue({currentLocation:C,nextLocation:z,historyAction:G}))return ce}function Le(C){let z=Bn(404,{pathname:C}),G=b||g,{matches:re,route:ce}=Uf(G);return{notFoundMatches:re,route:ce,error:z}}function De(C,z,G){if(k=C,H=z,B=G||null,!Z&&_.navigation===Bg){Z=!0;let re=Pt(_.location,_.matches);re!=null&&ft({restoreScrollPosition:re})}return()=>{k=null,H=null,B=null}}function Xe(C,z){return B&&B(C,z.map(re=>_k(re,_.loaderData)))||C.key}function Be(C,z){if(k&&H){let G=Xe(C,z);k[G]=H()}}function Pt(C,z){if(k){let G=Xe(C,z),re=k[G];if(typeof re=="number")return re}return null}function Aa(C,z,G){if(s.patchRoutesOnNavigation)if(C){if(Object.keys(C[0].params).length>0)return{active:!0,matches:Pc(z,G,y,!0)}}else return{active:!0,matches:Pc(z,G,y,!0)||[]};return{active:!1,matches:null}}async function Is(C,z,G,re){if(!s.patchRoutesOnNavigation)return{type:"success",matches:C};let ce=C;for(;;){let Ue=b==null,ye=b||g,je=h;try{await s.patchRoutesOnNavigation({signal:G,path:z,matches:ce,fetcherKey:re,patch:(Ve,Te)=>{G.aborted||CS(Ve,Te,ye,je,d,!1)}})}catch(Ve){return{type:"error",error:Ve,partialMatches:ce}}finally{Ue&&!G.aborted&&(g=[...g])}if(G.aborted)return{type:"aborted"};let Ee=dr(ye,z,y),Me=null;if(Ee){if(Object.keys(Ee[0].params).length===0)return{type:"success",matches:Ee};if(Me=Pc(ye,z,y,!0),!(Me&&ce.length<Me.length&&Fs(ce,Me.slice(0,ce.length))))return{type:"success",matches:Ee}}if(Me||(Me=Pc(ye,z,y,!0)),!Me||Fs(ce,Me))return{type:"success",matches:null};ce=Me}}function Fs(C,z){return C.length===z.length&&C.every((G,re)=>G.route.id===z[re].route.id)}function oi(C){h={},b=nu(C,d,void 0,h)}function Qn(C,z,G=!1){let re=b==null;CS(C,z,b||g,h,d,G),re&&(g=[...g],ft({}))}return ae={get basename(){return y},get future(){return N},get state(){return _},get routes(){return g},get window(){return o},initialize:Lt,subscribe:xt,enableScrollRestoration:De,navigate:Bt,fetch:wa,revalidate:nt,createHref:C=>s.history.createHref(C),encodeLocation:C=>s.history.encodeLocation(C),getFetcher:ds,resetFetcher:In,deleteFetcher:Fn,dispose:he,getBlocker:O,deleteBlocker:W,patchRoutes:Qn,_internalFetchControllers:P,_internalSetRoutes:oi,_internalSetStateDoNotUseOrYouWillBreakYourApp(C){ft(C)}},s.unstable_instrumentations&&(ae=Fk(ae,s.unstable_instrumentations.map(C=>C.router).filter(Boolean))),ae}function sU(s){return s!=null&&("formData"in s&&s.formData!=null||"body"in s&&s.body!==void 0)}function Wg(s,o,l,c,u,d){let h,g;if(u){h=[];for(let y of o)if(h.push(y),y.route.id===u){g=y;break}}else h=o,g=o[o.length-1];let b=lu(c||".",Gf(h),Yn(s.pathname,l)||s.pathname,d==="path");if(c==null&&(b.search=s.search,b.hash=s.hash),(c==null||c===""||c===".")&&g){let y=db(b.search);if(g.route.index&&!y)b.search=b.search?b.search.replace(/^\?/,"?index&"):"?index";else if(!g.route.index&&y){let D=new URLSearchParams(b.search),N=D.getAll("index");D.delete("index"),N.filter(R=>R).forEach(R=>D.append("index",R));let S=D.toString();b.search=S?`?${S}`:""}}return l!=="/"&&(b.pathname=Bk({basename:l,pathname:b.pathname})),qs(b)}function kS(s,o,l){if(!l||!sU(l))return{path:o};if(l.formMethod&&!wU(l.formMethod))return{path:o,error:Bn(405,{method:l.formMethod})};let c=()=>({path:o,error:Bn(400,{type:"invalid-body"})}),d=(l.formMethod||"get").toUpperCase(),h=Gw(o);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!Ca(d))return c();let N=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((S,[R,k])=>`${S}${R}=${k}
236
+ `,""):String(l.body);return{path:o,submission:{formMethod:d,formAction:h,formEncType:l.formEncType,formData:void 0,json:void 0,text:N}}}else if(l.formEncType==="application/json"){if(!Ca(d))return c();try{let N=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:o,submission:{formMethod:d,formAction:h,formEncType:l.formEncType,formData:void 0,json:N,text:void 0}}}catch{return c()}}}at(typeof FormData=="function","FormData is not available in this environment");let g,b;if(l.formData)g=tb(l.formData),b=l.formData;else if(l.body instanceof FormData)g=tb(l.body),b=l.body;else if(l.body instanceof URLSearchParams)g=l.body,b=VS(g);else if(l.body==null)g=new URLSearchParams,b=new FormData;else try{g=new URLSearchParams(l.body),b=VS(g)}catch{return c()}let y={formMethod:d,formAction:h,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:b,json:void 0,text:void 0};if(Ca(y.formMethod))return{path:o,submission:y};let D=wo(o);return s&&D.search&&db(D.search)&&g.append("index",""),D.search=`?${g}`,{path:qs(D),submission:y}}function US(s,o,l,c,u,d,h,g,b,y,D,N,S,R,k,B,H,Z,X,te,fe){let ie=te?xn(te[1])?te[1].error:te[1].data:void 0,ne=u.createURL(d.location),ae=u.createURL(b),_;if(D&&d.errors){let Ne=Object.keys(d.errors)[0];_=h.findIndex(K=>K.route.id===Ne)}else if(te&&xn(te[1])){let Ne=te[0];_=h.findIndex(K=>K.route.id===Ne)-1}let Q=te?te[1].statusCode:void 0,L=Q&&Q>=400,pe={currentUrl:ne,currentParams:d.matches[0]?.params||{},nextUrl:ae,nextParams:h[0].params,...g,actionResult:ie,actionStatus:Q},ee=uu(h),F=h.map((Ne,K)=>{let{route:ue}=Ne,be=null;if(_!=null&&K>_)be=!1;else if(ue.lazy)be=!0;else if(!cb(ue))be=!1;else if(D){let{shouldLoad:ve}=Lw(ue,d.loaderData,d.errors);be=ve}else oU(d.loaderData,d.matches[K],Ne)&&(be=!0);if(be!==null)return eb(l,c,s,ee,Ne,y,o,be);let P=!1;typeof fe=="boolean"?P=fe:L?P=!1:(N||ne.pathname+ne.search===ae.pathname+ae.search||ne.search!==ae.search||rU(d.matches[K],Ne))&&(P=!0);let we={...pe,defaultShouldRevalidate:P},Y=eu(Ne,we);return eb(l,c,s,ee,Ne,y,o,Y,we,fe)}),le=[];return k.forEach((Ne,K)=>{if(D||!h.some(_e=>_e.route.id===Ne.routeId)||R.has(K))return;let ue=d.fetchers.get(K),be=ue&&ue.state!=="idle"&&ue.data===void 0,P=dr(H,Ne.path,Z);if(!P){if(X&&be)return;le.push({key:K,routeId:Ne.routeId,path:Ne.path,matches:null,match:null,request:null,controller:null});return}if(B.has(K))return;let we=Vf(P,Ne.path),Y=new AbortController,ve=rl(u,Ne.path,Y.signal),Ce=null;if(S.has(K))S.delete(K),Ce=cl(l,c,ve,P,we,y,o);else if(be)N&&(Ce=cl(l,c,ve,P,we,y,o));else{let _e;typeof fe=="boolean"?_e=fe:L?_e=!1:_e=N;let dt={...pe,defaultShouldRevalidate:_e};eu(we,dt)&&(Ce=cl(l,c,ve,P,we,y,o,dt))}Ce&&le.push({key:K,routeId:Ne.routeId,path:Ne.path,matches:Ce,match:we,request:ve,controller:Y})}),{dsMatches:F,revalidatingFetchers:le}}function cb(s){return s.loader!=null||s.middleware!=null&&s.middleware.length>0}function Lw(s,o,l){if(s.lazy)return{shouldLoad:!0,renderFallback:!0};if(!cb(s))return{shouldLoad:!1,renderFallback:!1};let c=o!=null&&s.id in o,u=l!=null&&l[s.id]!==void 0;if(!c&&u)return{shouldLoad:!1,renderFallback:!1};if(typeof s.loader=="function"&&s.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!c};let d=!c&&!u;return{shouldLoad:d,renderFallback:d}}function oU(s,o,l){let c=!o||l.route.id!==o.route.id,u=!s.hasOwnProperty(l.route.id);return c||u}function rU(s,o){let l=s.route.path;return s.pathname!==o.pathname||l!=null&&l.endsWith("*")&&s.params["*"]!==o.params["*"]}function eu(s,o){if(s.route.shouldRevalidate){let l=s.route.shouldRevalidate(o);if(typeof l=="boolean")return l}return o.defaultShouldRevalidate}function CS(s,o,l,c,u,d){let h;if(s){let y=c[s];at(y,`No route found to patch children into: routeId = ${s}`),y.children||(y.children=[]),h=y.children}else h=l;let g=[],b=[];if(o.forEach(y=>{let D=h.find(N=>Hw(y,N));D?b.push({existingRoute:D,newRoute:y}):g.push(y)}),g.length>0){let y=nu(g,u,[s||"_","patch",String(h?.length||"0")],c);h.push(...y)}if(d&&b.length>0)for(let y=0;y<b.length;y++){let{existingRoute:D,newRoute:N}=b[y],S=D,[R]=nu([N],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 Hw(s,o){return"id"in s&&"id"in o&&s.id===o.id?!0:s.index===o.index&&s.path===o.path&&s.caseSensitive===o.caseSensitive?(!s.children||s.children.length===0)&&(!o.children||o.children.length===0)?!0:s.children?.every((l,c)=>o.children?.some(u=>Hw(l,u)))??!1:!1}var TS=new WeakMap,Bw=({key:s,route:o,manifest:l,mapRouteProperties:c})=>{let u=l[o.id];if(at(u,"No route found in manifest"),!u.lazy||typeof u.lazy!="object")return;let d=u.lazy[s];if(!d)return;let h=TS.get(u);h||(h={},TS.set(u,h));let g=h[s];if(g)return g;let b=(async()=>{let y=wk(s),N=u[s]!==void 0&&s!=="hasErrorBoundary";if(y)qt(!y,"Route property "+s+" is not a supported lazy route property. This property will be ignored."),h[s]=Promise.resolve();else if(N)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]=b,b},jS=new WeakMap;function iU(s,o,l,c,u){let d=l[s.id];if(at(d,"No route found in manifest"),!s.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof s.lazy=="function"){let D=jS.get(d);if(D)return{lazyRoutePromise:D,lazyHandlerPromise:D};let N=(async()=>{at(typeof s.lazy=="function","No lazy route function found");let S=await s.lazy(),R={};for(let k in S){let B=S[k];if(B===void 0)continue;let H=Dk(k),X=d[k]!==void 0&&k!=="hasErrorBoundary";H?qt(!H,"Route property "+k+" is not a supported property to be returned from a lazy route function. This property will be ignored."):X?qt(!X,`Route "${d.id}" has a static property "${k}" defined but its lazy function is also returning a value for this property. The lazy route property "${k}" will be ignored.`):R[k]=B}Object.assign(d,R),Object.assign(d,{...c(d),lazy:void 0})})();return jS.set(d,N),N.catch(()=>{}),{lazyRoutePromise:N,lazyHandlerPromise:N}}let h=Object.keys(s.lazy),g=[],b;for(let D of h){if(u&&u.includes(D))continue;let N=Bw({key:D,route:s,manifest:l,mapRouteProperties:c});N&&(g.push(N),D===o&&(b=N))}let y=g.length>0?Promise.all(g).then(()=>{}):void 0;return y?.catch(()=>{}),b?.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:b}}async function OS(s){let o=s.matches.filter(u=>u.shouldLoad),l={};return(await Promise.all(o.map(u=>u.resolve()))).forEach((u,d)=>{l[o[d].route.id]=u}),l}async function lU(s){return s.matches.some(o=>o.route.middleware)?$w(s,()=>OS(s)):OS(s)}function $w(s,o){return cU(s,o,c=>{if(SU(c))throw c;return c},yU,l);function l(c,u,d){if(d)return Promise.resolve(Object.assign(d.value,{[u]:{type:"error",result:c}}));{let{matches:h}=s,g=Math.min(Math.max(h.findIndex(y=>y.route.id===u),0),Math.max(h.findIndex(y=>y.shouldCallHandler()),0)),b=fr(h,h[g].route.id).route.id;return Promise.resolve({[b]:{type:"error",result:c}})}}}async function cU(s,o,l,c,u){let{matches:d,request:h,params:g,context:b,unstable_pattern:y}=s,D=d.flatMap(S=>S.route.middleware?S.route.middleware.map(R=>[S.route.id,R]):[]);return await Yw({request:h,params:g,context:b,unstable_pattern:y},D,o,l,c,u)}async function Yw(s,o,l,c,u,d,h=0){let{request:g}=s;if(g.signal.aborted)throw g.signal.reason??new Error(`Request aborted: ${g.method} ${g.url}`);let b=o[h];if(!b)return await l();let[y,D]=b,N,S=async()=>{if(N)throw new Error("You may only call `next()` once per middleware");try{return N={value:await Yw(s,o,l,c,u,d,h+1)},N.value}catch(R){return N={value:await d(R,y,N)},N.value}};try{let R=await D(s,S),k=R!=null?c(R):void 0;return u(k)?k:N?k??N.value:(N={value:await S()},N.value)}catch(R){return await d(R,y,N)}}function qw(s,o,l,c,u){let d=Bw({key:"middleware",route:c.route,manifest:o,mapRouteProperties:s}),h=iU(c.route,Ca(l.method)?"action":"loader",o,s,u);return{middleware:d,route:h.lazyRoutePromise,handler:h.lazyHandlerPromise}}function eb(s,o,l,c,u,d,h,g,b=null,y){let D=!1,N=qw(s,o,l,u,d);return{...u,_lazyPromises:N,shouldLoad:g,shouldRevalidateArgs:b,shouldCallHandler(S){return D=!0,b?typeof y=="boolean"?eu(u,{...b,defaultShouldRevalidate:y}):typeof S=="boolean"?eu(u,{...b,defaultShouldRevalidate:S}):eu(u,b):g},resolve(S){let{lazy:R,loader:k,middleware:B}=u.route,H=D||g||S&&!Ca(l.method)&&(R||k),Z=B&&B.length>0&&!k&&!R;return H&&(Ca(l.method)||!Z)?dU({request:l,unstable_pattern:c,match:u,lazyHandlerPromise:N?.handler,lazyRoutePromise:N?.route,handlerOverride:S,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function cl(s,o,l,c,u,d,h,g=null){return c.map(b=>b.route.id!==u.route.id?{...b,shouldLoad:!1,shouldRevalidateArgs:g,shouldCallHandler:()=>!1,_lazyPromises:qw(s,o,l,b,d),resolve:()=>Promise.resolve({type:"data",result:void 0})}:eb(s,o,l,uu(c),b,d,h,!0,g))}async function uU(s,o,l,c,u,d){l.some(y=>y._lazyPromises?.middleware)&&await Promise.all(l.map(y=>y._lazyPromises?.middleware));let h={request:o,unstable_pattern:uu(l),params:l[0].params,context:u,matches:l},b=await s({...h,fetcherKey:c,runClientMiddleware:y=>{let D=h;return $w(D,()=>y({...D,fetcherKey:c,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(y=>[y._lazyPromises?.handler,y._lazyPromises?.route]))}catch{}return b}async function dU({request:s,unstable_pattern:o,match:l,lazyHandlerPromise:c,lazyRoutePromise:u,handlerOverride:d,scopedContext:h}){let g,b,y=Ca(s.method),D=y?"action":"loader",N=S=>{let R,k=new Promise((Z,X)=>R=X);b=()=>R(),s.signal.addEventListener("abort",b);let B=Z=>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:o,params:l.params,context:h},...Z!==void 0?[Z]:[]),H=(async()=>{try{return{type:"data",result:await(d?d(X=>B(X)):B())}}catch(Z){return{type:"error",result:Z}}})();return Promise.race([H,k])};try{let S=y?l.route.action:l.route.loader;if(c||u)if(S){let R,[k]=await Promise.all([N(S).catch(B=>{R=B}),c,u]);if(R!==void 0)throw R;g=k}else{await c;let R=y?l.route.action:l.route.loader;if(R)[g]=await Promise.all([N(R),u]);else if(D==="action"){let k=new URL(s.url),B=k.pathname+k.search;throw Bn(405,{method:s.method,pathname:B,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(S)g=await N(S);else{let R=new URL(s.url),k=R.pathname+R.search;throw Bn(404,{pathname:k})}}catch(S){return{type:"error",result:S}}finally{b&&s.signal.removeEventListener("abort",b)}return g}async function fU(s){let o=s.headers.get("Content-Type");return o&&/\bapplication\/json\b/.test(o)?s.body==null?null:s.json():s.text()}async function mU(s){let{result:o,type:l}=s;if(ub(o)){let c;try{c=await fU(o)}catch(u){return{type:"error",error:u}}return l==="error"?{type:"error",error:new cu(o.status,o.statusText,c),statusCode:o.status,headers:o.headers}:{type:"data",data:c,statusCode:o.status,headers:o.headers}}return l==="error"?HS(o)?o.data instanceof Error?{type:"error",error:o.data,statusCode:o.init?.status,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"error",error:bU(o),statusCode:su(o)?o.status:void 0,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"error",error:o,statusCode:su(o)?o.status:void 0}:HS(o)?{type:"data",data:o.data,statusCode:o.init?.status,headers:o.init?.headers?new Headers(o.init.headers):void 0}:{type:"data",data:o}}function pU(s,o,l,c,u){let d=s.headers.get("Location");if(at(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!lb(d)){let h=c.slice(0,c.findIndex(g=>g.route.id===l)+1);d=Wg(new URL(o.url),h,u,d),s.headers.set("Location",d)}return s}function AS(s,o,l,c){let u=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(lb(s)){let d=s,h=d.startsWith("//")?new URL(o.protocol+d):new URL(d);if(u.includes(h.protocol))throw new Error("Invalid redirect location");let g=Yn(h.pathname,l)!=null;if(h.origin===o.origin&&g)return h.pathname+h.search+h.hash}try{let d=c.createURL(s);if(u.includes(d.protocol))throw new Error("Invalid redirect location")}catch{}return s}function rl(s,o,l,c){let u=s.createURL(Gw(o)).toString(),d={signal:l};if(c&&Ca(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=tb(c.formData):d.body=c.formData}return new Request(u,d)}function tb(s){let o=new URLSearchParams;for(let[l,c]of s.entries())o.append(l,typeof c=="string"?c:c.name);return o}function VS(s){let o=new FormData;for(let[l,c]of s.entries())o.append(l,c);return o}function hU(s,o,l,c=!1,u=!1){let d={},h=null,g,b=!1,y={},D=l&&xn(l[1])?l[1].error:void 0;return s.forEach(N=>{if(!(N.route.id in o))return;let S=N.route.id,R=o[S];if(at(!ti(R),"Cannot handle redirect results in processLoaderData"),xn(R)){let k=R.error;if(D!==void 0&&(k=D,D=void 0),h=h||{},u)h[S]=k;else{let B=fr(s,S);h[B.route.id]==null&&(h[B.route.id]=k)}c||(d[S]=zw),b||(b=!0,g=su(R.error)?R.error.status:500),R.headers&&(y[S]=R.headers)}else d[S]=R.data,R.statusCode&&R.statusCode!==200&&!b&&(g=R.statusCode),R.headers&&(y[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:y}}function MS(s,o,l,c,u,d){let{loaderData:h,errors:g}=hU(o,l,c);return u.filter(b=>!b.matches||b.matches.some(y=>y.shouldLoad)).forEach(b=>{let{key:y,match:D,controller:N}=b;if(N&&N.signal.aborted)return;let S=d[y];if(at(S,"Did not find corresponding fetcher result"),xn(S)){let R=fr(s.matches,D?.route.id);g&&g[R.route.id]||(g={...g,[R.route.id]:S.error}),s.fetchers.delete(y)}else if(ti(S))at(!1,"Unhandled fetcher revalidation redirect");else{let R=No(S.data);s.fetchers.set(y,R)}}),{loaderData:h,errors:g}}function zS(s,o,l,c){let u=Object.entries(o).filter(([,d])=>d!==zw).reduce((d,[h,g])=>(d[h]=g,d),{});for(let d of l){let h=d.route.id;if(!o.hasOwnProperty(h)&&s.hasOwnProperty(h)&&d.route.loader&&(u[h]=s[h]),c&&c.hasOwnProperty(h))break}return u}function LS(s){return s?xn(s[1])?{actionData:{}}:{actionData:{[s[0]]:s[1].data}}:{}}function fr(s,o){return(o?s.slice(0,s.findIndex(c=>c.route.id===o)+1):[...s]).reverse().find(c=>c.route.hasErrorBoundary===!0)||s[0]}function Uf(s){let o=s.length===1?s[0]:s.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:o}],route:o}}function Bn(s,{pathname:o,routeId:l,method:c,type:u,message:d}={}){let h="Unknown Server Error",g="Unknown @remix-run/router error";return s===400?(h="Bad Request",c&&o&&l?g=`You made a ${c} request to "${o}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:u==="invalid-body"&&(g="Unable to encode submission body")):s===403?(h="Forbidden",g=`Route "${l}" does not match URL "${o}"`):s===404?(h="Not Found",g=`No route matches URL "${o}"`):s===405&&(h="Method Not Allowed",c&&o&&l?g=`You made a ${c.toUpperCase()} request to "${o}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:c&&(g=`Invalid request method "${c.toUpperCase()}"`)),new cu(s||500,h,new Error(g),!0)}function Cf(s){let o=Object.entries(s);for(let l=o.length-1;l>=0;l--){let[c,u]=o[l];if(ti(u))return{key:c,result:u}}}function Gw(s){let o=typeof s=="string"?wo(s):s;return qs({...o,hash:""})}function gU(s,o){return s.pathname!==o.pathname||s.search!==o.search?!1:s.hash===""?o.hash!=="":s.hash===o.hash?!0:o.hash!==""}function bU(s){return new cu(s.init?.status??500,s.init?.statusText??"Internal Server Error",s.data)}function yU(s){return s!=null&&typeof s=="object"&&Object.entries(s).every(([o,l])=>typeof o=="string"&&vU(l))}function vU(s){return s!=null&&typeof s=="object"&&"type"in s&&"result"in s&&(s.type==="data"||s.type==="error")}function xU(s){return ub(s.result)&&Vw.has(s.result.status)}function xn(s){return s.type==="error"}function ti(s){return(s&&s.type)==="redirect"}function HS(s){return typeof s=="object"&&s!=null&&"type"in s&&"data"in s&&"init"in s&&s.type==="DataWithResponseInit"}function ub(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.headers=="object"&&typeof s.body<"u"}function NU(s){return Vw.has(s)}function SU(s){return ub(s)&&NU(s.status)&&s.headers.has("Location")}function wU(s){return Wk.has(s.toUpperCase())}function Ca(s){return Jk.has(s.toUpperCase())}function db(s){return new URLSearchParams(s).getAll("index").some(o=>o==="")}function Vf(s,o){let l=typeof o=="string"?wo(o).search:o.search;if(s[s.length-1].route.index&&db(l||""))return s[s.length-1];let c=Cw(s);return c[c.length-1]}function BS(s){let{formMethod:o,formAction:l,formEncType:c,text:u,formData:d,json:h}=s;if(!(!o||!l||!c)){if(u!=null)return{formMethod:o,formAction:l,formEncType:c,formData:void 0,json:void 0,text:u};if(d!=null)return{formMethod:o,formAction:l,formEncType:c,formData:d,json:void 0,text:void 0};if(h!==void 0)return{formMethod:o,formAction:l,formEncType:c,formData:void 0,json:h,text:void 0}}}function $g(s,o){return o?{state:"loading",location:s,formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}:{state:"loading",location:s,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function EU(s,o){return{state:"submitting",location:s,formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}}function Ic(s,o){return s?{state:"loading",formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text,data:o}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:o}}function DU(s,o){return{state:"submitting",formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text,data:o?o.data:void 0}}function No(s){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:s}}function RU(s,o){try{let l=s.sessionStorage.getItem(Mw);if(l){let c=JSON.parse(l);for(let[u,d]of Object.entries(c||{}))d&&Array.isArray(d)&&o.set(u,new Set(d||[]))}}catch{}}function _U(s,o){if(o.size>0){let l={};for(let[c,u]of o)l[c]=[...u];try{s.sessionStorage.setItem(Mw,JSON.stringify(l))}catch(c){qt(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function $S(){let s,o,l=new Promise((c,u)=>{s=async d=>{c(d);try{await l}catch{}},o=async d=>{u(d);try{await l}catch{}}});return{promise:l,resolve:s,reject:o}}var si=E.createContext(null);si.displayName="DataRouter";var du=E.createContext(null);du.displayName="DataRouterState";var Iw=E.createContext(!1);function kU(){return E.useContext(Iw)}var fb=E.createContext({isTransitioning:!1});fb.displayName="ViewTransition";var Fw=E.createContext(new Map);Fw.displayName="Fetchers";var UU=E.createContext(null);UU.displayName="Await";var Nn=E.createContext(null);Nn.displayName="Navigation";var If=E.createContext(null);If.displayName="Location";var qn=E.createContext({outlet:null,matches:[],isDataRoute:!1});qn.displayName="Route";var mb=E.createContext(null);mb.displayName="RouteError";var Xw="REACT_ROUTER_ERROR",CU="REDIRECT",TU="ROUTE_ERROR_RESPONSE";function jU(s){if(s.startsWith(`${Xw}:${CU}:{`))try{let o=JSON.parse(s.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function OU(s){if(s.startsWith(`${Xw}:${TU}:{`))try{let o=JSON.parse(s.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new cu(o.status,o.statusText,o.data)}catch{}}function AU(s,{relative:o}={}){at(fl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:c}=E.useContext(Nn),{hash:u,pathname:d,search:h}=fu(s,{relative:o}),g=d;return l!=="/"&&(g=d==="/"?l:ls([l,d])),c.createHref({pathname:g,search:h,hash:u})}function fl(){return E.useContext(If)!=null}function cs(){return at(fl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(If).location}var Qw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Zw(s){E.useContext(Nn).static||E.useLayoutEffect(s)}function hr(){let{isDataRoute:s}=E.useContext(qn);return s?ZU():VU()}function VU(){at(fl(),"useNavigate() may be used only in the context of a <Router> component.");let s=E.useContext(si),{basename:o,navigator:l}=E.useContext(Nn),{matches:c}=E.useContext(qn),{pathname:u}=cs(),d=JSON.stringify(Gf(c)),h=E.useRef(!1);return Zw(()=>{h.current=!0}),E.useCallback((b,y={})=>{if(qt(h.current,Qw),!h.current)return;if(typeof b=="number"){l.go(b);return}let D=lu(b,JSON.parse(d),u,y.relative==="path");s==null&&o!=="/"&&(D.pathname=D.pathname==="/"?o:ls([o,D.pathname])),(y.replace?l.replace:l.push)(D,y.state,y)},[o,l,d,u,s])}var MU=E.createContext(null);function zU(s){let o=E.useContext(qn).outlet;return E.useMemo(()=>o&&E.createElement(MU.Provider,{value:s},o),[o,s])}function Ff(){let{matches:s}=E.useContext(qn),o=s[s.length-1];return o?o.params:{}}function fu(s,{relative:o}={}){let{matches:l}=E.useContext(qn),{pathname:c}=cs(),u=JSON.stringify(Gf(l));return E.useMemo(()=>lu(s,JSON.parse(u),c,o==="path"),[s,u,c,o])}function LU(s,o,l){at(fl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=E.useContext(Nn),{matches:u}=E.useContext(qn),d=u[u.length-1],h=d?d.params:{},g=d?d.pathname:"/",b=d?d.pathnameBase:"/",y=d&&d.route;{let H=y&&y.path||"";Jw(g,!y||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${H}">) 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="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let D=cs(),N;N=D;let S=N.pathname||"/",R=S;if(b!=="/"){let H=b.replace(/^\//,"").split("/");R="/"+S.replace(/^\//,"").split("/").slice(H.length).join("/")}let k=dr(s,{pathname:R});return qt(y||k!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),qt(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),qU(k&&k.map(H=>Object.assign({},H,{params:Object.assign({},h,H.params),pathname:ls([b,c.encodeLocation?c.encodeLocation(H.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?b:ls([b,c.encodeLocation?c.encodeLocation(H.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),u,l)}function HU(){let s=QU(),o=su(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),l=s instanceof Error?s.stack:null,c="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},h=null;return console.error("Error handled by React Router default ErrorBoundary:",s),h=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"}},o),l?E.createElement("pre",{style:u},l):null,h)}var BU=E.createElement(HU,null),Pw=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,o){return o.location!==s.location||o.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:o.error,location:o.location,revalidation:s.revalidation||o.revalidation}}componentDidCatch(s,o){this.props.onError?this.props.onError(s,o):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const l=OU(s.digest);l&&(s=l)}let o=s!==void 0?E.createElement(qn.Provider,{value:this.props.routeContext},E.createElement(mb.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?E.createElement($U,{error:s},o):o}};Pw.contextType=Iw;var Yg=new WeakMap;function $U({children:s,error:o}){let{basename:l}=E.useContext(Nn);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let c=jU(o.digest);if(c){let u=Yg.get(o);if(u)throw u;let d=jw(c.location,l);if(Tw&&!Yg.get(o))if(d.isExternal||c.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:c.replace}));throw Yg.set(o,h),h}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return s}function YU({routeContext:s,match:o,children:l}){let c=E.useContext(si);return c&&c.static&&c.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=o.route.id),E.createElement(qn.Provider,{value:s},l)}function qU(s,o=[],l){let c=l?.state;if(s==null){if(!c)return null;if(c.errors)s=c.matches;else if(o.length===0&&!c.initialized&&c.matches.length>0)s=c.matches;else return null}let u=s,d=c?.errors;if(d!=null){let D=u.findIndex(N=>N.route.id&&d?.[N.route.id]!==void 0);at(D>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),u=u.slice(0,Math.min(u.length,D+1))}let h=!1,g=-1;if(l&&c){h=c.renderFallback;for(let D=0;D<u.length;D++){let N=u[D];if((N.route.HydrateFallback||N.route.hydrateFallbackElement)&&(g=D),N.route.id){let{loaderData:S,errors:R}=c,k=N.route.loader&&!S.hasOwnProperty(N.route.id)&&(!R||R[N.route.id]===void 0);if(N.route.lazy||k){l.isStatic&&(h=!0),g>=0?u=u.slice(0,g+1):u=[u[0]];break}}}}let b=l?.onError,y=c&&b?(D,N)=>{b(D,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:uu(c.matches),errorInfo:N})}:void 0;return u.reduceRight((D,N,S)=>{let R,k=!1,B=null,H=null;c&&(R=d&&N.route.id?d[N.route.id]:void 0,B=N.route.errorElement||BU,h&&(g<0&&S===0?(Jw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,H=null):g===S&&(k=!0,H=N.route.hydrateFallbackElement||null)));let Z=o.concat(u.slice(0,S+1)),X=()=>{let te;return R?te=B:k?te=H:N.route.Component?te=E.createElement(N.route.Component,null):N.route.element?te=N.route.element:te=D,E.createElement(YU,{match:N,routeContext:{outlet:D,matches:Z,isDataRoute:c!=null},children:te})};return c&&(N.route.ErrorBoundary||N.route.errorElement||S===0)?E.createElement(Pw,{location:c.location,revalidation:c.revalidation,component:B,error:R,children:X(),routeContext:{outlet:null,matches:Z,isDataRoute:!0},onError:y}):X()},null)}function pb(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function GU(s){let o=E.useContext(si);return at(o,pb(s)),o}function IU(s){let o=E.useContext(du);return at(o,pb(s)),o}function FU(s){let o=E.useContext(qn);return at(o,pb(s)),o}function hb(s){let o=FU(s),l=o.matches[o.matches.length-1];return at(l.route.id,`${s} can only be used on routes that contain a unique "id"`),l.route.id}function XU(){return hb("useRouteId")}function QU(){let s=E.useContext(mb),o=IU("useRouteError"),l=hb("useRouteError");return s!==void 0?s:o.errors?.[l]}function ZU(){let{router:s}=GU("useNavigate"),o=hb("useNavigate"),l=E.useRef(!1);return Zw(()=>{l.current=!0}),E.useCallback(async(u,d={})=>{qt(l.current,Qw),l.current&&(typeof u=="number"?await s.navigate(u):await s.navigate(u,{fromRouteId:o,...d}))},[s,o])}var YS={};function Jw(s,o,l){!o&&!YS[s]&&(YS[s]=!0,qt(!1,l))}var qS={};function GS(s,o){!s&&!qS[o]&&(qS[o]=!0,console.warn(o))}var PU="useOptimistic",IS=R_[PU],JU=()=>{};function KU(s){return IS?IS(s):[s,JU]}function WU(s){let o={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(o,{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(o,{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(o,{errorElement:E.createElement(s.ErrorBoundary),ErrorBoundary:void 0})),o}var eC=["HydrateFallback","hydrateFallbackElement"],tC=class{constructor(){this.status="pending",this.promise=new Promise((s,o)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",s(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",o(l))}})}};function aC({router:s,flushSync:o,onError:l,unstable_useTransitions:c}){c=kU()||c;let[d,h]=E.useState(s.state),[g,b]=KU(d),[y,D]=E.useState(),[N,S]=E.useState({isTransitioning:!1}),[R,k]=E.useState(),[B,H]=E.useState(),[Z,X]=E.useState(),te=E.useRef(new Map),fe=E.useCallback((_,{deletedFetchers:Q,newErrors:L,flushSync:pe,viewTransitionOpts:ee})=>{L&&l&&Object.values(L).forEach(le=>l(le,{location:_.location,params:_.matches[0]?.params??{},unstable_pattern:uu(_.matches)})),_.fetchers.forEach((le,Ne)=>{le.data!==void 0&&te.current.set(Ne,le.data)}),Q.forEach(le=>te.current.delete(le)),GS(pe===!1||o!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let F=s.window!=null&&s.window.document!=null&&typeof s.window.document.startViewTransition=="function";if(GS(ee==null||F,"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."),!ee||!F){o&&pe?o(()=>h(_)):c===!1?h(_):E.startTransition(()=>{c===!0&&b(le=>FS(le,_)),h(_)});return}if(o&&pe){o(()=>{B&&(R?.resolve(),B.skipTransition()),S({isTransitioning:!0,flushSync:!0,currentLocation:ee.currentLocation,nextLocation:ee.nextLocation})});let le=s.window.document.startViewTransition(()=>{o(()=>h(_))});le.finished.finally(()=>{o(()=>{k(void 0),H(void 0),D(void 0),S({isTransitioning:!1})})}),o(()=>H(le));return}B?(R?.resolve(),B.skipTransition(),X({state:_,currentLocation:ee.currentLocation,nextLocation:ee.nextLocation})):(D(_),S({isTransitioning:!0,flushSync:!1,currentLocation:ee.currentLocation,nextLocation:ee.nextLocation}))},[s.window,o,B,R,c,b,l]);E.useLayoutEffect(()=>s.subscribe(fe),[s,fe]),E.useEffect(()=>{N.isTransitioning&&!N.flushSync&&k(new tC)},[N]),E.useEffect(()=>{if(R&&y&&s.window){let _=y,Q=R.promise,L=s.window.document.startViewTransition(async()=>{c===!1?h(_):E.startTransition(()=>{c===!0&&b(pe=>FS(pe,_)),h(_)}),await Q});L.finished.finally(()=>{k(void 0),H(void 0),D(void 0),S({isTransitioning:!1})}),H(L)}},[y,R,s.window,c,b]),E.useEffect(()=>{R&&y&&g.location.key===y.location.key&&R.resolve()},[R,B,g.location,y]),E.useEffect(()=>{!N.isTransitioning&&Z&&(D(Z.state),S({isTransitioning:!0,flushSync:!1,currentLocation:Z.currentLocation,nextLocation:Z.nextLocation}),X(void 0))},[N.isTransitioning,Z]);let ie=E.useMemo(()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:_=>s.navigate(_),push:(_,Q,L)=>s.navigate(_,{state:Q,preventScrollReset:L?.preventScrollReset}),replace:(_,Q,L)=>s.navigate(_,{replace:!0,state:Q,preventScrollReset:L?.preventScrollReset})}),[s]),ne=s.basename||"/",ae=E.useMemo(()=>({router:s,navigator:ie,static:!1,basename:ne,onError:l}),[s,ie,ne,l]);return E.createElement(E.Fragment,null,E.createElement(si.Provider,{value:ae},E.createElement(du.Provider,{value:g},E.createElement(Fw.Provider,{value:te.current},E.createElement(fb.Provider,{value:N},E.createElement(oC,{basename:ne,location:g.location,navigationType:g.historyAction,navigator:ie,unstable_useTransitions:c},E.createElement(nC,{routes:s.routes,future:s.future,state:g,isStatic:!1,onError:l})))))),null)}function FS(s,o){return{...s,navigation:o.navigation.state!=="idle"?o.navigation:s.navigation,revalidation:o.revalidation!=="idle"?o.revalidation:s.revalidation,actionData:o.navigation.state!=="submitting"?o.actionData:s.actionData,fetchers:o.fetchers}}var nC=E.memo(sC);function sC({routes:s,future:o,state:l,isStatic:c,onError:u}){return LU(s,void 0,{state:l,isStatic:c,onError:u})}function XS({to:s,replace:o,state:l,relative:c}){at(fl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=E.useContext(Nn);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(qn),{pathname:h}=cs(),g=hr(),b=lu(s,Gf(d),h,c==="path"),y=JSON.stringify(b);return E.useEffect(()=>{g(JSON.parse(y),{replace:o,state:l,relative:c})},[g,y,c,o,l]),null}function Kw(s){return zU(s.context)}function oC({basename:s="/",children:o=null,location:l,navigationType:c="POP",navigator:u,static:d=!1,unstable_useTransitions:h}){at(!fl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=s.replace(/^\/*/,"/"),b=E.useMemo(()=>({basename:g,navigator:u,static:d,unstable_useTransitions:h,future:{}}),[g,u,d,h]);typeof l=="string"&&(l=wo(l));let{pathname:y="/",search:D="",hash:N="",state:S=null,key:R="default",unstable_mask:k}=l,B=E.useMemo(()=>{let H=Yn(y,g);return H==null?null:{location:{pathname:H,search:D,hash:N,state:S,key:R,unstable_mask:k},navigationType:c}},[g,y,D,N,S,R,c,k]);return qt(B!=null,`<Router basename="${g}"> is not able to match the URL "${y}${D}${N}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:E.createElement(Nn.Provider,{value:b},E.createElement(If.Provider,{children:o,value:B}))}var Mf="get",zf="application/x-www-form-urlencoded";function Xf(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function rC(s){return Xf(s)&&s.tagName.toLowerCase()==="button"}function iC(s){return Xf(s)&&s.tagName.toLowerCase()==="form"}function lC(s){return Xf(s)&&s.tagName.toLowerCase()==="input"}function cC(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function uC(s,o){return s.button===0&&(!o||o==="_self")&&!cC(s)}function ab(s=""){return new URLSearchParams(typeof s=="string"||Array.isArray(s)||s instanceof URLSearchParams?s:Object.keys(s).reduce((o,l)=>{let c=s[l];return o.concat(Array.isArray(c)?c.map(u=>[l,u]):[[l,c]])},[]))}function dC(s,o){let l=ab(s);return o&&o.forEach((c,u)=>{l.has(u)||o.getAll(u).forEach(d=>{l.append(u,d)})}),l}var Tf=null;function fC(){if(Tf===null)try{new FormData(document.createElement("form"),0),Tf=!1}catch{Tf=!0}return Tf}var mC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qg(s){return s!=null&&!mC.has(s)?(qt(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zf}"`),null):s}function pC(s,o){let l,c,u,d,h;if(iC(s)){let g=s.getAttribute("action");c=g?Yn(g,o):null,l=s.getAttribute("method")||Mf,u=qg(s.getAttribute("enctype"))||zf,d=new FormData(s)}else if(rC(s)||lC(s)&&(s.type==="submit"||s.type==="image")){let g=s.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=s.getAttribute("formaction")||g.getAttribute("action");if(c=b?Yn(b,o):null,l=s.getAttribute("formmethod")||g.getAttribute("method")||Mf,u=qg(s.getAttribute("formenctype"))||qg(g.getAttribute("enctype"))||zf,d=new FormData(g,s),!fC()){let{name:y,type:D,value:N}=s;if(D==="image"){let S=y?`${y}.`:"";d.append(`${S}x`,"0"),d.append(`${S}y`,"0")}else y&&d.append(y,N)}}else{if(Xf(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=Mf,c=null,u=zf,h=s}return d&&u==="text/plain"&&(h=d,d=void 0),{action:c,method:l.toLowerCase(),encType:u,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function gb(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function hC(s,o,l,c){let u=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return l?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${c}`:u.pathname=`${u.pathname}.${c}`:u.pathname==="/"?u.pathname=`_root.${c}`:o&&Yn(u.pathname,o)==="/"?u.pathname=`${o.replace(/\/$/,"")}/_root.${c}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${c}`,u}async function gC(s,o){if(s.id in o)return o[s.id];try{let l=await import(s.module);return o[s.id]=l,l}catch(l){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bC(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function yC(s,o,l){let c=await Promise.all(s.map(async u=>{let d=o.routes[u.route.id];if(d){let h=await gC(d,l);return h.links?h.links():[]}return[]}));return SC(c.flat(1).filter(bC).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function QS(s,o,l,c,u,d){let h=(b,y)=>l[y]?b.route.id!==l[y].route.id:!0,g=(b,y)=>l[y].pathname!==b.pathname||l[y].route.path?.endsWith("*")&&l[y].params["*"]!==b.params["*"];return d==="assets"?o.filter((b,y)=>h(b,y)||g(b,y)):d==="data"?o.filter((b,y)=>{let D=c.routes[b.route.id];if(!D||!D.hasLoader)return!1;if(h(b,y)||g(b,y))return!0;if(b.route.shouldRevalidate){let N=b.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(s,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function vC(s,o,{includeHydrateFallback:l}={}){return xC(s.map(c=>{let u=o.routes[c.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),l&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function xC(s){return[...new Set(s)]}function NC(s){let o={},l=Object.keys(s).sort();for(let c of l)o[c]=s[c];return o}function SC(s,o){let l=new Set;return new Set(o),s.reduce((c,u)=>{let d=JSON.stringify(NC(u));return l.has(d)||(l.add(d),c.push({key:d,link:u})),c},[])}function Ww(){let s=E.useContext(si);return gb(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function wC(){let s=E.useContext(du);return gb(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var bb=E.createContext(void 0);bb.displayName="FrameworkContext";function e4(){let s=E.useContext(bb);return gb(s,"You must render this element inside a <HydratedRouter> element"),s}function EC(s,o){let l=E.useContext(bb),[c,u]=E.useState(!1),[d,h]=E.useState(!1),{onFocus:g,onBlur:b,onMouseEnter:y,onMouseLeave:D,onTouchStart:N}=o,S=E.useRef(null);E.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let B=Z=>{Z.forEach(X=>{h(X.isIntersecting)})},H=new IntersectionObserver(B,{threshold:.5});return S.current&&H.observe(S.current),()=>{H.disconnect()}}},[s]),E.useEffect(()=>{if(c){let B=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(B)}}},[c]);let R=()=>{u(!0)},k=()=>{u(!1),h(!1)};return l?s!=="intent"?[d,S,{}]:[d,S,{onFocus:Fc(g,R),onBlur:Fc(b,k),onMouseEnter:Fc(y,R),onMouseLeave:Fc(D,k),onTouchStart:Fc(N,R)}]:[!1,S,{}]}function Fc(s,o){return l=>{s&&s(l),l.defaultPrevented||o(l)}}function DC({page:s,...o}){let{router:l}=Ww(),c=E.useMemo(()=>dr(l.routes,s,l.basename),[l.routes,s,l.basename]);return c?E.createElement(_C,{page:s,matches:c,...o}):null}function RC(s){let{manifest:o,routeModules:l}=e4(),[c,u]=E.useState([]);return E.useEffect(()=>{let d=!1;return yC(s,o,l).then(h=>{d||u(h)}),()=>{d=!0}},[s,o,l]),c}function _C({page:s,matches:o,...l}){let c=cs(),{future:u,manifest:d,routeModules:h}=e4(),{basename:g}=Ww(),{loaderData:b,matches:y}=wC(),D=E.useMemo(()=>QS(s,o,y,d,c,"data"),[s,o,y,d,c]),N=E.useMemo(()=>QS(s,o,y,d,c,"assets"),[s,o,y,d,c]),S=E.useMemo(()=>{if(s===c.pathname+c.search+c.hash)return[];let B=new Set,H=!1;if(o.forEach(X=>{let te=d.routes[X.route.id];!te||!te.hasLoader||(!D.some(fe=>fe.route.id===X.route.id)&&X.route.id in b&&h[X.route.id]?.shouldRevalidate||te.hasClientLoader?H=!0:B.add(X.route.id))}),B.size===0)return[];let Z=hC(s,g,u.unstable_trailingSlashAwareDataRequests,"data");return H&&B.size>0&&Z.searchParams.set("_routes",o.filter(X=>B.has(X.route.id)).map(X=>X.route.id).join(",")),[Z.pathname+Z.search]},[g,u.unstable_trailingSlashAwareDataRequests,b,c,d,D,o,s,h]),R=E.useMemo(()=>vC(N,d),[N,d]),k=RC(N);return E.createElement(E.Fragment,null,S.map(B=>E.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...l})),R.map(B=>E.createElement("link",{key:B,rel:"modulepreload",href:B,...l})),k.map(({key:B,link:H})=>E.createElement("link",{key:B,nonce:l.nonce,...H,crossOrigin:H.crossOrigin??l.crossOrigin})))}function kC(...s){return o=>{s.forEach(l=>{typeof l=="function"?l(o):l!=null&&(l.current=o)})}}var UC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{UC&&(window.__reactRouterVersion="7.13.1")}catch{}function CC(s,o){return nU({basename:o?.basename,getContext:o?.getContext,future:o?.future,history:vk({window:o?.window}),hydrationData:TC(),routes:s,mapRouteProperties:WU,hydrationRouteProperties:eC,dataStrategy:o?.dataStrategy,patchRoutesOnNavigation:o?.patchRoutesOnNavigation,window:o?.window,unstable_instrumentations:o?.unstable_instrumentations}).initialize()}function TC(){let s=window?.__staticRouterHydrationData;return s&&s.errors&&(s={...s,errors:jC(s.errors)}),s}function jC(s){if(!s)return null;let o=Object.entries(s),l={};for(let[c,u]of o)if(u&&u.__type==="RouteErrorResponse")l[c]=new cu(u.status,u.statusText,u.data,u.internal===!0);else if(u&&u.__type==="Error"){if(u.__subType){let d=window[u.__subType];if(typeof d=="function")try{let h=new d(u.message);h.stack="",l[c]=h}catch{}}if(l[c]==null){let d=new Error(u.message);d.stack="",l[c]=d}}else l[c]=u;return l}var t4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nn=E.forwardRef(function({onClick:o,discover:l="render",prefetch:c="none",relative:u,reloadDocument:d,replace:h,unstable_mask:g,state:b,target:y,to:D,preventScrollReset:N,viewTransition:S,unstable_defaultShouldRevalidate:R,...k},B){let{basename:H,navigator:Z,unstable_useTransitions:X}=E.useContext(Nn),te=typeof D=="string"&&t4.test(D),fe=jw(D,H);D=fe.to;let ie=AU(D,{relative:u}),ne=cs(),ae=null;if(g){let Ne=lu(g,[],ne.unstable_mask?ne.unstable_mask.pathname:"/",!0);H!=="/"&&(Ne.pathname=Ne.pathname==="/"?H:ls([H,Ne.pathname])),ae=Z.createHref(Ne)}let[_,Q,L]=EC(c,k),pe=VC(D,{replace:h,unstable_mask:g,state:b,target:y,preventScrollReset:N,relative:u,viewTransition:S,unstable_defaultShouldRevalidate:R,unstable_useTransitions:X});function ee(Ne){o&&o(Ne),Ne.defaultPrevented||pe(Ne)}let F=!(fe.isExternal||d),le=E.createElement("a",{...k,...L,href:(F?ae:void 0)||fe.absoluteURL||ie,onClick:F?ee:o,ref:kC(B,Q),target:y,"data-discover":!te&&l==="render"?"true":void 0});return _&&!te?E.createElement(E.Fragment,null,le,E.createElement(DC,{page:ie})):le});nn.displayName="Link";var ou=E.forwardRef(function({"aria-current":o="page",caseSensitive:l=!1,className:c="",end:u=!1,style:d,to:h,viewTransition:g,children:b,...y},D){let N=fu(h,{relative:y.relative}),S=cs(),R=E.useContext(du),{navigator:k,basename:B}=E.useContext(Nn),H=R!=null&&BC(N)&&g===!0,Z=k.encodeLocation?k.encodeLocation(N).pathname:N.pathname,X=S.pathname,te=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;l||(X=X.toLowerCase(),te=te?te.toLowerCase():null,Z=Z.toLowerCase()),te&&B&&(te=Yn(te,B)||te);const fe=Z!=="/"&&Z.endsWith("/")?Z.length-1:Z.length;let ie=X===Z||!u&&X.startsWith(Z)&&X.charAt(fe)==="/",ne=te!=null&&(te===Z||!u&&te.startsWith(Z)&&te.charAt(Z.length)==="/"),ae={isActive:ie,isPending:ne,isTransitioning:H},_=ie?o:void 0,Q;typeof c=="function"?Q=c(ae):Q=[c,ie?"active":null,ne?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let L=typeof d=="function"?d(ae):d;return E.createElement(nn,{...y,"aria-current":_,className:Q,ref:D,style:L,to:h,viewTransition:g},typeof b=="function"?b(ae):b)});ou.displayName="NavLink";var OC=E.forwardRef(({discover:s="render",fetcherKey:o,navigate:l,reloadDocument:c,replace:u,state:d,method:h=Mf,action:g,onSubmit:b,relative:y,preventScrollReset:D,viewTransition:N,unstable_defaultShouldRevalidate:S,...R},k)=>{let{unstable_useTransitions:B}=E.useContext(Nn),H=LC(),Z=HC(g,{relative:y}),X=h.toLowerCase()==="get"?"get":"post",te=typeof g=="string"&&t4.test(g),fe=ie=>{if(b&&b(ie),ie.defaultPrevented)return;ie.preventDefault();let ne=ie.nativeEvent.submitter,ae=ne?.getAttribute("formmethod")||h,_=()=>H(ne||ie.currentTarget,{fetcherKey:o,method:ae,navigate:l,replace:u,state:d,relative:y,preventScrollReset:D,viewTransition:N,unstable_defaultShouldRevalidate:S});B&&l!==!1?E.startTransition(()=>_()):_()};return E.createElement("form",{ref:k,method:X,action:Z,onSubmit:c?b:fe,...R,"data-discover":!te&&s==="render"?"true":void 0})});OC.displayName="Form";function AC(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function a4(s){let o=E.useContext(si);return at(o,AC(s)),o}function VC(s,{target:o,replace:l,unstable_mask:c,state:u,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:b,unstable_useTransitions:y}={}){let D=hr(),N=cs(),S=fu(s,{relative:h});return E.useCallback(R=>{if(uC(R,o)){R.preventDefault();let k=l!==void 0?l:qs(N)===qs(S),B=()=>D(s,{replace:k,unstable_mask:c,state:u,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:b});y?E.startTransition(()=>B()):B()}},[N,D,S,l,c,u,o,s,d,h,g,b,y])}function n4(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 o=E.useRef(ab(s)),l=E.useRef(!1),c=cs(),u=E.useMemo(()=>dC(c.search,l.current?null:o.current),[c.search]),d=hr(),h=E.useCallback((g,b)=>{const y=ab(typeof g=="function"?g(new URLSearchParams(u)):g);l.current=!0,d("?"+y,b)},[d,u]);return[u,h]}var MC=0,zC=()=>`__${String(++MC)}__`;function LC(){let{router:s}=a4("useSubmit"),{basename:o}=E.useContext(Nn),l=XU(),c=s.fetch,u=s.navigate;return E.useCallback(async(d,h={})=>{let{action:g,method:b,encType:y,formData:D,body:N}=pC(d,o);if(h.navigate===!1){let S=h.fetcherKey||zC();await c(S,l,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:N,formMethod:h.method||b,formEncType:h.encType||y,flushSync:h.flushSync})}else await u(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:D,body:N,formMethod:h.method||b,formEncType:h.encType||y,replace:h.replace,state:h.state,fromRouteId:l,flushSync:h.flushSync,viewTransition:h.viewTransition})},[c,u,o,l])}function HC(s,{relative:o}={}){let{basename:l}=E.useContext(Nn),c=E.useContext(qn);at(c,"useFormAction must be used inside a RouteContext");let[u]=c.matches.slice(-1),d={...fu(s||".",{relative:o})},h=cs();if(s==null){d.search=h.search;let g=new URLSearchParams(d.search),b=g.getAll("index");if(b.some(D=>D==="")){g.delete("index"),b.filter(N=>N).forEach(N=>g.append("index",N));let D=g.toString();d.search=D?`?${D}`:""}}return(!s||s===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(d.pathname=d.pathname==="/"?l:ls([l,d.pathname])),qs(d)}function BC(s,{relative:o}={}){let l=E.useContext(fb);at(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=a4("useViewTransitionState"),u=fu(s,{relative:o});if(!l.isTransitioning)return!1;let d=Yn(l.currentLocation.pathname,c)||l.currentLocation.pathname,h=Yn(l.nextLocation.pathname,c)||l.nextLocation.pathname;return $f(u.pathname,h)!=null||$f(u.pathname,d)!=null}const s4=(...s)=>s.filter((o,l,c)=>!!o&&o.trim()!==""&&c.indexOf(o)===l).join(" ").trim();const $C=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const YC=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,l,c)=>c?c.toUpperCase():l.toLowerCase());const ZS=s=>{const o=YC(s);return o.charAt(0).toUpperCase()+o.slice(1)};var qC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const GC=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const IC=E.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:c,className:u="",children:d,iconNode:h,...g},b)=>E.createElement("svg",{ref:b,...qC,width:o,height:o,stroke:s,strokeWidth:c?Number(l)*24/Number(o):l,className:s4("lucide",u),...!d&&!GC(g)&&{"aria-hidden":"true"},...g},[...h.map(([y,D])=>E.createElement(y,D)),...Array.isArray(d)?d:[d]]));const Fe=(s,o)=>{const l=E.forwardRef(({className:c,...u},d)=>E.createElement(IC,{ref:d,iconNode:o,className:s4(`lucide-${$C(ZS(s))}`,`lucide-${s}`,c),...u}));return l.displayName=ZS(s),l};const FC=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],o4=Fe("arrow-right",FC);const XC=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],PS=Fe("arrow-up-right",XC);const QC=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],ZC=Fe("boxes",QC);const PC=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],JC=Fe("brain",PC);const KC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ul=Fe("check",KC);const WC=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qf=Fe("chevron-down",WC);const eT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],So=Fe("chevron-right",eT);const tT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],yb=Fe("circle-alert",tT);const aT=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],JS=Fe("copy",aT);const nT=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],sT=Fe("database",nT);const oT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],rT=Fe("file-spreadsheet",oT);const iT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],pr=Fe("file-text",iT);const lT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],r4=Fe("file",lT);const cT=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],uT=Fe("files",cT);const dT=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],vb=Fe("folder-git-2",dT);const fT=[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]],mT=Fe("folder-input",fT);const pT=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],hT=Fe("folder-open",pT);const gT=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],i4=Fe("folder-plus",gT);const bT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],$n=Fe("folder",bT);const yT=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Yf=Fe("git-branch",yT);const vT=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],nb=Fe("git-commit-horizontal",vT);const xT=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],sb=Fe("github",xT);const NT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],ST=Fe("globe",NT);const wT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ET=Fe("info",wT);const DT=[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]],RT=Fe("list-filter",DT);const _T=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ta=Fe("loader-circle",_T);const kT=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],UT=Fe("menu",kT);const CT=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],TT=Fe("monitor",CT);const jT=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],OT=Fe("moon",jT);const AT=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],dl=Fe("package",AT);const VT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],MT=Fe("panel-left",VT);const zT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ob=Fe("pencil",zT);const LT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],l4=Fe("plus",LT);const HT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],BT=Fe("refresh-cw",HT);const $T=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],YT=Fe("search",$T);const qT=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],GT=Fe("settings",qT);const IT=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],FT=Fe("share-2",IT);const XT=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],QT=Fe("sparkles",XT);const ZT=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],PT=Fe("sun",ZT);const JT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],c4=Fe("trash-2",JT);const KT=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],rb=Fe("upload",KT);const WT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],ej=Fe("users",WT);const tj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Zf=Fe("x",tj),KS=s=>{let o;const l=new Set,c=(y,D)=>{const N=typeof y=="function"?y(o):y;if(!Object.is(N,o)){const S=o;o=D??(typeof N!="object"||N===null)?N:Object.assign({},o,N),l.forEach(R=>R(o,S))}},u=()=>o,g={setState:c,getState:u,getInitialState:()=>b,subscribe:y=>(l.add(y),()=>l.delete(y))},b=o=s(c,u,g);return g},aj=(s=>s?KS(s):KS),nj=s=>s;function sj(s,o=nj){const l=il.useSyncExternalStore(s.subscribe,il.useCallback(()=>o(s.getState()),[s,o]),il.useCallback(()=>o(s.getInitialState()),[s,o]));return il.useDebugValue(l),l}const WS=s=>{const o=aj(s),l=c=>sj(o,c);return Object.assign(l,o),l},Pf=(s=>s?WS(s):WS),oj="/api/v1";class Jc extends Error{constructor(o,l,c){super(c),this.status=o,this.code=l,this.name="ApiError"}}async function jf(s,o,l,c){let u=`${oj}${o}`;if(c){const g=new URLSearchParams(c).toString();g&&(u+=`?${g}`)}const d={method:s,headers:{"Content-Type":"application/json"}};l!==void 0&&(d.body=JSON.stringify(l));const h=await fetch(u,d);if(!h.ok){let g="UNKNOWN",b=h.statusText;try{const y=await h.json();y.code&&(g=y.code),y.message&&(b=y.message)}catch{}throw new Jc(h.status,g,b)}return h.json()}const la={get(s,o){return jf("GET",s,void 0,o)},post(s,o){return jf("POST",s,o)},put(s,o){return jf("PUT",s,o)},delete(s){return jf("DELETE",s)}},rj=3e4,ij=1e3,lj=3e4;class cj{ws=null;url="";handlers=new Map;statusHandlers=new Set;heartbeatTimer=null;reconnectTimer=null;reconnectAttempt=0;intentionalClose=!1;_status="disconnected";get status(){return this._status}setStatus(o){this._status=o;for(const l of this.statusHandlers)l(o)}onStatusChange(o){return this.statusHandlers.add(o),()=>{this.statusHandlers.delete(o)}}connect(o){this.url=o,this.intentionalClose=!1,this.reconnectAttempt=0,this.open()}disconnect(){this.intentionalClose=!0,this.clearTimers(),this.ws&&(this.ws.close(),this.ws=null),this.setStatus("disconnected")}on(o,l){let c=this.handlers.get(o);return c||(c=new Set,this.handlers.set(o,c)),c.add(l),()=>{c.delete(l),c.size===0&&this.handlers.delete(o)}}send(o,l){if(this.ws?.readyState!==WebSocket.OPEN)return;const c={event:o,payload:l,timestamp:Date.now()};this.ws.send(JSON.stringify(c))}open(){this.setStatus("connecting");const o=new WebSocket(this.url);o.onopen=()=>{this.reconnectAttempt=0,this.setStatus("connected"),this.startHeartbeat()},o.onmessage=l=>{try{const c=JSON.parse(String(l.data));if(c.event==="pong")return;const u=this.handlers.get(c.event);if(u)for(const d of u)d(c.payload)}catch{}},o.onclose=()=>{this.stopHeartbeat(),this.intentionalClose||(this.setStatus("reconnecting"),this.scheduleReconnect())},o.onerror=()=>{},this.ws=o}startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({event:"ping",payload:null,timestamp:Date.now()}))},rj)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null)}scheduleReconnect(){if(this.reconnectTimer)return;const o=Math.min(ij*2**this.reconnectAttempt,lj);this.reconnectAttempt++,this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.open()},o)}clearTimers(){this.stopHeartbeat(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}}const Gs=new cj,ni=Pf(s=>({status:"disconnected",onlineCount:0,connections:[],setStatus:o=>s({status:o}),fetchDaemonStatus:async()=>{try{const o=await la.get("/daemons/status");s({onlineCount:o.online_count,connections:o.connections})}catch{}}})),uj=s=>s==="connecting"?"disconnected":s;Gs.onStatusChange(s=>{ni.getState().setStatus(uj(s))});Gs.on("ws:daemon:connected",s=>{const o=s;ni.setState(l=>{if(l.connections.some(h=>h.machine_id===o.machine_id))return l;const u={machine_id:o.machine_id};o.lib_id&&(u.lib_id=o.lib_id);const d=[...l.connections,u];return{connections:d,onlineCount:d.length}})});Gs.on("ws:daemon:status",s=>{const o=s;ni.setState(l=>{if(o.is_online){if(l.connections.some(g=>g.machine_id===o.machine_id))return l;const d={machine_id:o.machine_id};o.lib_id&&(d.lib_id=o.lib_id);const h=[...l.connections,d];return{connections:h,onlineCount:h.length}}const c=l.connections.filter(u=>u.machine_id!==o.machine_id);return{connections:c,onlineCount:c.length}})});const ru="lib_cloud_default",ja=Pf((s,o)=>({libraries:[],loading:!1,error:null,fetchLibraries:async()=>{s({loading:!0,error:null});try{const l=await la.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 la.post("/libraries",l);return s(u=>({libraries:[...u.libraries,c]})),c},deleteLibrary:async l=>{await la.delete(`/libraries/${l}`),s(c=>({libraries:c.libraries.filter(u=>u.id!==l)}))},updateLibraryName:async(l,c)=>{const u=await la.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 la.get(`/libraries/${l}`);s(u=>({libraries:u.libraries.map(d=>d.id===l?c:d)}))}catch{o().fetchLibraries()}}})),mu=s=>{const o=s.libraries.filter(c=>c.type==="cloud").sort((c,u)=>c.created_at.localeCompare(u.created_at)),l=s.libraries.filter(c=>c.type==="daemon").sort((c,u)=>c.name.localeCompare(u.name));return[...o,...l]},dj=s=>s.libraries.filter(o=>o.type==="daemon");Gs.on("ws:daemon:status",s=>{const o=s;o.lib_id&&ja.getState()._updateLibraryOnline(o.lib_id,o.is_online),ja.getState().fetchLibraries()});Gs.on("ws:daemon:connected",s=>{const o=s;o.lib_id&&ja.getState()._updateLibraryOnline(o.lib_id,!0),ja.getState().fetchLibraries()});Gs.on("ws:library:updated",s=>{const o=s;ja.getState()._refreshLibrary(o.library_id)});const ew=s=>Symbol.iterator in s,tw=s=>"entries"in s,aw=(s,o)=>{const l=s instanceof Map?s:new Map(s.entries()),c=o instanceof Map?o:new Map(o.entries());if(l.size!==c.size)return!1;for(const[u,d]of l)if(!c.has(u)||!Object.is(d,c.get(u)))return!1;return!0},fj=(s,o)=>{const l=s[Symbol.iterator](),c=o[Symbol.iterator]();let u=l.next(),d=c.next();for(;!u.done&&!d.done;){if(!Object.is(u.value,d.value))return!1;u=l.next(),d=c.next()}return!!u.done&&!!d.done};function mj(s,o){return Object.is(s,o)?!0:typeof s!="object"||s===null||typeof o!="object"||o===null||Object.getPrototypeOf(s)!==Object.getPrototypeOf(o)?!1:ew(s)&&ew(o)?tw(s)&&tw(o)?aw(s,o):fj(s,o):aw({entries:()=>Object.entries(s)},{entries:()=>Object.entries(o)})}function ml(s){const o=il.useRef(void 0);return l=>{const c=s(l);return mj(o.current,c)?o.current:o.current=c}}function ib(){const{t:s}=qe(),o=ni(h=>h.onlineCount),l=ni(h=>h.connections.length);if(ja(ml(dj)).length===0)return null;const u=o>0,d=u?s("sources.header.daemon_status",{online:o,total:l}):s("sources.header.all_offline");return m.jsxDEV("div",{className:"group relative flex items-center",title:d,children:[m.jsxDEV("span",{className:`inline-block h-[7px] w-[7px] rounded-full ${u?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:22,columnNumber:7},this),m.jsxDEV("span",{className:"pointer-events-none absolute right-full mr-2 hidden whitespace-nowrap rounded bg-c4a-bg-elevated px-2 py-1 font-mono text-xs text-c4a-text-secondary shadow-c4a-md group-hover:block",children:d},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:25,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/DaemonStatus.tsx",lineNumber:21,columnNumber:5},this)}const nw=[{to:"/",labelKey:"nav.home"},{to:"/studio",labelKey:"nav.studio"},{to:"/docs",labelKey:"nav.docs"}];function pj(){const{t:s}=qe(),[o,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(nn,{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:nw.map(({to:c,labelKey:u})=>m.jsxDEV(ou,{to:c,end:c==="/",className:({isActive:d})=>`font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${d?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:s(u)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:34,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:32,columnNumber:11},this),m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(ib,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:51,columnNumber:13},this),m.jsxDEV(nn,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:s("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:52,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:31,columnNumber:9},this),m.jsxDEV("button",{onClick:()=>l(!o),className:"text-c4a-text-secondary md:hidden",children:o?m.jsxDEV(Zf,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:23},this):m.jsxDEV(UT,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:66,columnNumber:41},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:62,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:19,columnNumber:7},this),o&&m.jsxDEV("div",{className:"border-t border-c4a-border-subtle bg-c4a-bg-surface px-4 pb-4 pt-2 md:hidden",children:[m.jsxDEV("nav",{className:"flex flex-col gap-2",children:nw.map(({to:c,labelKey:u})=>m.jsxDEV(ou,{to:c,end:c==="/",onClick:()=>l(!1),className:({isActive:d})=>`block py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${d?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:s(u)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:75,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:73,columnNumber:11},this),m.jsxDEV("div",{className:"mt-2 border-t border-c4a-border-subtle pt-2",children:m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(ib,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:94,columnNumber:15},this),m.jsxDEV(nn,{to:"/login",onClick:()=>l(!1),className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:s("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:95,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:93,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:92,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Header.tsx",lineNumber:18,columnNumber:5},this)}function hj(s){return s==="system"&&typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":s==="system"?"dark":s}function u4(s){if(typeof window>"u")return;const o=hj(s);document.documentElement.setAttribute("data-theme",o),localStorage.setItem("theme",s)}function gj(){try{return localStorage.getItem("theme")||"system"}catch{return"system"}}const d4=Pf(s=>({theme:gj(),setTheme:o=>{u4(o),s({theme:o})}}));let sw=!1;function bj(){if(sw||typeof window>"u")return;sw=!0;const s=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>{const{theme:l}=d4.getState();l==="system"&&u4("system")};s.addEventListener("change",o)}bj();const yj=[{mode:"light",icon:PT,labelKey:"footer.theme.light"},{mode:"dark",icon:OT,labelKey:"footer.theme.dark"},{mode:"system",icon:TT,labelKey:"footer.theme.system"}];function f4(){const{t:s}=qe(),{theme:o,setTheme:l}=d4();return m.jsxDEV("div",{className:"flex items-center gap-1",children:yj.map(({mode:c,icon:u,labelKey:d})=>m.jsxDEV("button",{onClick:()=>l(c),title:s(d),className:`cursor-pointer rounded p-1.5 transition-colors duration-150 ${o===c?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:m.jsxDEV(u,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:30,columnNumber:11},this)},c,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:20,columnNumber:9},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/ThemeSwitcher.tsx",lineNumber:18,columnNumber:5},this)}function m4(){const{i18n:s}=qe(),o=()=>{const l=s.language==="en"?"zh":"en";s.changeLanguage(l)};return m.jsxDEV("button",{onClick:o,className:"cursor-pointer rounded px-2 py-1 font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-secondary hover:bg-c4a-bg-hover",children:s.language==="en"?"CN":"EN"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/LanguageSwitcher.tsx",lineNumber:12,columnNumber:5},this)}function p4({compact:s}){const{t:o}=qe(),l=new Date().getFullYear(),c=s?"footer.copyright_compact":"footer.copyright";return m.jsxDEV("p",{className:"font-mono text-[11px] text-c4a-text-muted",children:o(c,{year:l})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/CopyrightLine.tsx",lineNumber:13,columnNumber:5},this)}const vj="_brandIcon_1c7st_1",xj="_iconPulse_1c7st_35",ow={brandIcon:vj,iconPulse:xj};function Nj({variant:s}){const{t:o}=qe(),l=s==="studio"?"bg-c4a-bg-surface":"bg-c4a-bg-base";return m.jsxDEV("footer",{className:`border-t border-c4a-border-subtle ${l} px-4 py-4`,children:m.jsxDEV("div",{className:"flex items-end justify-between gap-4",children:[m.jsxDEV("div",{className:"hidden items-center gap-3 md:flex",children:[m.jsxDEV("div",{className:ow.brandIcon,children:m.jsxDEV("span",{className:ow.iconPulse,children:"C4A"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:21,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:20,columnNumber:11},this),m.jsxDEV("div",{className:"flex flex-col",children:[m.jsxDEV("span",{className:"font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-primary",children:"Context4AI"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:24,columnNumber:13},this),m.jsxDEV("span",{className:"font-mono text-[10px] uppercase tracking-wider text-c4a-text-muted",children:o("footer.tagline")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:27,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:23,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:19,columnNumber:9},this),m.jsxDEV("div",{className:"ml-auto flex flex-col items-end gap-2",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(f4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:36,columnNumber:13},this),m.jsxDEV(m4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:37,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:35,columnNumber:11},this),m.jsxDEV(p4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:39,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:34,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:17,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Footer.tsx",lineNumber:16,columnNumber:5},this)}function Sj(){return m.jsxDEV("div",{className:"flex min-h-screen flex-col",children:[m.jsxDEV(pj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:8,columnNumber:7},this),m.jsxDEV("main",{className:"mx-auto flex w-full max-w-[1200px] flex-1 flex-col px-4",children:m.jsxDEV(Kw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:10,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:9,columnNumber:7},this),m.jsxDEV(Nj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:12,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/RootLayout.tsx",lineNumber:7,columnNumber:5},this)}function wj({onToggleSidebar:s}){const{t:o}=qe();return m.jsxDEV("header",{className:"sticky top-0 z-40 border-b border-c4a-border-subtle bg-c4a-bg-surface/95 backdrop-blur-sm",children:m.jsxDEV("div",{className:"relative flex h-14 items-center justify-between px-4",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[s&&m.jsxDEV("button",{onClick:s,className:"text-c4a-text-secondary transition-colors duration-150 hover:text-c4a-text-primary md:hidden",children:m.jsxDEV(MT,{size:20},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:23,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:19,columnNumber:13},this),m.jsxDEV(nn,{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(nn,{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(ib,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:52,columnNumber:11},this),m.jsxDEV(nn,{to:"/login",className:"font-mono text-xs uppercase tracking-tight text-c4a-text-muted transition-colors duration-150 hover:text-c4a-text-primary",children:o("nav.login")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:53,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:51,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/StudioHeader.tsx",lineNumber:14,columnNumber:5},this)}const Ej="lib_cloud_default",Dj=s=>`flex items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${s?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,Rj=[{to:"/studio/modeling",icon:ZC,i18nKey:"studio.sidebar.modeling"},{to:"/studio/brain",icon:JC,i18nKey:"studio.sidebar.brain"},{to:"/studio/discovery",icon:YT,i18nKey:"studio.sidebar.discovery"},{to:"/studio/sharing",icon:FT,i18nKey:"studio.sidebar.sharing"},{to:"/studio/collaboration",icon:ej,i18nKey:"studio.sidebar.collaboration"},{to:"/studio/settings",icon:GT,i18nKey:"studio.sidebar.settings"}];function rw({onNavigate:s}){const{t:o}=qe(),l=cs(),c=hr(),u=ja(ml(mu)),d=l.pathname.startsWith("/studio/sources")||l.pathname.startsWith("/studio/source/"),[h,g]=E.useState(d);E.useEffect(()=>{d&&g(!0)},[d]);const b=y=>y.id===Ej?o("sources.library.default_cloud_name"):y.name;return m.jsxDEV("aside",{className:"flex h-full w-[220px] shrink-0 flex-col border-r border-c4a-border-subtle bg-c4a-bg-surface p-4",children:[m.jsxDEV("nav",{className:"flex flex-col gap-1",children:[m.jsxDEV("div",{className:"group/sources",children:[m.jsxDEV("button",{onClick:()=>g(y=>!y),className:`flex w-full cursor-pointer items-center gap-2 rounded px-3 py-2 font-mono text-xs uppercase tracking-tight transition-colors duration-150 ${d?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:[m.jsxDEV(sT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:95,columnNumber:13},this),o("studio.sidebar.sources"),m.jsxDEV("span",{role:"button",tabIndex:0,onClick:y=>{y.stopPropagation(),c("/studio/sources/add-client"),s?.()},onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.stopPropagation(),c("/studio/sources/add-client"),s?.())},className:"rounded p-0.5 text-c4a-text-muted opacity-0 transition-all hover:bg-c4a-bg-hover max-md:opacity-100 group-hover/sources:opacity-100 group-hover/sources:text-c4a-accent",title:o("sources.menu.add_client"),children:m.jsxDEV(l4,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:115,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:97,columnNumber:13},this),m.jsxDEV("span",{className:"ml-auto shrink-0",children:h?m.jsxDEV(Qf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:119,columnNumber:17},this):m.jsxDEV(So,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:121,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:87,columnNumber:11},this),h&&m.jsxDEV("div",{className:"mt-0.5 flex flex-col gap-0.5",children:u.map(y=>{const D=b(y);return m.jsxDEV(ou,{to:`/studio/sources/${y.id}`,onClick:s,className:({isActive:N})=>`flex items-center gap-2 rounded py-1.5 pl-8 pr-3 font-mono text-xs tracking-tight transition-colors duration-150 ${N?"bg-c4a-bg-active text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover hover:text-c4a-text-primary"}`,children:[m.jsxDEV("span",{className:"truncate",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:143,columnNumber:21},this),y.type==="daemon"&&m.jsxDEV("span",{className:`ml-auto h-[7px] w-[7px] shrink-0 rounded-full ${y.is_online?"bg-c4a-success":"bg-c4a-error"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:145,columnNumber:23},this)]},y.id,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:131,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:127,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:86,columnNumber:9},this),Rj.map(({to:y,icon:D,i18nKey:N})=>m.jsxDEV(ou,{to:y,onClick:s,className:({isActive:S})=>Dj(S),children:[m.jsxDEV(D,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:166,columnNumber:13},this),o(N)]},y,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:160,columnNumber:11},this))]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:85,columnNumber:7},this),m.jsxDEV("div",{className:"mt-auto flex flex-col gap-2 pt-3",children:[m.jsxDEV("div",{className:"flex items-center gap-1.5",children:[m.jsxDEV(f4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:174,columnNumber:11},this),m.jsxDEV(m4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:175,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:173,columnNumber:9},this),m.jsxDEV(p4,{compact:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:177,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:172,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Sidebar.tsx",lineNumber:84,columnNumber:5},this)}function _j(){const[s,o]=E.useState(!1);return E.useEffect(()=>{ja.getState().fetchLibraries(),ni.getState().fetchDaemonStatus()},[]),E.useEffect(()=>Gs.onStatusChange(l=>{l==="connected"&&(ja.getState().fetchLibraries(),ni.getState().fetchDaemonStatus())}),[]),m.jsxDEV("div",{className:"flex h-screen flex-col overflow-hidden",children:[m.jsxDEV(wj,{onToggleSidebar:()=>o(!s)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:29,columnNumber:7},this),m.jsxDEV("div",{className:"flex min-h-0 flex-1",children:[m.jsxDEV("div",{className:"hidden md:block",children:m.jsxDEV(rw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:34,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:33,columnNumber:9},this),s&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("div",{className:"fixed inset-0 top-14 z-30 bg-black/40 md:hidden",onClick:()=>o(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:40,columnNumber:13},this),m.jsxDEV("div",{className:"fixed bottom-0 left-0 top-14 z-30 md:hidden",children:m.jsxDEV(rw,{onNavigate:()=>o(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:45,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:44,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:39,columnNumber:11},this),m.jsxDEV("main",{className:"flex min-h-0 flex-1 flex-col overflow-x-hidden",children:m.jsxDEV(Kw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:51,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:50,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:31,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/layouts/StudioLayout.tsx",lineNumber:28,columnNumber:5},this)}function kj(){const{t:s}=qe();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(nn,{to:"/studio",className:"flex items-center gap-2 rounded bg-c4a-accent px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-white transition-colors duration-150 hover:bg-c4a-accent-hover",children:[s("home.hero.cta.studio"),m.jsxDEV(o4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:22,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:17,columnNumber:9},this),m.jsxDEV("a",{href:"https://github.com/context4ai/c4a",target:"_blank",rel:"noopener noreferrer",className:"rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs font-semibold uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:s("home.hero.cta.github")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:16,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Home.tsx",lineNumber:9,columnNumber:5},this)}function Gn({title:s,version:o,description:l}){const{t:c}=qe();return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("div",{className:"max-w-md text-center",children:[m.jsxDEV("h2",{className:"font-mono text-2xl font-bold uppercase text-c4a-text-primary",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:15,columnNumber:9},this),o&&m.jsxDEV("span",{className:"mt-3 inline-block rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-1 font-mono text-xs uppercase text-c4a-accent",children:c("placeholder.coming",{version:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:19,columnNumber:11},this),m.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:23,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:14,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/Placeholder.tsx",lineNumber:13,columnNumber:5},this)}function Uj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.login.title"),version:"0.5.0",description:s("page.login.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Login.tsx",lineNumber:8,columnNumber:5},this)}function Cj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.docs.title"),version:"0.4.13",description:s("page.docs.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/Docs.tsx",lineNumber:8,columnNumber:5},this)}function Tj(){const{t:s}=qe();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(nn,{to:"/",className:"mt-8 rounded border border-c4a-border-default px-5 py-2.5 font-mono text-xs uppercase tracking-tight text-c4a-text-secondary transition-colors duration-150 hover:border-c4a-border-strong hover:text-c4a-text-primary",children:s("notfound.back")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/NotFound.tsx",lineNumber:8,columnNumber:5},this)}function jj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.modeling.title"),version:"0.4.16",description:s("page.modeling.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Modeling.tsx",lineNumber:8,columnNumber:5},this)}function Oj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.brain.title"),version:"0.4.18",description:s("page.brain.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Brain.tsx",lineNumber:8,columnNumber:5},this)}function Aj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.discovery.title"),version:"0.6.x",description:s("page.discovery.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Discovery.tsx",lineNumber:8,columnNumber:5},this)}function Vj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.sharing.title"),version:"0.4.39",description:s("page.sharing.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Sharing.tsx",lineNumber:8,columnNumber:5},this)}function Mj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.collaboration.title"),version:"0.5.x",description:s("page.collaboration.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Collaboration.tsx",lineNumber:8,columnNumber:5},this)}function zj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.settings.title"),version:"0.5.x",description:s("page.settings.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/Settings.tsx",lineNumber:8,columnNumber:5},this)}function Lj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.code_setup.title"),version:"0.4.13",description:s("page.code_setup.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeSetup.tsx",lineNumber:8,columnNumber:5},this)}function Hj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.code_compile.title"),version:"0.4.13",description:s("page.code_compile.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeCompile.tsx",lineNumber:8,columnNumber:5},this)}function Bj(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.code_review.title"),version:"0.4.14",description:s("page.code_review.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeReview.tsx",lineNumber:8,columnNumber:5},this)}function $j(){const{t:s}=qe();return m.jsxDEV(Gn,{title:s("page.code_result.title"),version:"0.4.14",description:s("page.code_result.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/modeling/CodeResult.tsx",lineNumber:8,columnNumber:5},this)}const Jf=(s,o)=>{for(const l of s){if(l.path===o)return l;if(l.children){const c=Jf(l.children,o);if(c)return c}}return null},Yj=(s,o)=>o===""?s:Jf(s,o)?.children??[],h4=(s,o)=>{if(!o)return[];const l=o.split("/"),c=[];let u="";for(const d of l){u=u?`${u}/${d}`:d;const h=Jf(s,u);h&&c.push(h)}return c},Kf=Pf(s=>({rootSources:[],currentRoot:null,loading:!1,error:null,total:0,limit:100,offset:0,filter:"all",fetchRootSources:async({library_id:o,limit:l,offset:c})=>{s({loading:!0,error:null});try{const u={library_id:o};l!==void 0&&(u.limit=String(l)),c!==void 0&&(u.offset=String(c));const d=await la.get("/sources",u);s({rootSources:d.items,total:d.total,limit:d.limit,offset:d.offset,loading:!1})}catch(u){s({error:u instanceof Error?u.message:"Failed to load sources",loading:!1})}},fetchRootSource:async o=>{const l=await la.get(`/sources/${o}`);return s({currentRoot:l}),l},createSource:async o=>await la.post("/sources",o),addTreeNode:async(o,l)=>{const c=await la.post(`/sources/${o}/tree`,l);return s(u=>({rootSources:u.rootSources.map(d=>d.id===o?c:d),currentRoot:u.currentRoot?.id===o?c:u.currentRoot})),c},updateSource:async(o,l)=>{const c=await la.put(`/sources/${o}`,l);s(u=>({rootSources:u.rootSources.map(d=>d.id===o?c:d),currentRoot:u.currentRoot?.id===o?c:u.currentRoot}))},deleteSource:async o=>{await la.delete(`/sources/${o}`),s(l=>({rootSources:l.rootSources.filter(c=>c.id!==o),currentRoot:l.currentRoot?.id===o?null:l.currentRoot}))},deleteTreeNode:async(o,l)=>{const c=await la.delete(`/sources/${o}/tree?path=${encodeURIComponent(l)}`);return s(u=>({rootSources:u.rootSources.map(d=>d.id===o?c:d),currentRoot:u.currentRoot?.id===o?c:u.currentRoot})),c},uploadDoc:async o=>await la.post("/sources/upload",o),setFilter:o=>s({filter:o}),clearSources:()=>s({rootSources:[],currentRoot:null,total:0,offset:0})}));function pu({segments:s}){const{t:o}=qe(),l=E.useRef(null),c=E.useRef(null),[u,d]=E.useState(0),h=[{label:o("sources.breadcrumb.sources")},...s],g=Math.max(0,h.length-3);E.useEffect(()=>{const y=l.current,D=c.current;if(!y||!D)return;const N=()=>{const R=y.clientWidth,k=Array.from(D.children);if(k.length===0)return;const B=k.map(ae=>ae.offsetWidth),H=4;if(B.reduce((ae,_)=>ae+_,0)+H*(B.length-1)<=R){d(0);return}const X=20,te=(B[0]??0)+(B[1]??0)+H,fe=B[B.length-1]??0,ie=te+H+X+H+fe;let ne=g;for(let ae=1;ae<=g;ae++){let _=0;for(let Q=2+ae;Q<B.length-1;Q++)_+=B[Q]+H;if(ie+_<=R){ne=ae;break}}d(ne)};N();const S=new ResizeObserver(N);return S.observe(y),()=>S.disconnect()},[g,s,o]);const b=(()=>{if(u===0||h.length<=3)return h;const y=h.slice(0,2),D=h[h.length-1],N=h.slice(2+u,h.length-1);return[...y,{label:"…"},...N,D]})();return m.jsxDEV("div",{ref:l,className:"relative min-w-0 overflow-hidden",children:[m.jsxDEV("nav",{className:"flex min-h-8 items-center gap-1 font-mono text-xs text-c4a-text-muted",children:b.map((y,D)=>{const N=D===b.length-1;return m.jsxDEV("span",{className:"flex shrink-0 items-center gap-1",children:[D>0&&m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:106,columnNumber:17},this),y.to&&!N?m.jsxDEV(nn,{to:y.to,className:"cursor-pointer whitespace-nowrap transition-colors hover:text-c4a-text-primary",children:y.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:109,columnNumber:17},this):m.jsxDEV("span",{className:`whitespace-nowrap ${N?"text-c4a-text-primary":""}`,children:y.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:116,columnNumber:17},this)]},D,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:104,columnNumber:13},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:100,columnNumber:7},this),m.jsxDEV("div",{ref:c,"aria-hidden":!0,className:"pointer-events-none invisible absolute left-0 top-0 flex h-0 items-center gap-1 overflow-visible whitespace-nowrap font-mono text-xs",children:h.map((y,D)=>m.jsxDEV("span",{className:"flex shrink-0 items-center gap-1",children:[D>0&&m.jsxDEV(So,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:133,columnNumber:25},this),m.jsxDEV("span",{className:"whitespace-nowrap",children:y.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:134,columnNumber:13},this)]},D,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:132,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:126,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceBreadcrumb.tsx",lineNumber:98,columnNumber:5},this)}const qj=["all","indexed","not_indexed"];function Gj({value:s,onChange:o}){const{t:l}=qe(),[c,u]=E.useState(!1),d=E.useRef(null),h=E.useRef(null),g={all:l("sources.filter.all"),indexed:l("sources.filter.indexed"),not_indexed:l("sources.filter.not_indexed")},b=E.useCallback(N=>{d.current&&!d.current.contains(N.target)&&u(!1)},[]);E.useEffect(()=>{if(c)return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[c,b]);const y=E.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=null),u(!0)},[]),D=E.useCallback(()=>{h.current=setTimeout(()=>u(!1),150)},[]);return m.jsxDEV("div",{ref:d,className:"relative",onMouseEnter:y,onMouseLeave:D,children:[m.jsxDEV("button",{className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary sm:px-2 sm:py-1",children:[m.jsxDEV(RT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:55,columnNumber:9},this),m.jsxDEV("span",{className:"hidden sm:inline",children:g[s]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:56,columnNumber:9},this),m.jsxDEV(Qf,{size:12,className:"hidden transition-transform sm:block"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:57,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:52,columnNumber:7},this),c&&m.jsxDEV("div",{className:"absolute right-0 top-full z-20 mt-1 min-w-[120px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg",children:qj.map(N=>m.jsxDEV("button",{onClick:()=>{o(N),u(!1)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-xs transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary ${N===s?"text-c4a-accent":"text-c4a-text-secondary"}`,children:[m.jsxDEV(ul,{size:12,className:N===s?"opacity-100":"opacity-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:72,columnNumber:15},this),g[N]]},N,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:62,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceFilter.tsx",lineNumber:51,columnNumber:5},this)}function g4({currentName:s,onConfirm:o,onCancel:l,error:c}){const[u,d]=E.useState(s),h=E.useRef(null);E.useEffect(()=>{h.current?.select()},[]);const g=E.useCallback(()=>{const y=u.trim();y&&y!==s?o(y):l()},[u,s,o,l]),b=E.useCallback(y=>{y.key==="Enter"?(y.preventDefault(),g()):y.key==="Escape"&&l()},[g,l]);return m.jsxDEV("div",{className:"flex items-center gap-1",children:[m.jsxDEV("input",{ref:h,value:u,onChange:y=>d(y.target.value),onKeyDown:b,onBlur:g,className:"min-w-0 flex-1 rounded border border-c4a-accent bg-c4a-bg-surface px-2 py-1 text-sm text-c4a-text-primary outline-none",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:47,columnNumber:7},this),m.jsxDEV("button",{onClick:y=>{y.stopPropagation(),g()},className:"rounded p-0.5 text-c4a-success hover:bg-c4a-bg-hover",children:m.jsxDEV(ul,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:63,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:56,columnNumber:7},this),m.jsxDEV("button",{onClick:y=>{y.stopPropagation(),l()},className:"rounded p-0.5 text-c4a-error hover:bg-c4a-bg-hover",children:m.jsxDEV(Zf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:72,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:65,columnNumber:7},this),c&&m.jsxDEV("span",{className:"ml-1 text-xs text-c4a-error",children:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:75,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/RenameInline.tsx",lineNumber:46,columnNumber:5},this)}const Ij=s=>{const o=new Date(s);if(Number.isNaN(o.getTime()))return"";const l=u=>String(u).padStart(2,"0"),c=`${l(o.getMonth()+1)}-${l(o.getDate())} ${l(o.getHours())}:${l(o.getMinutes())}`;return o.getFullYear()===new Date().getFullYear()?c:`${o.getFullYear()}-${c}`},iw={none:"bg-c4a-text-muted/60",indexed:"bg-c4a-success",stale:"bg-c4a-warning"};function Fj({source:s,isDaemonLibrary:o}){const{t:l}=qe(),c=s.kind==="source";let u;if(s.kind==="folder"?u=o?m.jsxDEV(hT,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:54,columnNumber:7},this):m.jsxDEV($n,{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:56,columnNumber:7},this):s.source_type==="code"?u=m.jsxDEV(dl,{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:59,columnNumber:12},this):u=m.jsxDEV(pr,{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:61,columnNumber:12},this),!c)return m.jsxDEV(m.Fragment,{children:u},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:64,columnNumber:25},this);const d=iw[s.index_status]??iw.none,h=l(`sources.status.${s.index_status}`);return m.jsxDEV("span",{className:"group/dot relative shrink-0",children:[u,m.jsxDEV("span",{className:`absolute -right-[2px] -top-[2px] block h-[6px] w-[6px] rounded-full ${d}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:72,columnNumber:7},this),m.jsxDEV("span",{className:"pointer-events-none absolute bottom-full left-1/2 z-50 mb-1.5 -translate-x-1/2 whitespace-nowrap rounded bg-c4a-bg-elevated px-2 py-1 font-mono text-[10px] text-c4a-text-secondary opacity-0 shadow-lg transition-opacity group-hover/dot:opacity-100",children:h},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:75,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:70,columnNumber:5},this)}function lw({source:s,displayName:o,childCount:l,isDaemonLibrary:c,isRepoRoot:u,onClick:d,onRename:h,onDelete:g}){const{t:b}=qe(),[y,D]=E.useState(!1),[N,S]=E.useState(null),R=E.useCallback(async X=>{if(!h)return;const te=await h(X);te?S(te):(D(!1),S(null))},[h]),k=E.useCallback(()=>{D(!1),S(null)},[]),B=!u&&h,H=g,Z=s.updated_at||s.created_at;return m.jsxDEV("div",{className:"group flex items-center gap-3 rounded py-2 pl-3 pr-5 transition-colors hover:bg-c4a-bg-hover cursor-pointer",onClick:y?void 0:d,children:[m.jsxDEV(Fj,{source:s,isDaemonLibrary:c??!1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:124,columnNumber:7},this),y?m.jsxDEV("div",{className:"min-w-0 flex-1",onClick:X=>X.stopPropagation(),children:m.jsxDEV(g4,{currentName:s.name,onConfirm:R,onCancel:k,error:N},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:128,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:127,columnNumber:9},this):m.jsxDEV("span",{className:"min-w-0 flex-1 truncate text-sm text-c4a-text-primary",children:o??s.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:136,columnNumber:9},this),m.jsxDEV("div",{className:"flex shrink-0 items-center gap-2",children:[s.kind==="folder"&&l!==void 0&&m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:b("common.items",{count:l})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:144,columnNumber:11},this),Z&&m.jsxDEV("span",{className:"hidden font-mono text-[11px] text-c4a-text-muted lg:inline",children:Ij(Z)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:150,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:142,columnNumber:7},this),(B||H)&&m.jsxDEV("div",{className:"flex items-center gap-1 md:opacity-0 md:transition-opacity md:group-hover:opacity-100",children:[B&&m.jsxDEV("button",{title:b("sources.actions.rename"),onClick:X=>{X.stopPropagation(),D(!0)},className:"rounded p-1 text-c4a-text-muted transition-colors hover:text-c4a-accent",children:m.jsxDEV(ob,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:167,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:159,columnNumber:13},this),H&&m.jsxDEV("button",{title:b("sources.actions.delete"),onClick:X=>{X.stopPropagation(),g()},className:"rounded p-1 text-c4a-text-muted transition-colors hover:text-c4a-accent",children:m.jsxDEV(c4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:179,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:171,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:157,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SourceListItem.tsx",lineNumber:120,columnNumber:5},this)}function cw({target:s,onConfirm:o,onCancel:l}){const{t:c}=qe(),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:o,className:"rounded bg-c4a-error px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-error/80",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:138,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:131,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:57,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DeleteConfirmDialog.tsx",lineNumber:53,columnNumber:5},this)}function Xj({onConfirm:s,onCancel:o,error:l}){const{t:c}=qe(),[u,d]=E.useState(""),h=E.useRef(null),g=E.useRef(null);E.useEffect(()=>{h.current?.focus()},[]),E.useEffect(()=>{const N=S=>{S.key==="Escape"&&o()};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[o]);const b=E.useCallback(N=>{g.current&&!g.current.contains(N.target)&&o()},[o]),y=E.useCallback(()=>{const N=u.trim();N&&s(N)},[u,s]),D=E.useCallback(N=>{N.key==="Enter"&&(N.preventDefault(),y())},[y]);return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:b,children:m.jsxDEV("div",{ref:g,className:"mx-4 w-full max-w-md rounded border border-c4a-border-default bg-c4a-bg-elevated p-6 shadow-c4a-lg",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(i4,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:69,columnNumber:11},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:c("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:70,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:68,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4",children:[m.jsxDEV("input",{ref:h,value:u,onChange:N=>d(N.target.value),onKeyDown:D,placeholder:c("sources.folder.name_placeholder"),className:"w-full rounded border border-c4a-border-default bg-c4a-bg-surface px-3 py-2 text-sm text-c4a-text-primary outline-none transition-colors focus:border-c4a-accent",autoFocus:!0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:76,columnNumber:11},this),l&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:86,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:75,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:o,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:c("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:91,columnNumber:11},this),m.jsxDEV("button",{onClick:y,disabled:!u.trim(),className:"rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:c("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:90,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:64,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/NewFolderDialog.tsx",lineNumber:60,columnNumber:5},this)}function Gg({label:s,icon:o,items:l,alignRight:c}){const[u,d]=E.useState(!1),h=E.useRef(null),g=E.useRef(null),b=E.useCallback(N=>{h.current&&!h.current.contains(N.target)&&d(!1)},[]);E.useEffect(()=>{if(u)return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[u,b]);const y=E.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),d(!0)},[]),D=E.useCallback(()=>{g.current=setTimeout(()=>d(!1),150)},[]);return m.jsxDEV("div",{ref:h,className:"relative",onMouseEnter:y,onMouseLeave:D,children:[m.jsxDEV("button",{className:`flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary ${s?"p-1 sm:px-2 sm:py-1":"p-1"}`,children:[o,s&&m.jsxDEV("span",{className:"hidden sm:inline",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:54,columnNumber:19},this),s&&m.jsxDEV(Qf,{size:12,className:"hidden transition-transform sm:block"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:55,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:50,columnNumber:7},this),u&&m.jsxDEV("div",{className:`absolute top-full z-20 mt-1 min-w-[160px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg ${c?"right-0":"left-0"}`,children:l.map(N=>m.jsxDEV("button",{onClick:()=>{N.onClick(),d(!1)},className:"flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[N.icon,N.label]},N.label,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:60,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:58,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/DropdownButton.tsx",lineNumber:49,columnNumber:5},this)}function Qj({onClose:s}){const{t:o}=qe(),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(QT,{size:18,className:"text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:32,columnNumber:11},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:o("sources.upgrade.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:33,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:31,columnNumber:9},this),m.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:o("sources.upgrade.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:37,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-end",children:m.jsxDEV("button",{onClick:s,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("common.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:41,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:40,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:27,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UpgradeHintDialog.tsx",lineNumber:23,columnNumber:5},this)}const Zj=new Set([".md",".doc",".docx",".pdf",".ppt",".pptx",".txt"]),Pj=5*1024*1024,Jj=10;function Kj(s){const o=s.lastIndexOf(".");return o>=0?s.slice(o).toLowerCase():""}function Wj(s){return s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`}function e3({onConfirm:s,onCancel:o,error:l,uploading:c}){const{t:u}=qe(),[d,h]=E.useState([]),[g,b]=E.useState(null),[y,D]=E.useState(!1),N=E.useRef(null),S=E.useRef(null);E.useEffect(()=>{const ne=ae=>{ae.key==="Escape"&&!c&&o()};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[o,c]);const R=E.useCallback(ne=>{!c&&S.current&&!S.current.contains(ne.target)&&o()},[o,c]),k=E.useCallback(ne=>{b(null);for(const ae of ne){const _=Kj(ae.name);if(!Zj.has(_)){b(u("sources.upload.unsupported_type",{name:ae.name}));return}if(ae.size>Pj){b(u("sources.upload.file_too_large",{name:ae.name}));return}}h(ae=>{const _=new Map(ae.map(L=>[L.name,L]));for(const L of ne)_.set(L.name,{name:L.name,size:L.size,file:L});const Q=Array.from(_.values());return Q.length>Jj?(b(u("sources.upload.too_many_files")),ae):Q})},[u]),B=E.useCallback(ne=>{const ae=ne.target.files;!ae||ae.length===0||(k(Array.from(ae)),ne.target.value="")},[k]),H=E.useCallback(ne=>{h(ae=>ae.filter((_,Q)=>Q!==ne)),b(null)},[]),Z=E.useCallback(ne=>{ne.preventDefault(),D(!1);const ae=ne.dataTransfer?.files;!ae||ae.length===0||k(Array.from(ae))},[k]),X=E.useCallback(ne=>{ne.preventDefault(),D(!0)},[]),te=E.useCallback(ne=>{ne.preventDefault(),D(!1)},[]),fe=E.useCallback(async()=>{if(d.length===0)return;const ne=await Promise.all(d.map(ae=>new Promise((_,Q)=>{const L=new FileReader;L.onload=()=>_({name:ae.name,content:L.result}),L.onerror=()=>Q(L.error),L.readAsText(ae.file)})));s(ne)},[d,s]),ie=l||g;return m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:R,children:m.jsxDEV("div",{ref:S,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(rb,{size:16,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:164,columnNumber:11},this),m.jsxDEV("h3",{className:"font-mono text-sm font-bold uppercase text-c4a-text-primary",children:u("sources.upload.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:165,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:163,columnNumber:9},this),m.jsxDEV("div",{className:"mt-4",children:[m.jsxDEV("input",{ref:N,type:"file",accept:".md,.doc,.docx,.pdf,.ppt,.pptx,.txt",multiple:!0,onChange:B,className:"hidden"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:172,columnNumber:11},this),m.jsxDEV("button",{type:"button",onClick:()=>N.current?.click(),onDrop:Z,onDragOver:X,onDragLeave:te,disabled:c,className:`flex w-full flex-col items-center justify-center rounded border-2 border-dashed px-4 py-8 transition-colors ${y?"border-c4a-accent bg-c4a-accent/5":"border-c4a-border-default hover:border-c4a-accent/50"} ${c?"cursor-not-allowed opacity-40":"cursor-pointer"}`,children:[m.jsxDEV(rb,{size:24,className:"text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:193,columnNumber:13},this),m.jsxDEV("p",{className:"mt-2 text-sm text-c4a-text-secondary",children:u("sources.upload.drop_hint")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:194,columnNumber:13},this),m.jsxDEV("p",{className:"mt-1 text-[10px] text-c4a-text-muted",children:u("sources.upload.supported_formats")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:197,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:180,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:171,columnNumber:9},this),d.length>0&&m.jsxDEV("div",{className:"mt-3",children:[m.jsxDEV("p",{className:"text-xs text-c4a-text-muted",children:u("sources.upload.selected",{count:d.length})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:206,columnNumber:13},this),m.jsxDEV("div",{className:"mt-1 max-h-40 space-y-1 overflow-y-auto c4a-scrollbar",children:d.map((ne,ae)=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded bg-c4a-bg-surface px-2 py-1",children:[m.jsxDEV(pr,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:215,columnNumber:19},this),m.jsxDEV("span",{className:"min-w-0 flex-1 truncate text-xs text-c4a-text-primary",children:ne.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:216,columnNumber:19},this),m.jsxDEV("span",{className:"shrink-0 text-[10px] text-c4a-text-muted",children:Wj(ne.size)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:219,columnNumber:19},this),!c&&m.jsxDEV("button",{type:"button",onClick:()=>H(ae),className:"shrink-0 text-c4a-text-muted transition-colors hover:text-c4a-text-primary",title:u("sources.upload.remove"),children:m.jsxDEV(Zf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:229,columnNumber:23},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:223,columnNumber:21},this)]},`${ne.name}-${ae}`,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:211,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:209,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:205,columnNumber:11},this),ie&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:ie},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:240,columnNumber:11},this),m.jsxDEV("div",{className:"mt-6 flex justify-end gap-2",children:[m.jsxDEV("button",{onClick:o,disabled:c,className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:opacity-40",children:u("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:245,columnNumber:11},this),m.jsxDEV("button",{onClick:fe,disabled:d.length===0||c,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[c&&m.jsxDEV(Ta,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:257,columnNumber:27},this),u(c?"sources.upload.uploading":"common.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:252,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:244,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:158,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/UploadDocDialog.tsx",lineNumber:154,columnNumber:5},this)}function t3({pathLabel:s,loading:o,onNavigateUp:l,children:c}){return m.jsxDEV("div",{className:"mt-4 flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("p",{className:"min-w-0 truncate font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:20,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:23,columnNumber:7},this),m.jsxDEV("div",{className:"c4a-scrollbar flex min-h-0 flex-1 flex-col overflow-y-auto",children:o?m.jsxDEV("div",{className:"flex flex-1 items-center justify-center py-8",children:m.jsxDEV(Ta,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:27,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:26,columnNumber:11},this):m.jsxDEV(m.Fragment,{children:[l&&m.jsxDEV("button",{onClick:l,className:"flex w-full cursor-pointer items-center gap-3 rounded pl-3 pr-5 py-2 text-left text-sm text-c4a-text-primary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV($n,{size:16,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:36,columnNumber:17},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:37,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:32,columnNumber:15},this),c]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:30,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:24,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/ExplorerCard.tsx",lineNumber:19,columnNumber:5},this)}function a3({library:s,onNewFolder:o,onImportRepo:l,onImportDir:c,onUpgrade:u}){const{t:d}=qe(),h=s.type==="daemon";return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("div",{className:"max-w-2xl text-center",children:[m.jsxDEV("h3",{className:"font-mono text-lg font-bold uppercase text-c4a-text-primary",children:d(h?"sources.empty.daemon.title":"sources.empty.cloud.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:68,columnNumber:9},this),m.jsxDEV("p",{className:"mt-3 text-sm text-c4a-text-secondary",children:d(h?"sources.empty.daemon.description":"sources.empty.cloud.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:73,columnNumber:9},this),m.jsxDEV("div",{className:"mt-6 flex justify-center gap-3",children:h?m.jsxDEV(m.Fragment,{children:[c&&m.jsxDEV("button",{onClick:c,disabled:!s.is_online,className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-4 py-2 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:opacity-40",children:d("sources.actions.import_dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:82,columnNumber:17},this),l&&m.jsxDEV("button",{onClick:l,disabled:!s.is_online,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:d("sources.actions.import_repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:91,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:80,columnNumber:13},this):m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:o,className:"rounded border border-c4a-border-default bg-c4a-bg-surface px-4 py-2 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:d("sources.actions.new_folder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:102,columnNumber:15},this),u&&m.jsxDEV("button",{onClick:u,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs uppercase text-white transition-colors hover:bg-c4a-accent-hover",children:d("sources.actions.import_repo_url")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:109,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:101,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:78,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:67,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:66,columnNumber:5},this)}function n3(){const{t:s}=qe();return m.jsxDEV("div",{className:"rounded border border-c4a-border-subtle bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("h4",{className:"font-mono text-sm font-bold text-c4a-text-primary",children:s("sources.empty.indexed.title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:130,columnNumber:7},this),m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-text-secondary",children:s("sources.empty.indexed.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:133,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:129,columnNumber:5},this)}const Ig=s=>{const o=s.children??[];return{folders:o.filter(l=>l.kind==="folder").length,sources:o.filter(l=>l.kind==="source").length,codeSources:o.filter(l=>l.kind==="source"&&l.source_type==="code").length,docSources:o.filter(l=>l.kind==="source"&&l.source_type==="doc").length}};function s3(){const{t:s}=qe(),o=hr(),{libId:l}=Ff(),[c,u]=n4(),d=c.get("rootId")||null,h=c.get("path")||"",b=ja(ml(mu)).find(x=>x.id===l),y=ja(x=>x.updateLibraryName),D=ja(x=>x.deleteLibrary),{rootSources:N,currentRoot:S,loading:R,filter:k,fetchRootSources:B,fetchRootSource:H,createSource:Z,addTreeNode:X,updateSource:te,deleteSource:fe,deleteTreeNode:ie,uploadDoc:ne,setFilter:ae}=Kf(),[_,Q]=E.useState(!1),[L,pe]=E.useState(null),[ee,F]=E.useState(null),[le,Ne]=E.useState(null),[K,ue]=E.useState(null),[be,P]=E.useState(!1),[we,Y]=E.useState(!1),[ve,Ce]=E.useState(null),[_e,dt]=E.useState(!1),[Tt,Ke]=E.useState(!1),[Qt,Re]=E.useState(null),[Lt,he]=E.useState(!1);E.useEffect(()=>{l&&B({library_id:l})},[l,B]),E.useEffect(()=>{d&&H(d)},[d,H]);const xt=d!==null,ft=E.useMemo(()=>xt?S?[...Yj(S.tree,h)].sort((W,se)=>W.kind!==se.kind?W.kind==="folder"?-1:1:W.name.localeCompare(se.name)).map(W=>({type:"node",root:S,node:W})):[]:[...N].sort((se,de)=>se.kind!==de.kind?se.kind==="folder"?-1:1:new Date(de.created_at).getTime()-new Date(se.created_at).getTime()).map(se=>({type:"root",root:se,node:null})),[xt,N,S,h]),Ht=E.useMemo(()=>k==="all"?ft:ft.filter(x=>x.type==="root"||!x.node||x.node.kind==="folder"?!0:k==="indexed"?x.node.index_status==="indexed":x.node.index_status==="none"||!x.node.index_status),[ft,k]),Bt=b?.type==="daemon",nt=b?.type==="cloud",vt=Bt&&!xt,Zt=E.useMemo(()=>{if(!b)return[];const x=[{label:b.id===ru?s("sources.library.default_cloud_name"):b.name,to:`/studio/sources/${b.id}`}];return xt&&S&&(x.push({label:S.name,to:`/studio/sources/${b.id}?rootId=${S.id}`}),h&&h4(S.tree,h).forEach(W=>{x.push({label:W.name,to:`/studio/sources/${b.id}?rootId=${S.id}&path=${encodeURIComponent(W.path)}`})})),x},[b,xt,S,h,s]),Sn=E.useCallback(async x=>{if(l)try{xt&&d?await X(d,{parent_path:h,kind:"folder",name:x}):(await Z({library_id:l,kind:"folder",name:x}),B({library_id:l})),Q(!1),pe(null)}catch(O){O instanceof Jc&&O.status===409&&pe(s("sources.error.name_conflict",{name:x}))}},[l,xt,d,h,Z,X,B,s]),Se=E.useCallback(x=>{l&&(x.type==="root"?x.root.kind==="source"?o(`/studio/source/${x.root.id}`):u({rootId:x.root.id}):x.node&&(x.node.kind==="folder"?u({rootId:x.root.id,path:x.node.path}):o(`/studio/source/${x.root.id}?path=${encodeURIComponent(x.node.path)}`)))},[l,o,u]),wn=E.useCallback(()=>{if(!(!d||!l))if(h){const x=h.split("/");x.pop();const O=x.join("/");u(O?{rootId:d,path:O}:{rootId:d})}else u({})},[d,l,h,u]),wa=E.useCallback(async(x,O)=>{try{return await te(x,{name:O}),B({library_id:l}),null}catch(W){return W instanceof Jc&&W.status===409?s("sources.error.name_conflict",{name:O}):null}},[l,te,B,s]),Fa=E.useCallback(x=>{if(x.type==="root"){Ne(x.root.id),ue(null);const O=x.root.tree.length>0?Ig({children:x.root.tree}):void 0;F(Bt?{type:"repo",name:x.root.name,libraryName:b.name,...O?{packageCount:O.codeSources,docCount:O.docSources}:{}}:{type:x.root.kind==="folder"?"folder":"resource",name:x.root.name,...x.root.kind==="folder"&&O?{folderCount:O.folders,sourceCount:O.sources}:{}})}else if(x.node)if(Ne(x.root.id),ue(x.node.path),x.node.kind==="folder"){const O=Ig(x.node);F({type:"folder",name:x.node.name,folderCount:O.folders,sourceCount:O.sources})}else F({type:"resource",name:x.node.name})},[Bt,b]),En=E.useCallback(async()=>{if(!(!le||!l)){try{K?await ie(le,K):(await fe(le),B({library_id:l}))}catch{}F(null),Ne(null),ue(null)}},[le,K,l,fe,ie,B]),Oa=E.useCallback(()=>{l&&o(`/studio/sources/import/${l}`)},[l,o]),Xa=E.useCallback(()=>{l&&o(`/studio/sources/import-dir/${l}`)},[l,o]),us=E.useCallback(async x=>{if(l){dt(!0),Ce(null);try{const O={library_id:l,files:x.map(W=>({file_name:W.name,content:W.content}))};xt&&d&&(O.root_source_id=d,O.parent_path=h),await ne(O),xt&&d?H(d):B({library_id:l}),Y(!1)}catch(O){O instanceof Jc&&O.status===409?Ce(s("sources.error.name_conflict",{name:x[0]?.name??""})):O instanceof Jc&&Ce(O.message)}finally{dt(!1)}}},[l,xt,d,h,ne,B,H,s]),Qa=b?.id===ru,Ea=E.useCallback(async x=>{if(l)try{await y(l,x),Ke(!1),Re(null)}catch(O){const W=O instanceof Error?O.message:String(O);Re(W)}},[l,y]),ba=E.useCallback(()=>{Ke(!1),Re(null)},[]),ds=E.useCallback(async()=>{if(l){try{await D(l),o("/studio/sources/add-client")}catch{}he(!1)}},[l,D,o]),In=E.useCallback(()=>{he(!1)},[]);if(!b)return m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:526,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:525,columnNumber:7},this);const Za=N.length===0&&k==="all"&&!R&&!xt,Fn=Ht.filter(x=>x.type==="node"&&x.node?.kind==="source").length===0&&k==="indexed"&&!R,ca=!vt,Xn=nt,sn=vt;return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center gap-2",children:[m.jsxDEV("div",{className:"min-w-0 flex-1",children:Tt?m.jsxDEV(g4,{currentName:b.name,onConfirm:Ea,onCancel:ba,error:Qt},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:548,columnNumber:13},this):m.jsxDEV(pu,{segments:Zt},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:555,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:546,columnNumber:9},this),m.jsxDEV("div",{className:"flex shrink-0 items-center gap-2",children:[Xn&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV(Gg,{label:s("sources.actions.upload"),icon:m.jsxDEV(rb,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:564,columnNumber:23},this),items:[{label:s("sources.actions.upload_doc"),icon:m.jsxDEV(pr,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:568,columnNumber:27},this),onClick:()=>Y(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:562,columnNumber:15},this),m.jsxDEV(Gg,{label:s("sources.actions.add"),icon:m.jsxDEV(l4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:575,columnNumber:23},this),items:[{label:s("sources.actions.add_folder"),icon:m.jsxDEV(i4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:579,columnNumber:27},this),onClick:()=>Q(!0)},{label:s("sources.actions.add_web"),icon:m.jsxDEV(ST,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:584,columnNumber:27},this),onClick:()=>P(!0)},{label:s("sources.actions.add_feishu"),icon:m.jsxDEV(rT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:589,columnNumber:27},this),onClick:()=>P(!0)}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:573,columnNumber:15},this),m.jsxDEV("button",{onClick:()=>P(!0),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary sm:px-2 sm:py-1",children:[m.jsxDEV(PS,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:598,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_repo_url")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:599,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:594,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:561,columnNumber:13},this),sn&&m.jsxDEV(m.Fragment,{children:[m.jsxDEV("button",{onClick:Xa,disabled:!b.is_online,title:b.is_online?void 0:s("sources.import.daemon_offline",{name:b.name}),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40 sm:px-2 sm:py-1",children:[m.jsxDEV(mT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:617,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:618,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:607,columnNumber:15},this),m.jsxDEV("button",{onClick:Oa,disabled:!b.is_online,title:b.is_online?void 0:s("sources.import.daemon_offline",{name:b.name}),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface p-1 font-mono text-xs uppercase text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary disabled:cursor-not-allowed disabled:opacity-40 sm:px-2 sm:py-1",children:[m.jsxDEV(PS,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:630,columnNumber:17},this),m.jsxDEV("span",{className:"hidden sm:inline",children:s("sources.actions.import_repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:631,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:620,columnNumber:15},this),m.jsxDEV(Gg,{label:"",icon:m.jsxDEV(ob,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:635,columnNumber:23},this),alignRight:!0,items:[{label:s("sources.library.rename"),icon:m.jsxDEV(ob,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:640,columnNumber:27},this),onClick:()=>Ke(!0)},...Qa?[]:[{label:s("sources.actions.delete"),icon:m.jsxDEV(c4,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:647,columnNumber:33},this),onClick:()=>he(!0)}]]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:633,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:606,columnNumber:13},this),ca&&m.jsxDEV(Gj,{value:k,onChange:ae},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:658,columnNumber:26},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:558,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:545,columnNumber:7},this),Za?m.jsxDEV(a3,{library:b,onNewFolder:()=>Q(!0),...Bt?{onImportRepo:Oa,onImportDir:Xa}:{},...nt?{onUpgrade:()=>P(!0)}:{}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:664,columnNumber:9},this):m.jsxDEV(t3,{pathLabel:Zt.map(x=>x.label).join(" / "),loading:R,onNavigateUp:xt?wn:void 0,children:Ht.length===0?Fn?m.jsxDEV(n3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:678,columnNumber:15},this):xt?null:m.jsxDEV("p",{className:"py-8 text-center text-xs text-c4a-text-muted",children:s("common.items",{count:0})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:680,columnNumber:15},this):m.jsxDEV("div",{className:"flex flex-col gap-0.5",children:Ht.map(x=>{if(x.type==="root"){const de=x.root,Le=Bt,De=Le?de.metadata?.local_path:void 0,Xe=de.tree.length>0?Ig({children:de.tree}):void 0,Be=Xe?Xe.folders+Xe.sources:0;return m.jsxDEV(lw,{source:{id:de.id,library_id:de.library_id,owner_id:de.owner_id,path:"",kind:de.kind,source_type:de.source_type,name:de.name,content_hash:de.content_hash,metadata:de.metadata,index_status:de.index_status,created_at:de.created_at,updated_at:de.updated_at},...typeof De=="string"?{displayName:De}:{},...de.kind==="folder"?{childCount:Be}:{},isDaemonLibrary:Bt??!1,isRepoRoot:Le,onClick:()=>Se(x),onRename:Pt=>wa(de.id,Pt),onDelete:()=>Fa(x)},de.id,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:700,columnNumber:21},this)}const O=x.node,W=`${x.root.id}:${O.path}`,se=O.kind==="folder"?O.children?.length??0:void 0;return m.jsxDEV(lw,{source:{id:x.root.id,library_id:x.root.library_id,owner_id:x.root.owner_id,path:O.path,kind:O.kind,source_type:O.source_type??null,name:O.name,content_hash:null,metadata:O.metadata??null,index_status:O.index_status??"none",created_at:x.root.created_at,updated_at:x.root.updated_at},...se!==void 0?{childCount:se}:{},isDaemonLibrary:Bt??!1,onClick:()=>Se(x),...nt?{onDelete:()=>Fa(x)}:{}},W,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:734,columnNumber:19},this)})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:685,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:671,columnNumber:9},this),_&&m.jsxDEV(Xj,{onConfirm:Sn,onCancel:()=>{Q(!1),pe(null)},error:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:764,columnNumber:9},this),we&&m.jsxDEV(e3,{onConfirm:us,onCancel:()=>{Y(!1),Ce(null)},error:ve,uploading:_e},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:776,columnNumber:9},this),be&&m.jsxDEV(Qj,{onClose:()=>P(!1)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:789,columnNumber:9},this),ee&&m.jsxDEV(cw,{target:ee,onConfirm:En,onCancel:()=>{F(null),Ne(null),ue(null)}},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:794,columnNumber:9},this),Lt&&b&&m.jsxDEV(cw,{target:{type:"client",name:b.name},onConfirm:ds,onCancel:In},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:807,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/LibraryRoot.tsx",lineNumber:543,columnNumber:5},this)}function b4(){const{t:s}=qe(),[o,l]=E.useState(!1),[c,u]=E.useState(null),d=E.useRef(),h=E.useRef(),g=window.location.host,b=`c4a-daemon --server ${g} --allow <dir1> <dir2>`,y=`c4a-daemon --server ${g}`,D=E.useCallback((R,k)=>{navigator.clipboard.writeText(R),u(k),clearTimeout(d.current),d.current=setTimeout(()=>u(null),1500)},[]),N=E.useCallback(()=>{clearTimeout(h.current),l(!0)},[]),S=E.useCallback(()=>{h.current=setTimeout(()=>l(!1),150)},[]);return m.jsxDEV("span",{className:"relative",onMouseEnter:N,onMouseLeave:S,children:[m.jsxDEV(yb,{size:12,className:"text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:41,columnNumber:7},this),o&&m.jsxDEV("span",{className:"absolute left-full top-1/2 z-10 ml-2 -translate-y-1/2 rounded border border-c4a-border-default bg-c4a-bg-elevated px-2.5 py-2 shadow-lg",onMouseEnter:N,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:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:53,columnNumber:13},this),m.jsxDEV("button",{onClick:()=>D(b,0),className:"shrink-0 rounded p-0.5 text-c4a-accent transition-colors hover:bg-c4a-bg-hover",title:"Copy",children:c===0?m.jsxDEV(ul,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:61,columnNumber:34},this):m.jsxDEV(JS,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:61,columnNumber:56},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:56,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:52,columnNumber:11},this),m.jsxDEV("span",{className:"mt-2 block whitespace-nowrap font-mono text-xs text-c4a-text-secondary",children:s("sources.import.allowed_dirs_tooltip_all")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:66,columnNumber:11},this),m.jsxDEV("span",{className:"mt-1 flex items-center gap-1.5 whitespace-nowrap",children:[m.jsxDEV("span",{className:"font-mono text-xs text-c4a-accent",children:y},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:70,columnNumber:13},this),m.jsxDEV("button",{onClick:()=>D(y,1),className:"shrink-0 rounded p-0.5 text-c4a-accent transition-colors hover:bg-c4a-bg-hover",title:"Copy",children:c===1?m.jsxDEV(ul,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:78,columnNumber:34},this):m.jsxDEV(JS,{size:10},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:78,columnNumber:56},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:73,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:69,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:43,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/AllowedDirsHint.tsx",lineNumber:36,columnNumber:5},this)}function y4({open:s,onClose:o,rpc:l,onNavigate:c,defaultPath:u}){const{t:d}=qe(),[h,g]=E.useState(u??""),[b,y]=E.useState(null),[D,N]=E.useState(!1),S=E.useRef(null);E.useEffect(()=>{u&&!h&&g(u)},[u]);const R=E.useCallback(async()=>{const B=h.trim();if(B){N(!0),y(null);try{(await l("fs/exists",{path:B})).exists?(c(B),g(u??""),y(null),o()):y(d("sources.import.wildcard_path_not_found"))}catch(H){y(H instanceof Error?H.message:String(H))}finally{N(!1)}}},[h,l,d,c,o]),k=E.useCallback(()=>{g(u??""),y(null),o()},[o,u]);return s?m.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40",children:m.jsxDEV("div",{className:"w-full max-w-md rounded-lg border border-c4a-border-default bg-c4a-bg-surface p-5 shadow-xl",children:[m.jsxDEV("div",{className:"flex items-center justify-between",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-medium text-c4a-text-primary",children:d("sources.import.wildcard_go_title")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:61,columnNumber:11},this),m.jsxDEV("button",{onClick:k,className:"rounded p-1 text-c4a-text-muted transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-secondary",children:m.jsxDEV(Zf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:68,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:64,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:60,columnNumber:9},this),m.jsxDEV("div",{className:"mt-3 flex items-center gap-2",children:[m.jsxDEV("input",{ref:S,type:"text",value:h,onChange:B=>{g(B.target.value),y(null)},onKeyDown:B=>{B.key==="Enter"&&R()},placeholder:d("sources.import.wildcard_path_placeholder"),autoFocus:!0,className:"flex-1 rounded border border-c4a-border-default bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-text-primary outline-none transition-colors focus:border-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:72,columnNumber:11},this),m.jsxDEV("button",{onClick:R,disabled:D||!h.trim(),className:"flex shrink-0 items-center gap-1.5 rounded bg-c4a-accent px-3 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[D?m.jsxDEV(Ta,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:88,columnNumber:15},this):m.jsxDEV(o4,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:90,columnNumber:15},this),d("sources.import.wildcard_go")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:82,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:71,columnNumber:9},this),b&&m.jsxDEV("p",{className:"mt-2 text-xs text-c4a-error",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:59,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/GoToPathDialog.tsx",lineNumber:58,columnNumber:5},this):null}function v4(s){const o=s.match(/^[\w.-]+@([\w.-]+):([\w./-]+?)(?:\.git)?$/);if(o){const l=o[1],c=o[2];return{slug:c,repoUrl:`https://${l}/${c}`,host:l}}try{const l=new URL(s),c=l.hostname,u=l.pathname.replace(/^\//,"").replace(/\.git$/,"");return u?{slug:u,repoUrl:`https://${c}/${u}`,host:c}:null}catch{return null}}function o3(s,o){return`${s}/tree/${encodeURIComponent(o)}`}function r3(s,o){return`${s}/commit/${o}`}function i3({rpc:s,selectedPath:o,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:d}=qe(),h=!!c&&c.length>0,g=h&&c.length===1&&c[0]==="*",[b,y]=E.useState(h),[D,N]=E.useState(h&&!g?"":"/"),[S,R]=E.useState([]),[k,B]=E.useState(!1),[H,Z]=E.useState(null),[X,te]=E.useState(null);E.useEffect(()=>{if(h&&!g)return;let P=!1;return(async()=>{try{const we=await s("fs/homeDir",{});P||te(we.home_dir)}catch{P||te("/")}})(),()=>{P=!0}},[h,g,s]);const[fe,ie]=E.useState(!1),ne=E.useCallback(async P=>{B(!0),Z(null);try{const we=await s("fs/listTree",{path:P,depth:1});R(we.entries||[]),N(P),y(!1)}catch(we){const Y=we instanceof Error?we.message:String(we);Z(Y)}finally{B(!1)}},[s]);E.useEffect(()=>{h&&!g||X!==null&&ne(X)},[X]);const[ae,_]=E.useState(null),[Q,L]=E.useState(null),[pe,ee]=E.useState(!1);E.useEffect(()=>{if(!o){L(null),ee(!1);return}L(null),ee(!0);let P=!1;return(async()=>{try{const we=await s("fs/repoStatus",{path:o});P||(L({branch:we.branch,hash:we.head_hash,remoteUrl:we.remote_url}),ee(!1))}catch{P||(L(null),ee(!1))}})(),()=>{P=!0}},[o,s]);const F=E.useMemo(()=>Q?.remoteUrl?v4(Q.remoteUrl):null,[Q?.remoteUrl]),le=E.useMemo(()=>new Set(u??[]),[u]),Ne=E.useCallback(P=>{if(P.type==="directory")if(P.is_git_repo){if(le.has(P.path))return;_(null),l(P.path,P.name)}else _(P.path),ne(P.path)},[l,ne,le]),K=E.useCallback(()=>{if(h&&!g&&c.some(Y=>Y===D)){y(!0),N(""),R([]),Z(null),_(null);return}const P=D.split("/").slice(0,-1).join("/")||"/";_(null),ne(P)},[D,ne,h,g,c]),ue=E.useMemo(()=>S.filter(P=>P.type==="directory").sort((P,we)=>P.is_git_repo&&!we.is_git_repo?-1:!P.is_git_repo&&we.is_git_repo?1:P.name.localeCompare(we.name)),[S]),be=E.useMemo(()=>S.filter(P=>P.type==="file").sort((P,we)=>P.name.localeCompare(we.name)),[S]);return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-1",children:[b?m.jsxDEV("p",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:d("sources.import.allowed_dirs")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:212,columnNumber:13},this),m.jsxDEV(b4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:213,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:211,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 shrink truncate font-mono text-xs text-c4a-text-muted",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:216,columnNumber:11},this),o&&pe?m.jsxDEV("div",{className:"flex shrink-0 items-center gap-1.5 font-mono text-xs text-c4a-accent",children:[m.jsxDEV(Ta,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:222,columnNumber:13},this),m.jsxDEV("span",{children:d("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:223,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:221,columnNumber:11},this):o&&Q?m.jsxDEV("div",{className:"flex min-w-0 shrink items-center gap-1.5 font-mono text-xs leading-none text-c4a-accent flex-wrap",children:[F?m.jsxDEV("a",{href:F.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 truncate hover:underline",title:F.repoUrl,children:[m.jsxDEV(sb,{size:12,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:235,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:F.slug},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:236,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:228,columnNumber:15},this):m.jsxDEV("span",{className:"flex items-center gap-1 truncate",children:[m.jsxDEV(sb,{size:12,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:240,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:o.split("/").pop()||o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:241,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:239,columnNumber:15},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"/"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:244,columnNumber:13},this),F?m.jsxDEV("a",{href:o3(F.repoUrl,Q.branch),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 hover:underline",children:[m.jsxDEV(Yf,{size:10,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:252,columnNumber:17},this),m.jsxDEV("span",{children:Q.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:253,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:246,columnNumber:15},this):m.jsxDEV("span",{className:"flex items-center gap-1",children:[m.jsxDEV(Yf,{size:10,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:257,columnNumber:17},this),m.jsxDEV("span",{children:Q.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:258,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:256,columnNumber:15},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"/"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:261,columnNumber:13},this),F?m.jsxDEV("a",{href:r3(F.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:263,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:272,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:226,columnNumber:11},this):!o&&g&&b?m.jsxDEV("button",{onClick:()=>ie(!0),className:"flex shrink-0 items-center gap-1.5 rounded border border-c4a-accent/40 bg-c4a-accent/10 px-2.5 py-1 text-xs text-c4a-accent transition-colors hover:bg-c4a-accent/20",children:d("sources.import.wildcard_goto")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:276,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:209,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:285,columnNumber:7},this),b?g?m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:X&&m.jsxDEV("button",{onClick:()=>ne(X),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV($n,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:296,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[X,m.jsxDEV("span",{className:"ml-1.5 text-c4a-text-muted",children:["(",d("sources.import.wildcard_home"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:299,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:297,columnNumber:17},this),m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:303,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:292,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:290,columnNumber:11},this):m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:c.map(P=>m.jsxDEV("button",{onClick:()=>ne(P),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV($n,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:316,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:P},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:317,columnNumber:17},this),m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:318,columnNumber:17},this)]},P,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:311,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:309,columnNumber:11},this):H&&!k?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:H},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:327,columnNumber:9},this):m.jsxDEV("div",{className:"relative min-h-[5rem] min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:[k&&m.jsxDEV("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-c4a-bg-surface/60",children:m.jsxDEV(Ta,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:332,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:331,columnNumber:13},this),D!=="/"&&m.jsxDEV("button",{onClick:K,disabled:k,className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover disabled:pointer-events-none",children:[m.jsxDEV($n,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:342,columnNumber:15},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:343,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:337,columnNumber:13},this),ue.map(P=>{const we=P.is_git_repo&&le.has(P.path),Y=P.is_git_repo?vb:$n;return m.jsxDEV("div",{className:`flex w-full items-center rounded pl-2 pr-4 text-left text-sm transition-colors ${we?"cursor-not-allowed text-c4a-accent/60":o===P.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-accent/10 hover:text-c4a-accent"}`,children:[m.jsxDEV("button",{onClick:()=>Ne(P),disabled:we||k,className:"flex flex-1 items-center gap-2 px-2 py-1.5",children:[m.jsxDEV(Y,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:367,columnNumber:17},this),m.jsxDEV("span",{className:"flex-1 truncate text-left",children:P.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:368,columnNumber:17},this),we&&m.jsxDEV("span",{className:"rounded bg-c4a-accent/10 px-1.5 py-0.5 font-mono text-[10px] text-c4a-accent/60",children:d("sources.import.already_imported")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:370,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:362,columnNumber:15},this),!we&&m.jsxDEV("button",{onClick:ve=>{ve.stopPropagation(),ne(P.path)},disabled:k,className:"shrink-0 rounded p-1.5 text-c4a-text-muted transition-colors hover:bg-c4a-accent/10 hover:text-c4a-accent disabled:pointer-events-none",title:P.path,children:m.jsxDEV(So,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:382,columnNumber:19},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:376,columnNumber:17},this)]},P.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:352,columnNumber:13},this)}),be.map(P=>m.jsxDEV("div",{className:"flex w-full items-center gap-2 pl-2 pr-4 py-1.5 text-sm text-c4a-text-muted",children:[m.jsxDEV(r4,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:395,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:P.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:396,columnNumber:15},this)]},P.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:391,columnNumber:13},this)),S.length===0&&!k&&m.jsxDEV("p",{className:"py-4 text-center text-xs text-c4a-text-muted",children:d("sources.import.no_entries")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:401,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:329,columnNumber:9},this),ae&&!o&&m.jsxDEV("p",{className:"mt-3 text-xs text-c4a-warning",children:d("sources.import.not_git")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:410,columnNumber:9},this),m.jsxDEV(y4,{open:fe,onClose:()=>ie(!1),rpc:s,onNavigate:ne,defaultPath:X??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:416,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectRepo.tsx",lineNumber:208,columnNumber:5},this)}function uw({value:s,options:o,onChange:l,icon:c,maxHeight:u="max-h-60"}){const[d,h]=E.useState(!1),g=E.useRef(null),b=E.useRef(null),y=E.useCallback(R=>{g.current&&!g.current.contains(R.target)&&h(!1)},[]);E.useEffect(()=>{if(d)return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[d,y]);const D=E.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!0)},[]),N=E.useCallback(()=>{b.current=setTimeout(()=>h(!1),150)},[]),S=o.find(R=>R.value===s);return m.jsxDEV("div",{ref:g,className:"relative",onMouseEnter:D,onMouseLeave:N,children:[m.jsxDEV("button",{onClick:()=>h(R=>!R),className:"flex items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover hover:text-c4a-text-primary",children:[c,m.jsxDEV("span",{className:"max-w-[200px] truncate",children:S?.label??s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:62,columnNumber:9},this),m.jsxDEV(Qf,{size:12,className:`shrink-0 transition-transform ${d?"rotate-180":""}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:63,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:57,columnNumber:7},this),d&&m.jsxDEV("div",{className:`absolute left-0 top-full z-20 mt-1 min-w-[180px] max-w-[360px] rounded border border-c4a-border-default bg-c4a-bg-elevated py-1 shadow-c4a-lg ${u} c4a-scrollbar overflow-y-auto`,children:o.map(R=>m.jsxDEV("button",{onClick:()=>{l(R.value),h(!1)},className:`flex w-full items-center gap-2 px-3 py-1.5 text-left font-mono text-xs transition-colors hover:bg-c4a-bg-hover ${R.value===s?"text-c4a-accent":"text-c4a-text-secondary hover:text-c4a-text-primary"}`,children:[m.jsxDEV(ul,{size:12,className:`shrink-0 ${R.value===s?"opacity-100":"opacity-0"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:80,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:R.label},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:81,columnNumber:15},this)]},R.value,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:68,columnNumber:13},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:66,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/components/sources/SelectDropdown.tsx",lineNumber:56,columnNumber:5},this)}const l3=/\.md$/i,Fg=100,c3=(s,o)=>{const l=s.toLowerCase();try{if(l.endsWith("package.json")){const c=JSON.parse(o);if(typeof c.name=="string"&&c.name.trim())return c.name.trim()}if(l.endsWith("pyproject.toml"))return o.match(/^\s*name\s*=\s*["']([^"']+)["']/m)?.[1]??null;if(l.endsWith("go.mod"))return o.match(/^\s*module\s+([^\s]+)\s*$/m)?.[1]??null;if(l.endsWith("cargo.toml"))return o.match(/^\s*name\s*=\s*["']([^"']+)["']/m)?.[1]??null;if(l.endsWith("pom.xml"))return o.match(/<artifactId>([^<]+)<\/artifactId>/)?.[1]?.trim()??null;if(l.endsWith("build.gradle"))return o.match(/rootProject\.name\s*=\s*["']([^"']+)["']/)?.[1]??null}catch{return null}return null};function u3({rpc:s,repoPath:o,onReady:l,onBusyChange:c}){const{t:u}=qe(),[d,h]=E.useState(""),[g,b]=E.useState([]),[y,D]=E.useState(""),[N,S]=E.useState([]),[R,k]=E.useState(!1),[B,H]=E.useState(!0),[Z,X]=E.useState(!1),[te,fe]=E.useState(!1),[ie,ne]=E.useState([]),[ae,_]=E.useState([]),[,Q]=E.useState([]),[L,pe]=E.useState(),ee=E.useMemo(()=>L?v4(L):null,[L]),[F,le]=E.useState("packages"),[Ne,K]=E.useState(Fg),ue=E.useRef(null),be=E.useRef(null);E.useEffect(()=>{if(!B){X(!1);return}const Re=setTimeout(()=>X(!0),2e3);return()=>clearTimeout(Re)},[B]),E.useEffect(()=>{K(Fg),be.current?.scrollTo(0,0)},[F]),E.useEffect(()=>{const Re=ue.current;if(!Re)return;const Lt=F==="packages"?ie.length:ae.length;if(Ne>=Lt)return;const he=new IntersectionObserver(xt=>{xt[0]?.isIntersecting&&K(ft=>Math.min(ft+Fg,Lt))},{root:be.current,threshold:.1});return he.observe(Re),()=>he.disconnect()},[F,Ne,ie.length,ae.length]);const P=E.useCallback(async(Re,Lt)=>{fe(!0),c?.(!0);try{const he=await s("fs/repoScan",{path:o,hash:Re}),xt=he.files||[],ft=he.manifests||[];Q(xt);const Ht=[];for(const Zt of ft){const Sn=Zt.path.split("/"),Se=Sn.slice(0,-1).join("/")||".",wn=Sn.length===1||Zt.path==="package.json",wa=Se==="."?o.split("/").pop()||"root":Sn[Sn.length-2]||Se,Fa=c3(Zt.path,Zt.content);Ht.push({name:Fa||wa,path:Se,isRoot:wn})}const Bt=xt.filter(Zt=>l3.test(Zt.path)).map(Zt=>Zt.path);_(Bt),ne(Ht);const nt=Lt?.branch??d,vt=Lt?.isDirty??R;l({branch:nt,commit:Re,isDirty:vt,repoFiles:xt,packages:Ht,mdFiles:Bt,repoFileContents:ft})}catch{}finally{fe(!1),c?.(!1)}},[s,o,d,R,l,c]);E.useEffect(()=>{(async()=>{H(!0),c?.(!0);try{const Re=await s("fs/repoStatus",{path:o});h(Re.branch),b(Re.branches||[Re.branch]),D(Re.head_hash),k(Re.is_dirty),pe(Re.remote_url),S(Re.commits||[{hash:Re.head_hash,message:"HEAD"}]),await P(Re.head_hash,{branch:Re.branch,isDirty:Re.is_dirty})}catch{}finally{H(!1),c?.(!1)}})()},[o]),E.useEffect(()=>{l({branch:d,commit:y,isDirty:R,packages:ie,mdFiles:ae,repoFileContents:[]})},[d,y,R]);const we=E.useCallback(async Re=>{h(Re);try{const Lt=await s("fs/repoStatus",{path:o});D(Lt.head_hash),await P(Lt.head_hash)}catch{}},[o,s,P]),Y=d&&d!=="main"&&d!=="master",ve=o.split("/").pop()||o;if(B)return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col items-center justify-center",children:[m.jsxDEV(Ta,{size:20,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:222,columnNumber:9},this),Z&&m.jsxDEV("p",{className:"mt-3 font-mono text-xs text-c4a-accent",children:u("sources.import.loading_repo_slow")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:224,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:221,columnNumber:7},this);const Ce=g.map(Re=>({value:Re,label:Re})),_e=N.map(Re=>({value:Re.hash,label:`${Re.hash.slice(0,7)} ${Re.message!=="HEAD"?`— ${Re.message.slice(0,50)}`:""}`.trim()})),dt=N.length<=1,Tt=F==="packages"?ie:ae,Ke=Tt.slice(0,Ne),Qt=Ne<Tt.length;return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col",children:[m.jsxDEV("div",{className:"shrink-0",children:[m.jsxDEV("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1",children:[m.jsxDEV("span",{className:"flex items-center gap-1.5",children:ee?m.jsxDEV("a",{href:ee.repoUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 font-mono text-sm font-bold text-c4a-accent hover:underline",children:[m.jsxDEV(sb,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:257,columnNumber:17},this),ve]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:251,columnNumber:15},this):m.jsxDEV("span",{className:"font-mono text-sm font-bold text-c4a-accent",children:ve},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:261,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:249,columnNumber:11},this),m.jsxDEV("span",{className:"hidden font-mono text-xs text-c4a-text-muted sm:inline",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:265,columnNumber:11},this),m.jsxDEV("div",{className:"ml-auto flex items-center gap-2",children:[m.jsxDEV(uw,{value:d,options:Ce,onChange:we,icon:m.jsxDEV(Yf,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:272,columnNumber:21},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:268,columnNumber:13},this),dt?m.jsxDEV("span",{className:"hidden items-center gap-1.5 rounded border border-c4a-border-default bg-c4a-bg-surface px-2 py-1 font-mono text-xs text-c4a-text-muted sm:flex",children:[m.jsxDEV(nb,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:276,columnNumber:17},this),y.slice(0,7)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:275,columnNumber:15},this):m.jsxDEV("div",{className:"hidden sm:block",children:m.jsxDEV(uw,{value:y,options:_e,onChange:Re=>{D(Re),P(Re)},icon:m.jsxDEV(nb,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:285,columnNumber:25},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:281,columnNumber:17},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:280,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:267,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:247,columnNumber:9},this),(Y||R)&&m.jsxDEV("div",{className:"mt-2 flex flex-wrap gap-x-4 gap-y-1",children:[Y&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-info",children:[m.jsxDEV(ET,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:297,columnNumber:17},this),u("sources.import.branch_warning",{branch:d})]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:296,columnNumber:15},this),R&&m.jsxDEV("p",{className:"flex items-center gap-1 text-xs text-c4a-warning",children:[m.jsxDEV(yb,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:303,columnNumber:17},this),u("sources.import.uncommitted_warning")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:302,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:294,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:246,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface",children:[m.jsxDEV("div",{className:"flex shrink-0 items-center justify-between px-4 py-3",children:[m.jsxDEV("p",{className:"hidden font-mono text-xs text-c4a-text-primary sm:block",children:te?m.jsxDEV("span",{className:"flex items-center gap-2",children:[m.jsxDEV(Ta,{size:12,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:318,columnNumber:17},this),m.jsxDEV("span",{className:"text-c4a-text-muted",children:"Analyzing repository..."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:319,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:317,columnNumber:15},this):ie.length>0?u("sources.import.recognized",{packages:ie.length,docs:ae.length}):u("sources.import.no_packages")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:315,columnNumber:11},this),!te&&(ie.length>0||ae.length>0)&&m.jsxDEV("div",{className:"flex rounded border border-c4a-border-subtle",children:[m.jsxDEV("button",{onClick:()=>le("packages"),className:`flex items-center gap-1 px-2.5 py-1 text-xs transition-colors ${F==="packages"?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:[m.jsxDEV(dl,{size:13},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:338,columnNumber:17},this),m.jsxDEV("span",{className:"font-mono",children:ie.length},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:339,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:330,columnNumber:15},this),m.jsxDEV("button",{onClick:()=>le("docs"),className:`flex items-center gap-1 border-l border-c4a-border-subtle px-2.5 py-1 text-xs transition-colors ${F==="docs"?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:[m.jsxDEV(pr,{size:13},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:349,columnNumber:17},this),m.jsxDEV("span",{className:"font-mono",children:ae.length},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:350,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:341,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:329,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:314,columnNumber:9},this),m.jsxDEV("hr",{className:"border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:356,columnNumber:9},this),m.jsxDEV("div",{ref:be,className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto px-2 py-1",children:te?m.jsxDEV("div",{className:"flex items-center justify-center py-8",children:m.jsxDEV(Ta,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:362,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:361,columnNumber:13},this):Tt.length===0?m.jsxDEV("p",{className:"py-8 text-center text-xs text-c4a-text-muted",children:F==="packages"?u("sources.import.no_packages"):"—"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:365,columnNumber:13},this):m.jsxDEV(m.Fragment,{children:[F==="packages"?Ke.map(Re=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded pl-2 pr-4 py-1 text-xs",children:[m.jsxDEV(dl,{size:14,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:373,columnNumber:23},this),m.jsxDEV("span",{className:"text-c4a-text-primary",children:Re.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:374,columnNumber:23},this),m.jsxDEV("span",{className:"hidden truncate text-c4a-text-muted sm:inline",children:Re.path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:375,columnNumber:23},this),Re.isRoot&&m.jsxDEV("span",{className:"rounded bg-c4a-bg-active px-1 py-0.5 font-mono text-[10px] text-c4a-text-muted",children:"root"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:377,columnNumber:25},this)]},Re.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:372,columnNumber:21},this)):Ke.map(Re=>m.jsxDEV("div",{className:"flex items-center gap-2 rounded pl-2 pr-4 py-1 text-xs",children:[m.jsxDEV(pr,{size:14,className:"shrink-0 text-c4a-text-secondary"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:383,columnNumber:23},this),m.jsxDEV("span",{className:"truncate text-c4a-text-primary",children:Re},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:384,columnNumber:23},this)]},Re,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:382,columnNumber:21},this)),Qt&&m.jsxDEV("div",{ref:ue,className:"h-4"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:388,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:369,columnNumber:13},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:359,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:312,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepVersionSelect.tsx",lineNumber:244,columnNumber:5},this)}function d3({importState:s,libraryName:o,importing:l}){const{t:c}=qe(),u=s.repoName||s.repoPath.split("/").pop()||"";return m.jsxDEV("div",{className:"rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[m.jsxDEV("p",{className:"text-sm text-c4a-text-secondary",children:c("sources.import.confirm_heading",{name:o})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:21,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex flex-wrap items-center gap-x-3 gap-y-1",children:[m.jsxDEV("span",{className:"font-mono text-sm font-bold text-c4a-accent",children:u},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:27,columnNumber:9},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-muted",children:s.repoPath},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:28,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:26,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-4",children:[m.jsxDEV(Of,{icon:m.jsxDEV(Yf,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:34,columnNumber:17},this),label:c("sources.import.branch"),value:s.branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:33,columnNumber:9},this),m.jsxDEV(Of,{icon:m.jsxDEV(nb,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:39,columnNumber:17},this),label:c("sources.import.commit"),value:s.commit.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:38,columnNumber:9},this),m.jsxDEV(Of,{icon:m.jsxDEV(dl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:44,columnNumber:17},this),label:c("sources.import.packages"),value:String(s.packages.length),tooltip:c("sources.import.dir_code_packages_tip")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:43,columnNumber:9},this),m.jsxDEV(Of,{icon:m.jsxDEV(pr,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:50,columnNumber:17},this),label:c("sources.import.documents"),value:String(s.mdFiles.length),tooltip:c("sources.import.dir_doc_files_tip")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:49,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:32,columnNumber:7},this),l&&m.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[m.jsxDEV(Ta,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:60,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:c("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:61,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:59,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:20,columnNumber:5},this)}function Of({icon:s,label:o,value:l,tooltip:c}){return m.jsxDEV("div",{className:"group/stat relative rounded border border-c4a-border-subtle bg-c4a-bg-base p-3",children:[m.jsxDEV("div",{className:"flex items-center gap-1.5 text-c4a-text-muted",children:[s,m.jsxDEV("span",{className:"font-mono text-[10px] uppercase",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:85,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:83,columnNumber:7},this),m.jsxDEV("p",{className:"mt-1 truncate font-mono text-sm font-bold text-c4a-text-primary",title:l,children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:87,columnNumber:7},this),c&&m.jsxDEV("div",{className:"pointer-events-none absolute bottom-full left-0 z-30 mb-1.5 hidden w-max max-w-[260px] rounded border border-c4a-border-default bg-c4a-bg-elevated px-2.5 py-1.5 text-[11px] leading-relaxed text-c4a-text-secondary shadow-c4a-lg group-hover/stat:block",children:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:91,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepConfirmImport.tsx",lineNumber:82,columnNumber:5},this)}function f3(){const{t:s}=qe(),o=hr(),{libId:l}=Ff(),u=ja(ml(mu)).find(_=>_.id===l),d=Kf(_=>_.createSource),[h,g]=E.useState(1),[b,y]=E.useState(!1),[D,N]=E.useState(!1),[S,R]=E.useState({repoPath:"",repoName:"",branch:"",branches:[],commit:"",commits:[],isDirty:!1,repoFiles:[],packages:[],mdFiles:[],repoFileContents:[]}),k=u?.is_online??!1,[B,H]=E.useState([]);E.useEffect(()=>{if(!l)return;let _=!1;return(async()=>{try{const Q=await la.get("/sources",{library_id:l,limit:"500"});if(_)return;const L=Q.items.map(pe=>{const ee=pe.metadata;return typeof ee?.local_path=="string"?ee.local_path:null}).filter(pe=>pe!==null);H(L)}catch{}})(),()=>{_=!0}},[l]);const Z=E.useMemo(()=>{const _=u?.config;return!_||!Array.isArray(_.allowed_paths)?[]:_.allowed_paths},[u]),X=E.useCallback(async(_,Q)=>{if(!l)throw new Error("No library");const L=await la.post(`/libraries/${l}/rpc`,{method:_,params:Q});if(L.error){const pe=L.error;throw new Error(pe.message??JSON.stringify(L.error))}return L.result??L},[l]),te=E.useCallback((_,Q)=>{R(L=>({...L,repoPath:_,repoName:Q}))},[]),fe=E.useCallback(_=>{R(Q=>({...Q,..._}))},[]),ie=E.useCallback(async()=>{if(l){y(!0);try{const _=await d({library_id:l,repo_name:S.repoName,repo_root_path:S.repoPath,repo_branch:S.branch,repo_commit:S.commit,repo_files:S.repoFiles.map(L=>L.path),repo_file_contents:S.repoFileContents}),Q=Array.isArray(_)?_[0]:_;Q?.id?o(`/studio/sources/${l}?rootId=${Q.id}`):o(`/studio/sources/${l}`)}catch{y(!1)}}},[l,S,d,o]),ne=E.useMemo(()=>h===1?!!S.repoPath:h===2?!!S.commit:!0,[h,S]),ae=E.useMemo(()=>u?[{label:u.id===ru?s("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:s("sources.import.title")}]:[],[u,s]);return u?m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"shrink-0",children:m.jsxDEV(pu,{segments:ae},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:191,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:190,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-2 font-mono text-sm sm:mt-6 md:gap-3",children:[m.jsxDEV(Xg,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:196,columnNumber:9},this),m.jsxDEV("span",{className:h===1?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.select")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:197,columnNumber:9},this),m.jsxDEV(dw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:200,columnNumber:9},this),m.jsxDEV(Xg,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:201,columnNumber:9},this),m.jsxDEV("span",{className:h===2?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.version")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:202,columnNumber:9},this),m.jsxDEV(dw,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:205,columnNumber:9},this),m.jsxDEV(Xg,{active:h>=3,current:h===3},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:206,columnNumber:9},this),m.jsxDEV("span",{className:h===3?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.step.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:207,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:195,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex min-h-0 flex-1 flex-col sm:mt-6",children:k?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(i3,{rpc:X,selectedPath:S.repoPath,onSelect:te,allowedPaths:Z,importedPaths:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:221,columnNumber:15},this),h===2&&m.jsxDEV(u3,{rpc:X,repoPath:S.repoPath,onReady:fe,onBusyChange:N},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:230,columnNumber:15},this),h===3&&m.jsxDEV(d3,{importState:S,libraryName:u.name,importing:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:238,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:219,columnNumber:11},this):m.jsxDEV(m3,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:215,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:213,columnNumber:7},this),k&&m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-4 sm:mt-6",children:[m.jsxDEV("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-c4a-text-muted line-clamp-1 sm:line-clamp-none",title:s("sources.safety.notice.repo"),onClick:_=>_.currentTarget.classList.toggle("line-clamp-1"),children:s("sources.safety.notice.repo")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:251,columnNumber:11},this),m.jsxDEV("div",{className:"flex shrink-0 gap-2",children:[h>1&&m.jsxDEV("button",{onClick:()=>g(_=>_-1),disabled:b||D,className:"rounded border border-c4a-border-default px-4 py-2 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover disabled:opacity-40",children:s("common.previous")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:260,columnNumber:15},this),h<3?m.jsxDEV("button",{onClick:()=>g(_=>_+1),disabled:!ne||D,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:s("common.next")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:269,columnNumber:15},this):m.jsxDEV("button",{onClick:ie,disabled:b||D,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[b&&m.jsxDEV(Ta,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:282,columnNumber:31},this),s(b?"sources.import.importing":"sources.import.step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:277,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:258,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:250,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:189,columnNumber:5},this):m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:183,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:182,columnNumber:7},this)}function Xg({active:s,current:o}){return m.jsxDEV("span",{className:`inline-block h-2.5 w-2.5 rounded-full border-2 ${o?"border-c4a-accent bg-c4a-accent":s?"border-c4a-accent bg-transparent":"border-c4a-border-default bg-transparent"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:303,columnNumber:5},this)}function dw(){return m.jsxDEV("span",{className:"h-px flex-1 bg-c4a-border-default"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:316,columnNumber:10},this)}function m3({libraryName:s}){const{t:o}=qe();return m.jsxDEV("div",{className:"rounded border border-c4a-warning/30 bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("p",{className:"text-sm text-c4a-warning",children:o("sources.import.daemon_offline",{name:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:327,columnNumber:7},this),m.jsxDEV(nn,{to:"/studio/sources/add-client",className:"mt-4 inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("sources.import.view_guide")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:330,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportRepo.tsx",lineNumber:326,columnNumber:5},this)}const fw=(s,o)=>{let l=0,c=0,u=0;const d=[],h=g=>{for(const b of g)if(b.type==="directory")c++,b.is_git_repo&&u++,b.children&&h(b.children);else if(l++,/\.md$/i.test(b.name)){const y=b.path.startsWith(o)?b.path.slice(o.length).replace(/^\//,""):b.name;d.push(y)}};return h(s),{files:l,dirs:c,gitRepos:u,mdFiles:d}};function p3({rpc:s,selectedPath:o,onSelect:l,allowedPaths:c,importedPaths:u}){const{t:d}=qe(),h=!!c&&c.length>0,g=h&&c.length===1&&c[0]==="*",[b,y]=E.useState(h),[D,N]=E.useState(h&&!g?"":"/"),[S,R]=E.useState([]),[k,B]=E.useState(!1),[H,Z]=E.useState(null),X=E.useMemo(()=>new Set(u??[]),[u]),[te,fe]=E.useState(null);E.useEffect(()=>{if(h&&!g)return;let F=!1;return(async()=>{try{const le=await s("fs/homeDir",{});F||fe(le.home_dir)}catch{F||fe("/")}})(),()=>{F=!0}},[h,g,s]);const[ie,ne]=E.useState(!1),ae=E.useCallback(async F=>{B(!0),Z(null);try{const le=await s("fs/listTree",{path:F,depth:1});R(le.entries||[]),N(F),y(!1)}catch(le){const Ne=le instanceof Error?le.message:String(le);Z(Ne)}finally{B(!1)}},[s]);E.useEffect(()=>{h&&!g||te!==null&&ae(te)},[te]);const _=E.useCallback(F=>{if(F.type!=="directory"||X.has(F.path))return;const le=fw(F.children||[],F.path);l(F.path,F.name,le),ae(F.path)},[l,ae,X]),Q=E.useCallback(()=>{if(h&&!g&&c.some(Ne=>Ne===D)){y(!0),N(""),R([]),Z(null);return}const F=D.split("/").slice(0,-1).join("/")||"/";ae(F)},[D,ae,h,g,c]);E.useEffect(()=>{if(D&&!b&&S.length>=0&&!k){const F=D.split("/").pop()||D,le=fw(S,D);l(D,F,le)}},[D,b,S,k]);const L=E.useMemo(()=>o?o.split("/").pop()||o:"",[o]),pe=E.useMemo(()=>S.filter(F=>F.type==="directory").sort((F,le)=>F.is_git_repo&&!le.is_git_repo?-1:!F.is_git_repo&&le.is_git_repo?1:F.name.localeCompare(le.name)),[S]),ee=E.useMemo(()=>S.filter(F=>F.type==="file").sort((F,le)=>F.name.localeCompare(le.name)),[S]);return m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-4",children:[m.jsxDEV("div",{className:"flex items-center justify-between gap-4",children:[b?m.jsxDEV("p",{className:"flex items-center gap-1.5 font-mono text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:d("sources.import.allowed_dirs")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:201,columnNumber:13},this),m.jsxDEV(b4,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:202,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:200,columnNumber:11},this):m.jsxDEV("p",{className:"min-w-0 truncate font-mono text-xs text-c4a-text-muted",children:D},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:205,columnNumber:11},this),o?m.jsxDEV("p",{className:"flex shrink-0 items-center gap-2 font-mono text-xs text-c4a-accent",children:[m.jsxDEV($n,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:211,columnNumber:13},this),m.jsxDEV("span",{children:L},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:212,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:210,columnNumber:11},this):g&&b?m.jsxDEV("button",{onClick:()=>ne(!0),className:"flex shrink-0 items-center gap-1.5 rounded border border-c4a-accent/40 bg-c4a-accent/10 px-2.5 py-1 text-xs text-c4a-accent transition-colors hover:bg-c4a-accent/20",children:d("sources.import.wildcard_goto")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:215,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:198,columnNumber:7},this),m.jsxDEV("hr",{className:"my-3 border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:224,columnNumber:7},this),b?g?m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:te&&m.jsxDEV("button",{onClick:()=>ae(te),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV($n,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:235,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:[te,m.jsxDEV("span",{className:"ml-1.5 text-c4a-text-muted",children:["(",d("sources.import.wildcard_home"),")"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:238,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:236,columnNumber:17},this),m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:242,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:231,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:229,columnNumber:11},this):m.jsxDEV("div",{className:"min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:c.map(F=>m.jsxDEV("button",{onClick:()=>ae(F),className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV($n,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:255,columnNumber:17},this),m.jsxDEV("span",{className:"truncate",children:F},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:256,columnNumber:17},this),m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:257,columnNumber:17},this)]},F,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:250,columnNumber:15},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:248,columnNumber:11},this):H&&!k?m.jsxDEV("p",{className:"py-4 text-xs text-c4a-error",children:H},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:266,columnNumber:9},this):m.jsxDEV("div",{className:"relative min-h-[5rem] min-h-0 flex-1 c4a-scrollbar overflow-y-auto",children:[k&&m.jsxDEV("div",{className:"absolute inset-0 z-10 flex items-center justify-center bg-c4a-bg-surface/60",children:m.jsxDEV(Ta,{size:14,className:"animate-spin text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:271,columnNumber:15},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:270,columnNumber:13},this),D!=="/"&&m.jsxDEV("button",{onClick:Q,disabled:k,className:"flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm text-c4a-text-secondary hover:bg-c4a-bg-hover disabled:pointer-events-none",children:[m.jsxDEV($n,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:280,columnNumber:15},this),m.jsxDEV("span",{children:".."},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:281,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:275,columnNumber:13},this),pe.map(F=>{const le=X.has(F.path),Ne=F.is_git_repo?vb:$n;return m.jsxDEV("button",{onClick:()=>_(F),disabled:le||k,className:`flex w-full items-center gap-2 rounded pl-2 pr-4 py-1.5 text-left text-sm transition-colors ${le?"cursor-not-allowed text-c4a-accent/60":o===F.path?"bg-c4a-accent/10 text-c4a-accent":"text-c4a-text-secondary hover:bg-c4a-bg-hover"}`,children:[m.jsxDEV(Ne,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:301,columnNumber:15},this),m.jsxDEV("span",{className:"flex-1 truncate",children:F.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:302,columnNumber:15},this),le&&m.jsxDEV("span",{className:"rounded bg-c4a-accent/10 px-1.5 py-0.5 font-mono text-[10px] text-c4a-accent/60",children:d("sources.import.already_imported")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:304,columnNumber:17},this),m.jsxDEV(So,{size:12,className:"shrink-0 text-c4a-text-muted"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:308,columnNumber:15},this)]},F.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:289,columnNumber:13},this)}),ee.map(F=>m.jsxDEV("div",{className:"flex w-full items-center gap-2 pl-2 pr-4 py-1.5 text-sm text-c4a-text-muted",children:[m.jsxDEV(r4,{size:14,className:"shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:321,columnNumber:15},this),m.jsxDEV("span",{className:"truncate",children:F.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:322,columnNumber:15},this)]},F.path,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:317,columnNumber:13},this)),S.length===0&&!k&&m.jsxDEV("p",{className:"py-4 text-center text-xs text-c4a-text-muted",children:d("sources.import.no_entries")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:327,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:268,columnNumber:9},this),m.jsxDEV(y4,{open:ie,onClose:()=>ne(!1),rpc:s,onNavigate:ae,defaultPath:te??void 0},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:335,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepSelectDir.tsx",lineNumber:197,columnNumber:5},this)}const h3=new Set(["package.json","pyproject.toml","setup.py","go.mod","cargo.toml","pom.xml","build.gradle"]),g3=s=>{let o=0,l=0,c=0,u=0,d=0;const h=new Set;for(const g of s)if(g.type==="directory")l++,g.is_git_repo&&d++;else{o++,g.path.toLowerCase().endsWith(".md")&&u++;const y=g.path.split("/").pop();if(y&&h3.has(y.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:o,totalDirs:l,codePackages:c,docFiles:u,gitRepos:d}};function b3({dirPath:s,rpc:o,importing:l,onScanComplete:c,onBusyChange:u}){const{t:d}=qe(),[h,g]=E.useState(!1),[b,y]=E.useState(null),[D,N]=E.useState(null),S=E.useCallback(async()=>{g(!0),u?.(!0),y(null),N(null);try{const R=await o("fs/dirScan",{path:s}),k=R.entries||[],B=R.manifests||[],H=g3(k);N(H),c(k,H,B)}catch(R){const k=R instanceof Error?R.message:String(R);y(k)}finally{g(!1),u?.(!1)}},[s,o,c,u]);return E.useEffect(()=>{S()},[S]),m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col rounded border border-c4a-border-default bg-c4a-bg-surface p-6",children:[m.jsxDEV("p",{className:"shrink-0 font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:129,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 shrink-0 border-t border-c4a-border-subtle"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:130,columnNumber:7},this),m.jsxDEV("div",{className:"c4a-scrollbar min-h-0 flex-1 overflow-y-auto",children:[h&&m.jsxDEV("div",{className:"mt-6 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-4",children:[m.jsxDEV(Ta,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:135,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:d("sources.import.dir_scanning")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:136,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:134,columnNumber:9},this),b&&m.jsxDEV("div",{className:"mt-6",children:[m.jsxDEV("p",{className:"flex items-start gap-2 text-xs text-c4a-error",children:[m.jsxDEV(yb,{size:14,className:"mt-0.5 shrink-0"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:145,columnNumber:13},this),d("sources.import.dir_scan_error")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:144,columnNumber:11},this),m.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:b},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:148,columnNumber:11},this),m.jsxDEV("button",{onClick:S,className:"mt-3 flex items-center gap-1.5 rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:[m.jsxDEV(BT,{size:12},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:153,columnNumber:13},this),d("sources.import.dir_scan_retry")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:149,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:143,columnNumber:9},this),D&&!h&&!b&&m.jsxDEV("div",{className:"mt-6 space-y-3",children:[m.jsxDEV("p",{className:"font-mono text-sm uppercase text-c4a-accent",children:[d("sources.import.dir_scan_complete"),"!"]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:161,columnNumber:11},this),m.jsxDEV("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3 lg:grid-cols-5",children:[m.jsxDEV(Xc,{icon:m.jsxDEV(pr,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:167,columnNumber:21},this),label:d("sources.import.dir_doc_files"),value:D.docFiles,tooltip:d("sources.import.dir_doc_files_tip")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:166,columnNumber:13},this),m.jsxDEV(Xc,{icon:m.jsxDEV(dl,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:173,columnNumber:21},this),label:d("sources.import.dir_code_packages"),value:D.codePackages,tooltip:d("sources.import.dir_code_packages_tip")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:172,columnNumber:13},this),D.gitRepos>0&&m.jsxDEV(Xc,{icon:m.jsxDEV(vb,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:180,columnNumber:23},this),label:d("sources.import.dir_git_repos"),value:D.gitRepos},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:179,columnNumber:15},this),m.jsxDEV(Xc,{icon:m.jsxDEV($n,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:186,columnNumber:21},this),label:d("sources.import.dir_total_dirs"),value:D.totalDirs},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:185,columnNumber:13},this),m.jsxDEV(Xc,{icon:m.jsxDEV(uT,{size:14},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:191,columnNumber:21},this),label:d("sources.import.dir_total_files"),value:D.totalFiles},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:190,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:165,columnNumber:11},this),D.gitRepos>0&&m.jsxDEV("p",{className:"text-xs text-c4a-warning",children:d("sources.import.dir_git_skip_hint",{count:D.gitRepos})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:198,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:160,columnNumber:9},this),l&&m.jsxDEV("div",{className:"mt-4 flex items-center justify-center gap-2 rounded bg-c4a-bg-base p-3",children:[m.jsxDEV(Ta,{size:14,className:"animate-spin text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:208,columnNumber:11},this),m.jsxDEV("p",{className:"font-mono text-xs text-c4a-accent",children:d("sources.import.importing")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:209,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:207,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:132,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:128,columnNumber:5},this)}function Xc({icon:s,label:o,value:l,tooltip:c}){return m.jsxDEV("div",{className:"group/stat relative rounded border border-c4a-border-subtle bg-c4a-bg-base p-3",children:[m.jsxDEV("div",{className:"flex items-center gap-1.5 text-c4a-text-muted",children:[s,m.jsxDEV("span",{className:"font-mono text-[10px] uppercase",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:234,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:232,columnNumber:7},this),m.jsxDEV("p",{className:"mt-1 font-mono text-lg font-bold text-c4a-text-primary",children:l},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:236,columnNumber:7},this),c&&m.jsxDEV("div",{className:"pointer-events-none absolute bottom-full left-0 z-30 mb-1.5 hidden w-max max-w-[260px] rounded border border-c4a-border-default bg-c4a-bg-elevated px-2.5 py-1.5 text-[11px] leading-relaxed text-c4a-text-secondary shadow-c4a-lg group-hover/stat:block",children:c},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:240,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/importSteps/StepScanDir.tsx",lineNumber:231,columnNumber:5},this)}function y3(){const{t:s}=qe(),o=hr(),{libId:l}=Ff(),u=ja(ml(mu)).find(_=>_.id===l),d=Kf(_=>_.createSource),[h,g]=E.useState(1),[b,y]=E.useState(!1),[D,N]=E.useState(!1),[S,R]=E.useState({dirPath:"",dirName:"",fileCount:0,subDirCount:0,gitRepoCount:0,mdFiles:[],scanEntries:[],scanStats:null,manifests:[]}),k=u?.is_online??!1,[B,H]=E.useState([]);E.useEffect(()=>{if(!l)return;let _=!1;return(async()=>{try{const Q=await la.get("/sources",{library_id:l,limit:"500"});if(_)return;const L=Q.items.map(pe=>{const ee=pe.metadata;return typeof ee?.local_path=="string"?ee.local_path:null}).filter(pe=>pe!==null);H(L)}catch{}})(),()=>{_=!0}},[l]);const Z=E.useMemo(()=>{const _=u?.config;return!_||!Array.isArray(_.allowed_paths)?[]:_.allowed_paths},[u]),X=E.useCallback(async(_,Q)=>{if(!l)throw new Error("No library");const L=await la.post(`/libraries/${l}/rpc`,{method:_,params:Q});if(L.error){const pe=L.error;throw new Error(pe.message??JSON.stringify(L.error))}return L.result??L},[l]),te=E.useCallback((_,Q,L)=>{R(pe=>({...pe,dirPath:_,dirName:Q,fileCount:L.files,subDirCount:L.dirs,gitRepoCount:L.gitRepos,mdFiles:L.mdFiles}))},[]),fe=E.useCallback((_,Q,L)=>{R(pe=>({...pe,scanEntries:_,scanStats:Q,manifests:L}))},[]),ie=E.useCallback(async()=>{if(l){y(!0);try{const _=await d({library_id:l,dir_files:S.scanEntries,dir_name:S.dirName,dir_path:S.dirPath,dir_file_contents:S.manifests}),Q=Array.isArray(_)?_[0]:_;Q?.id?o(`/studio/sources/${l}?rootId=${Q.id}`):o(`/studio/sources/${l}`)}catch{y(!1)}}},[l,S,d,o]),ne=E.useMemo(()=>h===1?!!S.dirPath:h===2?S.scanEntries.length>0:!0,[h,S]),ae=E.useMemo(()=>u?[{label:u.id===ru?s("sources.library.default_cloud_name"):u.name,to:`/studio/sources/${u.id}`},{label:s("sources.import.dir_title")}]:[],[u,s]);return u?m.jsxDEV("div",{className:"flex min-h-0 flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV("div",{className:"shrink-0",children:m.jsxDEV(pu,{segments:ae},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:192,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:191,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-2 font-mono text-sm sm:mt-6 md:gap-3",children:[m.jsxDEV(mw,{active:h>=1,current:h===1},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:197,columnNumber:9},this),m.jsxDEV("span",{className:h===1?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.dir_step.select")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:198,columnNumber:9},this),m.jsxDEV(v3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:201,columnNumber:9},this),m.jsxDEV(mw,{active:h>=2,current:h===2},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:202,columnNumber:9},this),m.jsxDEV("span",{className:h===2?"text-c4a-accent":"text-c4a-text-muted",children:s("sources.import.dir_step.confirm")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:203,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:196,columnNumber:7},this),m.jsxDEV("div",{className:"mt-3 flex min-h-0 flex-1 flex-col sm:mt-6",children:k?m.jsxDEV(m.Fragment,{children:[h===1&&m.jsxDEV(p3,{rpc:X,selectedPath:S.dirPath,onSelect:te,allowedPaths:Z,importedPaths:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:215,columnNumber:15},this),h===2&&m.jsxDEV(b3,{dirPath:S.dirPath,rpc:X,importing:b,onScanComplete:fe,onBusyChange:N},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:224,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:213,columnNumber:11},this):m.jsxDEV(x3,{libraryName:u.name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:211,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:209,columnNumber:7},this),k&&m.jsxDEV("div",{className:"mt-3 flex shrink-0 items-center gap-4 sm:mt-6",children:[m.jsxDEV("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-c4a-text-muted line-clamp-1 sm:line-clamp-none",title:s("sources.safety.notice.dir"),onClick:_=>_.currentTarget.classList.toggle("line-clamp-1"),children:s("sources.safety.notice.dir")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:239,columnNumber:11},this),m.jsxDEV("div",{className:"flex shrink-0 gap-2",children:[h>1&&m.jsxDEV("button",{onClick:()=>g(_=>_-1),disabled:b||D,className:"rounded border border-c4a-border-default px-4 py-2 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover disabled:opacity-40",children:s("common.previous")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:248,columnNumber:15},this),h<2?m.jsxDEV("button",{onClick:()=>g(_=>_+1),disabled:!ne||D,className:"rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:s("common.next")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:257,columnNumber:15},this):m.jsxDEV("button",{onClick:ie,disabled:b||D||!ne,className:"flex items-center gap-1.5 rounded bg-c4a-accent px-4 py-2 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-40",children:[b&&m.jsxDEV(Ta,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:270,columnNumber:31},this),s(b?"sources.import.importing":"sources.import.dir_step.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:265,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:246,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:238,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:190,columnNumber:5},this):m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:184,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:183,columnNumber:7},this)}function mw({active:s,current:o}){return m.jsxDEV("span",{className:`inline-block h-2.5 w-2.5 rounded-full border-2 ${o?"border-c4a-accent bg-c4a-accent":s?"border-c4a-accent bg-transparent":"border-c4a-border-default bg-transparent"}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:291,columnNumber:5},this)}function v3(){return m.jsxDEV("span",{className:"h-px flex-1 bg-c4a-border-default"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:304,columnNumber:10},this)}function x3({libraryName:s}){const{t:o}=qe();return m.jsxDEV("div",{className:"rounded border border-c4a-warning/30 bg-c4a-bg-surface p-6 text-center",children:[m.jsxDEV("p",{className:"text-sm text-c4a-warning",children:o("sources.import.daemon_offline",{name:s})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:311,columnNumber:7},this),m.jsxDEV(nn,{to:"/studio/sources/add-client",className:"mt-4 inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:o("sources.import.view_guide")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:314,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/ImportDir.tsx",lineNumber:310,columnNumber:5},this)}function N3(){const{t:s}=qe(),o=hr(),l=ja(S=>S.createLibrary),[c,u]=E.useState("waiting"),[d,h]=E.useState(null),[g,b]=E.useState(""),[y,D]=E.useState(!1);E.useEffect(()=>Gs.on("ws:daemon:connected",R=>{const k=R;h(k),b(k.machine_id),u(k.needs_registration?"new_client":"reconnected")}),[]),E.useEffect(()=>{let S=!1;return(async()=>{try{const R=await la.get("/daemons/pending");if(S||R.pending.length===0)return;const k=R.pending[0];h({machine_id:k.machine_id,needs_registration:!0}),b(k.machine_id),u("new_client")}catch{}})(),()=>{S=!0}},[]);const N=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||""}});o(`/studio/sources/${S.id}`)}catch{D(!1)}}},[d,g,l,o]);return m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(pu,{segments:[{label:s("sources.add_client.title")}]},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:86,columnNumber:7},this),m.jsxDEV("p",{className:"mt-4 text-sm text-c4a-text-secondary",children:s("sources.add_client.description")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:90,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:m.jsxDEV("ol",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["1. ",s("sources.add_client.step1")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:98,columnNumber:13},this),m.jsxDEV("pre",{className:"mt-1 rounded bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-accent",children:"npm install -g @c4a/daemon"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:101,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:97,columnNumber:11},this),m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["2. ",s("sources.add_client.step2")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:106,columnNumber:13},this),m.jsxDEV("pre",{className:"mt-1 rounded bg-c4a-bg-base px-3 py-2 font-mono text-xs text-c4a-accent",children:`c4a-daemon --server ${window.location.host}`},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:109,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:105,columnNumber:11},this),m.jsxDEV("li",{children:[m.jsxDEV("span",{className:"font-mono text-xs font-bold text-c4a-text-primary",children:["3. ",s("sources.add_client.step3")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:114,columnNumber:13},this),m.jsxDEV("p",{className:"mt-1 text-xs text-c4a-text-muted",children:s("sources.add_client.step3_desc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:96,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:95,columnNumber:7},this),m.jsxDEV("div",{className:"mt-6 rounded border border-c4a-border-default bg-c4a-bg-surface p-5",children:[c==="waiting"&&m.jsxDEV("div",{className:"flex items-center gap-3",children:[m.jsxDEV(Ta,{size:16,className:"animate-spin text-c4a-warning"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:128,columnNumber:13},this),m.jsxDEV("span",{className:"text-sm text-c4a-warning",children:s("sources.add_client.waiting")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:127,columnNumber:11},this),c==="new_client"&&d&&m.jsxDEV("div",{className:"space-y-4",children:[m.jsxDEV("h3",{className:"font-mono text-sm font-bold text-c4a-accent",children:s("sources.add_client.detected")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:137,columnNumber:13},this),m.jsxDEV("div",{className:"space-y-2 text-sm",children:[m.jsxDEV(Qg,{label:s("sources.add_client.machine_name"),value:d.machine_id},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:141,columnNumber:15},this),d.os&&m.jsxDEV(Qg,{label:s("sources.add_client.os"),value:d.os},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:146,columnNumber:17},this),d.daemon_version&&m.jsxDEV(Qg,{label:s("sources.add_client.daemon_version"),value:d.daemon_version},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:152,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:140,columnNumber:13},this),m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-32 font-mono text-xs text-c4a-text-muted",children:s("sources.add_client.client_name")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:159,columnNumber:15},this),m.jsxDEV("input",{value:g,onChange:S=>b(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:162,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:158,columnNumber:13},this),m.jsxDEV("div",{className:"flex justify-end gap-2 pt-2",children:[m.jsxDEV("button",{onClick:()=>o("/studio/sources"),className:"rounded border border-c4a-border-default px-3 py-1.5 font-mono text-xs text-c4a-text-secondary transition-colors hover:bg-c4a-bg-hover",children:s("common.cancel")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:169,columnNumber:15},this),m.jsxDEV("button",{onClick:N,disabled:y||!g.trim(),className:"flex items-center gap-1.5 rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover disabled:opacity-50",children:[y&&m.jsxDEV(Ta,{size:12,className:"animate-spin"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:181,columnNumber:19},this),s("sources.add_client.confirm")]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:175,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:168,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:136,columnNumber:11},this),c==="reconnected"&&d&&m.jsxDEV("div",{className:"space-y-4",children:[m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV(ul,{size:16,className:"text-c4a-success"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:192,columnNumber:15},this),m.jsxDEV("span",{className:"text-sm text-c4a-text-primary",children:s("sources.add_client.reconnected",{name:d.machine_id})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:193,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:191,columnNumber:13},this),d.lib_id&&m.jsxDEV(nn,{to:`/studio/sources/${d.lib_id}`,className:"inline-block rounded bg-c4a-accent px-3 py-1.5 font-mono text-xs text-white transition-colors hover:bg-c4a-accent-hover",children:s("sources.add_client.go_to",{name:d.machine_id})},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:200,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:190,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:125,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:85,columnNumber:5},this)}function Qg({label:s,value:o}){return m.jsxDEV("div",{className:"flex items-center gap-2",children:[m.jsxDEV("span",{className:"w-32 font-mono text-xs text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:219,columnNumber:7},this),m.jsxDEV("span",{className:"font-mono text-xs text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:222,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/AddClient.tsx",lineNumber:218,columnNumber:5},this)}function S3(){const{t:s}=qe(),{sourceUuid:o}=Ff(),[l]=n4(),c=l.get("path")||"",{currentRoot:u,loading:d,fetchRootSource:h}=Kf(),g=ja(ml(mu)),[b,y]=E.useState("original");E.useEffect(()=>{o&&h(o)},[o,h]);const D=E.useMemo(()=>u?c?Jf(u.tree,c):u.kind==="source"?{path:"",kind:u.kind,source_type:u.source_type,name:u.name,metadata:u.metadata,index_status:u.index_status}:null:null,[u,c]),N=g.find(te=>te.id===u?.library_id),S=D?.metadata,R=S?Object.fromEntries(Object.entries(S).map(([te,fe])=>[te,String(fe??"")])):null,k=D?.source_type==="code",B=D?.name??u?.name??"",H=D?.source_type??null,Z=E.useMemo(()=>{if(!u||!N)return[];const te=u.kind==="source"&&!c,fe=[{label:N.id===ru?s("sources.library.default_cloud_name"):N.name,to:`/studio/sources/${N.id}`},{label:u.name,...te?{}:{to:`/studio/sources/${N.id}?rootId=${u.id}`}}];if(c){const ie=h4(u.tree,c);for(let ne=0;ne<ie.length-1;ne++){const ae=ie[ne];fe.push({label:ae.name,to:`/studio/sources/${N.id}?rootId=${u.id}&path=${encodeURIComponent(ae.path)}`})}ie.length>0&&fe.push({label:ie[ie.length-1].name})}return fe},[u,N,c,s]),X=[{key:"original",label:s(k?"sources.detail.tab.overview":"sources.detail.tab.original")},{key:"digest",label:s("sources.detail.tab.digest")},{key:"modeling",label:s("sources.detail.tab.modeling")}];return d||!u||!D?m.jsxDEV("div",{className:"flex flex-1 items-center justify-center p-8",children:m.jsxDEV("p",{className:"text-sm text-c4a-text-muted",children:s("common.loading")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:118,columnNumber:9},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:117,columnNumber:7},this):m.jsxDEV("div",{className:"flex flex-1 flex-col p-4 md:p-6",children:[m.jsxDEV(pu,{segments:Z},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:125,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex flex-wrap items-baseline gap-x-6 gap-y-2",children:[m.jsxDEV("div",{className:"flex min-w-0 items-center gap-2",children:[k?m.jsxDEV(dl,{size:20,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:131,columnNumber:13},this):m.jsxDEV(pr,{size:20,className:"shrink-0 text-c4a-accent"},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:133,columnNumber:13},this),m.jsxDEV("h1",{className:"min-w-0 break-all font-mono text-xl font-bold leading-none text-c4a-text-primary",children:B},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:135,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:129,columnNumber:9},this),m.jsxDEV("div",{className:"flex flex-wrap items-baseline gap-4 text-xs text-c4a-text-muted",children:[m.jsxDEV("span",{children:[s("sources.detail.type"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:s(H==="code"?"sources.type.code":"sources.type.doc")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:143,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:141,columnNumber:11},this),k&&R?.relative_path&&m.jsxDEV("span",{children:[s("sources.detail.path"),":"," ",m.jsxDEV("span",{className:"font-mono text-c4a-text-secondary",children:R.relative_path},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:152,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:150,columnNumber:13},this),!k&&m.jsxDEV("span",{children:[s("sources.detail.origin"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:N?.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:160,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:158,columnNumber:13},this),m.jsxDEV("span",{children:[s("sources.detail.status"),":"," ",m.jsxDEV("span",{className:"text-c4a-text-secondary",children:s(`sources.status.${D.index_status??"none"}`)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:169,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:167,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:140,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:128,columnNumber:7},this),k&&R&&m.jsxDEV("div",{className:"mt-4 rounded border border-c4a-border-subtle bg-c4a-bg-surface p-4",children:m.jsxDEV("div",{className:"grid grid-cols-2 gap-x-8 gap-y-2 text-xs md:grid-cols-4",children:[R.repo_name&&m.jsxDEV(Af,{label:s("sources.detail.repo"),value:R.repo_name},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:181,columnNumber:15},this),R.pinned_branch&&m.jsxDEV(Af,{label:s("sources.detail.branch"),value:R.pinned_branch},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:187,columnNumber:15},this),R.pinned_hash&&m.jsxDEV(Af,{label:s("sources.detail.commit"),value:R.pinned_hash.slice(0,7)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:193,columnNumber:15},this),R.tech_stack&&m.jsxDEV(Af,{label:s("sources.detail.tech_stack"),value:R.tech_stack},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:199,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:179,columnNumber:11},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:178,columnNumber:9},this),m.jsxDEV("div",{className:"mt-3 flex border-b border-c4a-border-subtle",children:X.map(te=>m.jsxDEV("button",{onClick:()=>y(te.key),className:`border-b-2 px-4 py-2 font-mono text-xs uppercase transition-colors ${b===te.key?"border-c4a-accent text-c4a-accent":"border-transparent text-c4a-text-muted hover:text-c4a-text-secondary"}`,children:te.label},te.key,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:211,columnNumber:11},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:209,columnNumber:7},this),m.jsxDEV("div",{className:"mt-4 flex-1",children:[b==="original"&&m.jsxDEV(w3,{node:D,isCode:k},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:228,columnNumber:11},this),b==="digest"&&m.jsxDEV(pw,{message:s("sources.detail.digest_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:231,columnNumber:11},this),b==="modeling"&&m.jsxDEV(pw,{message:s("sources.detail.modeling_placeholder")},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:234,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:226,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:124,columnNumber:5},this)}function Af({label:s,value:o}){return m.jsxDEV("div",{children:[m.jsxDEV("span",{className:"text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:246,columnNumber:7},this),m.jsxDEV("p",{className:"mt-0.5 font-mono text-c4a-text-primary",children:o},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:247,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:245,columnNumber:5},this)}function w3({node:s,isCode:o}){const{t:l}=qe(),c=s.metadata;return o?m.jsxDEV("div",{className:"space-y-4 text-sm text-c4a-text-secondary",children:[!!c?.description&&m.jsxDEV("p",{children:String(c.description)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:266,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:270,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:278,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:279,columnNumber:19},this)]},u,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:277,columnNumber:17},this))},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:273,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:269,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:286,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:264,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:296,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:295,columnNumber:5},this)}function pw({message:s}){return m.jsxDEV("div",{className:"flex items-center justify-center rounded border border-dashed border-c4a-border-subtle p-12",children:m.jsxDEV("p",{className:"text-center text-sm text-c4a-text-muted",children:s},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:306,columnNumber:7},this)},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/pages/studio/sources/SourceDetail.tsx",lineNumber:305,columnNumber:5},this)}const E3="lib_cloud_default",D3=CC([{element:m.jsxDEV(Sj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:29,columnNumber:14},void 0),children:[{path:"/",element:m.jsxDEV(kj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:31,columnNumber:29},void 0)},{path:"/login",element:m.jsxDEV(Uj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:32,columnNumber:34},void 0)},{path:"/docs",element:m.jsxDEV(Cj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:33,columnNumber:33},void 0)}]},{path:"/studio",element:m.jsxDEV(_j,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:40,columnNumber:14},void 0),children:[{index:!0,element:m.jsxDEV(XS,{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(XS,{to:`/studio/sources/${E3}`,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(N3,{},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(f3,{},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(y3,{},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(s3,{},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(S3,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:56,columnNumber:46},void 0)},{path:"modeling",element:m.jsxDEV(jj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:57,columnNumber:36},void 0)},{path:"modeling/code/setup",element:m.jsxDEV(Lj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:58,columnNumber:47},void 0)},{path:"modeling/code/compile",element:m.jsxDEV(Hj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:59,columnNumber:49},void 0)},{path:"modeling/code/review",element:m.jsxDEV(Bj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:60,columnNumber:48},void 0)},{path:"modeling/code/result",element:m.jsxDEV($j,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:61,columnNumber:48},void 0)},{path:"brain",element:m.jsxDEV(Oj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:62,columnNumber:33},void 0)},{path:"discovery",element:m.jsxDEV(Aj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:63,columnNumber:37},void 0)},{path:"sharing",element:m.jsxDEV(Vj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:64,columnNumber:35},void 0)},{path:"collaboration",element:m.jsxDEV(Mj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:65,columnNumber:41},void 0)},{path:"settings",element:m.jsxDEV(zj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:66,columnNumber:36},void 0)}]},{path:"*",element:m.jsxDEV(Tj,{},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/router.tsx",lineNumber:71,columnNumber:25},void 0)}]);function R3(){return E.useEffect(()=>{const o=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;return Gs.connect(o),()=>{Gs.disconnect()}},[]),m.jsxDEV(aC,{router:D3},void 0,!1,{fileName:"/Users/bytedance/github/c4a/packages/web/src/App.tsx",lineNumber:17,columnNumber:10},this)}gk.createRoot(document.getElementById("root")).render(m.jsxDEV(E.StrictMode,{children:m.jsxDEV(R3,{},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));