@undefineds.co/xpod 0.3.70 → 0.3.71-rc.13

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 (172) hide show
  1. package/config/cloud.json +3 -0
  2. package/config/local.json +3 -0
  3. package/config/resolver.json +7 -0
  4. package/config/xpod.base.json +20 -0
  5. package/dist/agents/ClaudeExecutor.js +1 -1
  6. package/dist/agents/ClaudeExecutor.js.map +1 -1
  7. package/dist/agents/types.d.ts +5 -5
  8. package/dist/agents/types.js.map +1 -1
  9. package/dist/api/ai-gateway/AiGatewayService.d.ts +5 -16
  10. package/dist/api/ai-gateway/AiGatewayService.js +13 -35
  11. package/dist/api/ai-gateway/AiGatewayService.js.map +1 -1
  12. package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.d.ts +3 -2
  13. package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.js +37 -12
  14. package/dist/api/ai-gateway/auth/AiConnectionInvocationKeyIssuer.js.map +1 -1
  15. package/dist/api/ai-gateway/auth/GatewayPrincipal.d.ts +2 -16
  16. package/dist/api/ai-gateway/auth/GatewayPrincipal.js +3 -33
  17. package/dist/api/ai-gateway/auth/GatewayPrincipal.js.map +1 -1
  18. package/dist/api/ai-gateway/auth/InvocationTokenAuthenticator.d.ts +23 -0
  19. package/dist/api/ai-gateway/auth/InvocationTokenAuthenticator.js +81 -0
  20. package/dist/api/ai-gateway/auth/InvocationTokenAuthenticator.js.map +1 -0
  21. package/dist/api/ai-gateway/auth/InvocationTokenCodec.d.ts +7 -4
  22. package/dist/api/ai-gateway/auth/InvocationTokenCodec.js.map +1 -1
  23. package/dist/api/ai-gateway/connect/index.d.ts +7 -26
  24. package/dist/api/ai-gateway/connect/index.js +40 -67
  25. package/dist/api/ai-gateway/connect/index.js.map +1 -1
  26. package/dist/api/ai-gateway/credentials/PlaintextCredentialPayload.d.ts +17 -0
  27. package/dist/api/ai-gateway/credentials/PlaintextCredentialPayload.js +65 -0
  28. package/dist/api/ai-gateway/credentials/PlaintextCredentialPayload.js.map +1 -0
  29. package/dist/api/ai-gateway/pod/HostedPodDataAccess.d.ts +24 -0
  30. package/dist/api/ai-gateway/pod/HostedPodDataAccess.js +149 -0
  31. package/dist/api/ai-gateway/pod/HostedPodDataAccess.js.map +1 -0
  32. package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.d.ts +13 -5
  33. package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.js +16 -19
  34. package/dist/api/ai-gateway/quota/ProviderQuotaAdapter.js.map +1 -1
  35. package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.d.ts +1 -1
  36. package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.js +0 -2
  37. package/dist/api/ai-gateway/service-access/AiConnectionServiceAccess.js.map +1 -1
  38. package/dist/api/auth/AuthContext.d.ts +1 -12
  39. package/dist/api/auth/AuthContext.js +0 -11
  40. package/dist/api/auth/AuthContext.js.map +1 -1
  41. package/dist/api/auth/ClientCredentialsAuthenticator.js +4 -11
  42. package/dist/api/auth/ClientCredentialsAuthenticator.js.map +1 -1
  43. package/dist/api/chatkit/default-agent.d.ts +2 -2
  44. package/dist/api/chatkit/default-agent.js +4 -4
  45. package/dist/api/chatkit/default-agent.js.map +1 -1
  46. package/dist/api/chatkit/runtime/AcpAgentRuntime.js +1 -1
  47. package/dist/api/chatkit/runtime/AcpAgentRuntime.js.map +1 -1
  48. package/dist/api/container/common.js +28 -69
  49. package/dist/api/container/common.js.map +1 -1
  50. package/dist/api/container/index.js +5 -6
  51. package/dist/api/container/index.js.map +1 -1
  52. package/dist/api/container/routes.js +2 -5
  53. package/dist/api/container/routes.js.map +1 -1
  54. package/dist/api/container/types.d.ts +8 -10
  55. package/dist/api/container/types.js.map +1 -1
  56. package/dist/api/handlers/AiClientConfigurationHandler.js +3 -3
  57. package/dist/api/handlers/AiClientConfigurationHandler.js.map +1 -1
  58. package/dist/api/handlers/AiGatewayHandler.js +2 -2
  59. package/dist/api/handlers/AiGatewayHandler.js.map +1 -1
  60. package/dist/api/handlers/AiGatewayManagementHandler.d.ts +2 -10
  61. package/dist/api/handlers/AiGatewayManagementHandler.js +4 -154
  62. package/dist/api/handlers/AiGatewayManagementHandler.js.map +1 -1
  63. package/dist/api/handlers/NetworkSettingsHandler.js +0 -3
  64. package/dist/api/handlers/NetworkSettingsHandler.js.map +1 -1
  65. package/dist/api/handlers/PodSettingsHandler.d.ts +5 -2
  66. package/dist/api/handlers/PodSettingsHandler.js +3 -3
  67. package/dist/api/handlers/PodSettingsHandler.js.map +1 -1
  68. package/dist/api/runs/AgentRuntimeTypes.d.ts +3 -3
  69. package/dist/api/runs/AgentRuntimeTypes.js +10 -10
  70. package/dist/api/runs/AgentRuntimeTypes.js.map +1 -1
  71. package/dist/api/runs/InngestRunExecutionBackend.d.ts +15 -9
  72. package/dist/api/runs/InngestRunExecutionBackend.js +25 -10
  73. package/dist/api/runs/InngestRunExecutionBackend.js.map +1 -1
  74. package/dist/api/runs/PiAgentRuntimeDriver.js +2 -2
  75. package/dist/api/runs/PiAgentRuntimeDriver.js.map +1 -1
  76. package/dist/api/runs/RunStateCenter.js +1 -1
  77. package/dist/api/runs/RunStateCenter.js.map +1 -1
  78. package/dist/api/service/AiClientConfigurationService.d.ts +2 -2
  79. package/dist/api/service/AiClientConfigurationService.js +11 -11
  80. package/dist/api/service/AiClientConfigurationService.js.map +1 -1
  81. package/dist/api/tasks/InngestTaskScheduler.d.ts +16 -10
  82. package/dist/api/tasks/InngestTaskScheduler.js +24 -12
  83. package/dist/api/tasks/InngestTaskScheduler.js.map +1 -1
  84. package/dist/cli/commands/start.js +7 -7
  85. package/dist/cli/commands/start.js.map +1 -1
  86. package/dist/components/components.jsonld +1 -0
  87. package/dist/components/context.jsonld +36 -0
  88. package/dist/http/InternalPodDataHttpHandler.d.ts +32 -0
  89. package/dist/http/InternalPodDataHttpHandler.js +258 -0
  90. package/dist/http/InternalPodDataHttpHandler.js.map +1 -0
  91. package/dist/http/InternalPodDataHttpHandler.jsonld +201 -0
  92. package/dist/index.d.ts +2 -1
  93. package/dist/index.js +4 -2
  94. package/dist/index.js.map +1 -1
  95. package/dist/main.js +13 -13
  96. package/dist/main.js.map +1 -1
  97. package/dist/runtime/GatewayAdminProxyAuth.d.ts +15 -1
  98. package/dist/runtime/GatewayAdminProxyAuth.js +57 -2
  99. package/dist/runtime/GatewayAdminProxyAuth.js.map +1 -1
  100. package/dist/runtime/bootstrap.js +3 -0
  101. package/dist/runtime/bootstrap.js.map +1 -1
  102. package/dist/runtime/css-process.d.ts +1 -1
  103. package/dist/runtime/css-process.js +4 -1
  104. package/dist/runtime/css-process.js.map +1 -1
  105. package/dist/runtime/runner/node/CommunitySolidServerCssRunner.d.ts +2 -0
  106. package/dist/runtime/runner/node/CommunitySolidServerCssRunner.js +50 -0
  107. package/dist/runtime/runner/node/CommunitySolidServerCssRunner.js.map +1 -1
  108. package/node_modules/@undefineds.co/ai-connection/dist/AiClientConfigurationSection.d.ts +5 -5
  109. package/node_modules/@undefineds.co/ai-connection/dist/AiClientConfigurationSection.js +7 -7
  110. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionMain.js +1 -1
  111. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionPanel.d.ts +3 -1
  112. package/node_modules/@undefineds.co/ai-connection/dist/AiConnectionPanel.js +74 -60
  113. package/node_modules/@undefineds.co/ai-connection/dist/ai-connection-client.d.ts +0 -21
  114. package/node_modules/@undefineds.co/ai-connection/dist/ai-connection-client.js +0 -41
  115. package/node_modules/@undefineds.co/ai-connection/dist/client-config/base-adapter.d.ts +1 -0
  116. package/node_modules/@undefineds.co/ai-connection/dist/client-config/base-adapter.js +7 -2
  117. package/node_modules/@undefineds.co/ai-connection/dist/client-config/codex.js +3 -3
  118. package/node_modules/@undefineds.co/ai-connection/dist/client-config/index.cjs +15 -9
  119. package/node_modules/@undefineds.co/ai-connection/dist/client-config/json-env-adapter.js +4 -4
  120. package/node_modules/@undefineds.co/ai-connection/dist/client-config/pi.js +3 -3
  121. package/node_modules/@undefineds.co/ai-connection/dist/client-config/types.d.ts +1 -1
  122. package/node_modules/@undefineds.co/ai-connection/dist/controller.d.ts +2 -1
  123. package/node_modules/@undefineds.co/ai-connection/dist/controller.js +1 -0
  124. package/node_modules/@undefineds.co/ai-connection/dist/service-access.js +0 -1
  125. package/node_modules/@undefineds.co/extension-sdk/dist/web.d.ts +22 -1
  126. package/package.json +3 -3
  127. package/static/app/assets/main.js +7 -7
  128. package/static/dashboard/assets/NetworkPage-CXjiUMR1.js +2 -0
  129. package/static/dashboard/assets/{PaneListHeader-57nvMwH6.js → PaneListHeader-BSipfl0W.js} +1 -1
  130. package/static/dashboard/assets/PodPage-Bd3Xhmp-.js +2 -0
  131. package/static/dashboard/assets/ServicesPage-CI3jWZGe.js +1 -0
  132. package/static/dashboard/assets/{card-B9Zjf_2p.js → card-z5BV5hTo.js} +1 -1
  133. package/static/dashboard/assets/{dashboard-8C6o666W.js → dashboard-CSrqAv2L.js} +2 -2
  134. package/static/dashboard/assets/{database-DPh9wDY9.js → database-Ct5ZPe6L.js} +1 -1
  135. package/static/dashboard/assets/{external-link-VbMQvVMz.js → external-link-B7wD1hkm.js} +1 -1
  136. package/static/dashboard/assets/index-tOBaUnM1.js +44 -0
  137. package/static/dashboard/assets/{refresh-cw-BxVxNxNr.js → refresh-cw-CFDZPaE8.js} +1 -1
  138. package/static/dashboard/assets/{services-status-context-DKmJ7ISr.js → services-status-context-DN1Icg4A.js} +1 -1
  139. package/static/dashboard/dashboard.html +1 -1
  140. package/static/settings/assets/ModelsPage-03NPWzoX.js +1 -0
  141. package/static/settings/assets/{PaneListHeader-Bgaze006.js → PaneListHeader-DMD8OJef.js} +1 -1
  142. package/static/settings/assets/PodPage-DT4EMYhL.js +2 -0
  143. package/static/settings/assets/ServicesPage-CJ0ub6IH.js +1 -0
  144. package/static/settings/assets/SettingsPage-BkR7ZK18.js +41 -0
  145. package/static/settings/assets/{card-B_bXSIn-.js → card-Cjsia0_V.js} +1 -1
  146. package/static/settings/assets/{services-status-context-DiX-AbrP.js → services-status-context-CkuKmH5h.js} +1 -1
  147. package/static/settings/assets/{settings-B30oMfZq.js → settings-Cyyv6-SD.js} +2 -2
  148. package/static/settings/assets/{workspace-layout-Dv1Yn9Ci.js → workspace-layout-B47luv6r.js} +1 -1
  149. package/static/settings/settings.html +1 -1
  150. package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.d.ts +0 -25
  151. package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.js +0 -91
  152. package/dist/api/ai-gateway/auth/ClientCredentialsInternalPodAccessTokenProvider.js.map +0 -1
  153. package/dist/api/ai-gateway/auth/GatewayApiKey.d.ts +0 -28
  154. package/dist/api/ai-gateway/auth/GatewayApiKey.js +0 -162
  155. package/dist/api/ai-gateway/auth/GatewayApiKey.js.map +0 -1
  156. package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.d.ts +0 -56
  157. package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.js +0 -143
  158. package/dist/api/ai-gateway/auth/GatewayApiKeyAuthenticator.js.map +0 -1
  159. package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.d.ts +0 -26
  160. package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.js +0 -97
  161. package/dist/api/ai-gateway/auth/GatewayKeyLocatorCodec.js.map +0 -1
  162. package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.d.ts +0 -54
  163. package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.js +0 -152
  164. package/dist/api/ai-gateway/auth/PodGatewayAccessKeyRepository.js.map +0 -1
  165. package/static/dashboard/assets/NetworkPage-Brt79fuQ.js +0 -2
  166. package/static/dashboard/assets/PodPage-CM6do1vB.js +0 -2
  167. package/static/dashboard/assets/ServicesPage-BUNxGJRz.js +0 -1
  168. package/static/dashboard/assets/index-RfiFckzb.js +0 -51
  169. package/static/settings/assets/ModelsPage-D_IH7AH3.js +0 -1
  170. package/static/settings/assets/PodPage-Cy1VNObw.js +0 -2
  171. package/static/settings/assets/ServicesPage-BsFaxVWC.js +0 -1
  172. package/static/settings/assets/SettingsPage-UafNWE_p.js +0 -48
@@ -1,12 +1,12 @@
1
- import{g as Hp}from"./_commonjsHelpers-B-UnjaXt.js";var cr={exports:{}},li={};var Ih;function qp(){if(Ih)return li;Ih=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(s,d,h){var y=null;if(h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),"key"in d){h={};for(var x in d)x!=="key"&&(h[x]=d[x])}else h=d;return d=h.ref,{$$typeof:i,type:s,key:y,ref:d!==void 0?d:null,props:h}}return li.Fragment=c,li.jsx=r,li.jsxs=r,li}var Ph;function kp(){return Ph||(Ph=1,cr.exports=qp()),cr.exports}var f=kp(),sr={exports:{}},ue={};var em;function Yp(){if(em)return ue;em=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),B=Symbol.iterator;function Y(v){return v===null||typeof v!="object"?null:(v=B&&v[B]||v["@@iterator"],typeof v=="function"?v:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,L={};function X(v,R,H){this.props=v,this.context=R,this.refs=L,this.updater=H||Q}X.prototype.isReactComponent={},X.prototype.setState=function(v,R){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,R,"setState")},X.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function W(){}W.prototype=X.prototype;function F(v,R,H){this.props=v,this.context=R,this.refs=L,this.updater=H||Q}var le=F.prototype=new W;le.constructor=F,O(le,X.prototype),le.isPureReactComponent=!0;var ne=Array.isArray;function te(){}var Z={H:null,A:null,T:null,S:null},re=Object.prototype.hasOwnProperty;function ze(v,R,H){var q=H.ref;return{$$typeof:i,type:v,key:R,ref:q!==void 0?q:null,props:H}}function Se(v,R){return ze(v.type,R,v.props)}function He(v){return typeof v=="object"&&v!==null&&v.$$typeof===i}function _e(v){var R={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(H){return R[H]})}var qe=/\/+/g;function De(v,R){return typeof v=="object"&&v!==null&&v.key!=null?_e(""+v.key):R.toString(36)}function Ee(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(te,te):(v.status="pending",v.then(function(R){v.status==="pending"&&(v.status="fulfilled",v.value=R)},function(R){v.status==="pending"&&(v.status="rejected",v.reason=R)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function D(v,R,H,q,K){var I=typeof v;(I==="undefined"||I==="boolean")&&(v=null);var ie=!1;if(v===null)ie=!0;else switch(I){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(v.$$typeof){case i:case c:ie=!0;break;case C:return ie=v._init,D(ie(v._payload),R,H,q,K)}}if(ie)return K=K(v),ie=q===""?"."+De(v,0):q,ne(K)?(H="",ie!=null&&(H=ie.replace(qe,"$&/")+"/"),D(K,R,H,"",function(xe){return xe})):K!=null&&(He(K)&&(K=Se(K,H+(K.key==null||v&&v.key===K.key?"":(""+K.key).replace(qe,"$&/")+"/")+ie)),R.push(K)),1;ie=0;var fe=q===""?".":q+":";if(ne(v))for(var k=0;k<v.length;k++)q=v[k],I=fe+De(q,k),ie+=D(q,R,H,I,K);else if(k=Y(v),typeof k=="function")for(v=k.call(v),k=0;!(q=v.next()).done;)q=q.value,I=fe+De(q,k++),ie+=D(q,R,H,I,K);else if(I==="object"){if(typeof v.then=="function")return D(Ee(v),R,H,q,K);throw R=String(v),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return ie}function G(v,R,H){if(v==null)return v;var q=[],K=0;return D(v,q,"","",function(I){return R.call(H,I,K++)}),q}function J(v){if(v._status===-1){var R=v._result;R=R(),R.then(function(H){(v._status===0||v._status===-1)&&(v._status=1,v._result=H)},function(H){(v._status===0||v._status===-1)&&(v._status=2,v._result=H)}),v._status===-1&&(v._status=0,v._result=R)}if(v._status===1)return v._result.default;throw v._result}var ae=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},oe={map:G,forEach:function(v,R,H){G(v,function(){R.apply(this,arguments)},H)},count:function(v){var R=0;return G(v,function(){R++}),R},toArray:function(v){return G(v,function(R){return R})||[]},only:function(v){if(!He(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return ue.Activity=z,ue.Children=oe,ue.Component=X,ue.Fragment=r,ue.Profiler=d,ue.PureComponent=F,ue.StrictMode=s,ue.Suspense=p,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ue.__COMPILER_RUNTIME={__proto__:null,c:function(v){return Z.H.useMemoCache(v)}},ue.cache=function(v){return function(){return v.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(v,R,H){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var q=O({},v.props),K=v.key;if(R!=null)for(I in R.key!==void 0&&(K=""+R.key),R)!re.call(R,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&R.ref===void 0||(q[I]=R[I]);var I=arguments.length-2;if(I===1)q.children=H;else if(1<I){for(var ie=Array(I),fe=0;fe<I;fe++)ie[fe]=arguments[fe+2];q.children=ie}return ze(v.type,K,q)},ue.createContext=function(v){return v={$$typeof:y,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:h,_context:v},v},ue.createElement=function(v,R,H){var q,K={},I=null;if(R!=null)for(q in R.key!==void 0&&(I=""+R.key),R)re.call(R,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(K[q]=R[q]);var ie=arguments.length-2;if(ie===1)K.children=H;else if(1<ie){for(var fe=Array(ie),k=0;k<ie;k++)fe[k]=arguments[k+2];K.children=fe}if(v&&v.defaultProps)for(q in ie=v.defaultProps,ie)K[q]===void 0&&(K[q]=ie[q]);return ze(v,I,K)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(v){return{$$typeof:x,render:v}},ue.isValidElement=He,ue.lazy=function(v){return{$$typeof:C,_payload:{_status:-1,_result:v},_init:J}},ue.memo=function(v,R){return{$$typeof:g,type:v,compare:R===void 0?null:R}},ue.startTransition=function(v){var R=Z.T,H={};Z.T=H;try{var q=v(),K=Z.S;K!==null&&K(H,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(te,ae)}catch(I){ae(I)}finally{R!==null&&H.types!==null&&(R.types=H.types),Z.T=R}},ue.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ue.use=function(v){return Z.H.use(v)},ue.useActionState=function(v,R,H){return Z.H.useActionState(v,R,H)},ue.useCallback=function(v,R){return Z.H.useCallback(v,R)},ue.useContext=function(v){return Z.H.useContext(v)},ue.useDebugValue=function(){},ue.useDeferredValue=function(v,R){return Z.H.useDeferredValue(v,R)},ue.useEffect=function(v,R){return Z.H.useEffect(v,R)},ue.useEffectEvent=function(v){return Z.H.useEffectEvent(v)},ue.useId=function(){return Z.H.useId()},ue.useImperativeHandle=function(v,R,H){return Z.H.useImperativeHandle(v,R,H)},ue.useInsertionEffect=function(v,R){return Z.H.useInsertionEffect(v,R)},ue.useLayoutEffect=function(v,R){return Z.H.useLayoutEffect(v,R)},ue.useMemo=function(v,R){return Z.H.useMemo(v,R)},ue.useOptimistic=function(v,R){return Z.H.useOptimistic(v,R)},ue.useReducer=function(v,R,H){return Z.H.useReducer(v,R,H)},ue.useRef=function(v){return Z.H.useRef(v)},ue.useState=function(v){return Z.H.useState(v)},ue.useSyncExternalStore=function(v,R,H){return Z.H.useSyncExternalStore(v,R,H)},ue.useTransition=function(){return Z.H.useTransition()},ue.version="19.2.8",ue}var tm;function Tr(){return tm||(tm=1,sr.exports=Yp()),sr.exports}var S=Tr();const br=Hp(S);var rr={exports:{}},ni={},or={exports:{}},fr={};var am;function Gp(){return am||(am=1,(function(i){function c(D,G){var J=D.length;D.push(G);e:for(;0<J;){var ae=J-1>>>1,oe=D[ae];if(0<d(oe,G))D[ae]=G,D[J]=oe,J=ae;else break e}}function r(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var G=D[0],J=D.pop();if(J!==G){D[0]=J;e:for(var ae=0,oe=D.length,v=oe>>>1;ae<v;){var R=2*(ae+1)-1,H=D[R],q=R+1,K=D[q];if(0>d(H,J))q<oe&&0>d(K,H)?(D[ae]=K,D[q]=J,ae=q):(D[ae]=H,D[R]=J,ae=R);else if(q<oe&&0>d(K,J))D[ae]=K,D[q]=J,ae=q;else break e}}return G}function d(D,G){var J=D.sortIndex-G.sortIndex;return J!==0?J:D.id-G.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var y=Date,x=y.now();i.unstable_now=function(){return y.now()-x}}var p=[],g=[],C=1,z=null,B=3,Y=!1,Q=!1,O=!1,L=!1,X=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function le(D){for(var G=r(g);G!==null;){if(G.callback===null)s(g);else if(G.startTime<=D)s(g),G.sortIndex=G.expirationTime,c(p,G);else break;G=r(g)}}function ne(D){if(O=!1,le(D),!Q)if(r(p)!==null)Q=!0,te||(te=!0,_e());else{var G=r(g);G!==null&&Ee(ne,G.startTime-D)}}var te=!1,Z=-1,re=5,ze=-1;function Se(){return L?!0:!(i.unstable_now()-ze<re)}function He(){if(L=!1,te){var D=i.unstable_now();ze=D;var G=!0;try{e:{Q=!1,O&&(O=!1,W(Z),Z=-1),Y=!0;var J=B;try{t:{for(le(D),z=r(p);z!==null&&!(z.expirationTime>D&&Se());){var ae=z.callback;if(typeof ae=="function"){z.callback=null,B=z.priorityLevel;var oe=ae(z.expirationTime<=D);if(D=i.unstable_now(),typeof oe=="function"){z.callback=oe,le(D),G=!0;break t}z===r(p)&&s(p),le(D)}else s(p);z=r(p)}if(z!==null)G=!0;else{var v=r(g);v!==null&&Ee(ne,v.startTime-D),G=!1}}break e}finally{z=null,B=J,Y=!1}G=void 0}}finally{G?_e():te=!1}}}var _e;if(typeof F=="function")_e=function(){F(He)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,De=qe.port2;qe.port1.onmessage=He,_e=function(){De.postMessage(null)}}else _e=function(){X(He,0)};function Ee(D,G){Z=X(function(){D(i.unstable_now())},G)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return B},i.unstable_next=function(D){switch(B){case 1:case 2:case 3:var G=3;break;default:G=B}var J=B;B=G;try{return D()}finally{B=J}},i.unstable_requestPaint=function(){L=!0},i.unstable_runWithPriority=function(D,G){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var J=B;B=D;try{return G()}finally{B=J}},i.unstable_scheduleCallback=function(D,G,J){var ae=i.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ae+J:ae):J=ae,D){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=J+oe,D={id:C++,callback:G,priorityLevel:D,startTime:J,expirationTime:oe,sortIndex:-1},J>ae?(D.sortIndex=J,c(g,D),r(p)===null&&D===r(g)&&(O?(W(Z),Z=-1):O=!0,Ee(ne,J-ae))):(D.sortIndex=oe,c(p,D),Q||Y||(Q=!0,te||(te=!0,_e()))),D},i.unstable_shouldYield=Se,i.unstable_wrapCallback=function(D){var G=B;return function(){var J=B;B=G;try{return D.apply(this,arguments)}finally{B=J}}}})(fr)),fr}var lm;function Xp(){return lm||(lm=1,or.exports=Gp()),or.exports}var dr={exports:{}},ut={};var nm;function Qp(){if(nm)return ut;nm=1;var i=Tr();function c(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)g+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(c(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(p,g,C){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:z==null?null:""+z,children:p,containerInfo:g,implementation:C}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ut.createPortal=function(p,g){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(c(299));return h(p,g,null,C)},ut.flushSync=function(p){var g=y.T,C=s.p;try{if(y.T=null,s.p=2,p)return p()}finally{y.T=g,s.p=C,s.d.f()}},ut.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(p,g))},ut.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},ut.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var C=g.as,z=x(C,g.crossOrigin),B=typeof g.integrity=="string"?g.integrity:void 0,Y=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;C==="style"?s.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:z,integrity:B,fetchPriority:Y}):C==="script"&&s.d.X(p,{crossOrigin:z,integrity:B,fetchPriority:Y,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ut.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var C=x(g.as,g.crossOrigin);s.d.M(p,{crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(p)},ut.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var C=g.as,z=x(C,g.crossOrigin);s.d.L(p,C,{crossOrigin:z,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ut.preloadModule=function(p,g){if(typeof p=="string")if(g){var C=x(g.as,g.crossOrigin);s.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(p)},ut.requestFormReset=function(p){s.d.r(p)},ut.unstable_batchedUpdates=function(p,g){return p(g)},ut.useFormState=function(p,g,C){return y.H.useFormState(p,g,C)},ut.useFormStatus=function(){return y.H.useHostTransitionStatus()},ut.version="19.2.8",ut}var im;function Zp(){if(im)return dr.exports;im=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),dr.exports=Qp(),dr.exports}var um;function Vp(){if(um)return ni;um=1;var i=Xp(),c=Tr(),r=Zp();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(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 y(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 x(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 p(e){if(h(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var u=n.alternate;if(u===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===a)return p(n),e;if(u===l)return p(n),t;u=u.sibling}throw Error(s(188))}if(a.return!==l.return)a=n,l=u;else{for(var o=!1,m=n.child;m;){if(m===a){o=!0,a=n,l=u;break}if(m===l){o=!0,l=n,a=u;break}m=m.sibling}if(!o){for(m=u.child;m;){if(m===a){o=!0,a=u,l=n;break}if(m===l){o=!0,l=u,a=n;break}m=m.sibling}if(!o)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,B=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),F=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ze=Symbol.for("react.activity"),Se=Symbol.for("react.memo_cache_sentinel"),He=Symbol.iterator;function _e(e){return e===null||typeof e!="object"?null:(e=He&&e[He]||e["@@iterator"],typeof e=="function"?e:null)}var qe=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case X:return"Profiler";case L:return"StrictMode";case ne:return"Suspense";case te:return"SuspenseList";case ze:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case F:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case re:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Ee=Array.isArray,D=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ae=[],oe=-1;function v(e){return{current:e}}function R(e){0>oe||(e.current=ae[oe],ae[oe]=null,oe--)}function H(e,t){oe++,ae[oe]=e.current,e.current=t}var q=v(null),K=v(null),I=v(null),ie=v(null);function fe(e,t){switch(H(I,t),H(K,e),H(q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sh(t),e=wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(q),H(q,e)}function k(){R(q),R(K),R(I)}function xe(e){e.memoizedState!==null&&H(ie,e);var t=q.current,a=wh(t,e.type);t!==a&&(H(K,e),H(q,a))}function Ne(e){K.current===e&&(R(q),R(K)),ie.current===e&&(R(ie),Pn._currentValue=J)}var Yt,yt;function nt(e){if(Yt===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Yt=t&&t[1]||"",yt=-1<a.stack.indexOf(`
1
+ import{g as Hp}from"./_commonjsHelpers-B-UnjaXt.js";var cr={exports:{}},ni={};var Ih;function kp(){if(Ih)return ni;Ih=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(s,d,h){var y=null;if(h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),"key"in d){h={};for(var x in d)x!=="key"&&(h[x]=d[x])}else h=d;return d=h.ref,{$$typeof:i,type:s,key:y,ref:d!==void 0?d:null,props:h}}return ni.Fragment=c,ni.jsx=r,ni.jsxs=r,ni}var Ph;function qp(){return Ph||(Ph=1,cr.exports=kp()),cr.exports}var f=qp(),sr={exports:{}},ue={};var em;function Yp(){if(em)return ue;em=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),B=Symbol.iterator;function k(v){return v===null||typeof v!="object"?null:(v=B&&v[B]||v["@@iterator"],typeof v=="function"?v:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,L={};function G(v,T,H){this.props=v,this.context=T,this.refs=L,this.updater=H||X}G.prototype.isReactComponent={},G.prototype.setState=function(v,T){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,T,"setState")},G.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function I(){}I.prototype=G.prototype;function F(v,T,H){this.props=v,this.context=T,this.refs=L,this.updater=H||X}var ce=F.prototype=new I;ce.constructor=F,O(ce,G.prototype),ce.isPureReactComponent=!0;var ne=Array.isArray;function ae(){}var V={H:null,A:null,T:null,S:null},re=Object.prototype.hasOwnProperty;function Ee(v,T,H){var Q=H.ref;return{$$typeof:i,type:v,key:T,ref:Q!==void 0?Q:null,props:H}}function be(v,T){return Ee(v.type,T,v.props)}function ke(v){return typeof v=="object"&&v!==null&&v.$$typeof===i}function Ue(v){var T={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(H){return T[H]})}var qe=/\/+/g;function _e(v,T){return typeof v=="object"&&v!==null&&v.key!=null?Ue(""+v.key):T.toString(36)}function Ne(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(ae,ae):(v.status="pending",v.then(function(T){v.status==="pending"&&(v.status="fulfilled",v.value=T)},function(T){v.status==="pending"&&(v.status="rejected",v.reason=T)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function D(v,T,H,Q,Y){var $=typeof v;($==="undefined"||$==="boolean")&&(v=null);var le=!1;if(v===null)le=!0;else switch($){case"bigint":case"string":case"number":le=!0;break;case"object":switch(v.$$typeof){case i:case c:le=!0;break;case C:return le=v._init,D(le(v._payload),T,H,Q,Y)}}if(le)return Y=Y(v),le=Q===""?"."+_e(v,0):Q,ne(Y)?(H="",le!=null&&(H=le.replace(qe,"$&/")+"/"),D(Y,T,H,"",function(Z){return Z})):Y!=null&&(ke(Y)&&(Y=be(Y,H+(Y.key==null||v&&v.key===Y.key?"":(""+Y.key).replace(qe,"$&/")+"/")+le)),T.push(Y)),1;le=0;var ge=Q===""?".":Q+":";if(ne(v))for(var ie=0;ie<v.length;ie++)Q=v[ie],$=ge+_e(Q,ie),le+=D(Q,T,H,$,Y);else if(ie=k(v),typeof ie=="function")for(v=ie.call(v),ie=0;!(Q=v.next()).done;)Q=Q.value,$=ge+_e(Q,ie++),le+=D(Q,T,H,$,Y);else if($==="object"){if(typeof v.then=="function")return D(Ne(v),T,H,Q,Y);throw T=String(v),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.")}return le}function q(v,T,H){if(v==null)return v;var Q=[],Y=0;return D(v,Q,"","",function($){return T.call(H,$,Y++)}),Q}function J(v){if(v._status===-1){var T=v._result;T=T(),T.then(function(H){(v._status===0||v._status===-1)&&(v._status=1,v._result=H)},function(H){(v._status===0||v._status===-1)&&(v._status=2,v._result=H)}),v._status===-1&&(v._status=0,v._result=T)}if(v._status===1)return v._result.default;throw v._result}var te=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(T))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},fe={map:q,forEach:function(v,T,H){q(v,function(){T.apply(this,arguments)},H)},count:function(v){var T=0;return q(v,function(){T++}),T},toArray:function(v){return q(v,function(T){return T})||[]},only:function(v){if(!ke(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return ue.Activity=z,ue.Children=fe,ue.Component=G,ue.Fragment=r,ue.Profiler=d,ue.PureComponent=F,ue.StrictMode=s,ue.Suspense=p,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ue.__COMPILER_RUNTIME={__proto__:null,c:function(v){return V.H.useMemoCache(v)}},ue.cache=function(v){return function(){return v.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(v,T,H){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var Q=O({},v.props),Y=v.key;if(T!=null)for($ in T.key!==void 0&&(Y=""+T.key),T)!re.call(T,$)||$==="key"||$==="__self"||$==="__source"||$==="ref"&&T.ref===void 0||(Q[$]=T[$]);var $=arguments.length-2;if($===1)Q.children=H;else if(1<$){for(var le=Array($),ge=0;ge<$;ge++)le[ge]=arguments[ge+2];Q.children=le}return Ee(v.type,Y,Q)},ue.createContext=function(v){return v={$$typeof:y,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:h,_context:v},v},ue.createElement=function(v,T,H){var Q,Y={},$=null;if(T!=null)for(Q in T.key!==void 0&&($=""+T.key),T)re.call(T,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(Y[Q]=T[Q]);var le=arguments.length-2;if(le===1)Y.children=H;else if(1<le){for(var ge=Array(le),ie=0;ie<le;ie++)ge[ie]=arguments[ie+2];Y.children=ge}if(v&&v.defaultProps)for(Q in le=v.defaultProps,le)Y[Q]===void 0&&(Y[Q]=le[Q]);return Ee(v,$,Y)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(v){return{$$typeof:x,render:v}},ue.isValidElement=ke,ue.lazy=function(v){return{$$typeof:C,_payload:{_status:-1,_result:v},_init:J}},ue.memo=function(v,T){return{$$typeof:g,type:v,compare:T===void 0?null:T}},ue.startTransition=function(v){var T=V.T,H={};V.T=H;try{var Q=v(),Y=V.S;Y!==null&&Y(H,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(ae,te)}catch($){te($)}finally{T!==null&&H.types!==null&&(T.types=H.types),V.T=T}},ue.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ue.use=function(v){return V.H.use(v)},ue.useActionState=function(v,T,H){return V.H.useActionState(v,T,H)},ue.useCallback=function(v,T){return V.H.useCallback(v,T)},ue.useContext=function(v){return V.H.useContext(v)},ue.useDebugValue=function(){},ue.useDeferredValue=function(v,T){return V.H.useDeferredValue(v,T)},ue.useEffect=function(v,T){return V.H.useEffect(v,T)},ue.useEffectEvent=function(v){return V.H.useEffectEvent(v)},ue.useId=function(){return V.H.useId()},ue.useImperativeHandle=function(v,T,H){return V.H.useImperativeHandle(v,T,H)},ue.useInsertionEffect=function(v,T){return V.H.useInsertionEffect(v,T)},ue.useLayoutEffect=function(v,T){return V.H.useLayoutEffect(v,T)},ue.useMemo=function(v,T){return V.H.useMemo(v,T)},ue.useOptimistic=function(v,T){return V.H.useOptimistic(v,T)},ue.useReducer=function(v,T,H){return V.H.useReducer(v,T,H)},ue.useRef=function(v){return V.H.useRef(v)},ue.useState=function(v){return V.H.useState(v)},ue.useSyncExternalStore=function(v,T,H){return V.H.useSyncExternalStore(v,T,H)},ue.useTransition=function(){return V.H.useTransition()},ue.version="19.2.8",ue}var tm;function Tr(){return tm||(tm=1,sr.exports=Yp()),sr.exports}var S=Tr();const br=Hp(S);var rr={exports:{}},ii={},or={exports:{}},fr={};var am;function Gp(){return am||(am=1,(function(i){function c(D,q){var J=D.length;D.push(q);e:for(;0<J;){var te=J-1>>>1,fe=D[te];if(0<d(fe,q))D[te]=q,D[J]=fe,J=te;else break e}}function r(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var q=D[0],J=D.pop();if(J!==q){D[0]=J;e:for(var te=0,fe=D.length,v=fe>>>1;te<v;){var T=2*(te+1)-1,H=D[T],Q=T+1,Y=D[Q];if(0>d(H,J))Q<fe&&0>d(Y,H)?(D[te]=Y,D[Q]=J,te=Q):(D[te]=H,D[T]=J,te=T);else if(Q<fe&&0>d(Y,J))D[te]=Y,D[Q]=J,te=Q;else break e}}return q}function d(D,q){var J=D.sortIndex-q.sortIndex;return J!==0?J:D.id-q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var y=Date,x=y.now();i.unstable_now=function(){return y.now()-x}}var p=[],g=[],C=1,z=null,B=3,k=!1,X=!1,O=!1,L=!1,G=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function ce(D){for(var q=r(g);q!==null;){if(q.callback===null)s(g);else if(q.startTime<=D)s(g),q.sortIndex=q.expirationTime,c(p,q);else break;q=r(g)}}function ne(D){if(O=!1,ce(D),!X)if(r(p)!==null)X=!0,ae||(ae=!0,Ue());else{var q=r(g);q!==null&&Ne(ne,q.startTime-D)}}var ae=!1,V=-1,re=5,Ee=-1;function be(){return L?!0:!(i.unstable_now()-Ee<re)}function ke(){if(L=!1,ae){var D=i.unstable_now();Ee=D;var q=!0;try{e:{X=!1,O&&(O=!1,I(V),V=-1),k=!0;var J=B;try{t:{for(ce(D),z=r(p);z!==null&&!(z.expirationTime>D&&be());){var te=z.callback;if(typeof te=="function"){z.callback=null,B=z.priorityLevel;var fe=te(z.expirationTime<=D);if(D=i.unstable_now(),typeof fe=="function"){z.callback=fe,ce(D),q=!0;break t}z===r(p)&&s(p),ce(D)}else s(p);z=r(p)}if(z!==null)q=!0;else{var v=r(g);v!==null&&Ne(ne,v.startTime-D),q=!1}}break e}finally{z=null,B=J,k=!1}q=void 0}}finally{q?Ue():ae=!1}}}var Ue;if(typeof F=="function")Ue=function(){F(ke)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,_e=qe.port2;qe.port1.onmessage=ke,Ue=function(){_e.postMessage(null)}}else Ue=function(){G(ke,0)};function Ne(D,q){V=G(function(){D(i.unstable_now())},q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return B},i.unstable_next=function(D){switch(B){case 1:case 2:case 3:var q=3;break;default:q=B}var J=B;B=q;try{return D()}finally{B=J}},i.unstable_requestPaint=function(){L=!0},i.unstable_runWithPriority=function(D,q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var J=B;B=D;try{return q()}finally{B=J}},i.unstable_scheduleCallback=function(D,q,J){var te=i.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?te+J:te):J=te,D){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=J+fe,D={id:C++,callback:q,priorityLevel:D,startTime:J,expirationTime:fe,sortIndex:-1},J>te?(D.sortIndex=J,c(g,D),r(p)===null&&D===r(g)&&(O?(I(V),V=-1):O=!0,Ne(ne,J-te))):(D.sortIndex=fe,c(p,D),X||k||(X=!0,ae||(ae=!0,Ue()))),D},i.unstable_shouldYield=be,i.unstable_wrapCallback=function(D){var q=B;return function(){var J=B;B=q;try{return D.apply(this,arguments)}finally{B=J}}}})(fr)),fr}var lm;function Xp(){return lm||(lm=1,or.exports=Gp()),or.exports}var dr={exports:{}},ct={};var nm;function Qp(){if(nm)return ct;nm=1;var i=Tr();function c(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)g+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(c(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(p,g,C){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:z==null?null:""+z,children:p,containerInfo:g,implementation:C}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ct.createPortal=function(p,g){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(c(299));return h(p,g,null,C)},ct.flushSync=function(p){var g=y.T,C=s.p;try{if(y.T=null,s.p=2,p)return p()}finally{y.T=g,s.p=C,s.d.f()}},ct.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(p,g))},ct.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},ct.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var C=g.as,z=x(C,g.crossOrigin),B=typeof g.integrity=="string"?g.integrity:void 0,k=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;C==="style"?s.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:z,integrity:B,fetchPriority:k}):C==="script"&&s.d.X(p,{crossOrigin:z,integrity:B,fetchPriority:k,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ct.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var C=x(g.as,g.crossOrigin);s.d.M(p,{crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(p)},ct.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var C=g.as,z=x(C,g.crossOrigin);s.d.L(p,C,{crossOrigin:z,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ct.preloadModule=function(p,g){if(typeof p=="string")if(g){var C=x(g.as,g.crossOrigin);s.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:C,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(p)},ct.requestFormReset=function(p){s.d.r(p)},ct.unstable_batchedUpdates=function(p,g){return p(g)},ct.useFormState=function(p,g,C){return y.H.useFormState(p,g,C)},ct.useFormStatus=function(){return y.H.useHostTransitionStatus()},ct.version="19.2.8",ct}var im;function Zp(){if(im)return dr.exports;im=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),dr.exports=Qp(),dr.exports}var um;function Vp(){if(um)return ii;um=1;var i=Xp(),c=Tr(),r=Zp();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(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 y(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 x(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 p(e){if(h(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var u=n.alternate;if(u===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===a)return p(n),e;if(u===l)return p(n),t;u=u.sibling}throw Error(s(188))}if(a.return!==l.return)a=n,l=u;else{for(var o=!1,m=n.child;m;){if(m===a){o=!0,a=n,l=u;break}if(m===l){o=!0,l=n,a=u;break}m=m.sibling}if(!o){for(m=u.child;m;){if(m===a){o=!0,a=u,l=n;break}if(m===l){o=!0,l=u,a=n;break}m=m.sibling}if(!o)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,B=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),F=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),be=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function Ue(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var qe=Symbol.for("react.client.reference");function _e(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case G:return"Profiler";case L:return"StrictMode";case ne:return"Suspense";case ae:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case X:return"Portal";case F:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case ce:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:_e(e.type)||"Memo";case re:t=e._payload,e=e._init;try{return _e(e(t))}catch{}}return null}var Ne=Array.isArray,D=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},te=[],fe=-1;function v(e){return{current:e}}function T(e){0>fe||(e.current=te[fe],te[fe]=null,fe--)}function H(e,t){fe++,te[fe]=e.current,e.current=t}var Q=v(null),Y=v(null),$=v(null),le=v(null);function ge(e,t){switch(H($,t),H(Y,e),H(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sh(t),e=wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}T(Q),H(Q,e)}function ie(){T(Q),T(Y),T($)}function Z(e){e.memoizedState!==null&&H(le,e);var t=Q.current,a=wh(t,e.type);t!==a&&(H(Y,e),H(Q,a))}function we(e){Y.current===e&&(T(Q),T(Y)),le.current===e&&(T(le),ei._currentValue=J)}var Re,Kt;function Ie(e){if(Re===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Re=t&&t[1]||"",Kt=-1<a.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+Yt+e+yt}var ke=!1;function Gt(e,t){if(!e||ke)return"";ke=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[])}catch(T){var A=T}Reflect.construct(e,[],M)}else{try{M.call()}catch(T){A=T}e.call(M.prototype)}}else{try{throw Error()}catch(T){A=T}(M=e())&&typeof M.catch=="function"&&M.catch(function(){})}}catch(T){if(T&&A&&typeof T.stack=="string")return[T.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),o=u[0],m=u[1];if(o&&m){var b=o.split(`
3
+ `+Re+e+Kt}var At=!1;function Ye(e,t){if(!e||At)return"";At=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[])}catch(R){var A=R}Reflect.construct(e,[],M)}else{try{M.call()}catch(R){A=R}e.call(M.prototype)}}else{try{throw Error()}catch(R){A=R}(M=e())&&typeof M.catch=="function"&&M.catch(function(){})}}catch(R){if(R&&A&&typeof R.stack=="string")return[R.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),o=u[0],m=u[1];if(o&&m){var b=o.split(`
4
4
  `),N=m.split(`
5
5
  `);for(n=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;n<N.length&&!N[n].includes("DetermineComponentFrameRoot");)n++;if(l===b.length||n===N.length)for(l=b.length-1,n=N.length-1;1<=l&&0<=n&&b[l]!==N[n];)n--;for(;1<=l&&0<=n;l--,n--)if(b[l]!==N[n]){if(l!==1||n!==1)do if(l--,n--,0>n||b[l]!==N[n]){var _=`
6
- `+b[l].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=l&&0<=n);break}}}finally{ke=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?nt(a):""}function it(e,t){switch(e.tag){case 26:case 27:case 5:return nt(e.type);case 16:return nt("Lazy");case 13:return e.child!==t&&t!==null?nt("Suspense Fallback"):nt("Suspense");case 19:return nt("SuspenseList");case 0:case 15:return Gt(e.type,!1);case 11:return Gt(e.type.render,!1);case 1:return Gt(e.type,!0);case 31:return nt("Activity");default:return""}}function ta(e){try{var t="",a=null;do t+=it(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
6
+ `+b[l].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=l&&0<=n);break}}}finally{At=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ie(a):""}function aa(e,t){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie("Lazy");case 13:return e.child!==t&&t!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return Ye(e.type,!1);case 11:return Ye(e.type.render,!1);case 1:return Ye(e.type,!0);case 31:return Ie("Activity");default:return""}}function tt(e){try{var t="",a=null;do t+=aa(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
7
7
  Error generating stack: `+l.message+`
8
- `+l.stack}}var aa=Object.prototype.hasOwnProperty,vl=i.unstable_scheduleCallback,Fu=i.unstable_cancelCallback,p0=i.unstable_shouldYield,g0=i.unstable_requestPaint,pt=i.unstable_now,v0=i.unstable_getCurrentPriorityLevel,Wr=i.unstable_ImmediatePriority,Ir=i.unstable_UserBlockingPriority,di=i.unstable_NormalPriority,x0=i.unstable_LowPriority,Pr=i.unstable_IdlePriority,b0=i.log,S0=i.unstable_setDisableYieldValue,fn=null,gt=null;function Ea(e){if(typeof b0=="function"&&S0(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(fn,e)}catch{}}var vt=Math.clz32?Math.clz32:z0,w0=Math.log,j0=Math.LN2;function z0(e){return e>>>=0,e===0?32:31-(w0(e)/j0|0)|0}var hi=256,mi=262144,yi=4194304;function Ia(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function pi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,u=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var m=l&134217727;return m!==0?(l=m&~u,l!==0?n=Ia(l):(o&=m,o!==0?n=Ia(o):a||(a=m&~e,a!==0&&(n=Ia(a))))):(m=l&~u,m!==0?n=Ia(m):o!==0?n=Ia(o):a||(a=l&~e,a!==0&&(n=Ia(a)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:n}function dn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function E0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function eo(){var e=yi;return yi<<=1,(yi&62914560)===0&&(yi=4194304),e}function Ju(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function N0(e,t,a,l,n,u){var o=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 m=e.entanglements,b=e.expirationTimes,N=e.hiddenUpdates;for(a=o&~a;0<a;){var _=31-vt(a),M=1<<_;m[_]=0,b[_]=-1;var A=N[_];if(A!==null)for(N[_]=null,_=0;_<A.length;_++){var T=A[_];T!==null&&(T.lane&=-536870913)}a&=~M}l!==0&&to(e,l,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(o&~t))}function to(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function ao(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-vt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function lo(e,t){var a=t&-t;return a=(a&42)!==0?1:$u(a),(a&(e.suspendedLanes|t))!==0?0:a}function $u(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 Wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function no(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Zh(e.type))}function io(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var Na=Math.random().toString(36).slice(2),Pe="__reactFiber$"+Na,st="__reactProps$"+Na,xl="__reactContainer$"+Na,Iu="__reactEvents$"+Na,C0="__reactListeners$"+Na,A0="__reactHandles$"+Na,uo="__reactResources$"+Na,mn="__reactMarker$"+Na;function Pu(e){delete e[Pe],delete e[st],delete e[Iu],delete e[C0],delete e[A0]}function bl(e){var t=e[Pe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[xl]||a[Pe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Th(e);e!==null;){if(a=e[Pe])return a;e=Th(e)}return t}e=a,a=e.parentNode}return null}function Sl(e){if(e=e[Pe]||e[xl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function wl(e){var t=e[uo];return t||(t=e[uo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[mn]=!0}var co=new Set,so={};function Pa(e,t){jl(e,t),jl(e+"Capture",t)}function jl(e,t){for(so[e]=t,e=0;e<t.length;e++)co.add(t[e])}var T0=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]*$"),ro={},oo={};function R0(e){return aa.call(oo,e)?!0:aa.call(ro,e)?!1:T0.test(e)?oo[e]=!0:(ro[e]=!0,!1)}function gi(e,t,a){if(R0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function vi(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}e.setAttribute(t,""+a)}}function la(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function D0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){a=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ec(e){if(!e._valueTracker){var t=fo(e)?"checked":"value";e._valueTracker=D0(e,t,""+e[t])}}function ho(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=fo(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function xi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _0=/[\n"\\]/g;function Tt(e){return e.replace(_0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tc(e,t,a,l,n,u,o,m){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?ac(e,o,At(t)):a!=null?ac(e,o,At(a)):l!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+At(m):e.removeAttribute("name")}function mo(e,t,a,l,n,u,o,m){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ec(e);return}a=a!=null?""+At(a):"",t=t!=null?""+At(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=m?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),ec(e)}function ac(e,t,a){t==="number"&&xi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function zl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+At(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function yo(e,t,a){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+At(a):""}function po(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(Ee(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=At(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),ec(e)}function El(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var U0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function go(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||U0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function vo(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&go(e,n,l)}else for(var u in t)t.hasOwnProperty(u)&&go(e,u,t[u])}function lc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var O0=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"]]),M0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bi(e){return M0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var nc=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nl=null,Cl=null;function xo(e){var t=Sl(e);if(t&&(e=t.stateNode)){var a=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(tc(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(a=a.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[st]||null;if(!n)throw Error(s(90));tc(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&ho(l)}break e;case"textarea":yo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&zl(e,!!a.multiple,t,!1)}}}var uc=!1;function bo(e,t,a){if(uc)return e(t,a);uc=!0;try{var l=e(t);return l}finally{if(uc=!1,(Nl!==null||Cl!==null)&&(cu(),Nl&&(t=Nl,e=Cl,Cl=Nl=null,xo(t),e)))for(t=0;t<e.length;t++)xo(e[t])}}function pn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[st]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cc=!1;if(ia)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){cc=!0}}),window.addEventListener("test",gn,gn),window.removeEventListener("test",gn,gn)}catch{cc=!1}var Ca=null,sc=null,Si=null;function So(){if(Si)return Si;var e,t=sc,a=t.length,l,n="value"in Ca?Ca.value:Ca.textContent,u=n.length;for(e=0;e<a&&t[e]===n[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===n[u-l];l++);return Si=n.slice(e,1<l?1-l:void 0)}function wi(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 ji(){return!0}function wo(){return!1}function rt(e){function t(a,l,n,u,o){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(u):u[m]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ji:wo,this.isPropagationStopped=wo,this}return z(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=ji)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ji)},persist:function(){},isPersistent:ji}),t}var el={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zi=rt(el),vn=z({},el,{view:0,detail:0}),L0=rt(vn),rc,oc,xn,Ei=z({},vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,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!==xn&&(xn&&e.type==="mousemove"?(rc=e.screenX-xn.screenX,oc=e.screenY-xn.screenY):oc=rc=0,xn=e),rc)},movementY:function(e){return"movementY"in e?e.movementY:oc}}),jo=rt(Ei),B0=z({},Ei,{dataTransfer:0}),H0=rt(B0),q0=z({},vn,{relatedTarget:0}),fc=rt(q0),k0=z({},el,{animationName:0,elapsedTime:0,pseudoElement:0}),Y0=rt(k0),G0=z({},el,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),X0=rt(G0),Q0=z({},el,{data:0}),zo=rt(Q0),Z0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V0={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"},K0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K0[e])?!!t[e]:!1}function dc(){return F0}var J0=z({},vn,{key:function(e){if(e.key){var t=Z0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$0=rt(J0),W0=z({},Ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eo=rt(W0),I0=z({},vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),P0=rt(I0),ey=z({},el,{propertyName:0,elapsedTime:0,pseudoElement:0}),ty=rt(ey),ay=z({},Ei,{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}),ly=rt(ay),ny=z({},el,{newState:0,oldState:0}),iy=rt(ny),uy=[9,13,27,32],hc=ia&&"CompositionEvent"in window,bn=null;ia&&"documentMode"in document&&(bn=document.documentMode);var cy=ia&&"TextEvent"in window&&!bn,No=ia&&(!hc||bn&&8<bn&&11>=bn),Co=" ",Ao=!1;function To(e,t){switch(e){case"keyup":return uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ro(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Al=!1;function sy(e,t){switch(e){case"compositionend":return Ro(t);case"keypress":return t.which!==32?null:(Ao=!0,Co);case"textInput":return e=t.data,e===Co&&Ao?null:e;default:return null}}function ry(e,t){if(Al)return e==="compositionend"||!hc&&To(e,t)?(e=So(),Si=sc=Ca=null,Al=!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 No&&t.locale!=="ko"?null:t.data;default:return null}}var oy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Do(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oy[e.type]:t==="textarea"}function _o(e,t,a,l){Nl?Cl?Cl.push(l):Cl=[l]:Nl=l,t=mu(t,"onChange"),0<t.length&&(a=new zi("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Sn=null,wn=null;function fy(e){yh(e,0)}function Ni(e){var t=yn(e);if(ho(t))return e}function Uo(e,t){if(e==="change")return t}var Oo=!1;if(ia){var mc;if(ia){var yc="oninput"in document;if(!yc){var Mo=document.createElement("div");Mo.setAttribute("oninput","return;"),yc=typeof Mo.oninput=="function"}mc=yc}else mc=!1;Oo=mc&&(!document.documentMode||9<document.documentMode)}function Lo(){Sn&&(Sn.detachEvent("onpropertychange",Bo),wn=Sn=null)}function Bo(e){if(e.propertyName==="value"&&Ni(wn)){var t=[];_o(t,wn,e,ic(e)),bo(fy,t)}}function dy(e,t,a){e==="focusin"?(Lo(),Sn=t,wn=a,Sn.attachEvent("onpropertychange",Bo)):e==="focusout"&&Lo()}function hy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ni(wn)}function my(e,t){if(e==="click")return Ni(t)}function yy(e,t){if(e==="input"||e==="change")return Ni(t)}function py(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:py;function jn(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!aa.call(t,n)||!xt(e[n],t[n]))return!1}return!0}function Ho(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qo(e,t){var a=Ho(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ho(a)}}function ko(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ko(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xi(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=xi(e.document)}return t}function pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var gy=ia&&"documentMode"in document&&11>=document.documentMode,Tl=null,gc=null,zn=null,vc=!1;function Go(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;vc||Tl==null||Tl!==xi(l)||(l=Tl,"selectionStart"in l&&pc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),zn&&jn(zn,l)||(zn=l,l=mu(gc,"onSelect"),0<l.length&&(t=new zi("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Tl)))}function tl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Rl={animationend:tl("Animation","AnimationEnd"),animationiteration:tl("Animation","AnimationIteration"),animationstart:tl("Animation","AnimationStart"),transitionrun:tl("Transition","TransitionRun"),transitionstart:tl("Transition","TransitionStart"),transitioncancel:tl("Transition","TransitionCancel"),transitionend:tl("Transition","TransitionEnd")},xc={},Xo={};ia&&(Xo=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function al(e){if(xc[e])return xc[e];if(!Rl[e])return e;var t=Rl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Xo)return xc[e]=t[a];return e}var Qo=al("animationend"),Zo=al("animationiteration"),Vo=al("animationstart"),vy=al("transitionrun"),xy=al("transitionstart"),by=al("transitioncancel"),Ko=al("transitionend"),Fo=new Map,bc="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(" ");bc.push("scrollEnd");function Xt(e,t){Fo.set(e,t),Pa(t,[e])}var Ci=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)},Rt=[],Dl=0,Sc=0;function Ai(){for(var e=Dl,t=Sc=Dl=0;t<e;){var a=Rt[t];Rt[t++]=null;var l=Rt[t];Rt[t++]=null;var n=Rt[t];Rt[t++]=null;var u=Rt[t];if(Rt[t++]=null,l!==null&&n!==null){var o=l.pending;o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n}u!==0&&Jo(a,n,u)}}function Ti(e,t,a,l){Rt[Dl++]=e,Rt[Dl++]=t,Rt[Dl++]=a,Rt[Dl++]=l,Sc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function wc(e,t,a,l){return Ti(e,t,a,l),Ri(e)}function ll(e,t){return Ti(e,null,null,t),Ri(e)}function Jo(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-vt(a),e=u.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),u):null}function Ri(e){if(50<Vn)throw Vn=0,Ds=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _l={};function Sy(e,t,a,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,a,l){return new Sy(e,t,a,l)}function jc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var a=e.alternate;return a===null?(a=bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),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},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function $o(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.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}),e}function Di(e,t,a,l,n,u){var o=0;if(l=e,typeof e=="function")jc(e)&&(o=1);else if(typeof e=="string")o=Np(e,a,q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ze:return e=bt(31,a,t,n),e.elementType=ze,e.lanes=u,e;case O:return nl(a.children,n,u,t);case L:o=8,n|=24;break;case X:return e=bt(12,a,t,n|2),e.elementType=X,e.lanes=u,e;case ne:return e=bt(13,a,t,n),e.elementType=ne,e.lanes=u,e;case te:return e=bt(19,a,t,n),e.elementType=te,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:o=10;break e;case W:o=9;break e;case le:o=11;break e;case Z:o=14;break e;case re:o=16,l=null;break e}o=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=bt(o,a,t,n),t.elementType=e,t.type=l,t.lanes=u,t}function nl(e,t,a,l){return e=bt(7,e,l,t),e.lanes=a,e}function zc(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function Wo(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Ec(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Io=new WeakMap;function Dt(e,t){if(typeof e=="object"&&e!==null){var a=Io.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ta(t)},Io.set(e,t),t)}return{value:e,source:t,stack:ta(t)}}var Ul=[],Ol=0,_i=null,En=0,_t=[],Ut=0,Aa=null,Ft=1,Jt="";function ca(e,t){Ul[Ol++]=En,Ul[Ol++]=_i,_i=e,En=t}function Po(e,t,a){_t[Ut++]=Ft,_t[Ut++]=Jt,_t[Ut++]=Aa,Aa=e;var l=Ft;e=Jt;var n=32-vt(l)-1;l&=~(1<<n),a+=1;var u=32-vt(t)+n;if(30<u){var o=n-n%5;u=(l&(1<<o)-1).toString(32),l>>=o,n-=o,Ft=1<<32-vt(t)+n|a<<n|l,Jt=u+e}else Ft=1<<u|a<<n|l,Jt=e}function Nc(e){e.return!==null&&(ca(e,1),Po(e,1,0))}function Cc(e){for(;e===_i;)_i=Ul[--Ol],Ul[Ol]=null,En=Ul[--Ol],Ul[Ol]=null;for(;e===Aa;)Aa=_t[--Ut],_t[Ut]=null,Jt=_t[--Ut],_t[Ut]=null,Ft=_t[--Ut],_t[Ut]=null}function ef(e,t){_t[Ut++]=Ft,_t[Ut++]=Jt,_t[Ut++]=Aa,Ft=t.id,Jt=t.overflow,Aa=e}var et=null,Ue=null,pe=!1,Ta=null,Ot=!1,Ac=Error(s(519));function Ra(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nn(Dt(t,e)),Ac}function tf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Pe]=e,t[st]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<Fn.length;a++)he(Fn[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),mo(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),po(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||xh(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||Ra(e,!0)}function af(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Ot=!1;return;case 27:case 3:Ot=!0;return;default:et=et.return}}function Ml(e){if(e!==et)return!1;if(!pe)return af(e),pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Vs(e.type,e.memoizedProps)),a=!a),a&&Ue&&Ra(e),af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ue=Ah(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ue=Ah(e)}else t===27?(t=Ue,Qa(e.type)?(e=Ws,Ws=null,Ue=e):Ue=t):Ue=et?Lt(e.stateNode.nextSibling):null;return!0}function il(){Ue=et=null,pe=!1}function Tc(){var e=Ta;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),Ta=null),e}function Nn(e){Ta===null?Ta=[e]:Ta.push(e)}var Rc=v(null),ul=null,sa=null;function Da(e,t,a){H(Rc,t._currentValue),t._currentValue=a}function ra(e){e._currentValue=Rc.current,R(Rc)}function Dc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function _c(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var o=n.child;u=u.firstContext;e:for(;u!==null;){var m=u;u=n;for(var b=0;b<t.length;b++)if(m.context===t[b]){u.lanes|=a,m=u.alternate,m!==null&&(m.lanes|=a),Dc(u.return,a,e),l||(o=null);break e}u=m.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(s(341));o.lanes|=a,u=o.alternate,u!==null&&(u.lanes|=a),Dc(o,a,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Ll(e,t,a,l){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var m=n.type;xt(n.pendingProps.value,o.value)||(e!==null?e.push(m):e=[m])}}else if(n===ie.current){if(o=n.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Pn):e=[Pn])}n=n.return}e!==null&&_c(t,e,a,l),t.flags|=262144}function Ui(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cl(e){ul=e,sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return lf(ul,e)}function Oi(e,t){return ul===null&&cl(e),lf(e,t)}function lf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},sa===null){if(e===null)throw Error(s(308));sa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sa=sa.next=t;return a}var wy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},jy=i.unstable_scheduleCallback,zy=i.unstable_NormalPriority,Ve={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uc(){return{controller:new wy,data:new Map,refCount:0}}function Cn(e){e.refCount--,e.refCount===0&&jy(zy,function(){e.controller.abort()})}var An=null,Oc=0,Bl=0,Hl=null;function Ey(e,t){if(An===null){var a=An=[];Oc=0,Bl=Bs(),Hl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Oc++,t.then(nf,nf),t}function nf(){if(--Oc===0&&An!==null){Hl!==null&&(Hl.status="fulfilled");var e=An;An=null,Bl=0,Hl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ny(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var uf=D.S;D.S=function(e,t){Xd=pt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ey(e,t),uf!==null&&uf(e,t)};var sl=v(null);function Mc(){var e=sl.current;return e!==null?e:Re.pooledCache}function Mi(e,t){t===null?H(sl,sl.current):H(sl,t.pool)}function cf(){var e=Mc();return e===null?null:{parent:Ve._currentValue,pool:e}}var ql=Error(s(460)),Lc=Error(s(474)),Li=Error(s(542)),Bi={then:function(){}};function sf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(na,na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ff(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ff(e),e}throw ol=t,ql}}function rl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ol=a,ql):a}}var ol=null;function of(){if(ol===null)throw Error(s(459));var e=ol;return ol=null,e}function ff(e){if(e===ql||e===Li)throw Error(s(483))}var kl=null,Tn=0;function Hi(e){var t=Tn;return Tn+=1,kl===null&&(kl=[]),rf(kl,e,t)}function Rn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qi(e,t){throw t.$$typeof===B?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function df(e){function t(j,w){if(e){var E=j.deletions;E===null?(j.deletions=[w],j.flags|=16):E.push(w)}}function a(j,w){if(!e)return null;for(;w!==null;)t(j,w),w=w.sibling;return null}function l(j){for(var w=new Map;j!==null;)j.key!==null?w.set(j.key,j):w.set(j.index,j),j=j.sibling;return w}function n(j,w){return j=ua(j,w),j.index=0,j.sibling=null,j}function u(j,w,E){return j.index=E,e?(E=j.alternate,E!==null?(E=E.index,E<w?(j.flags|=67108866,w):E):(j.flags|=67108866,w)):(j.flags|=1048576,w)}function o(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function m(j,w,E,U){return w===null||w.tag!==6?(w=zc(E,j.mode,U),w.return=j,w):(w=n(w,E),w.return=j,w)}function b(j,w,E,U){var P=E.type;return P===O?_(j,w,E.props.children,U,E.key):w!==null&&(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===re&&rl(P)===w.type)?(w=n(w,E.props),Rn(w,E),w.return=j,w):(w=Di(E.type,E.key,E.props,null,j.mode,U),Rn(w,E),w.return=j,w)}function N(j,w,E,U){return w===null||w.tag!==4||w.stateNode.containerInfo!==E.containerInfo||w.stateNode.implementation!==E.implementation?(w=Ec(E,j.mode,U),w.return=j,w):(w=n(w,E.children||[]),w.return=j,w)}function _(j,w,E,U,P){return w===null||w.tag!==7?(w=nl(E,j.mode,U,P),w.return=j,w):(w=n(w,E),w.return=j,w)}function M(j,w,E){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=zc(""+w,j.mode,E),w.return=j,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Y:return E=Di(w.type,w.key,w.props,null,j.mode,E),Rn(E,w),E.return=j,E;case Q:return w=Ec(w,j.mode,E),w.return=j,w;case re:return w=rl(w),M(j,w,E)}if(Ee(w)||_e(w))return w=nl(w,j.mode,E,null),w.return=j,w;if(typeof w.then=="function")return M(j,Hi(w),E);if(w.$$typeof===F)return M(j,Oi(j,w),E);qi(j,w)}return null}function A(j,w,E,U){var P=w!==null?w.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return P!==null?null:m(j,w,""+E,U);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:return E.key===P?b(j,w,E,U):null;case Q:return E.key===P?N(j,w,E,U):null;case re:return E=rl(E),A(j,w,E,U)}if(Ee(E)||_e(E))return P!==null?null:_(j,w,E,U,null);if(typeof E.then=="function")return A(j,w,Hi(E),U);if(E.$$typeof===F)return A(j,w,Oi(j,E),U);qi(j,E)}return null}function T(j,w,E,U,P){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return j=j.get(E)||null,m(w,j,""+U,P);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Y:return j=j.get(U.key===null?E:U.key)||null,b(w,j,U,P);case Q:return j=j.get(U.key===null?E:U.key)||null,N(w,j,U,P);case re:return U=rl(U),T(j,w,E,U,P)}if(Ee(U)||_e(U))return j=j.get(E)||null,_(w,j,U,P,null);if(typeof U.then=="function")return T(j,w,E,Hi(U),P);if(U.$$typeof===F)return T(j,w,E,Oi(w,U),P);qi(w,U)}return null}function V(j,w,E,U){for(var P=null,ge=null,$=w,se=w=0,ye=null;$!==null&&se<E.length;se++){$.index>se?(ye=$,$=null):ye=$.sibling;var ve=A(j,$,E[se],U);if(ve===null){$===null&&($=ye);break}e&&$&&ve.alternate===null&&t(j,$),w=u(ve,w,se),ge===null?P=ve:ge.sibling=ve,ge=ve,$=ye}if(se===E.length)return a(j,$),pe&&ca(j,se),P;if($===null){for(;se<E.length;se++)$=M(j,E[se],U),$!==null&&(w=u($,w,se),ge===null?P=$:ge.sibling=$,ge=$);return pe&&ca(j,se),P}for($=l($);se<E.length;se++)ye=T($,j,se,E[se],U),ye!==null&&(e&&ye.alternate!==null&&$.delete(ye.key===null?se:ye.key),w=u(ye,w,se),ge===null?P=ye:ge.sibling=ye,ge=ye);return e&&$.forEach(function(Ja){return t(j,Ja)}),pe&&ca(j,se),P}function ee(j,w,E,U){if(E==null)throw Error(s(151));for(var P=null,ge=null,$=w,se=w=0,ye=null,ve=E.next();$!==null&&!ve.done;se++,ve=E.next()){$.index>se?(ye=$,$=null):ye=$.sibling;var Ja=A(j,$,ve.value,U);if(Ja===null){$===null&&($=ye);break}e&&$&&Ja.alternate===null&&t(j,$),w=u(Ja,w,se),ge===null?P=Ja:ge.sibling=Ja,ge=Ja,$=ye}if(ve.done)return a(j,$),pe&&ca(j,se),P;if($===null){for(;!ve.done;se++,ve=E.next())ve=M(j,ve.value,U),ve!==null&&(w=u(ve,w,se),ge===null?P=ve:ge.sibling=ve,ge=ve);return pe&&ca(j,se),P}for($=l($);!ve.done;se++,ve=E.next())ve=T($,j,se,ve.value,U),ve!==null&&(e&&ve.alternate!==null&&$.delete(ve.key===null?se:ve.key),w=u(ve,w,se),ge===null?P=ve:ge.sibling=ve,ge=ve);return e&&$.forEach(function(Bp){return t(j,Bp)}),pe&&ca(j,se),P}function Te(j,w,E,U){if(typeof E=="object"&&E!==null&&E.type===O&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:e:{for(var P=E.key;w!==null;){if(w.key===P){if(P=E.type,P===O){if(w.tag===7){a(j,w.sibling),U=n(w,E.props.children),U.return=j,j=U;break e}}else if(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===re&&rl(P)===w.type){a(j,w.sibling),U=n(w,E.props),Rn(U,E),U.return=j,j=U;break e}a(j,w);break}else t(j,w);w=w.sibling}E.type===O?(U=nl(E.props.children,j.mode,U,E.key),U.return=j,j=U):(U=Di(E.type,E.key,E.props,null,j.mode,U),Rn(U,E),U.return=j,j=U)}return o(j);case Q:e:{for(P=E.key;w!==null;){if(w.key===P)if(w.tag===4&&w.stateNode.containerInfo===E.containerInfo&&w.stateNode.implementation===E.implementation){a(j,w.sibling),U=n(w,E.children||[]),U.return=j,j=U;break e}else{a(j,w);break}else t(j,w);w=w.sibling}U=Ec(E,j.mode,U),U.return=j,j=U}return o(j);case re:return E=rl(E),Te(j,w,E,U)}if(Ee(E))return V(j,w,E,U);if(_e(E)){if(P=_e(E),typeof P!="function")throw Error(s(150));return E=P.call(E),ee(j,w,E,U)}if(typeof E.then=="function")return Te(j,w,Hi(E),U);if(E.$$typeof===F)return Te(j,w,Oi(j,E),U);qi(j,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,w!==null&&w.tag===6?(a(j,w.sibling),U=n(w,E),U.return=j,j=U):(a(j,w),U=zc(E,j.mode,U),U.return=j,j=U),o(j)):a(j,w)}return function(j,w,E,U){try{Tn=0;var P=Te(j,w,E,U);return kl=null,P}catch($){if($===ql||$===Li)throw $;var ge=bt(29,$,null,j.mode);return ge.lanes=U,ge.return=j,ge}}}var fl=df(!0),hf=df(!1),_a=!1;function Bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hc(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 Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Oa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(be&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Ri(e),Jo(e,null,a),t}return Ti(e,l,t,a),Ri(e)}function Dn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ao(e,a)}}function qc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?n=u=o:u=u.next=o,a=a.next}while(a!==null);u===null?n=u=t:u=u.next=t}else n=u=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var kc=!1;function _n(){if(kc){var e=Hl;if(e!==null)throw e}}function Un(e,t,a,l){kc=!1;var n=e.updateQueue;_a=!1;var u=n.firstBaseUpdate,o=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var b=m,N=b.next;b.next=null,o===null?u=N:o.next=N,o=b;var _=e.alternate;_!==null&&(_=_.updateQueue,m=_.lastBaseUpdate,m!==o&&(m===null?_.firstBaseUpdate=N:m.next=N,_.lastBaseUpdate=b))}if(u!==null){var M=n.baseState;o=0,_=N=b=null,m=u;do{var A=m.lane&-536870913,T=A!==m.lane;if(T?(me&A)===A:(l&A)===A){A!==0&&A===Bl&&(kc=!0),_!==null&&(_=_.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var V=e,ee=m;A=t;var Te=a;switch(ee.tag){case 1:if(V=ee.payload,typeof V=="function"){M=V.call(Te,M,A);break e}M=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=ee.payload,A=typeof V=="function"?V.call(Te,M,A):V,A==null)break e;M=z({},M,A);break e;case 2:_a=!0}}A=m.callback,A!==null&&(e.flags|=64,T&&(e.flags|=8192),T=n.callbacks,T===null?n.callbacks=[A]:T.push(A))}else T={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},_===null?(N=_=T,b=M):_=_.next=T,o|=A;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;T=m,m=T.next,T.next=null,n.lastBaseUpdate=T,n.shared.pending=null}}while(!0);_===null&&(b=M),n.baseState=b,n.firstBaseUpdate=N,n.lastBaseUpdate=_,u===null&&(n.shared.lanes=0),qa|=o,e.lanes=o,e.memoizedState=M}}function mf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function yf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)mf(a[e],t)}var Yl=v(null),ki=v(0);function pf(e,t){e=va,H(ki,e),H(Yl,t),va=e|t.baseLanes}function Yc(){H(ki,va),H(Yl,Yl.current)}function Gc(){va=ki.current,R(Yl),R(ki)}var St=v(null),Mt=null;function Ma(e){var t=e.alternate;H(Qe,Qe.current&1),H(St,e),Mt===null&&(t===null||Yl.current!==null||t.memoizedState!==null)&&(Mt=e)}function Xc(e){H(Qe,Qe.current),H(St,e),Mt===null&&(Mt=e)}function gf(e){e.tag===22?(H(Qe,Qe.current),H(St,e),Mt===null&&(Mt=e)):La()}function La(){H(Qe,Qe.current),H(St,St.current)}function wt(e){R(St),Mt===e&&(Mt=null),R(Qe)}var Qe=v(0);function Yi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Js(a)||$s(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}var oa=0,ce=null,Ce=null,Ke=null,Gi=!1,Gl=!1,dl=!1,Xi=0,On=0,Xl=null,Cy=0;function Ye(){throw Error(s(321))}function Qc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xt(e[a],t[a]))return!1;return!0}function Zc(e,t,a,l,n,u){return oa=u,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?ed:us,dl=!1,u=a(l,n),dl=!1,Gl&&(u=xf(t,a,l,n)),vf(e),u}function vf(e){D.H=Bn;var t=Ce!==null&&Ce.next!==null;if(oa=0,Ke=Ce=ce=null,Gi=!1,On=0,Xl=null,t)throw Error(s(300));e===null||Fe||(e=e.dependencies,e!==null&&Ui(e)&&(Fe=!0))}function xf(e,t,a,l){ce=e;var n=0;do{if(Gl&&(Xl=null),On=0,Gl=!1,25<=n)throw Error(s(301));if(n+=1,Ke=Ce=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=td,u=t(a,l)}while(Gl);return u}function Ay(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Mn(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(ce.flags|=1024),t}function Vc(){var e=Xi!==0;return Xi=0,e}function Kc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Fc(e){if(Gi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Gi=!1}oa=0,Ke=Ce=ce=null,Gl=!1,On=Xi=0,Xl=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ce.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ze(){if(Ce===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Ke===null?ce.memoizedState:Ke.next;if(t!==null)Ke=t,Ce=e;else{if(e===null)throw ce.alternate===null?Error(s(467)):Error(s(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Ke===null?ce.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function Qi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mn(e){var t=On;return On+=1,Xl===null&&(Xl=[]),e=rf(Xl,e,t),t=ce,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?ed:us),e}function Zi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Mn(e);if(e.$$typeof===F)return tt(e)}throw Error(s(438,String(e)))}function Jc(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Qi(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Se;return t.index++,a}function fa(e,t){return typeof t=="function"?t(e):t}function Vi(e){var t=Ze();return $c(t,Ce,e)}function $c(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var n=e.baseQueue,u=l.pending;if(u!==null){if(n!==null){var o=n.next;n.next=u.next,u.next=o}t.baseQueue=n=u,l.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var m=o=null,b=null,N=t,_=!1;do{var M=N.lane&-536870913;if(M!==N.lane?(me&M)===M:(oa&M)===M){var A=N.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),M===Bl&&(_=!0);else if((oa&A)===A){N=N.next,A===Bl&&(_=!0);continue}else M={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(m=b=M,o=u):b=b.next=M,ce.lanes|=A,qa|=A;M=N.action,dl&&a(u,M),u=N.hasEagerState?N.eagerState:a(u,M)}else A={lane:M,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(m=b=A,o=u):b=b.next=A,ce.lanes|=M,qa|=M;N=N.next}while(N!==null&&N!==t);if(b===null?o=u:b.next=m,!xt(u,e.memoizedState)&&(Fe=!0,_&&(a=Hl,a!==null)))throw a;e.memoizedState=u,e.baseState=o,e.baseQueue=b,l.lastRenderedState=u}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Wc(e){var t=Ze(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,u=t.memoizedState;if(n!==null){a.pending=null;var o=n=n.next;do u=e(u,o.action),o=o.next;while(o!==n);xt(u,t.memoizedState)||(Fe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function bf(e,t,a){var l=ce,n=Ze(),u=pe;if(u){if(a===void 0)throw Error(s(407));a=a()}else a=t();var o=!xt((Ce||n).memoizedState,a);if(o&&(n.memoizedState=a,Fe=!0),n=n.queue,es(jf.bind(null,l,n,e),[e]),n.getSnapshot!==t||o||Ke!==null&&Ke.memoizedState.tag&1){if(l.flags|=2048,Ql(9,{destroy:void 0},wf.bind(null,l,n,a,t),null),Re===null)throw Error(s(349));u||(oa&127)!==0||Sf(l,t,a)}return a}function Sf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=Qi(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function wf(e,t,a,l){t.value=a,t.getSnapshot=l,zf(t)&&Ef(e)}function jf(e,t,a){return a(function(){zf(t)&&Ef(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xt(e,a)}catch{return!0}}function Ef(e){var t=ll(e,2);t!==null&&mt(t,e,2)}function Ic(e){var t=ct();if(typeof e=="function"){var a=e;if(e=a(),dl){Ea(!0);try{a()}finally{Ea(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e},t}function Nf(e,t,a,l){return e.baseState=a,$c(e,Ce,typeof l=="function"?l:fa)}function Ty(e,t,a,l,n){if(Ji(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){u.listeners.push(o)}};D.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,Cf(t,u)):(u.next=a.next,t.pending=a.next=u)}}function Cf(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var u=D.T,o={};D.T=o;try{var m=a(n,l),b=D.S;b!==null&&b(o,m),Af(e,t,m)}catch(N){Pc(e,t,N)}finally{u!==null&&o.types!==null&&(u.types=o.types),D.T=u}}else try{u=a(n,l),Af(e,t,u)}catch(N){Pc(e,t,N)}}function Af(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Tf(e,t,l)},function(l){return Pc(e,t,l)}):Tf(e,t,a)}function Tf(e,t,a){t.status="fulfilled",t.value=a,Rf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Cf(e,a)))}function Pc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Rf(t),t=t.next;while(t!==l)}e.action=null}function Rf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Df(e,t){return t}function _f(e,t){if(pe){var a=Re.formState;if(a!==null){e:{var l=ce;if(pe){if(Ue){t:{for(var n=Ue,u=Ot;n.nodeType!==8;){if(!u){n=null;break t}if(n=Lt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ue=Lt(n.nextSibling),l=n.data==="F!";break e}}Ra(l)}l=!1}l&&(t=a[0])}}return a=ct(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Df,lastRenderedState:t},a.queue=l,a=Wf.bind(null,ce,l),l.dispatch=a,l=Ic(!1),u=is.bind(null,ce,!1,l.queue),l=ct(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=Ty.bind(null,ce,n,u,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function Uf(e){var t=Ze();return Of(t,Ce,e)}function Of(e,t,a){if(t=$c(e,t,Df)[0],e=Vi(fa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Mn(t)}catch(o){throw o===ql?Li:o}else l=t;t=Ze();var n=t.queue,u=n.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Ql(9,{destroy:void 0},Ry.bind(null,n,a),null)),[l,u,e]}function Ry(e,t){e.action=t}function Mf(e){var t=Ze(),a=Ce;if(a!==null)return Of(t,a,e);Ze(),t=t.memoizedState,a=Ze();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Ql(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Qi(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Lf(){return Ze().memoizedState}function Ki(e,t,a,l){var n=ct();ce.flags|=e,n.memoizedState=Ql(1|t,{destroy:void 0},a,l===void 0?null:l)}function Fi(e,t,a,l){var n=Ze();l=l===void 0?null:l;var u=n.memoizedState.inst;Ce!==null&&l!==null&&Qc(l,Ce.memoizedState.deps)?n.memoizedState=Ql(t,u,a,l):(ce.flags|=e,n.memoizedState=Ql(1|t,u,a,l))}function Bf(e,t){Ki(8390656,8,e,t)}function es(e,t){Fi(2048,8,e,t)}function Dy(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Qi(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Hf(e){var t=Ze().memoizedState;return Dy({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function qf(e,t){return Fi(4,2,e,t)}function kf(e,t){return Fi(4,4,e,t)}function Yf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gf(e,t,a){a=a!=null?a.concat([e]):null,Fi(4,4,Yf.bind(null,t,e),a)}function ts(){}function Xf(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Qc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Qf(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Qc(t,l[1]))return l[0];if(l=e(),dl){Ea(!0);try{e()}finally{Ea(!1)}}return a.memoizedState=[l,t],l}function as(e,t,a){return a===void 0||(oa&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Zd(),ce.lanes|=e,qa|=e,a)}function Zf(e,t,a,l){return xt(a,t)?a:Yl.current!==null?(e=as(e,a,l),xt(e,t)||(Fe=!0),e):(oa&42)===0||(oa&1073741824)!==0&&(me&261930)===0?(Fe=!0,e.memoizedState=a):(e=Zd(),ce.lanes|=e,qa|=e,t)}function Vf(e,t,a,l,n){var u=G.p;G.p=u!==0&&8>u?u:8;var o=D.T,m={};D.T=m,is(e,!1,t,a);try{var b=n(),N=D.S;if(N!==null&&N(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var _=Ny(b,l);Ln(e,t,_,Et(e))}else Ln(e,t,l,Et(e))}catch(M){Ln(e,t,{then:function(){},status:"rejected",reason:M},Et())}finally{G.p=u,o!==null&&m.types!==null&&(o.types=m.types),D.T=o}}function _y(){}function ls(e,t,a,l){if(e.tag!==5)throw Error(s(476));var n=Kf(e).queue;Vf(e,n,t,J,a===null?_y:function(){return Ff(e),a(l)})}function Kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ff(e){var t=Kf(e);t.next===null&&(t=e.alternate.memoizedState),Ln(e,t.next.queue,{},Et())}function ns(){return tt(Pn)}function Jf(){return Ze().memoizedState}function $f(){return Ze().memoizedState}function Uy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Et();e=Ua(a);var l=Oa(t,e,a);l!==null&&(mt(l,t,a),Dn(l,t,a)),t={cache:Uc()},e.payload=t;return}t=t.return}}function Oy(e,t,a){var l=Et();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ji(e)?If(t,a):(a=wc(e,t,a,l),a!==null&&(mt(a,e,l),Pf(a,t,l)))}function Wf(e,t,a){var l=Et();Ln(e,t,a,l)}function Ln(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ji(e))If(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,m=u(o,a);if(n.hasEagerState=!0,n.eagerState=m,xt(m,o))return Ti(e,t,n,0),Re===null&&Ai(),!1}catch{}if(a=wc(e,t,n,l),a!==null)return mt(a,e,l),Pf(a,t,l),!0}return!1}function is(e,t,a,l){if(l={lane:2,revertLane:Bs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ji(e)){if(t)throw Error(s(479))}else t=wc(e,a,l,2),t!==null&&mt(t,e,2)}function Ji(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function If(e,t){Gl=Gi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Pf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ao(e,a)}}var Bn={readContext:tt,use:Zi,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Bn.useEffectEvent=Ye;var ed={readContext:tt,use:Zi,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:Bf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ki(4194308,4,Yf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ki(4194308,4,e,t)},useInsertionEffect:function(e,t){Ki(4,2,e,t)},useMemo:function(e,t){var a=ct();t=t===void 0?null:t;var l=e();if(dl){Ea(!0);try{e()}finally{Ea(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ct();if(a!==void 0){var n=a(t);if(dl){Ea(!0);try{a(t)}finally{Ea(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=Oy.bind(null,ce,e),[l.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Ic(e);var t=e.queue,a=Wf.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ts,useDeferredValue:function(e,t){var a=ct();return as(a,e,t)},useTransition:function(){var e=Ic(!1);return e=Vf.bind(null,ce,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ce,n=ct();if(pe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Re===null)throw Error(s(349));(me&127)!==0||Sf(l,t,a)}n.memoizedState=a;var u={value:a,getSnapshot:t};return n.queue=u,Bf(jf.bind(null,l,u,e),[e]),l.flags|=2048,Ql(9,{destroy:void 0},wf.bind(null,l,u,a,t),null),a},useId:function(){var e=ct(),t=Re.identifierPrefix;if(pe){var a=Jt,l=Ft;a=(l&~(1<<32-vt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Xi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Cy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ns,useFormState:_f,useActionState:_f,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=is.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:Jc,useCacheRefresh:function(){return ct().memoizedState=Uy.bind(null,ce)},useEffectEvent:function(e){var t=ct(),a={impl:e};return t.memoizedState=a,function(){if((be&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},us={readContext:tt,use:Zi,useCallback:Xf,useContext:tt,useEffect:es,useImperativeHandle:Gf,useInsertionEffect:qf,useLayoutEffect:kf,useMemo:Qf,useReducer:Vi,useRef:Lf,useState:function(){return Vi(fa)},useDebugValue:ts,useDeferredValue:function(e,t){var a=Ze();return Zf(a,Ce.memoizedState,e,t)},useTransition:function(){var e=Vi(fa)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Mn(e),t]},useSyncExternalStore:bf,useId:Jf,useHostTransitionStatus:ns,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var a=Ze();return Nf(a,Ce,e,t)},useMemoCache:Jc,useCacheRefresh:$f};us.useEffectEvent=Hf;var td={readContext:tt,use:Zi,useCallback:Xf,useContext:tt,useEffect:es,useImperativeHandle:Gf,useInsertionEffect:qf,useLayoutEffect:kf,useMemo:Qf,useReducer:Wc,useRef:Lf,useState:function(){return Wc(fa)},useDebugValue:ts,useDeferredValue:function(e,t){var a=Ze();return Ce===null?as(a,e,t):Zf(a,Ce.memoizedState,e,t)},useTransition:function(){var e=Wc(fa)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Mn(e),t]},useSyncExternalStore:bf,useId:Jf,useHostTransitionStatus:ns,useFormState:Mf,useActionState:Mf,useOptimistic:function(e,t){var a=Ze();return Ce!==null?Nf(a,Ce,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Jc,useCacheRefresh:$f};td.useEffectEvent=Hf;function cs(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:z({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ss={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Ua(l);n.payload=t,a!=null&&(n.callback=a),t=Oa(e,n,l),t!==null&&(mt(t,e,l),Dn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Ua(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Oa(e,n,l),t!==null&&(mt(t,e,l),Dn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Et(),l=Ua(a);l.tag=2,t!=null&&(l.callback=t),t=Oa(e,l,a),t!==null&&(mt(t,e,a),Dn(t,e,a))}};function ad(e,t,a,l,n,u,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,o):t.prototype&&t.prototype.isPureReactComponent?!jn(a,l)||!jn(n,u):!0}function ld(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&ss.enqueueReplaceState(t,t.state,null)}function hl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=z({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function nd(e){Ci(e)}function id(e){console.error(e)}function ud(e){Ci(e)}function $i(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function cd(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function rs(e,t,a){return a=Ua(a),a.tag=3,a.payload={element:null},a.callback=function(){$i(e,t)},a}function sd(e){return e=Ua(e),e.tag=3,e}function rd(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var u=l.value;e.payload=function(){return n(u)},e.callback=function(){cd(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){cd(t,a,l),typeof n!="function"&&(ka===null?ka=new Set([this]):ka.add(this));var m=l.stack;this.componentDidCatch(l.value,{componentStack:m!==null?m:""})})}function My(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Ll(t,a,n,!0),a=St.current,a!==null){switch(a.tag){case 31:case 13:return Mt===null?su():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Bi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Os(e,l,n)),!1;case 22:return a.flags|=65536,l===Bi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Os(e,l,n)),!1}throw Error(s(435,a.tag))}return Os(e,l,n),su(),!1}if(pe)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Ac&&(e=Error(s(422),{cause:l}),Nn(Dt(e,a)))):(l!==Ac&&(t=Error(s(423),{cause:l}),Nn(Dt(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=Dt(l,a),n=rs(e.stateNode,l,n),qc(e,n),Ge!==4&&(Ge=2)),!1;var u=Error(s(520),{cause:l});if(u=Dt(u,a),Zn===null?Zn=[u]:Zn.push(u),Ge!==4&&(Ge=2),t===null)return!0;l=Dt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=rs(a.stateNode,l,e),qc(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ka===null||!ka.has(u))))return a.flags|=65536,n&=-n,a.lanes|=n,n=sd(n),rd(n,e,a,l),qc(a,n),!1}a=a.return}while(a!==null);return!1}var os=Error(s(461)),Fe=!1;function at(e,t,a,l){t.child=e===null?hf(t,null,a,l):fl(t,e.child,a,l)}function od(e,t,a,l,n){a=a.render;var u=t.ref;if("ref"in l){var o={};for(var m in l)m!=="ref"&&(o[m]=l[m])}else o=l;return cl(t),l=Zc(e,t,a,o,u,n),m=Vc(),e!==null&&!Fe?(Kc(e,t,n),da(e,t,n)):(pe&&m&&Nc(t),t.flags|=1,at(e,t,l,n),t.child)}function fd(e,t,a,l,n){if(e===null){var u=a.type;return typeof u=="function"&&!jc(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,dd(e,t,u,l,n)):(e=Di(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!vs(e,n)){var o=u.memoizedProps;if(a=a.compare,a=a!==null?a:jn,a(o,l)&&e.ref===t.ref)return da(e,t,n)}return t.flags|=1,e=ua(u,l),e.ref=t.ref,e.return=t,t.child=e}function dd(e,t,a,l,n){if(e!==null){var u=e.memoizedProps;if(jn(u,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=u,vs(e,n))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,da(e,t,n)}return fs(e,t,a,l,n)}function hd(e,t,a,l){var n=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~u}else l=0,t.child=null;return md(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mi(t,u!==null?u.cachePool:null),u!==null?pf(t,u):Yc(),gf(t);else return l=t.lanes=536870912,md(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(Mi(t,u.cachePool),pf(t,u),La(),t.memoizedState=null):(e!==null&&Mi(t,null),Yc(),La());return at(e,t,n,a),t.child}function Hn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function md(e,t,a,l,n){var u=Mc();return u=u===null?null:{parent:Ve._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Mi(t,null),Yc(),gf(t),e!==null&&Ll(e,t,l,!0),t.childLanes=n,null}function Wi(e,t){return t=Pi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yd(e,t,a){return fl(t,e.child,null,a),e=Wi(t,t.pendingProps),e.flags|=2,wt(t),t.memoizedState=null,e}function Ly(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(l.mode==="hidden")return e=Wi(t,l),t.lanes=536870912,Hn(null,e);if(Xc(t),(e=Ue)?(e=Ch(e,Ot),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Ft,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},a=Wo(e),a.return=t,t.child=a,et=t,Ue=null)):e=null,e===null)throw Ra(t);return t.lanes=536870912,null}return Wi(t,l)}var u=e.memoizedState;if(u!==null){var o=u.dehydrated;if(Xc(t),n)if(t.flags&256)t.flags&=-257,t=yd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Fe||Ll(e,t,a,!1),n=(a&e.childLanes)!==0,Fe||n){if(l=Re,l!==null&&(o=lo(l,a),o!==0&&o!==u.retryLane))throw u.retryLane=o,ll(e,o),mt(l,e,o),os;su(),t=yd(e,t,a)}else e=u.treeContext,Ue=Lt(o.nextSibling),et=t,pe=!0,Ta=null,Ot=!1,e!==null&&ef(t,e),t=Wi(t,l),t.flags|=4096;return t}return e=ua(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ii(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(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function fs(e,t,a,l,n){return cl(t),a=Zc(e,t,a,l,void 0,n),l=Vc(),e!==null&&!Fe?(Kc(e,t,n),da(e,t,n)):(pe&&l&&Nc(t),t.flags|=1,at(e,t,a,n),t.child)}function pd(e,t,a,l,n,u){return cl(t),t.updateQueue=null,a=xf(t,l,a,n),vf(e),l=Vc(),e!==null&&!Fe?(Kc(e,t,u),da(e,t,u)):(pe&&l&&Nc(t),t.flags|=1,at(e,t,a,u),t.child)}function gd(e,t,a,l,n){if(cl(t),t.stateNode===null){var u=_l,o=a.contextType;typeof o=="object"&&o!==null&&(u=tt(o)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ss,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Bc(t),o=a.contextType,u.context=typeof o=="object"&&o!==null?tt(o):_l,u.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(cs(t,a,o,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(o=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),o!==u.state&&ss.enqueueReplaceState(u,u.state,null),Un(t,l,u,n),_n(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var m=t.memoizedProps,b=hl(a,m);u.props=b;var N=u.context,_=a.contextType;o=_l,typeof _=="object"&&_!==null&&(o=tt(_));var M=a.getDerivedStateFromProps;_=typeof M=="function"||typeof u.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m||N!==o)&&ld(t,u,l,o),_a=!1;var A=t.memoizedState;u.state=A,Un(t,l,u,n),_n(),N=t.memoizedState,m||A!==N||_a?(typeof M=="function"&&(cs(t,a,M,l),N=t.memoizedState),(b=_a||ad(t,a,b,l,A,N,o))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=N),u.props=l,u.state=N,u.context=o,l=b):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Hc(e,t),o=t.memoizedProps,_=hl(a,o),u.props=_,M=t.pendingProps,A=u.context,N=a.contextType,b=_l,typeof N=="object"&&N!==null&&(b=tt(N)),m=a.getDerivedStateFromProps,(N=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==M||A!==b)&&ld(t,u,l,b),_a=!1,A=t.memoizedState,u.state=A,Un(t,l,u,n),_n();var T=t.memoizedState;o!==M||A!==T||_a||e!==null&&e.dependencies!==null&&Ui(e.dependencies)?(typeof m=="function"&&(cs(t,a,m,l),T=t.memoizedState),(_=_a||ad(t,a,_,l,A,T,b)||e!==null&&e.dependencies!==null&&Ui(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,T,b),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,T,b)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=T),u.props=l,u.state=T,u.context=b,l=_):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Ii(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=fl(t,e.child,null,n),t.child=fl(t,null,a,n)):at(e,t,a,n),t.memoizedState=u.state,e=t.child):e=da(e,t,n),e}function vd(e,t,a,l){return il(),t.flags|=256,at(e,t,a,l),t.child}var ds={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hs(e){return{baseLanes:e,cachePool:cf()}}function ms(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zt),e}function xd(e,t,a){var l=t.pendingProps,n=!1,u=(t.flags&128)!==0,o;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(n?Ma(t):La(),(e=Ue)?(e=Ch(e,Ot),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Ft,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},a=Wo(e),a.return=t,t.child=a,et=t,Ue=null)):e=null,e===null)throw Ra(t);return $s(e)?t.lanes=32:t.lanes=536870912,null}var m=l.children;return l=l.fallback,n?(La(),n=t.mode,m=Pi({mode:"hidden",children:m},n),l=nl(l,n,a,null),m.return=t,l.return=t,m.sibling=l,t.child=m,l=t.child,l.memoizedState=hs(a),l.childLanes=ms(e,o,a),t.memoizedState=ds,Hn(null,l)):(Ma(t),ys(t,m))}var b=e.memoizedState;if(b!==null&&(m=b.dehydrated,m!==null)){if(u)t.flags&256?(Ma(t),t.flags&=-257,t=ps(e,t,a)):t.memoizedState!==null?(La(),t.child=e.child,t.flags|=128,t=null):(La(),m=l.fallback,n=t.mode,l=Pi({mode:"visible",children:l.children},n),m=nl(m,n,a,null),m.flags|=2,l.return=t,m.return=t,l.sibling=m,t.child=l,fl(t,e.child,null,a),l=t.child,l.memoizedState=hs(a),l.childLanes=ms(e,o,a),t.memoizedState=ds,t=Hn(null,l));else if(Ma(t),$s(m)){if(o=m.nextSibling&&m.nextSibling.dataset,o)var N=o.dgst;o=N,l=Error(s(419)),l.stack="",l.digest=o,Nn({value:l,source:null,stack:null}),t=ps(e,t,a)}else if(Fe||Ll(e,t,a,!1),o=(a&e.childLanes)!==0,Fe||o){if(o=Re,o!==null&&(l=lo(o,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,ll(e,l),mt(o,e,l),os;Js(m)||su(),t=ps(e,t,a)}else Js(m)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Ue=Lt(m.nextSibling),et=t,pe=!0,Ta=null,Ot=!1,e!==null&&ef(t,e),t=ys(t,l.children),t.flags|=4096);return t}return n?(La(),m=l.fallback,n=t.mode,b=e.child,N=b.sibling,l=ua(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,N!==null?m=ua(N,m):(m=nl(m,n,a,null),m.flags|=2),m.return=t,l.return=t,l.sibling=m,t.child=l,Hn(null,l),l=t.child,m=e.child.memoizedState,m===null?m=hs(a):(n=m.cachePool,n!==null?(b=Ve._currentValue,n=n.parent!==b?{parent:b,pool:b}:n):n=cf(),m={baseLanes:m.baseLanes|a,cachePool:n}),l.memoizedState=m,l.childLanes=ms(e,o,a),t.memoizedState=ds,Hn(e.child,l)):(Ma(t),a=e.child,e=a.sibling,a=ua(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function ys(e,t){return t=Pi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pi(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function ps(e,t,a){return fl(t,e.child,null,a),e=ys(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Dc(e.return,t,a)}function gs(e,t,a,l,n,u){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:u}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=n,o.treeForkCount=u)}function Sd(e,t,a){var l=t.pendingProps,n=l.revealOrder,u=l.tail;l=l.children;var o=Qe.current,m=(o&2)!==0;if(m?(o=o&1|2,t.flags|=128):o&=1,H(Qe,o),at(e,t,l,a),l=pe?En:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bd(e,a,t);else if(e.tag===19)bd(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(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&Yi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),gs(t,!1,n,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Yi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}gs(t,!0,a,null,u,l);break;case"together":gs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function da(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),qa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Ll(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ua(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ua(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function vs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ui(e)))}function By(e,t,a){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),Da(t,Ve,e.memoizedState.cache),il();break;case 27:case 5:xe(t);break;case 4:fe(t,t.stateNode.containerInfo);break;case 10:Da(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ma(t),t.flags|=128,null):(a&t.child.childLanes)!==0?xd(e,t,a):(Ma(t),e=da(e,t,a),e!==null?e.sibling:null);Ma(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Ll(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return Sd(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),H(Qe,Qe.current),l)break;return null;case 22:return t.lanes=0,hd(e,t,a,t.pendingProps);case 24:Da(t,Ve,e.memoizedState.cache)}return da(e,t,a)}function wd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!vs(e,a)&&(t.flags&128)===0)return Fe=!1,By(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,pe&&(t.flags&1048576)!==0&&Po(t,En,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=rl(t.elementType),t.type=e,typeof e=="function")jc(e)?(l=hl(e,l),t.tag=1,t=gd(null,t,e,l,a)):(t.tag=0,t=fs(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===le){t.tag=11,t=od(null,t,e,l,a);break e}else if(n===Z){t.tag=14,t=fd(null,t,e,l,a);break e}}throw t=De(e)||e,Error(s(306,t,""))}}return t;case 0:return fs(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=hl(l,t.pendingProps),gd(e,t,l,n,a);case 3:e:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var u=t.memoizedState;n=u.element,Hc(e,t),Un(t,l,null,a);var o=t.memoizedState;if(l=o.cache,Da(t,Ve,l),l!==u.cache&&_c(t,[Ve],a,!0),_n(),l=o.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=vd(e,t,l,a);break e}else if(l!==n){n=Dt(Error(s(424)),t),Nn(n),t=vd(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ue=Lt(e.firstChild),et=t,pe=!0,Ta=null,Ot=!0,a=hf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(il(),l===n){t=da(e,t,a);break e}at(e,t,l,a)}t=t.child}return t;case 26:return Ii(e,t),e===null?(a=Uh(t.type,null,t.pendingProps,null))?t.memoizedState=a:pe||(a=t.type,e=t.pendingProps,l=yu(I.current).createElement(a),l[Pe]=t,l[st]=e,lt(l,a,e),We(l),t.stateNode=l):t.memoizedState=Uh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&pe&&(l=t.stateNode=Rh(t.type,t.pendingProps,I.current),et=t,Ot=!0,n=Ue,Qa(t.type)?(Ws=n,Ue=Lt(l.firstChild)):Ue=n),at(e,t,t.pendingProps.children,a),Ii(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((n=l=Ue)&&(l=hp(l,t.type,t.pendingProps,Ot),l!==null?(t.stateNode=l,et=t,Ue=Lt(l.firstChild),Ot=!1,n=!0):n=!1),n||Ra(t)),xe(t),n=t.type,u=t.pendingProps,o=e!==null?e.memoizedProps:null,l=u.children,Vs(n,u)?l=null:o!==null&&Vs(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Zc(e,t,Ay,null,null,a),Pn._currentValue=n),Ii(e,t),at(e,t,l,a),t.child;case 6:return e===null&&pe&&((e=a=Ue)&&(a=mp(a,t.pendingProps,Ot),a!==null?(t.stateNode=a,et=t,Ue=null,e=!0):e=!1),e||Ra(t)),null;case 13:return xd(e,t,a);case 4:return fe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=fl(t,null,l,a):at(e,t,l,a),t.child;case 11:return od(e,t,t.type,t.pendingProps,a);case 7:return at(e,t,t.pendingProps,a),t.child;case 8:return at(e,t,t.pendingProps.children,a),t.child;case 12:return at(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Da(t,t.type,l.value),at(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,cl(t),n=tt(n),l=l(n),t.flags|=1,at(e,t,l,a),t.child;case 14:return fd(e,t,t.type,t.pendingProps,a);case 15:return dd(e,t,t.type,t.pendingProps,a);case 19:return Sd(e,t,a);case 31:return Ly(e,t,a);case 22:return hd(e,t,a,t.pendingProps);case 24:return cl(t),l=tt(Ve),e===null?(n=Mc(),n===null&&(n=Re,u=Uc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=a),n=u),t.memoizedState={parent:l,cache:n},Bc(t),Da(t,Ve,n)):((e.lanes&a)!==0&&(Hc(e,t),Un(t,null,null,a),_n()),n=e.memoizedState,u=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Da(t,Ve,l)):(l=u.cache,Da(t,Ve,l),l!==n.cache&&_c(t,[Ve],a,!0))),at(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ha(e){e.flags|=4}function xs(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Jd())e.flags|=8192;else throw ol=Bi,Lc}else e.flags&=-16777217}function jd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hh(t))if(Jd())e.flags|=8192;else throw ol=Bi,Lc}function eu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?eo():536870912,e.lanes|=t,Fl|=t)}function qn(e,t){if(!pe)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 l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Hy(e,t,a){var l=t.pendingProps;switch(Cc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ra(Ve),k(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ml(t)?ha(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tc())),Oe(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(ha(t),u!==null?(Oe(t),jd(t,u)):(Oe(t),xs(t,n,null,l,a))):u?u!==e.memoizedState?(ha(t),Oe(t),jd(t,u)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ha(t),Oe(t),xs(t,n,e,l,a)),null;case 27:if(Ne(t),a=I.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Oe(t),null}e=q.current,Ml(t)?tf(t):(e=Rh(n,l,a),t.stateNode=e,ha(t))}return Oe(t),null;case 5:if(Ne(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Oe(t),null}if(u=q.current,Ml(t))tf(t);else{var o=yu(I.current);switch(u){case 1:u=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=o.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?o.createElement(n,{is:l.is}):o.createElement(n)}}u[Pe]=t,u[st]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)u.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=u;e:switch(lt(u,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ha(t)}}return Oe(t),xs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=I.current,Ml(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=et,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||xh(e.nodeValue,a)),e||Ra(t,!0)}else e=yu(e).createTextNode(l),e[Pe]=t,t.stateNode=e}return Oe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ml(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Pe]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else a=Tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(wt(t),t):(wt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Oe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ml(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[Pe]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=Tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(wt(t),t):(wt(t),null)}return wt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),eu(t,t.updateQueue),Oe(t),null);case 4:return k(),e===null&&Ys(t.stateNode.containerInfo),Oe(t),null;case 10:return ra(t.type),Oe(t),null;case 19:if(R(Qe),l=t.memoizedState,l===null)return Oe(t),null;if(n=(t.flags&128)!==0,u=l.rendering,u===null)if(n)qn(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Yi(e),u!==null){for(t.flags|=128,qn(l,!1),e=u.updateQueue,t.updateQueue=e,eu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)$o(a,e),a=a.sibling;return H(Qe,Qe.current&1|2),pe&&ca(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&pt()>iu&&(t.flags|=128,n=!0,qn(l,!1),t.lanes=4194304)}else{if(!n)if(e=Yi(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,eu(t,e),qn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!pe)return Oe(t),null}else 2*pt()-l.renderingStartTime>iu&&a!==536870912&&(t.flags|=128,n=!0,qn(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=pt(),e.sibling=null,a=Qe.current,H(Qe,n?a&1|2:a&1),pe&&ca(t,l.treeForkCount),e):(Oe(t),null);case 22:case 23:return wt(t),Gc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),a=t.updateQueue,a!==null&&eu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&R(sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ra(Ve),Oe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function qy(e,t){switch(Cc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(Ve),k(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ne(t),null;case 31:if(t.memoizedState!==null){if(wt(t),t.alternate===null)throw Error(s(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(Qe),null;case 4:return k(),null;case 10:return ra(t.type),null;case 22:case 23:return wt(t),Gc(),e!==null&&R(sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(Ve),null;case 25:return null;default:return null}}function zd(e,t){switch(Cc(t),t.tag){case 3:ra(Ve),k();break;case 26:case 27:case 5:Ne(t);break;case 4:k();break;case 31:t.memoizedState!==null&&wt(t);break;case 13:wt(t);break;case 19:R(Qe);break;case 10:ra(t.type);break;case 22:case 23:wt(t),Gc(),e!==null&&R(sl);break;case 24:ra(Ve)}}function kn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var u=a.create,o=a.inst;l=u(),o.destroy=l}a=a.next}while(a!==n)}}catch(m){je(t,t.return,m)}}function Ba(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var u=n.next;l=u;do{if((l.tag&e)===e){var o=l.inst,m=o.destroy;if(m!==void 0){o.destroy=void 0,n=t;var b=a,N=m;try{N()}catch(_){je(n,b,_)}}}l=l.next}while(l!==u)}}catch(_){je(t,t.return,_)}}function Ed(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{yf(t,a)}catch(l){je(e,e.return,l)}}}function Nd(e,t,a){a.props=hl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){je(e,t,l)}}function Yn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){je(e,t,n)}}function $t(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){je(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){je(e,t,n)}else a.current=null}function Cd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){je(e,e.return,n)}}function bs(e,t,a){try{var l=e.stateNode;cp(l,e.type,a,t),l[st]=t}catch(n){je(e,e.return,n)}}function Ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function Ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ad(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&&Qa(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 ws(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(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=na));else if(l!==4&&(l===27&&Qa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ws(e,t,a),e=e.sibling;e!==null;)ws(e,t,a),e=e.sibling}function tu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Qa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(tu(e,t,a),e=e.sibling;e!==null;)tu(e,t,a),e=e.sibling}function Td(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);lt(t,l,a),t[Pe]=e,t[st]=a}catch(u){je(e,e.return,u)}}var ma=!1,Je=!1,js=!1,Rd=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function ky(e,t){if(e=e.containerInfo,Qs=wu,e=Yo(e),pc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var o=0,m=-1,b=-1,N=0,_=0,M=e,A=null;t:for(;;){for(var T;M!==a||n!==0&&M.nodeType!==3||(m=o+n),M!==u||l!==0&&M.nodeType!==3||(b=o+l),M.nodeType===3&&(o+=M.nodeValue.length),(T=M.firstChild)!==null;)A=M,M=T;for(;;){if(M===e)break t;if(A===a&&++N===n&&(m=o),A===u&&++_===l&&(b=o),(T=M.nextSibling)!==null)break;M=A,A=M.parentNode}M=T}a=m===-1||b===-1?null:{start:m,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(Zs={focusedElem:e,selectionRange:a},wu=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,n=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var V=hl(a.type,n);e=l.getSnapshotBeforeUpdate(V,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(ee){je(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Fs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Fs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function Dd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),l&4&&kn(5,a);break;case 1:if(pa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){je(a,a.return,o)}else{var n=hl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){je(a,a.return,o)}}l&64&&Ed(a),l&512&&Yn(a,a.return);break;case 3:if(pa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{yf(e,t)}catch(o){je(a,a.return,o)}}break;case 27:t===null&&l&4&&Td(a);case 26:case 5:pa(e,a),t===null&&l&4&&Cd(a),l&512&&Yn(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),l&4&&Od(e,a);break;case 13:pa(e,a),l&4&&Md(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Jy.bind(null,a),yp(e,a))));break;case 22:if(l=a.memoizedState!==null||ma,!l){t=t!==null&&t.memoizedState!==null||Je,n=ma;var u=Je;ma=l,(Je=t)&&!u?ga(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),ma=n,Je=u}break;case 30:break;default:pa(e,a)}}function _d(e){var t=e.alternate;t!==null&&(e.alternate=null,_d(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Me=null,ot=!1;function ya(e,t,a){for(a=a.child;a!==null;)Ud(e,t,a),a=a.sibling}function Ud(e,t,a){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(fn,a)}catch{}switch(a.tag){case 26:Je||$t(a,t),ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Je||$t(a,t);var l=Me,n=ot;Qa(a.type)&&(Me=a.stateNode,ot=!1),ya(e,t,a),$n(a.stateNode),Me=l,ot=n;break;case 5:Je||$t(a,t);case 6:if(l=Me,n=ot,Me=null,ya(e,t,a),Me=l,ot=n,Me!==null)if(ot)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(a.stateNode)}catch(u){je(a,t,u)}else try{Me.removeChild(a.stateNode)}catch(u){je(a,t,u)}break;case 18:Me!==null&&(ot?(e=Me,Eh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),an(e)):Eh(Me,a.stateNode));break;case 4:l=Me,n=ot,Me=a.stateNode.containerInfo,ot=!0,ya(e,t,a),Me=l,ot=n;break;case 0:case 11:case 14:case 15:Ba(2,a,t),Je||Ba(4,a,t),ya(e,t,a);break;case 1:Je||($t(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Nd(a,t,l)),ya(e,t,a);break;case 21:ya(e,t,a);break;case 22:Je=(l=Je)||a.memoizedState!==null,ya(e,t,a),Je=l;break;default:ya(e,t,a)}}function Od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{an(e)}catch(a){je(t,t.return,a)}}}function Md(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{an(e)}catch(a){je(t,t.return,a)}}function Yy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Rd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Rd),t;default:throw Error(s(435,e.tag))}}function au(e,t){var a=Yy(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=$y.bind(null,e,l);l.then(n,n)}})}function ft(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],u=e,o=t,m=o;e:for(;m!==null;){switch(m.tag){case 27:if(Qa(m.type)){Me=m.stateNode,ot=!1;break e}break;case 5:Me=m.stateNode,ot=!1;break e;case 3:case 4:Me=m.stateNode.containerInfo,ot=!0;break e}m=m.return}if(Me===null)throw Error(s(160));Ud(u,o,n),Me=null,ot=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ld(t,e),t=t.sibling}var Qt=null;function Ld(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),l&4&&(Ba(3,e,e.return),kn(3,e),Ba(5,e,e.return));break;case 1:ft(t,e),dt(e),l&512&&(Je||a===null||$t(a,a.return)),l&64&&ma&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Qt;if(ft(t,e),dt(e),l&512&&(Je||a===null||$t(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":u=n.getElementsByTagName("title")[0],(!u||u[mn]||u[Pe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(l),n.head.insertBefore(u,n.querySelector("head > title"))),lt(u,l,a),u[Pe]=e,We(u),l=u;break e;case"link":var o=Lh("link","href",n).get(l+(a.href||""));if(o){for(var m=0;m<o.length;m++)if(u=o[m],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(m,1);break t}}u=n.createElement(l),lt(u,l,a),n.head.appendChild(u);break;case"meta":if(o=Lh("meta","content",n).get(l+(a.content||""))){for(m=0;m<o.length;m++)if(u=o[m],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(m,1);break t}}u=n.createElement(l),lt(u,l,a),n.head.appendChild(u);break;default:throw Error(s(468,l))}u[Pe]=e,We(u),l=u}e.stateNode=l}else Bh(n,e.type,e.stateNode);else e.stateNode=Mh(n,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?Bh(n,e.type,e.stateNode):Mh(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&bs(e,e.memoizedProps,a.memoizedProps)}break;case 27:ft(t,e),dt(e),l&512&&(Je||a===null||$t(a,a.return)),a!==null&&l&4&&bs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ft(t,e),dt(e),l&512&&(Je||a===null||$t(a,a.return)),e.flags&32){n=e.stateNode;try{El(n,"")}catch(V){je(e,e.return,V)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,bs(e,n,a!==null?a.memoizedProps:n)),l&1024&&(js=!0);break;case 6:if(ft(t,e),dt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(V){je(e,e.return,V)}}break;case 3:if(vu=null,n=Qt,Qt=pu(t.containerInfo),ft(t,e),Qt=n,dt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{an(t.containerInfo)}catch(V){je(e,e.return,V)}js&&(js=!1,Bd(e));break;case 4:l=Qt,Qt=pu(e.stateNode.containerInfo),ft(t,e),dt(e),Qt=l;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(nu=pt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 22:n=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,N=ma,_=Je;if(ma=N||n,Je=_||b,ft(t,e),Je=_,ma=N,dt(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||b||ma||Je||ml(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(u=b.stateNode,n)o=u.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{m=b.stateNode;var M=b.memoizedProps.style,A=M!=null&&M.hasOwnProperty("display")?M.display:null;m.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(V){je(b,b.return,V)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=n?"":b.memoizedProps}catch(V){je(b,b.return,V)}}}else if(t.tag===18){if(a===null){b=t;try{var T=b.stateNode;n?Nh(T,!0):Nh(b.stateNode,!1)}catch(V){je(b,b.return,V)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,au(e,a))));break;case 19:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Ad(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var n=a.stateNode,u=Ss(e);tu(e,u,n);break;case 5:var o=a.stateNode;a.flags&32&&(El(o,""),a.flags&=-33);var m=Ss(e);tu(e,m,o);break;case 3:case 4:var b=a.stateNode.containerInfo,N=Ss(e);ws(e,N,b);break;default:throw Error(s(161))}}catch(_){je(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Dd(e,t.alternate,t),t=t.sibling}function ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ba(4,t,t.return),ml(t);break;case 1:$t(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Nd(t,t.return,a),ml(t);break;case 27:$n(t.stateNode);case 26:case 5:$t(t,t.return),ml(t);break;case 22:t.memoizedState===null&&ml(t);break;case 30:ml(t);break;default:ml(t)}e=e.sibling}}function ga(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,u=t,o=u.flags;switch(u.tag){case 0:case 11:case 15:ga(n,u,a),kn(4,u);break;case 1:if(ga(n,u,a),l=u,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){je(l,l.return,N)}if(l=u,n=l.updateQueue,n!==null){var m=l.stateNode;try{var b=n.shared.hiddenCallbacks;if(b!==null)for(n.shared.hiddenCallbacks=null,n=0;n<b.length;n++)mf(b[n],m)}catch(N){je(l,l.return,N)}}a&&o&64&&Ed(u),Yn(u,u.return);break;case 27:Td(u);case 26:case 5:ga(n,u,a),a&&l===null&&o&4&&Cd(u),Yn(u,u.return);break;case 12:ga(n,u,a);break;case 31:ga(n,u,a),a&&o&4&&Od(n,u);break;case 13:ga(n,u,a),a&&o&4&&Md(n,u);break;case 22:u.memoizedState===null&&ga(n,u,a),Yn(u,u.return);break;case 30:break;default:ga(n,u,a)}t=t.sibling}}function zs(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&&e.refCount++,a!=null&&Cn(a))}function Es(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cn(e))}function Zt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hd(e,t,a,l),t=t.sibling}function Hd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,a,l),n&2048&&kn(9,t);break;case 1:Zt(e,t,a,l);break;case 3:Zt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cn(e)));break;case 12:if(n&2048){Zt(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,o=u.id,m=u.onPostCommit;typeof m=="function"&&m(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){je(t,t.return,b)}}else Zt(e,t,a,l);break;case 31:Zt(e,t,a,l);break;case 13:Zt(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,o=t.alternate,t.memoizedState!==null?u._visibility&2?Zt(e,t,a,l):Gn(e,t):u._visibility&2?Zt(e,t,a,l):(u._visibility|=2,Zl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&zs(o,t);break;case 24:Zt(e,t,a,l),n&2048&&Es(t.alternate,t);break;default:Zt(e,t,a,l)}}function Zl(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,o=t,m=a,b=l,N=o.flags;switch(o.tag){case 0:case 11:case 15:Zl(u,o,m,b,n),kn(8,o);break;case 23:break;case 22:var _=o.stateNode;o.memoizedState!==null?_._visibility&2?Zl(u,o,m,b,n):Gn(u,o):(_._visibility|=2,Zl(u,o,m,b,n)),n&&N&2048&&zs(o.alternate,o);break;case 24:Zl(u,o,m,b,n),n&&N&2048&&Es(o.alternate,o);break;default:Zl(u,o,m,b,n)}t=t.sibling}}function Gn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Gn(a,l),n&2048&&zs(l.alternate,l);break;case 24:Gn(a,l),n&2048&&Es(l.alternate,l);break;default:Gn(a,l)}t=t.sibling}}var Xn=8192;function Vl(e,t,a){if(e.subtreeFlags&Xn)for(e=e.child;e!==null;)qd(e,t,a),e=e.sibling}function qd(e,t,a){switch(e.tag){case 26:Vl(e,t,a),e.flags&Xn&&e.memoizedState!==null&&Cp(a,Qt,e.memoizedState,e.memoizedProps);break;case 5:Vl(e,t,a);break;case 3:case 4:var l=Qt;Qt=pu(e.stateNode.containerInfo),Vl(e,t,a),Qt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Xn,Xn=16777216,Vl(e,t,a),Xn=l):Vl(e,t,a));break;default:Vl(e,t,a)}}function kd(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 Qn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,Gd(l,e)}kd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yd(e),e=e.sibling}function Yd(e){switch(e.tag){case 0:case 11:case 15:Qn(e),e.flags&2048&&Ba(9,e,e.return);break;case 3:Qn(e);break;case 12:Qn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,lu(e)):Qn(e);break;default:Qn(e)}}function lu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,Gd(l,e)}kd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ba(8,t,t.return),lu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,lu(t));break;default:lu(t)}e=e.sibling}}function Gd(e,t){for(;Ie!==null;){var a=Ie;switch(a.tag){case 0:case 11:case 15:Ba(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Cn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Ie=l;else e:for(a=e;Ie!==null;){l=Ie;var n=l.sibling,u=l.return;if(_d(l),l===a){Ie=null;break e}if(n!==null){n.return=u,Ie=n;break e}Ie=u}}}var Gy={getCacheForType:function(e){var t=tt(Ve),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return tt(Ve).controller.signal}},Xy=typeof WeakMap=="function"?WeakMap:Map,be=0,Re=null,de=null,me=0,we=0,jt=null,Ha=!1,Kl=!1,Ns=!1,va=0,Ge=0,qa=0,yl=0,Cs=0,zt=0,Fl=0,Zn=null,ht=null,As=!1,nu=0,Xd=0,iu=1/0,uu=null,ka=null,$e=0,Ya=null,Jl=null,xa=0,Ts=0,Rs=null,Qd=null,Vn=0,Ds=null;function Et(){return(be&2)!==0&&me!==0?me&-me:D.T!==null?Bs():no()}function Zd(){if(zt===0)if((me&536870912)===0||pe){var e=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),zt=e}else zt=536870912;return e=St.current,e!==null&&(e.flags|=32),zt}function mt(e,t,a){(e===Re&&(we===2||we===9)||e.cancelPendingCommit!==null)&&($l(e,0),Ga(e,me,zt,!1)),hn(e,a),((be&2)===0||e!==Re)&&(e===Re&&((be&2)===0&&(yl|=a),Ge===4&&Ga(e,me,zt,!1)),Wt(e))}function Vd(e,t,a){if((be&6)!==0)throw Error(s(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||dn(e,t),n=l?Vy(e,t):Us(e,t,!0),u=l;do{if(n===0){Kl&&!l&&Ga(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Qy(a)){n=Us(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var m=e;n=Zn;var b=m.current.memoizedState.isDehydrated;if(b&&($l(m,o).flags|=256),o=Us(m,o,!1),o!==2){if(Ns&&!b){m.errorRecoveryDisabledLanes|=u,yl|=u,n=4;break e}u=ht,ht=n,u!==null&&(ht===null?ht=u:ht.push.apply(ht,u))}n=o}if(u=!1,n!==2)continue}}if(n===1){$l(e,0),Ga(e,t,0,!0);break}e:{switch(l=e,u=n,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Ga(l,t,zt,!Ha);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=nu+300-pt(),10<n)){if(Ga(l,t,zt,!Ha),pi(l,0,!0)!==0)break e;xa=t,l.timeoutHandle=jh(Kd.bind(null,l,a,ht,uu,As,t,zt,yl,Fl,Ha,u,"Throttled",-0,0),n);break e}Kd(l,a,ht,uu,As,t,zt,yl,Fl,Ha,u,null,-0,0)}}break}while(!0);Wt(e)}function Kd(e,t,a,l,n,u,o,m,b,N,_,M,A,T){if(e.timeoutHandle=-1,M=t.subtreeFlags,M&8192||(M&16785408)===16785408){M={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},qd(t,u,M);var V=(u&62914560)===u?nu-pt():(u&4194048)===u?Xd-pt():0;if(V=Ap(M,V),V!==null){xa=u,e.cancelPendingCommit=V(th.bind(null,e,t,u,a,l,n,o,m,b,_,M,null,A,T)),Ga(e,u,o,!N);return}}th(e,t,u,a,l,n,o,m,b)}function Qy(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 l=0;l<a.length;l++){var n=a[l],u=n.getSnapshot;n=n.value;try{if(!xt(u(),n))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 Ga(e,t,a,l){t&=~Cs,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var u=31-vt(n),o=1<<u;l[u]=-1,n&=~o}a!==0&&to(e,a,t)}function cu(){return(be&6)===0?(Kn(0),!1):!0}function _s(){if(de!==null){if(we===0)var e=de.return;else e=de,sa=ul=null,Fc(e),kl=null,Tn=0,e=de;for(;e!==null;)zd(e.alternate,e),e=e.return;de=null}}function $l(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,op(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xa=0,_s(),Re=e,de=a=ua(e.current,null),me=t,we=0,jt=null,Ha=!1,Kl=dn(e,t),Ns=!1,Fl=zt=Cs=yl=qa=Ge=0,ht=Zn=null,As=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-vt(l),u=1<<n;t|=e[n],l&=~u}return va=t,Ai(),a}function Fd(e,t){ce=null,D.H=Bn,t===ql||t===Li?(t=of(),we=3):t===Lc?(t=of(),we=4):we=t===os?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,de===null&&(Ge=1,$i(e,Dt(t,e.current)))}function Jd(){var e=St.current;return e===null?!0:(me&4194048)===me?Mt===null:(me&62914560)===me||(me&536870912)!==0?e===Mt:!1}function $d(){var e=D.H;return D.H=Bn,e===null?Bn:e}function Wd(){var e=D.A;return D.A=Gy,e}function su(){Ge=4,Ha||(me&4194048)!==me&&St.current!==null||(Kl=!0),(qa&134217727)===0&&(yl&134217727)===0||Re===null||Ga(Re,me,zt,!1)}function Us(e,t,a){var l=be;be|=2;var n=$d(),u=Wd();(Re!==e||me!==t)&&(uu=null,$l(e,t)),t=!1;var o=Ge;e:do try{if(we!==0&&de!==null){var m=de,b=jt;switch(we){case 8:_s(),o=6;break e;case 3:case 2:case 9:case 6:St.current===null&&(t=!0);var N=we;if(we=0,jt=null,Wl(e,m,b,N),a&&Kl){o=0;break e}break;default:N=we,we=0,jt=null,Wl(e,m,b,N)}}Zy(),o=Ge;break}catch(_){Fd(e,_)}while(!0);return t&&e.shellSuspendCounter++,sa=ul=null,be=l,D.H=n,D.A=u,de===null&&(Re=null,me=0,Ai()),o}function Zy(){for(;de!==null;)Id(de)}function Vy(e,t){var a=be;be|=2;var l=$d(),n=Wd();Re!==e||me!==t?(uu=null,iu=pt()+500,$l(e,t)):Kl=dn(e,t);e:do try{if(we!==0&&de!==null){t=de;var u=jt;t:switch(we){case 1:we=0,jt=null,Wl(e,t,u,1);break;case 2:case 9:if(sf(u)){we=0,jt=null,Pd(t);break}t=function(){we!==2&&we!==9||Re!==e||(we=7),Wt(e)},u.then(t,t);break e;case 3:we=7;break e;case 4:we=5;break e;case 7:sf(u)?(we=0,jt=null,Pd(t)):(we=0,jt=null,Wl(e,t,u,7));break;case 5:var o=null;switch(de.tag){case 26:o=de.memoizedState;case 5:case 27:var m=de;if(o?Hh(o):m.stateNode.complete){we=0,jt=null;var b=m.sibling;if(b!==null)de=b;else{var N=m.return;N!==null?(de=N,ru(N)):de=null}break t}}we=0,jt=null,Wl(e,t,u,5);break;case 6:we=0,jt=null,Wl(e,t,u,6);break;case 8:_s(),Ge=6;break e;default:throw Error(s(462))}}Ky();break}catch(_){Fd(e,_)}while(!0);return sa=ul=null,D.H=l,D.A=n,be=a,de!==null?0:(Re=null,me=0,Ai(),Ge)}function Ky(){for(;de!==null&&!p0();)Id(de)}function Id(e){var t=wd(e.alternate,e,va);e.memoizedProps=e.pendingProps,t===null?ru(e):de=t}function Pd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=pd(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=pd(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Fc(t);default:zd(a,t),t=de=$o(t,va),t=wd(a,t,va)}e.memoizedProps=e.pendingProps,t===null?ru(e):de=t}function Wl(e,t,a,l){sa=ul=null,Fc(t),kl=null,Tn=0;var n=t.return;try{if(My(e,n,t,a,me)){Ge=1,$i(e,Dt(a,e.current)),de=null;return}}catch(u){if(n!==null)throw de=n,u;Ge=1,$i(e,Dt(a,e.current)),de=null;return}t.flags&32768?(pe||l===1?e=!0:Kl||(me&536870912)!==0?e=!1:(Ha=e=!0,(l===2||l===9||l===3||l===6)&&(l=St.current,l!==null&&l.tag===13&&(l.flags|=16384))),eh(t,e)):ru(t)}function ru(e){var t=e;do{if((t.flags&32768)!==0){eh(t,Ha);return}e=t.return;var a=Hy(t.alternate,t,va);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Ge===0&&(Ge=5)}function eh(e,t){do{var a=qy(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);Ge=6,de=null}function th(e,t,a,l,n,u,o,m,b){e.cancelPendingCommit=null;do ou();while($e!==0);if((be&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=Sc,N0(e,a,u,o,m,b),e===Re&&(de=Re=null,me=0),Jl=t,Ya=e,xa=a,Ts=u,Rs=n,Qd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wy(di,function(){return uh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,n=G.p,G.p=2,o=be,be|=4;try{ky(e,t,a)}finally{be=o,G.p=n,D.T=l}}$e=1,ah(),lh(),nh()}}function ah(){if($e===1){$e=0;var e=Ya,t=Jl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=G.p;G.p=2;var n=be;be|=4;try{Ld(t,e);var u=Zs,o=Yo(e.containerInfo),m=u.focusedElem,b=u.selectionRange;if(o!==m&&m&&m.ownerDocument&&ko(m.ownerDocument.documentElement,m)){if(b!==null&&pc(m)){var N=b.start,_=b.end;if(_===void 0&&(_=N),"selectionStart"in m)m.selectionStart=N,m.selectionEnd=Math.min(_,m.value.length);else{var M=m.ownerDocument||document,A=M&&M.defaultView||window;if(A.getSelection){var T=A.getSelection(),V=m.textContent.length,ee=Math.min(b.start,V),Te=b.end===void 0?ee:Math.min(b.end,V);!T.extend&&ee>Te&&(o=Te,Te=ee,ee=o);var j=qo(m,ee),w=qo(m,Te);if(j&&w&&(T.rangeCount!==1||T.anchorNode!==j.node||T.anchorOffset!==j.offset||T.focusNode!==w.node||T.focusOffset!==w.offset)){var E=M.createRange();E.setStart(j.node,j.offset),T.removeAllRanges(),ee>Te?(T.addRange(E),T.extend(w.node,w.offset)):(E.setEnd(w.node,w.offset),T.addRange(E))}}}}for(M=[],T=m;T=T.parentNode;)T.nodeType===1&&M.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<M.length;m++){var U=M[m];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}wu=!!Qs,Zs=Qs=null}finally{be=n,G.p=l,D.T=a}}e.current=t,$e=2}}function lh(){if($e===2){$e=0;var e=Ya,t=Jl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=G.p;G.p=2;var n=be;be|=4;try{Dd(e,t.alternate,t)}finally{be=n,G.p=l,D.T=a}}$e=3}}function nh(){if($e===4||$e===3){$e=0,g0();var e=Ya,t=Jl,a=xa,l=Qd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$e=5:($e=0,Jl=Ya=null,ih(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ka=null),Wu(a),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(fn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,n=G.p,G.p=2,D.T=null;try{for(var u=e.onRecoverableError,o=0;o<l.length;o++){var m=l[o];u(m.value,{componentStack:m.stack})}}finally{D.T=t,G.p=n}}(xa&3)!==0&&ou(),Wt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Ds?Vn++:(Vn=0,Ds=e):Vn=0,Kn(0)}}function ih(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cn(t)))}function ou(){return ah(),lh(),nh(),uh()}function uh(){if($e!==5)return!1;var e=Ya,t=Ts;Ts=0;var a=Wu(xa),l=D.T,n=G.p;try{G.p=32>a?32:a,D.T=null,a=Rs,Rs=null;var u=Ya,o=xa;if($e=0,Jl=Ya=null,xa=0,(be&6)!==0)throw Error(s(331));var m=be;if(be|=4,Yd(u.current),Hd(u,u.current,o,a),be=m,Kn(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(fn,u)}catch{}return!0}finally{G.p=n,D.T=l,ih(e,t)}}function ch(e,t,a){t=Dt(a,t),t=rs(e.stateNode,t,2),e=Oa(e,t,2),e!==null&&(hn(e,2),Wt(e))}function je(e,t,a){if(e.tag===3)ch(e,e,a);else for(;t!==null;){if(t.tag===3){ch(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ka===null||!ka.has(l))){e=Dt(a,e),a=sd(2),l=Oa(t,a,2),l!==null&&(rd(a,l,t,e),hn(l,2),Wt(l));break}}t=t.return}}function Os(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Xy;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Ns=!0,n.add(a),e=Fy.bind(null,e,t,a),t.then(e,e))}function Fy(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Re===e&&(me&a)===a&&(Ge===4||Ge===3&&(me&62914560)===me&&300>pt()-nu?(be&2)===0&&$l(e,0):Cs|=a,Fl===me&&(Fl=0)),Wt(e)}function sh(e,t){t===0&&(t=eo()),e=ll(e,t),e!==null&&(hn(e,t),Wt(e))}function Jy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),sh(e,a)}function $y(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),sh(e,a)}function Wy(e,t){return vl(e,t)}var fu=null,Il=null,Ms=!1,du=!1,Ls=!1,Xa=0;function Wt(e){e!==Il&&e.next===null&&(Il===null?fu=Il=e:Il=Il.next=e),du=!0,Ms||(Ms=!0,Py())}function Kn(e,t){if(!Ls&&du){Ls=!0;do for(var a=!1,l=fu;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var u=0;else{var o=l.suspendedLanes,m=l.pingedLanes;u=(1<<31-vt(42|e)+1)-1,u&=n&~(o&~m),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,dh(l,u))}else u=me,u=pi(l,l===Re?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||dn(l,u)||(a=!0,dh(l,u));l=l.next}while(a);Ls=!1}}function Iy(){rh()}function rh(){du=Ms=!1;var e=0;Xa!==0&&rp()&&(e=Xa);for(var t=pt(),a=null,l=fu;l!==null;){var n=l.next,u=oh(l,t);u===0?(l.next=null,a===null?fu=n:a.next=n,n===null&&(Il=a)):(a=l,(e!==0||(u&3)!==0)&&(du=!0)),l=n}$e!==0&&$e!==5||Kn(e),Xa!==0&&(Xa=0)}function oh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var o=31-vt(u),m=1<<o,b=n[o];b===-1?((m&a)===0||(m&l)!==0)&&(n[o]=E0(m,t)):b<=t&&(e.expiredLanes|=m),u&=~m}if(t=Re,a=me,a=pi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(we===2||we===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Fu(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||dn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Fu(l),Wu(a)){case 2:case 8:a=Ir;break;case 32:a=di;break;case 268435456:a=Pr;break;default:a=di}return l=fh.bind(null,e),a=vl(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Fu(l),e.callbackPriority=2,e.callbackNode=null,2}function fh(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ou()&&e.callbackNode!==a)return null;var l=me;return l=pi(e,e===Re?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Vd(e,l,t),oh(e,pt()),e.callbackNode!=null&&e.callbackNode===a?fh.bind(null,e):null)}function dh(e,t){if(ou())return null;Vd(e,t,!0)}function Py(){fp(function(){(be&6)!==0?vl(Wr,Iy):rh()})}function Bs(){if(Xa===0){var e=Bl;e===0&&(e=hi,hi<<=1,(hi&261888)===0&&(hi=256)),Xa=e}return Xa}function hh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bi(""+e)}function mh(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 ep(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var u=hh((n[st]||null).action),o=l.submitter;o&&(t=(t=o[st]||null)?hh(t.formAction):o.getAttribute("formAction"),t!==null&&(u=t,o=null));var m=new zi("action","action",null,l,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xa!==0){var b=o?mh(n,o):new FormData(n);ls(a,{pending:!0,data:b,method:n.method,action:u},null,b)}}else typeof u=="function"&&(m.preventDefault(),b=o?mh(n,o):new FormData(n),ls(a,{pending:!0,data:b,method:n.method,action:u},u,b))},currentTarget:n}]})}}for(var Hs=0;Hs<bc.length;Hs++){var qs=bc[Hs],tp=qs.toLowerCase(),ap=qs[0].toUpperCase()+qs.slice(1);Xt(tp,"on"+ap)}Xt(Qo,"onAnimationEnd"),Xt(Zo,"onAnimationIteration"),Xt(Vo,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(vy,"onTransitionRun"),Xt(xy,"onTransitionStart"),Xt(by,"onTransitionCancel"),Xt(Ko,"onTransitionEnd"),jl("onMouseEnter",["mouseout","mouseover"]),jl("onMouseLeave",["mouseout","mouseover"]),jl("onPointerEnter",["pointerout","pointerover"]),jl("onPointerLeave",["pointerout","pointerover"]),Pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fn="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(" "),lp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fn));function yh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var o=l.length-1;0<=o;o--){var m=l[o],b=m.instance,N=m.currentTarget;if(m=m.listener,b!==u&&n.isPropagationStopped())break e;u=m,n.currentTarget=N;try{u(n)}catch(_){Ci(_)}n.currentTarget=null,u=b}else for(o=0;o<l.length;o++){if(m=l[o],b=m.instance,N=m.currentTarget,m=m.listener,b!==u&&n.isPropagationStopped())break e;u=m,n.currentTarget=N;try{u(n)}catch(_){Ci(_)}n.currentTarget=null,u=b}}}}function he(e,t){var a=t[Iu];a===void 0&&(a=t[Iu]=new Set);var l=e+"__bubble";a.has(l)||(ph(t,e,2,!1),a.add(l))}function ks(e,t,a){var l=0;t&&(l|=4),ph(a,e,l,t)}var hu="_reactListening"+Math.random().toString(36).slice(2);function Ys(e){if(!e[hu]){e[hu]=!0,co.forEach(function(a){a!=="selectionchange"&&(lp.has(a)||ks(a,!1,e),ks(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hu]||(t[hu]=!0,ks("selectionchange",!1,t))}}function ph(e,t,a,l){switch(Zh(t)){case 2:var n=Dp;break;case 8:n=_p;break;default:n=ar}a=n.bind(null,t,a,e),n=void 0,!cc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Gs(e,t,a,l,n){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var m=l.stateNode.containerInfo;if(m===n)break;if(o===4)for(o=l.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;m!==null;){if(o=bl(m),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){l=u=o;continue e}m=m.parentNode}}l=l.return}bo(function(){var N=u,_=ic(a),M=[];e:{var A=Fo.get(e);if(A!==void 0){var T=zi,V=e;switch(e){case"keypress":if(wi(a)===0)break e;case"keydown":case"keyup":T=$0;break;case"focusin":V="focus",T=fc;break;case"focusout":V="blur",T=fc;break;case"beforeblur":case"afterblur":T=fc;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":T=jo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=H0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=P0;break;case Qo:case Zo:case Vo:T=Y0;break;case Ko:T=ty;break;case"scroll":case"scrollend":T=L0;break;case"wheel":T=ly;break;case"copy":case"cut":case"paste":T=X0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=Eo;break;case"toggle":case"beforetoggle":T=iy}var ee=(t&4)!==0,Te=!ee&&(e==="scroll"||e==="scrollend"),j=ee?A!==null?A+"Capture":null:A;ee=[];for(var w=N,E;w!==null;){var U=w;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||j===null||(U=pn(w,j),U!=null&&ee.push(Jn(w,U,E))),Te)break;w=w.return}0<ee.length&&(A=new T(A,V,null,a,_),M.push({event:A,listeners:ee}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",A&&a!==nc&&(V=a.relatedTarget||a.fromElement)&&(bl(V)||V[xl]))break e;if((T||A)&&(A=_.window===_?_:(A=_.ownerDocument)?A.defaultView||A.parentWindow:window,T?(V=a.relatedTarget||a.toElement,T=N,V=V?bl(V):null,V!==null&&(Te=h(V),ee=V.tag,V!==Te||ee!==5&&ee!==27&&ee!==6)&&(V=null)):(T=null,V=N),T!==V)){if(ee=jo,U="onMouseLeave",j="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ee=Eo,U="onPointerLeave",j="onPointerEnter",w="pointer"),Te=T==null?A:yn(T),E=V==null?A:yn(V),A=new ee(U,w+"leave",T,a,_),A.target=Te,A.relatedTarget=E,U=null,bl(_)===N&&(ee=new ee(j,w+"enter",V,a,_),ee.target=E,ee.relatedTarget=Te,U=ee),Te=U,T&&V)t:{for(ee=np,j=T,w=V,E=0,U=j;U;U=ee(U))E++;U=0;for(var P=w;P;P=ee(P))U++;for(;0<E-U;)j=ee(j),E--;for(;0<U-E;)w=ee(w),U--;for(;E--;){if(j===w||w!==null&&j===w.alternate){ee=j;break t}j=ee(j),w=ee(w)}ee=null}else ee=null;T!==null&&gh(M,A,T,ee,!1),V!==null&&Te!==null&&gh(M,Te,V,ee,!0)}}e:{if(A=N?yn(N):window,T=A.nodeName&&A.nodeName.toLowerCase(),T==="select"||T==="input"&&A.type==="file")var ge=Uo;else if(Do(A))if(Oo)ge=yy;else{ge=hy;var $=dy}else T=A.nodeName,!T||T.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?N&&lc(N.elementType)&&(ge=Uo):ge=my;if(ge&&(ge=ge(e,N))){_o(M,ge,a,_);break e}$&&$(e,A,N),e==="focusout"&&N&&A.type==="number"&&N.memoizedProps.value!=null&&ac(A,"number",A.value)}switch($=N?yn(N):window,e){case"focusin":(Do($)||$.contentEditable==="true")&&(Tl=$,gc=N,zn=null);break;case"focusout":zn=gc=Tl=null;break;case"mousedown":vc=!0;break;case"contextmenu":case"mouseup":case"dragend":vc=!1,Go(M,a,_);break;case"selectionchange":if(gy)break;case"keydown":case"keyup":Go(M,a,_)}var se;if(hc)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Al?To(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(No&&a.locale!=="ko"&&(Al||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Al&&(se=So()):(Ca=_,sc="value"in Ca?Ca.value:Ca.textContent,Al=!0)),$=mu(N,ye),0<$.length&&(ye=new zo(ye,e,null,a,_),M.push({event:ye,listeners:$}),se?ye.data=se:(se=Ro(a),se!==null&&(ye.data=se)))),(se=cy?sy(e,a):ry(e,a))&&(ye=mu(N,"onBeforeInput"),0<ye.length&&($=new zo("onBeforeInput","beforeinput",null,a,_),M.push({event:$,listeners:ye}),$.data=se)),ep(M,e,N,a,_)}yh(M,t)})}function Jn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function mu(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=pn(e,a),n!=null&&l.unshift(Jn(e,n,u)),n=pn(e,t),n!=null&&l.push(Jn(e,n,u))),e.tag===3)return l;e=e.return}return[]}function np(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gh(e,t,a,l,n){for(var u=t._reactName,o=[];a!==null&&a!==l;){var m=a,b=m.alternate,N=m.stateNode;if(m=m.tag,b!==null&&b===l)break;m!==5&&m!==26&&m!==27||N===null||(b=N,n?(N=pn(a,u),N!=null&&o.unshift(Jn(a,N,b))):n||(N=pn(a,u),N!=null&&o.push(Jn(a,N,b)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var ip=/\r\n?/g,up=/\u0000|\uFFFD/g;function vh(e){return(typeof e=="string"?e:""+e).replace(ip,`
9
- `).replace(up,"")}function xh(e,t){return t=vh(t),vh(e)===t}function Ae(e,t,a,l,n,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||El(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&El(e,""+l);break;case"className":vi(e,"class",l);break;case"tabIndex":vi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(e,a,l);break;case"style":vo(e,l,u);break;case"data":if(t!=="object"){vi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=bi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="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 u=="function"&&(a==="formAction"?(t!=="input"&&Ae(e,t,"name",n.name,n,null),Ae(e,t,"formEncType",n.formEncType,n,null),Ae(e,t,"formMethod",n.formMethod,n,null),Ae(e,t,"formTarget",n.formTarget,n,null)):(Ae(e,t,"encType",n.encType,n,null),Ae(e,t,"method",n.method,n,null),Ae(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=bi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=na);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=bi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),gi(e,"popover",l);break;case"xlinkActuate":la(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":la(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":la(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":la(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":la(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":la(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":la(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":la(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":la(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=O0.get(a)||a,gi(e,a,l))}}function Xs(e,t,a,l,n,u){switch(a){case"style":vo(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?El(e,l):(typeof l=="number"||typeof l=="bigint")&&El(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!so.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),u=e[st]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):gi(e,a,l)}}}function lt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,n=!1,u;for(u in a)if(a.hasOwnProperty(u)){var o=a[u];if(o!=null)switch(u){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ae(e,t,u,o,a,null)}}n&&Ae(e,t,"srcSet",a.srcSet,a,null),l&&Ae(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var m=u=o=n=null,b=null,N=null;for(l in a)if(a.hasOwnProperty(l)){var _=a[l];if(_!=null)switch(l){case"name":n=_;break;case"type":o=_;break;case"checked":b=_;break;case"defaultChecked":N=_;break;case"value":u=_;break;case"defaultValue":m=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,t));break;default:Ae(e,t,l,_,a,null)}}mo(e,u,m,b,N,o,n,!1);return;case"select":he("invalid",e),l=o=u=null;for(n in a)if(a.hasOwnProperty(n)&&(m=a[n],m!=null))switch(n){case"value":u=m;break;case"defaultValue":o=m;break;case"multiple":l=m;default:Ae(e,t,n,m,a,null)}t=u,a=o,e.multiple=!!l,t!=null?zl(e,!!l,t,!1):a!=null&&zl(e,!!l,a,!0);return;case"textarea":he("invalid",e),u=n=l=null;for(o in a)if(a.hasOwnProperty(o)&&(m=a[o],m!=null))switch(o){case"value":l=m;break;case"defaultValue":n=m;break;case"children":u=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:Ae(e,t,o,m,a,null)}po(e,l,n,u);return;case"option":for(b in a)a.hasOwnProperty(b)&&(l=a[b],l!=null)&&(b==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ae(e,t,b,l,a,null));return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<Fn.length;l++)he(Fn[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ae(e,t,N,l,a,null)}return;default:if(lc(t)){for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!==void 0&&Xs(e,t,_,l,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(l=a[m],l!=null&&Ae(e,t,m,l,a,null))}function cp(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,o=null,m=null,b=null,N=null,_=null;for(T in a){var M=a[T];if(a.hasOwnProperty(T)&&M!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":b=M;default:l.hasOwnProperty(T)||Ae(e,t,T,null,l,M)}}for(var A in l){var T=l[A];if(M=a[A],l.hasOwnProperty(A)&&(T!=null||M!=null))switch(A){case"type":u=T;break;case"name":n=T;break;case"checked":N=T;break;case"defaultChecked":_=T;break;case"value":o=T;break;case"defaultValue":m=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(137,t));break;default:T!==M&&Ae(e,t,A,T,l,M)}}tc(e,o,m,b,N,_,u,n);return;case"select":T=o=m=A=null;for(u in a)if(b=a[u],a.hasOwnProperty(u)&&b!=null)switch(u){case"value":break;case"multiple":T=b;default:l.hasOwnProperty(u)||Ae(e,t,u,null,l,b)}for(n in l)if(u=l[n],b=a[n],l.hasOwnProperty(n)&&(u!=null||b!=null))switch(n){case"value":A=u;break;case"defaultValue":m=u;break;case"multiple":o=u;default:u!==b&&Ae(e,t,n,u,l,b)}t=m,a=o,l=T,A!=null?zl(e,!!a,A,!1):!!l!=!!a&&(t!=null?zl(e,!!a,t,!0):zl(e,!!a,a?[]:"",!1));return;case"textarea":T=A=null;for(m in a)if(n=a[m],a.hasOwnProperty(m)&&n!=null&&!l.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ae(e,t,m,null,l,n)}for(o in l)if(n=l[o],u=a[o],l.hasOwnProperty(o)&&(n!=null||u!=null))switch(o){case"value":A=n;break;case"defaultValue":T=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==u&&Ae(e,t,o,n,l,u)}yo(e,A,T);return;case"option":for(var V in a)A=a[V],a.hasOwnProperty(V)&&A!=null&&!l.hasOwnProperty(V)&&(V==="selected"?e.selected=!1:Ae(e,t,V,null,l,A));for(b in l)A=l[b],T=a[b],l.hasOwnProperty(b)&&A!==T&&(A!=null||T!=null)&&(b==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Ae(e,t,b,A,l,T));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 ee in a)A=a[ee],a.hasOwnProperty(ee)&&A!=null&&!l.hasOwnProperty(ee)&&Ae(e,t,ee,null,l,A);for(N in l)if(A=l[N],T=a[N],l.hasOwnProperty(N)&&A!==T&&(A!=null||T!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,t));break;default:Ae(e,t,N,A,l,T)}return;default:if(lc(t)){for(var Te in a)A=a[Te],a.hasOwnProperty(Te)&&A!==void 0&&!l.hasOwnProperty(Te)&&Xs(e,t,Te,void 0,l,A);for(_ in l)A=l[_],T=a[_],!l.hasOwnProperty(_)||A===T||A===void 0&&T===void 0||Xs(e,t,_,A,l,T);return}}for(var j in a)A=a[j],a.hasOwnProperty(j)&&A!=null&&!l.hasOwnProperty(j)&&Ae(e,t,j,null,l,A);for(M in l)A=l[M],T=a[M],!l.hasOwnProperty(M)||A===T||A==null&&T==null||Ae(e,t,M,A,l,T)}function bh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],u=n.transferSize,o=n.initiatorType,m=n.duration;if(u&&m&&bh(o)){for(o=0,m=n.responseEnd,l+=1;l<a.length;l++){var b=a[l],N=b.startTime;if(N>m)break;var _=b.transferSize,M=b.initiatorType;_&&bh(M)&&(b=b.responseEnd,o+=_*(b<m?1:(m-N)/(b-N)))}if(--l,t+=8*(u+o)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Qs=null,Zs=null;function yu(e){return e.nodeType===9?e:e.ownerDocument}function Sh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Vs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ks=null;function rp(){var e=window.event;return e&&e.type==="popstate"?e===Ks?!1:(Ks=e,!0):(Ks=null,!1)}var jh=typeof setTimeout=="function"?setTimeout:void 0,op=typeof clearTimeout=="function"?clearTimeout:void 0,zh=typeof Promise=="function"?Promise:void 0,fp=typeof queueMicrotask=="function"?queueMicrotask:typeof zh<"u"?function(e){return zh.resolve(null).then(e).catch(dp)}:jh;function dp(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function Eh(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),an(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")$n(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$n(a);for(var u=a.firstChild;u;){var o=u.nextSibling,m=u.nodeName;u[mn]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=o}}else a==="body"&&$n(e.ownerDocument.body);a=n}while(a);an(t)}function Nh(e,t){var a=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Fs(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":Fs(a),Pu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function hp(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[mn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function mp(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Lt(e.nextSibling),e===null))return null;return e}function Ch(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lt(e.nextSibling),e===null))return null;return e}function Js(e){return e.data==="$?"||e.data==="$~"}function $s(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Lt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ws=null;function Ah(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Lt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Th(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Rh(e,t,a){switch(t=yu(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function $n(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pu(e)}var Bt=new Map,Dh=new Set;function pu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ba=G.d;G.d={f:pp,r:gp,D:vp,C:xp,L:bp,m:Sp,X:jp,S:wp,M:zp};function pp(){var e=ba.f(),t=cu();return e||t}function gp(e){var t=Sl(e);t!==null&&t.tag===5&&t.type==="form"?Ff(t):ba.r(e)}var Pl=typeof document>"u"?null:document;function _h(e,t,a){var l=Pl;if(l&&typeof t=="string"&&t){var n=Tt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),Dh.has(n)||(Dh.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),lt(t,"link",e),We(t),l.head.appendChild(t)))}}function vp(e){ba.D(e),_h("dns-prefetch",e,null)}function xp(e,t){ba.C(e,t),_h("preconnect",e,t)}function bp(e,t,a){ba.L(e,t,a);var l=Pl;if(l&&e&&t){var n='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Tt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Tt(a.imageSizes)+'"]')):n+='[href="'+Tt(e)+'"]';var u=n;switch(t){case"style":u=en(e);break;case"script":u=tn(e)}Bt.has(u)||(e=z({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Bt.set(u,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Wn(u))||t==="script"&&l.querySelector(In(u))||(t=l.createElement("link"),lt(t,"link",e),We(t),l.head.appendChild(t)))}}function Sp(e,t){ba.m(e,t);var a=Pl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Tt(l)+'"][href="'+Tt(e)+'"]',u=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=tn(e)}if(!Bt.has(u)&&(e=z({rel:"modulepreload",href:e},t),Bt.set(u,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(In(u)))return}l=a.createElement("link"),lt(l,"link",e),We(l),a.head.appendChild(l)}}}function wp(e,t,a){ba.S(e,t,a);var l=Pl;if(l&&e){var n=wl(l).hoistableStyles,u=en(e);t=t||"default";var o=n.get(u);if(!o){var m={loading:0,preload:null};if(o=l.querySelector(Wn(u)))m.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Bt.get(u))&&Is(e,a);var b=o=l.createElement("link");We(b),lt(b,"link",e),b._p=new Promise(function(N,_){b.onload=N,b.onerror=_}),b.addEventListener("load",function(){m.loading|=1}),b.addEventListener("error",function(){m.loading|=2}),m.loading|=4,gu(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:m},n.set(u,o)}}}function jp(e,t){ba.X(e,t);var a=Pl;if(a&&e){var l=wl(a).hoistableScripts,n=tn(e),u=l.get(n);u||(u=a.querySelector(In(n)),u||(e=z({src:e,async:!0},t),(t=Bt.get(n))&&Ps(e,t),u=a.createElement("script"),We(u),lt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function zp(e,t){ba.M(e,t);var a=Pl;if(a&&e){var l=wl(a).hoistableScripts,n=tn(e),u=l.get(n);u||(u=a.querySelector(In(n)),u||(e=z({src:e,async:!0,type:"module"},t),(t=Bt.get(n))&&Ps(e,t),u=a.createElement("script"),We(u),lt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function Uh(e,t,a,l){var n=(n=I.current)?pu(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=en(a.href),a=wl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=en(a.href);var u=wl(n).hoistableStyles,o=u.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,o),(u=n.querySelector(Wn(e)))&&!u._p&&(o.instance=u,o.state.loading=5),Bt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Bt.set(e,a),u||Ep(n,e,a,o.state))),t&&l===null)throw Error(s(528,""));return o}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tn(a),a=wl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function en(e){return'href="'+Tt(e)+'"'}function Wn(e){return'link[rel="stylesheet"]['+e+"]"}function Oh(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function Ep(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),lt(t,"link",a),We(t),e.head.appendChild(t))}function tn(e){return'[src="'+Tt(e)+'"]'}function In(e){return"script[async]"+e}function Mh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Tt(a.href)+'"]');if(l)return t.instance=l,We(l),l;var n=z({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),We(l),lt(l,"style",n),gu(l,a.precedence,e),t.instance=l;case"stylesheet":n=en(a.href);var u=e.querySelector(Wn(n));if(u)return t.state.loading|=4,t.instance=u,We(u),u;l=Oh(a),(n=Bt.get(n))&&Is(l,n),u=(e.ownerDocument||e).createElement("link"),We(u);var o=u;return o._p=new Promise(function(m,b){o.onload=m,o.onerror=b}),lt(u,"link",l),t.state.loading|=4,gu(u,a.precedence,e),t.instance=u;case"script":return u=tn(a.src),(n=e.querySelector(In(u)))?(t.instance=n,We(n),n):(l=a,(n=Bt.get(u))&&(l=z({},a),Ps(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),lt(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,gu(l,a.precedence,e));return t.instance}function gu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,u=n,o=0;o<l.length;o++){var m=l[o];if(m.dataset.precedence===t)u=m;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ps(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vu=null;function Lh(e,t,a){if(vu===null){var l=new Map,n=vu=new Map;n.set(a,l)}else n=vu,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var u=a[n];if(!(u[mn]||u[Pe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var o=u.getAttribute(t)||"";o=e+o;var m=l.get(o);m?m.push(u):l.set(o,[u])}}return l}function Bh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Np(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=en(l.href),u=t.querySelector(Wn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=xu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,We(u);return}u=t.ownerDocument||t,l=Oh(l),(n=Bt.get(n))&&Is(l,n),u=u.createElement("link"),We(u);var o=u;o._p=new Promise(function(m,b){o.onload=m,o.onerror=b}),lt(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=xu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var er=0;function Ap(e,t){return e.stylesheets&&e.count===0&&Su(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&er===0&&(er=62500*sp());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>er?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Su(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bu=null;function Su(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bu=new Map,t.forEach(Tp,e),bu=null,xu.call(e))}function Tp(e,t){if(!(t.state.loading&4)){var a=bu.get(e);if(a)var l=a.get(null);else{a=new Map,bu.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var o=n[u];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}n=t.instance,o=n.getAttribute("data-precedence"),u=a.get(o)||l,u===l&&a.set(null,n),a.set(o,n),this.count++,l=xu.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Pn={$$typeof:F,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Rp(e,t,a,l,n,u,o,m,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.hiddenUpdates=Ju(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function qh(e,t,a,l,n,u,o,m,b,N,_,M){return e=new Rp(e,t,a,o,b,N,_,M,m),t=1,u===!0&&(t|=24),u=bt(3,null,null,t),e.current=u,u.stateNode=e,t=Uc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},Bc(u),e}function kh(e){return e?(e=_l,e):_l}function Yh(e,t,a,l,n,u){n=kh(n),l.context===null?l.context=n:l.pendingContext=n,l=Ua(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Oa(e,l,t),a!==null&&(mt(a,e,t),Dn(a,e,t))}function Gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function tr(e,t){Gh(e,t),(e=e.alternate)&&Gh(e,t)}function Xh(e){if(e.tag===13||e.tag===31){var t=ll(e,67108864);t!==null&&mt(t,e,67108864),tr(e,67108864)}}function Qh(e){if(e.tag===13||e.tag===31){var t=Et();t=$u(t);var a=ll(e,t);a!==null&&mt(a,e,t),tr(e,t)}}var wu=!0;function Dp(e,t,a,l){var n=D.T;D.T=null;var u=G.p;try{G.p=2,ar(e,t,a,l)}finally{G.p=u,D.T=n}}function _p(e,t,a,l){var n=D.T;D.T=null;var u=G.p;try{G.p=8,ar(e,t,a,l)}finally{G.p=u,D.T=n}}function ar(e,t,a,l){if(wu){var n=lr(l);if(n===null)Gs(e,t,l,ju,a),Vh(e,l);else if(Op(n,e,t,a,l))l.stopPropagation();else if(Vh(e,l),t&4&&-1<Up.indexOf(e)){for(;n!==null;){var u=Sl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var o=Ia(u.pendingLanes);if(o!==0){var m=u;for(m.pendingLanes|=2,m.entangledLanes|=2;o;){var b=1<<31-vt(o);m.entanglements[1]|=b,o&=~b}Wt(u),(be&6)===0&&(iu=pt()+500,Kn(0))}}break;case 31:case 13:m=ll(u,2),m!==null&&mt(m,u,2),cu(),tr(u,2)}if(u=lr(l),u===null&&Gs(e,t,l,ju,a),u===n)break;n=u}n!==null&&l.stopPropagation()}else Gs(e,t,l,null,a)}}function lr(e){return e=ic(e),nr(e)}var ju=null;function nr(e){if(ju=null,e=bl(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===31){if(e=x(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 ju=e,null}function Zh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(v0()){case Wr:return 2;case Ir:return 8;case di:case x0:return 32;case Pr:return 268435456;default:return 32}default:return 32}}var ir=!1,Za=null,Va=null,Ka=null,ei=new Map,ti=new Map,Fa=[],Up="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vh(e,t){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(t.pointerId)}}function ai(e,t,a,l,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[n]},t!==null&&(t=Sl(t),t!==null&&Xh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Op(e,t,a,l,n){switch(t){case"focusin":return Za=ai(Za,e,t,a,l,n),!0;case"dragenter":return Va=ai(Va,e,t,a,l,n),!0;case"mouseover":return Ka=ai(Ka,e,t,a,l,n),!0;case"pointerover":var u=n.pointerId;return ei.set(u,ai(ei.get(u)||null,e,t,a,l,n)),!0;case"gotpointercapture":return u=n.pointerId,ti.set(u,ai(ti.get(u)||null,e,t,a,l,n)),!0}return!1}function Kh(e){var t=bl(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,io(e.priority,function(){Qh(a)});return}}else if(t===31){if(t=x(a),t!==null){e.blockedOn=t,io(e.priority,function(){Qh(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 zu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=lr(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);nc=l,a.target.dispatchEvent(l),nc=null}else return t=Sl(a),t!==null&&Xh(t),e.blockedOn=a,!1;t.shift()}return!0}function Fh(e,t,a){zu(e)&&a.delete(t)}function Mp(){ir=!1,Za!==null&&zu(Za)&&(Za=null),Va!==null&&zu(Va)&&(Va=null),Ka!==null&&zu(Ka)&&(Ka=null),ei.forEach(Fh),ti.forEach(Fh)}function Eu(e,t){e.blockedOn===t&&(e.blockedOn=null,ir||(ir=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Mp)))}var Nu=null;function Jh(e){Nu!==e&&(Nu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Nu===e&&(Nu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(nr(l||a)===null)continue;break}var u=Sl(a);u!==null&&(e.splice(t,3),t-=3,ls(u,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function an(e){function t(b){return Eu(b,e)}Za!==null&&Eu(Za,e),Va!==null&&Eu(Va,e),Ka!==null&&Eu(Ka,e),ei.forEach(t),ti.forEach(t);for(var a=0;a<Fa.length;a++){var l=Fa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Fa.length&&(a=Fa[0],a.blockedOn===null);)Kh(a),a.blockedOn===null&&Fa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],u=a[l+1],o=n[st]||null;if(typeof u=="function")o||Jh(a);else if(o){var m=null;if(u&&u.hasAttribute("formAction")){if(n=u,o=u[st]||null)m=o.formAction;else if(nr(n)!==null)continue}else m=o.action;typeof m=="function"?a[l+1]=m:(a.splice(l,3),l-=3),Jh(a)}}}function $h(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ur(e){this._internalRoot=e}Cu.prototype.render=ur.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Et();Yh(a,l,e,t,null,null)},Cu.prototype.unmount=ur.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yh(e.current,2,null,e,null,null),cu(),t[xl]=null}};function Cu(e){this._internalRoot=e}Cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=no();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Fa.length&&t!==0&&t<Fa[a].priority;a++);Fa.splice(a,0,e),a===0&&Kh(e)}};var Wh=c.version;if(Wh!=="19.2.8")throw Error(s(527,Wh,"19.2.8"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var Lp={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{fn=Au.inject(Lp),gt=Au}catch{}}return ni.createRoot=function(e,t){if(!d(e))throw Error(s(299));var a=!1,l="",n=nd,u=id,o=ud;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=qh(e,1,!1,null,null,a,l,null,n,u,o,$h),e[xl]=t.current,Ys(e),new ur(t)},ni.hydrateRoot=function(e,t,a){if(!d(e))throw Error(s(299));var l=!1,n="",u=nd,o=id,m=ud,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=qh(e,1,!0,t,a??null,l,n,b,u,o,m,$h),t.context=kh(null),a=t.current,l=Et(),l=$u(l),n=Ua(l),n.callback=null,Oa(a,n,l),a=l,t.current.lanes=a,hn(t,a),Wt(t),e[xl]=t.current,Ys(e),new Cu(t)},ni.version="19.2.8",ni}var cm;function Kp(){if(cm)return rr.exports;cm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),rr.exports=Vp(),rr.exports}var Fp=Kp();var Rr=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Tm=/^[\\/]{2}/;function Jp(i,c){return c+i.replace(/\\/g,"/")}var sm="popstate";function rm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function $p(i={}){function c(s,d){let h=d.state?.masked,{pathname:y,search:x,hash:p}=h||s.location;return Sr("",{pathname:y,search:x,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default",h?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,d){return typeof d=="string"?d:si(d)}return Ip(c,r,null,i)}function Be(i,c){if(i===!1||i===null||typeof i>"u")throw new Error(c)}function Ht(i,c){if(!i){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Wp(){return Math.random().toString(36).substring(2,10)}function om(i,c){return{usr:i.state,key:i.key,idx:c,masked:i.mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Sr(i,c,r=null,s,d){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof c=="string"?cn(c):c,state:r,key:c&&c.key||s||Wp(),mask:d}}function si({pathname:i="/",search:c="",hash:r=""}){return c&&c!=="?"&&(i+=c.charAt(0)==="?"?c:"?"+c),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function cn(i){let c={};if(i){let r=i.indexOf("#");r>=0&&(c.hash=i.substring(r),i=i.substring(0,r));let s=i.indexOf("?");s>=0&&(c.search=i.substring(s),i=i.substring(0,s)),i&&(c.pathname=i)}return c}function Ip(i,c,r,s={}){let{window:d=document.defaultView,v5Compat:h=!1}=s,y=d.history,x="POP",p=null,g=C();g==null&&(g=0,y.replaceState({...y.state,idx:g},""));function C(){return(y.state||{idx:null}).idx}function z(){x="POP";let L=C(),X=L==null?null:L-g;g=L,p&&p({action:x,location:O.location,delta:X})}function B(L,X){x="PUSH";let W=rm(L)?L:Sr(O.location,L,X);g=C()+1;let F=om(W,g),le=O.createHref(W.mask||W);try{y.pushState(F,"",le)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;d.location.assign(le)}h&&p&&p({action:x,location:O.location,delta:1})}function Y(L,X){x="REPLACE";let W=rm(L)?L:Sr(O.location,L,X);g=C();let F=om(W,g),le=O.createHref(W.mask||W);y.replaceState(F,"",le),h&&p&&p({action:x,location:O.location,delta:0})}function Q(L){return Pp(d,L)}let O={get action(){return x},get location(){return i(d,y)},listen(L){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(sm,z),p=L,()=>{d.removeEventListener(sm,z),p=null}},createHref(L){return c(d,L)},createURL:Q,encodeLocation(L){let X=Q(L);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:B,replace:Y,go(L){return y.go(L)}};return O}function Pp(i,c,r=!1){let s="http://localhost";i&&(s=i.location.origin!=="null"?i.location.origin:i.location.href),Be(s,"No window.location.(origin|href) available to create URL");let d=typeof c=="string"?c:si(c);return d=d.replace(/ $/,"%20"),!r&&Tm.test(d)&&(d=s+d),new URL(d,s)}function Rm(i,c,r="/"){return eg(i,c,r,!1)}function eg(i,c,r,s,d){let h=typeof c=="string"?cn(c):c,y=Sa(h.pathname||"/",r);if(y==null)return null;let x=tg(i),p=null,g=dg(y);for(let C=0;p==null&&C<x.length;++C)p=fg(x[C],g,s);return p}function tg(i){let c=Dm(i);return ag(c),c}function Dm(i,c=[],r=[],s="",d=!1){let h=(y,x,p=d,g)=>{let C={relativePath:g===void 0?y.path||"":g,caseSensitive:y.caseSensitive===!0,childrenIndex:x,route:y};if(C.relativePath.startsWith("/")){if(!C.relativePath.startsWith(s)&&p)return;Be(C.relativePath.startsWith(s),`Absolute route path "${C.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),C.relativePath=C.relativePath.slice(s.length)}let z=Vt([s,C.relativePath]),B=r.concat(C);y.children&&y.children.length>0&&(Be(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${z}".`),Dm(y.children,c,B,z,p)),!(y.path==null&&!y.index)&&c.push({path:z,score:rg(z,y.index),routesMeta:B.map((Y,Q)=>{let[O,L]=Om(Y.relativePath,Y.caseSensitive,Q===B.length-1);return{...Y,matcher:O,compiledParams:L}})})};return i.forEach((y,x)=>{if(y.path===""||!y.path?.includes("?"))h(y,x);else for(let p of _m(y.path))h(y,x,!0,p)}),c}function _m(i){let c=i.split("/");if(c.length===0)return[];let[r,...s]=c,d=r.endsWith("?"),h=r.replace(/\?$/,"");if(s.length===0)return d?[h,""]:[h];let y=_m(s.join("/")),x=[];return x.push(...y.map(p=>p===""?h:[h,p].join("/"))),d&&x.push(...y),x.map(p=>i.startsWith("/")&&p===""?"/":p)}function ag(i){i.sort((c,r)=>c.score!==r.score?r.score-c.score:og(c.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var lg=/^:[\w-]+$/,ng=3,ig=2,ug=1,cg=10,sg=-2,fm=i=>i==="*";function rg(i,c){let r=i.split("/"),s=r.length;return r.some(fm)&&(s+=sg),c&&(s+=ig),r.filter(d=>!fm(d)).reduce((d,h)=>d+(lg.test(h)?ng:h===""?ug:cg),s)}function og(i,c){return i.length===c.length&&i.slice(0,-1).every((s,d)=>s===c[d])?i[i.length-1]-c[c.length-1]:0}function fg(i,c,r=!1){let{routesMeta:s}=i,d={},h="/",y=[];for(let x=0;x<s.length;++x){let p=s[x],g=x===s.length-1,C=h==="/"?c:c.slice(h.length)||"/",z={path:p.relativePath,caseSensitive:p.caseSensitive,end:g},B=p.matcher&&p.compiledParams?Um(z,C,p.matcher,p.compiledParams):Uu(z,C),Y=p.route;if(!B&&g&&r&&!s[s.length-1].route.index&&(B=Uu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},C)),!B)return null;Object.assign(d,B.params),y.push({params:d,pathname:Vt([h,B.pathname]),pathnameBase:yg(Vt([h,B.pathnameBase])),route:Y}),B.pathnameBase!=="/"&&(h=Vt([h,B.pathnameBase]))}return y}function Uu(i,c){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,s]=Om(i.path,i.caseSensitive,i.end);return Um(i,c,r,s)}function Um(i,c,r,s){let d=c.match(r);if(!d)return null;let h=d[0],y=h.replace(/(.)\/+$/,"$1"),x=d.slice(1);return{params:s.reduce((g,{paramName:C,isOptional:z},B)=>{if(C==="*"){let Q=x[B]||"";y=h.slice(0,h.length-Q.length).replace(/(.)\/+$/,"$1")}const Y=x[B];return z&&!Y?g[C]=void 0:g[C]=(Y||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:y,pattern:i}}function Om(i,c=!1,r=!0){Ht(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,x,p,g,C)=>{if(s.push({paramName:x,isOptional:p!=null}),p){let z=C.charAt(g+y.length);return z&&z!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,c?void 0:"i"),s]}function dg(i){try{return i.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return Ht(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),i}}function Sa(i,c){if(c==="/")return i;if(!i.toLowerCase().startsWith(c.toLowerCase()))return null;let r=c.endsWith("/")?c.length-1:c.length,s=i.charAt(r);return s&&s!=="/"?null:i.slice(r)||"/"}function hg(i,c="/"){let{pathname:r,search:s="",hash:d=""}=typeof i=="string"?cn(i):i,h;return r?(r=Mm(r),r.startsWith("/")?h=dm(r.substring(1),"/"):h=dm(r,c)):h=c,{pathname:h,search:pg(s),hash:gg(d)}}function dm(i,c){let r=Ou(c).split("/");return i.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function hr(i,c,r,s){return`Cannot include a '${i}' character in a manually specified \`to.${c}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function mg(i){return i.filter((c,r)=>r===0||c.route.path&&c.route.path.length>0)}function Dr(i){let c=mg(i);return c.map((r,s)=>s===c.length-1?r.pathname:r.pathnameBase)}function ku(i,c,r,s=!1){let d;typeof i=="string"?d=cn(i):(d={...i},Be(!d.pathname||!d.pathname.includes("?"),hr("?","pathname","search",d)),Be(!d.pathname||!d.pathname.includes("#"),hr("#","pathname","hash",d)),Be(!d.search||!d.search.includes("#"),hr("#","search","hash",d)));let h=i===""||d.pathname==="",y=h?"/":d.pathname,x;if(y==null)x=r;else{let z=c.length-1;if(!s&&y.startsWith("..")){let B=y.split("/");for(;B[0]==="..";)B.shift(),z-=1;d.pathname=B.join("/")}x=z>=0?c[z]:"/"}let p=hg(d,x),g=y&&y!=="/"&&y.endsWith("/"),C=(h||y===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||C)&&(p.pathname+="/"),p}var Mm=i=>i.replace(/[\\/]{2,}/g,"/"),Vt=i=>Mm(i.join("/")),Ou=i=>i.replace(/\/+$/,""),yg=i=>Ou(i).replace(/^\/*/,"/"),pg=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,gg=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,vg=class{constructor(i,c,r,s=!1){this.status=i,this.statusText=c||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function xg(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function bg(i){let c=i.map(r=>r.route.path).filter(Boolean);return Vt(c)||"/"}var Lm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Bm(i,c){let r=i;if(typeof r!="string"||!Rr.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,d=!1;if(Lm)try{let h=new URL(window.location.href),y=Tm.test(r)?new URL(Jp(r,h.protocol)):new URL(r),x=Sa(y.pathname,c);y.origin===h.origin&&x!=null?r=x+y.search+y.hash:d=!0}catch{Ht(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Hm=["POST","PUT","PATCH","DELETE"];new Set(Hm);var Sg=["GET",...Hm];new Set(Sg);var wg=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function jg(i){try{return wg.includes(new URL(i).protocol)}catch{return!1}}var sn=S.createContext(null);sn.displayName="DataRouter";var Yu=S.createContext(null);Yu.displayName="DataRouterState";var qm=S.createContext(!1);function zg(){return S.useContext(qm)}var km=S.createContext({isTransitioning:!1});km.displayName="ViewTransition";var Eg=S.createContext(new Map);Eg.displayName="Fetchers";var Ng=S.createContext(null);Ng.displayName="Await";var Ct=S.createContext(null);Ct.displayName="Navigation";var oi=S.createContext(null);oi.displayName="Location";var Pt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Pt.displayName="Route";var _r=S.createContext(null);_r.displayName="RouteError";var Ym="REACT_ROUTER_ERROR",Cg="REDIRECT",Ag="ROUTE_ERROR_RESPONSE";function Tg(i){if(i.startsWith(`${Ym}:${Cg}:{`))try{let c=JSON.parse(i.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function Rg(i){if(i.startsWith(`${Ym}:${Ag}:{`))try{let c=JSON.parse(i.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new vg(c.status,c.statusText,c.data)}catch{}}function Dg(i,{relative:c}={}){Be(rn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=S.useContext(Ct),{hash:d,pathname:h,search:y}=fi(i,{relative:c}),x=h;return r!=="/"&&(x=h==="/"?r:Vt([r,h])),s.createHref({pathname:x,search:y,hash:d})}function rn(){return S.useContext(oi)!=null}function qt(){return Be(rn(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(oi).location}var Gm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Xm(i){S.useContext(Ct).static||S.useLayoutEffect(i)}function ea(){let{isDataRoute:i}=S.useContext(Pt);return i?Qg():_g()}function _g(){Be(rn(),"useNavigate() may be used only in the context of a <Router> component.");let i=S.useContext(sn),{basename:c,navigator:r}=S.useContext(Ct),{matches:s}=S.useContext(Pt),{pathname:d}=qt(),h=JSON.stringify(Dr(s)),y=S.useRef(!1);return Xm(()=>{y.current=!0}),S.useCallback((p,g={})=>{if(Ht(y.current,Gm),!y.current)return;if(typeof p=="number"){r.go(p);return}let C=ku(p,JSON.parse(h),d,g.relative==="path");i==null&&c!=="/"&&(C.pathname=C.pathname==="/"?c:Vt([c,C.pathname])),(g.replace?r.replace:r.push)(C,g.state,g)},[c,r,h,d,i])}S.createContext(null);function fi(i,{relative:c}={}){let{matches:r}=S.useContext(Pt),{pathname:s}=qt(),d=JSON.stringify(Dr(r));return S.useMemo(()=>ku(i,JSON.parse(d),s,c==="path"),[i,d,s,c])}function Ug(i,c){return Qm(i,c)}function Qm(i,c,r){Be(rn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=S.useContext(Ct),{matches:d}=S.useContext(Pt),h=d[d.length-1],y=h?h.params:{},x=h?h.pathname:"/",p=h?h.pathnameBase:"/",g=h&&h.route;{let L=g&&g.path||"";Vm(x,!g||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
8
+ `+l.stack}}var Ft=Object.prototype.hasOwnProperty,la=i.unstable_scheduleCallback,xl=i.unstable_cancelCallback,p0=i.unstable_shouldYield,g0=i.unstable_requestPaint,pt=i.unstable_now,v0=i.unstable_getCurrentPriorityLevel,Wr=i.unstable_ImmediatePriority,Ir=i.unstable_UserBlockingPriority,hi=i.unstable_NormalPriority,x0=i.unstable_LowPriority,Pr=i.unstable_IdlePriority,b0=i.log,S0=i.unstable_setDisableYieldValue,dn=null,gt=null;function Na(e){if(typeof b0=="function"&&S0(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(dn,e)}catch{}}var vt=Math.clz32?Math.clz32:z0,w0=Math.log,j0=Math.LN2;function z0(e){return e>>>=0,e===0?32:31-(w0(e)/j0|0)|0}var mi=256,yi=262144,pi=4194304;function Pa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function gi(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,u=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var m=l&134217727;return m!==0?(l=m&~u,l!==0?n=Pa(l):(o&=m,o!==0?n=Pa(o):a||(a=m&~e,a!==0&&(n=Pa(a))))):(m=l&~u,m!==0?n=Pa(m):o!==0?n=Pa(o):a||(a=l&~e,a!==0&&(n=Pa(a)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:n}function hn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function E0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function eo(){var e=pi;return pi<<=1,(pi&62914560)===0&&(pi=4194304),e}function Ju(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function mn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function N0(e,t,a,l,n,u){var o=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 m=e.entanglements,b=e.expirationTimes,N=e.hiddenUpdates;for(a=o&~a;0<a;){var _=31-vt(a),M=1<<_;m[_]=0,b[_]=-1;var A=N[_];if(A!==null)for(N[_]=null,_=0;_<A.length;_++){var R=A[_];R!==null&&(R.lane&=-536870913)}a&=~M}l!==0&&to(e,l,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(o&~t))}function to(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function ao(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-vt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function lo(e,t){var a=t&-t;return a=(a&42)!==0?1:$u(a),(a&(e.suspendedLanes|t))!==0?0:a}function $u(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 Wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function no(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:Zh(e.type))}function io(e,t){var a=q.p;try{return q.p=e,t()}finally{q.p=a}}var Ca=Math.random().toString(36).slice(2),at="__reactFiber$"+Ca,rt="__reactProps$"+Ca,bl="__reactContainer$"+Ca,Iu="__reactEvents$"+Ca,C0="__reactListeners$"+Ca,A0="__reactHandles$"+Ca,uo="__reactResources$"+Ca,yn="__reactMarker$"+Ca;function Pu(e){delete e[at],delete e[rt],delete e[Iu],delete e[C0],delete e[A0]}function Sl(e){var t=e[at];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bl]||a[at]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Th(e);e!==null;){if(a=e[at])return a;e=Th(e)}return t}e=a,a=e.parentNode}return null}function wl(e){if(e=e[at]||e[bl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function jl(e){var t=e[uo];return t||(t=e[uo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[yn]=!0}var co=new Set,so={};function el(e,t){zl(e,t),zl(e+"Capture",t)}function zl(e,t){for(so[e]=t,e=0;e<t.length;e++)co.add(t[e])}var T0=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]*$"),ro={},oo={};function R0(e){return Ft.call(oo,e)?!0:Ft.call(ro,e)?!1:T0.test(e)?oo[e]=!0:(ro[e]=!0,!1)}function vi(e,t,a){if(R0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function xi(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}e.setAttribute(t,""+a)}}function na(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function D0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){a=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ec(e){if(!e._valueTracker){var t=fo(e)?"checked":"value";e._valueTracker=D0(e,t,""+e[t])}}function ho(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=fo(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function bi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _0=/[\n"\\]/g;function Rt(e){return e.replace(_0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tc(e,t,a,l,n,u,o,m){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?ac(e,o,Tt(t)):a!=null?ac(e,o,Tt(a)):l!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Tt(m):e.removeAttribute("name")}function mo(e,t,a,l,n,u,o,m){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ec(e);return}a=a!=null?""+Tt(a):"",t=t!=null?""+Tt(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=m?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),ec(e)}function ac(e,t,a){t==="number"&&bi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function El(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Tt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function yo(e,t,a){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Tt(a):""}function po(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(Ne(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Tt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),ec(e)}function Nl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var U0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function go(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||U0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function vo(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&go(e,n,l)}else for(var u in t)t.hasOwnProperty(u)&&go(e,u,t[u])}function lc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var O0=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"]]),M0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Si(e){return M0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ia(){}var nc=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cl=null,Al=null;function xo(e){var t=wl(e);if(t&&(e=t.stateNode)){var a=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(tc(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(a=a.querySelectorAll('input[name="'+Rt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[rt]||null;if(!n)throw Error(s(90));tc(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&ho(l)}break e;case"textarea":yo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&El(e,!!a.multiple,t,!1)}}}var uc=!1;function bo(e,t,a){if(uc)return e(t,a);uc=!0;try{var l=e(t);return l}finally{if(uc=!1,(Cl!==null||Al!==null)&&(su(),Cl&&(t=Cl,e=Al,Al=Cl=null,xo(t),e)))for(t=0;t<e.length;t++)xo(e[t])}}function gn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[rt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cc=!1;if(ua)try{var vn={};Object.defineProperty(vn,"passive",{get:function(){cc=!0}}),window.addEventListener("test",vn,vn),window.removeEventListener("test",vn,vn)}catch{cc=!1}var Aa=null,sc=null,wi=null;function So(){if(wi)return wi;var e,t=sc,a=t.length,l,n="value"in Aa?Aa.value:Aa.textContent,u=n.length;for(e=0;e<a&&t[e]===n[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===n[u-l];l++);return wi=n.slice(e,1<l?1-l:void 0)}function ji(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 zi(){return!0}function wo(){return!1}function ot(e){function t(a,l,n,u,o){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(u):u[m]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?zi:wo,this.isPropagationStopped=wo,this}return z(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=zi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=zi)},persist:function(){},isPersistent:zi}),t}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ei=ot(tl),xn=z({},tl,{view:0,detail:0}),L0=ot(xn),rc,oc,bn,Ni=z({},xn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,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!==bn&&(bn&&e.type==="mousemove"?(rc=e.screenX-bn.screenX,oc=e.screenY-bn.screenY):oc=rc=0,bn=e),rc)},movementY:function(e){return"movementY"in e?e.movementY:oc}}),jo=ot(Ni),B0=z({},Ni,{dataTransfer:0}),H0=ot(B0),k0=z({},xn,{relatedTarget:0}),fc=ot(k0),q0=z({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),Y0=ot(q0),G0=z({},tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),X0=ot(G0),Q0=z({},tl,{data:0}),zo=ot(Q0),Z0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V0={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"},K0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K0[e])?!!t[e]:!1}function dc(){return F0}var J0=z({},xn,{key:function(e){if(e.key){var t=Z0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(e){return e.type==="keypress"?ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$0=ot(J0),W0=z({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eo=ot(W0),I0=z({},xn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),P0=ot(I0),ey=z({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ty=ot(ey),ay=z({},Ni,{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}),ly=ot(ay),ny=z({},tl,{newState:0,oldState:0}),iy=ot(ny),uy=[9,13,27,32],hc=ua&&"CompositionEvent"in window,Sn=null;ua&&"documentMode"in document&&(Sn=document.documentMode);var cy=ua&&"TextEvent"in window&&!Sn,No=ua&&(!hc||Sn&&8<Sn&&11>=Sn),Co=" ",Ao=!1;function To(e,t){switch(e){case"keyup":return uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ro(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tl=!1;function sy(e,t){switch(e){case"compositionend":return Ro(t);case"keypress":return t.which!==32?null:(Ao=!0,Co);case"textInput":return e=t.data,e===Co&&Ao?null:e;default:return null}}function ry(e,t){if(Tl)return e==="compositionend"||!hc&&To(e,t)?(e=So(),wi=sc=Aa=null,Tl=!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 No&&t.locale!=="ko"?null:t.data;default:return null}}var oy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Do(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oy[e.type]:t==="textarea"}function _o(e,t,a,l){Cl?Al?Al.push(l):Al=[l]:Cl=l,t=yu(t,"onChange"),0<t.length&&(a=new Ei("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var wn=null,jn=null;function fy(e){yh(e,0)}function Ci(e){var t=pn(e);if(ho(t))return e}function Uo(e,t){if(e==="change")return t}var Oo=!1;if(ua){var mc;if(ua){var yc="oninput"in document;if(!yc){var Mo=document.createElement("div");Mo.setAttribute("oninput","return;"),yc=typeof Mo.oninput=="function"}mc=yc}else mc=!1;Oo=mc&&(!document.documentMode||9<document.documentMode)}function Lo(){wn&&(wn.detachEvent("onpropertychange",Bo),jn=wn=null)}function Bo(e){if(e.propertyName==="value"&&Ci(jn)){var t=[];_o(t,jn,e,ic(e)),bo(fy,t)}}function dy(e,t,a){e==="focusin"?(Lo(),wn=t,jn=a,wn.attachEvent("onpropertychange",Bo)):e==="focusout"&&Lo()}function hy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ci(jn)}function my(e,t){if(e==="click")return Ci(t)}function yy(e,t){if(e==="input"||e==="change")return Ci(t)}function py(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:py;function zn(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!Ft.call(t,n)||!xt(e[n],t[n]))return!1}return!0}function Ho(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ko(e,t){var a=Ho(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ho(a)}}function qo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bi(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=bi(e.document)}return t}function pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var gy=ua&&"documentMode"in document&&11>=document.documentMode,Rl=null,gc=null,En=null,vc=!1;function Go(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;vc||Rl==null||Rl!==bi(l)||(l=Rl,"selectionStart"in l&&pc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),En&&zn(En,l)||(En=l,l=yu(gc,"onSelect"),0<l.length&&(t=new Ei("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Rl)))}function al(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Dl={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},xc={},Xo={};ua&&(Xo=document.createElement("div").style,"AnimationEvent"in window||(delete Dl.animationend.animation,delete Dl.animationiteration.animation,delete Dl.animationstart.animation),"TransitionEvent"in window||delete Dl.transitionend.transition);function ll(e){if(xc[e])return xc[e];if(!Dl[e])return e;var t=Dl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Xo)return xc[e]=t[a];return e}var Qo=ll("animationend"),Zo=ll("animationiteration"),Vo=ll("animationstart"),vy=ll("transitionrun"),xy=ll("transitionstart"),by=ll("transitioncancel"),Ko=ll("transitionend"),Fo=new Map,bc="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(" ");bc.push("scrollEnd");function Gt(e,t){Fo.set(e,t),el(t,[e])}var Ai=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)},Dt=[],_l=0,Sc=0;function Ti(){for(var e=_l,t=Sc=_l=0;t<e;){var a=Dt[t];Dt[t++]=null;var l=Dt[t];Dt[t++]=null;var n=Dt[t];Dt[t++]=null;var u=Dt[t];if(Dt[t++]=null,l!==null&&n!==null){var o=l.pending;o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n}u!==0&&Jo(a,n,u)}}function Ri(e,t,a,l){Dt[_l++]=e,Dt[_l++]=t,Dt[_l++]=a,Dt[_l++]=l,Sc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function wc(e,t,a,l){return Ri(e,t,a,l),Di(e)}function nl(e,t){return Ri(e,null,null,t),Di(e)}function Jo(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-vt(a),e=u.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),u):null}function Di(e){if(50<Kn)throw Kn=0,Ds=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ul={};function Sy(e,t,a,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,a,l){return new Sy(e,t,a,l)}function jc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ca(e,t){var a=e.alternate;return a===null?(a=bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),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},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function $o(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.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}),e}function _i(e,t,a,l,n,u){var o=0;if(l=e,typeof e=="function")jc(e)&&(o=1);else if(typeof e=="string")o=Np(e,a,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=bt(31,a,t,n),e.elementType=Ee,e.lanes=u,e;case O:return il(a.children,n,u,t);case L:o=8,n|=24;break;case G:return e=bt(12,a,t,n|2),e.elementType=G,e.lanes=u,e;case ne:return e=bt(13,a,t,n),e.elementType=ne,e.lanes=u,e;case ae:return e=bt(19,a,t,n),e.elementType=ae,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:o=10;break e;case I:o=9;break e;case ce:o=11;break e;case V:o=14;break e;case re:o=16,l=null;break e}o=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=bt(o,a,t,n),t.elementType=e,t.type=l,t.lanes=u,t}function il(e,t,a,l){return e=bt(7,e,l,t),e.lanes=a,e}function zc(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function Wo(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Ec(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Io=new WeakMap;function _t(e,t){if(typeof e=="object"&&e!==null){var a=Io.get(e);return a!==void 0?a:(t={value:e,source:t,stack:tt(t)},Io.set(e,t),t)}return{value:e,source:t,stack:tt(t)}}var Ol=[],Ml=0,Ui=null,Nn=0,Ut=[],Ot=0,Ta=null,Jt=1,$t="";function sa(e,t){Ol[Ml++]=Nn,Ol[Ml++]=Ui,Ui=e,Nn=t}function Po(e,t,a){Ut[Ot++]=Jt,Ut[Ot++]=$t,Ut[Ot++]=Ta,Ta=e;var l=Jt;e=$t;var n=32-vt(l)-1;l&=~(1<<n),a+=1;var u=32-vt(t)+n;if(30<u){var o=n-n%5;u=(l&(1<<o)-1).toString(32),l>>=o,n-=o,Jt=1<<32-vt(t)+n|a<<n|l,$t=u+e}else Jt=1<<u|a<<n|l,$t=e}function Nc(e){e.return!==null&&(sa(e,1),Po(e,1,0))}function Cc(e){for(;e===Ui;)Ui=Ol[--Ml],Ol[Ml]=null,Nn=Ol[--Ml],Ol[Ml]=null;for(;e===Ta;)Ta=Ut[--Ot],Ut[Ot]=null,$t=Ut[--Ot],Ut[Ot]=null,Jt=Ut[--Ot],Ut[Ot]=null}function ef(e,t){Ut[Ot++]=Jt,Ut[Ot++]=$t,Ut[Ot++]=Ta,Jt=t.id,$t=t.overflow,Ta=e}var lt=null,Oe=null,pe=!1,Ra=null,Mt=!1,Ac=Error(s(519));function Da(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Cn(_t(t,e)),Ac}function tf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[at]=e,t[rt]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<Jn.length;a++)he(Jn[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),mo(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),po(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||xh(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=ia),t=!0):t=!1,t||Da(e,!0)}function af(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Mt=!1;return;case 27:case 3:Mt=!0;return;default:lt=lt.return}}function Ll(e){if(e!==lt)return!1;if(!pe)return af(e),pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Vs(e.type,e.memoizedProps)),a=!a),a&&Oe&&Da(e),af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Oe=Ah(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Oe=Ah(e)}else t===27?(t=Oe,Za(e.type)?(e=Ws,Ws=null,Oe=e):Oe=t):Oe=lt?Bt(e.stateNode.nextSibling):null;return!0}function ul(){Oe=lt=null,pe=!1}function Tc(){var e=Ra;return e!==null&&(mt===null?mt=e:mt.push.apply(mt,e),Ra=null),e}function Cn(e){Ra===null?Ra=[e]:Ra.push(e)}var Rc=v(null),cl=null,ra=null;function _a(e,t,a){H(Rc,t._currentValue),t._currentValue=a}function oa(e){e._currentValue=Rc.current,T(Rc)}function Dc(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function _c(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var o=n.child;u=u.firstContext;e:for(;u!==null;){var m=u;u=n;for(var b=0;b<t.length;b++)if(m.context===t[b]){u.lanes|=a,m=u.alternate,m!==null&&(m.lanes|=a),Dc(u.return,a,e),l||(o=null);break e}u=m.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(s(341));o.lanes|=a,u=o.alternate,u!==null&&(u.lanes|=a),Dc(o,a,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Bl(e,t,a,l){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var m=n.type;xt(n.pendingProps.value,o.value)||(e!==null?e.push(m):e=[m])}}else if(n===le.current){if(o=n.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ei):e=[ei])}n=n.return}e!==null&&_c(t,e,a,l),t.flags|=262144}function Oi(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function sl(e){cl=e,ra=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return lf(cl,e)}function Mi(e,t){return cl===null&&sl(e),lf(e,t)}function lf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ra===null){if(e===null)throw Error(s(308));ra=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ra=ra.next=t;return a}var wy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},jy=i.unstable_scheduleCallback,zy=i.unstable_NormalPriority,Ke={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uc(){return{controller:new wy,data:new Map,refCount:0}}function An(e){e.refCount--,e.refCount===0&&jy(zy,function(){e.controller.abort()})}var Tn=null,Oc=0,Hl=0,kl=null;function Ey(e,t){if(Tn===null){var a=Tn=[];Oc=0,Hl=Bs(),kl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Oc++,t.then(nf,nf),t}function nf(){if(--Oc===0&&Tn!==null){kl!==null&&(kl.status="fulfilled");var e=Tn;Tn=null,Hl=0,kl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ny(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var uf=D.S;D.S=function(e,t){Xd=pt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ey(e,t),uf!==null&&uf(e,t)};var rl=v(null);function Mc(){var e=rl.current;return e!==null?e:De.pooledCache}function Li(e,t){t===null?H(rl,rl.current):H(rl,t.pool)}function cf(){var e=Mc();return e===null?null:{parent:Ke._currentValue,pool:e}}var ql=Error(s(460)),Lc=Error(s(474)),Bi=Error(s(542)),Hi={then:function(){}};function sf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ia,ia),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ff(e),e;default:if(typeof t.status=="string")t.then(ia,ia);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ff(e),e}throw fl=t,ql}}function ol(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(fl=a,ql):a}}var fl=null;function of(){if(fl===null)throw Error(s(459));var e=fl;return fl=null,e}function ff(e){if(e===ql||e===Bi)throw Error(s(483))}var Yl=null,Rn=0;function ki(e){var t=Rn;return Rn+=1,Yl===null&&(Yl=[]),rf(Yl,e,t)}function Dn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qi(e,t){throw t.$$typeof===B?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function df(e){function t(j,w){if(e){var E=j.deletions;E===null?(j.deletions=[w],j.flags|=16):E.push(w)}}function a(j,w){if(!e)return null;for(;w!==null;)t(j,w),w=w.sibling;return null}function l(j){for(var w=new Map;j!==null;)j.key!==null?w.set(j.key,j):w.set(j.index,j),j=j.sibling;return w}function n(j,w){return j=ca(j,w),j.index=0,j.sibling=null,j}function u(j,w,E){return j.index=E,e?(E=j.alternate,E!==null?(E=E.index,E<w?(j.flags|=67108866,w):E):(j.flags|=67108866,w)):(j.flags|=1048576,w)}function o(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function m(j,w,E,U){return w===null||w.tag!==6?(w=zc(E,j.mode,U),w.return=j,w):(w=n(w,E),w.return=j,w)}function b(j,w,E,U){var P=E.type;return P===O?_(j,w,E.props.children,U,E.key):w!==null&&(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===re&&ol(P)===w.type)?(w=n(w,E.props),Dn(w,E),w.return=j,w):(w=_i(E.type,E.key,E.props,null,j.mode,U),Dn(w,E),w.return=j,w)}function N(j,w,E,U){return w===null||w.tag!==4||w.stateNode.containerInfo!==E.containerInfo||w.stateNode.implementation!==E.implementation?(w=Ec(E,j.mode,U),w.return=j,w):(w=n(w,E.children||[]),w.return=j,w)}function _(j,w,E,U,P){return w===null||w.tag!==7?(w=il(E,j.mode,U,P),w.return=j,w):(w=n(w,E),w.return=j,w)}function M(j,w,E){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=zc(""+w,j.mode,E),w.return=j,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case k:return E=_i(w.type,w.key,w.props,null,j.mode,E),Dn(E,w),E.return=j,E;case X:return w=Ec(w,j.mode,E),w.return=j,w;case re:return w=ol(w),M(j,w,E)}if(Ne(w)||Ue(w))return w=il(w,j.mode,E,null),w.return=j,w;if(typeof w.then=="function")return M(j,ki(w),E);if(w.$$typeof===F)return M(j,Mi(j,w),E);qi(j,w)}return null}function A(j,w,E,U){var P=w!==null?w.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return P!==null?null:m(j,w,""+E,U);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case k:return E.key===P?b(j,w,E,U):null;case X:return E.key===P?N(j,w,E,U):null;case re:return E=ol(E),A(j,w,E,U)}if(Ne(E)||Ue(E))return P!==null?null:_(j,w,E,U,null);if(typeof E.then=="function")return A(j,w,ki(E),U);if(E.$$typeof===F)return A(j,w,Mi(j,E),U);qi(j,E)}return null}function R(j,w,E,U,P){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return j=j.get(E)||null,m(w,j,""+U,P);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case k:return j=j.get(U.key===null?E:U.key)||null,b(w,j,U,P);case X:return j=j.get(U.key===null?E:U.key)||null,N(w,j,U,P);case re:return U=ol(U),R(j,w,E,U,P)}if(Ne(U)||Ue(U))return j=j.get(E)||null,_(w,j,U,P,null);if(typeof U.then=="function")return R(j,w,E,ki(U),P);if(U.$$typeof===F)return R(j,w,E,Mi(w,U),P);qi(w,U)}return null}function K(j,w,E,U){for(var P=null,ve=null,W=w,oe=w=0,ye=null;W!==null&&oe<E.length;oe++){W.index>oe?(ye=W,W=null):ye=W.sibling;var xe=A(j,W,E[oe],U);if(xe===null){W===null&&(W=ye);break}e&&W&&xe.alternate===null&&t(j,W),w=u(xe,w,oe),ve===null?P=xe:ve.sibling=xe,ve=xe,W=ye}if(oe===E.length)return a(j,W),pe&&sa(j,oe),P;if(W===null){for(;oe<E.length;oe++)W=M(j,E[oe],U),W!==null&&(w=u(W,w,oe),ve===null?P=W:ve.sibling=W,ve=W);return pe&&sa(j,oe),P}for(W=l(W);oe<E.length;oe++)ye=R(W,j,oe,E[oe],U),ye!==null&&(e&&ye.alternate!==null&&W.delete(ye.key===null?oe:ye.key),w=u(ye,w,oe),ve===null?P=ye:ve.sibling=ye,ve=ye);return e&&W.forEach(function($a){return t(j,$a)}),pe&&sa(j,oe),P}function ee(j,w,E,U){if(E==null)throw Error(s(151));for(var P=null,ve=null,W=w,oe=w=0,ye=null,xe=E.next();W!==null&&!xe.done;oe++,xe=E.next()){W.index>oe?(ye=W,W=null):ye=W.sibling;var $a=A(j,W,xe.value,U);if($a===null){W===null&&(W=ye);break}e&&W&&$a.alternate===null&&t(j,W),w=u($a,w,oe),ve===null?P=$a:ve.sibling=$a,ve=$a,W=ye}if(xe.done)return a(j,W),pe&&sa(j,oe),P;if(W===null){for(;!xe.done;oe++,xe=E.next())xe=M(j,xe.value,U),xe!==null&&(w=u(xe,w,oe),ve===null?P=xe:ve.sibling=xe,ve=xe);return pe&&sa(j,oe),P}for(W=l(W);!xe.done;oe++,xe=E.next())xe=R(W,j,oe,xe.value,U),xe!==null&&(e&&xe.alternate!==null&&W.delete(xe.key===null?oe:xe.key),w=u(xe,w,oe),ve===null?P=xe:ve.sibling=xe,ve=xe);return e&&W.forEach(function(Bp){return t(j,Bp)}),pe&&sa(j,oe),P}function Te(j,w,E,U){if(typeof E=="object"&&E!==null&&E.type===O&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case k:e:{for(var P=E.key;w!==null;){if(w.key===P){if(P=E.type,P===O){if(w.tag===7){a(j,w.sibling),U=n(w,E.props.children),U.return=j,j=U;break e}}else if(w.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===re&&ol(P)===w.type){a(j,w.sibling),U=n(w,E.props),Dn(U,E),U.return=j,j=U;break e}a(j,w);break}else t(j,w);w=w.sibling}E.type===O?(U=il(E.props.children,j.mode,U,E.key),U.return=j,j=U):(U=_i(E.type,E.key,E.props,null,j.mode,U),Dn(U,E),U.return=j,j=U)}return o(j);case X:e:{for(P=E.key;w!==null;){if(w.key===P)if(w.tag===4&&w.stateNode.containerInfo===E.containerInfo&&w.stateNode.implementation===E.implementation){a(j,w.sibling),U=n(w,E.children||[]),U.return=j,j=U;break e}else{a(j,w);break}else t(j,w);w=w.sibling}U=Ec(E,j.mode,U),U.return=j,j=U}return o(j);case re:return E=ol(E),Te(j,w,E,U)}if(Ne(E))return K(j,w,E,U);if(Ue(E)){if(P=Ue(E),typeof P!="function")throw Error(s(150));return E=P.call(E),ee(j,w,E,U)}if(typeof E.then=="function")return Te(j,w,ki(E),U);if(E.$$typeof===F)return Te(j,w,Mi(j,E),U);qi(j,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,w!==null&&w.tag===6?(a(j,w.sibling),U=n(w,E),U.return=j,j=U):(a(j,w),U=zc(E,j.mode,U),U.return=j,j=U),o(j)):a(j,w)}return function(j,w,E,U){try{Rn=0;var P=Te(j,w,E,U);return Yl=null,P}catch(W){if(W===ql||W===Bi)throw W;var ve=bt(29,W,null,j.mode);return ve.lanes=U,ve.return=j,ve}}}var dl=df(!0),hf=df(!1),Ua=!1;function Bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hc(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 Oa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Se&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Di(e),Jo(e,null,a),t}return Ri(e,l,t,a),Di(e)}function _n(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ao(e,a)}}function kc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?n=u=o:u=u.next=o,a=a.next}while(a!==null);u===null?n=u=t:u=u.next=t}else n=u=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var qc=!1;function Un(){if(qc){var e=kl;if(e!==null)throw e}}function On(e,t,a,l){qc=!1;var n=e.updateQueue;Ua=!1;var u=n.firstBaseUpdate,o=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var b=m,N=b.next;b.next=null,o===null?u=N:o.next=N,o=b;var _=e.alternate;_!==null&&(_=_.updateQueue,m=_.lastBaseUpdate,m!==o&&(m===null?_.firstBaseUpdate=N:m.next=N,_.lastBaseUpdate=b))}if(u!==null){var M=n.baseState;o=0,_=N=b=null,m=u;do{var A=m.lane&-536870913,R=A!==m.lane;if(R?(me&A)===A:(l&A)===A){A!==0&&A===Hl&&(qc=!0),_!==null&&(_=_.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var K=e,ee=m;A=t;var Te=a;switch(ee.tag){case 1:if(K=ee.payload,typeof K=="function"){M=K.call(Te,M,A);break e}M=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=ee.payload,A=typeof K=="function"?K.call(Te,M,A):K,A==null)break e;M=z({},M,A);break e;case 2:Ua=!0}}A=m.callback,A!==null&&(e.flags|=64,R&&(e.flags|=8192),R=n.callbacks,R===null?n.callbacks=[A]:R.push(A))}else R={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},_===null?(N=_=R,b=M):_=_.next=R,o|=A;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;R=m,m=R.next,R.next=null,n.lastBaseUpdate=R,n.shared.pending=null}}while(!0);_===null&&(b=M),n.baseState=b,n.firstBaseUpdate=N,n.lastBaseUpdate=_,u===null&&(n.shared.lanes=0),qa|=o,e.lanes=o,e.memoizedState=M}}function mf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function yf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)mf(a[e],t)}var Gl=v(null),Yi=v(0);function pf(e,t){e=xa,H(Yi,e),H(Gl,t),xa=e|t.baseLanes}function Yc(){H(Yi,xa),H(Gl,Gl.current)}function Gc(){xa=Yi.current,T(Gl),T(Yi)}var St=v(null),Lt=null;function La(e){var t=e.alternate;H(Ze,Ze.current&1),H(St,e),Lt===null&&(t===null||Gl.current!==null||t.memoizedState!==null)&&(Lt=e)}function Xc(e){H(Ze,Ze.current),H(St,e),Lt===null&&(Lt=e)}function gf(e){e.tag===22?(H(Ze,Ze.current),H(St,e),Lt===null&&(Lt=e)):Ba()}function Ba(){H(Ze,Ze.current),H(St,St.current)}function wt(e){T(St),Lt===e&&(Lt=null),T(Ze)}var Ze=v(0);function Gi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Js(a)||$s(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}var fa=0,se=null,Ce=null,Fe=null,Xi=!1,Xl=!1,hl=!1,Qi=0,Mn=0,Ql=null,Cy=0;function Ge(){throw Error(s(321))}function Qc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xt(e[a],t[a]))return!1;return!0}function Zc(e,t,a,l,n,u){return fa=u,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?ed:us,hl=!1,u=a(l,n),hl=!1,Xl&&(u=xf(t,a,l,n)),vf(e),u}function vf(e){D.H=Hn;var t=Ce!==null&&Ce.next!==null;if(fa=0,Fe=Ce=se=null,Xi=!1,Mn=0,Ql=null,t)throw Error(s(300));e===null||Je||(e=e.dependencies,e!==null&&Oi(e)&&(Je=!0))}function xf(e,t,a,l){se=e;var n=0;do{if(Xl&&(Ql=null),Mn=0,Xl=!1,25<=n)throw Error(s(301));if(n+=1,Fe=Ce=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=td,u=t(a,l)}while(Xl);return u}function Ay(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Ln(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(se.flags|=1024),t}function Vc(){var e=Qi!==0;return Qi=0,e}function Kc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Fc(e){if(Xi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xi=!1}fa=0,Fe=Ce=se=null,Xl=!1,Mn=Qi=0,Ql=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?se.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Ve(){if(Ce===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Fe===null?se.memoizedState:Fe.next;if(t!==null)Fe=t,Ce=e;else{if(e===null)throw se.alternate===null?Error(s(467)):Error(s(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Fe===null?se.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ln(e){var t=Mn;return Mn+=1,Ql===null&&(Ql=[]),e=rf(Ql,e,t),t=se,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?ed:us),e}function Vi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ln(e);if(e.$$typeof===F)return nt(e)}throw Error(s(438,String(e)))}function Jc(e){var t=null,a=se.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=se.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Zi(),se.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=be;return t.index++,a}function da(e,t){return typeof t=="function"?t(e):t}function Ki(e){var t=Ve();return $c(t,Ce,e)}function $c(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var n=e.baseQueue,u=l.pending;if(u!==null){if(n!==null){var o=n.next;n.next=u.next,u.next=o}t.baseQueue=n=u,l.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var m=o=null,b=null,N=t,_=!1;do{var M=N.lane&-536870913;if(M!==N.lane?(me&M)===M:(fa&M)===M){var A=N.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),M===Hl&&(_=!0);else if((fa&A)===A){N=N.next,A===Hl&&(_=!0);continue}else M={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(m=b=M,o=u):b=b.next=M,se.lanes|=A,qa|=A;M=N.action,hl&&a(u,M),u=N.hasEagerState?N.eagerState:a(u,M)}else A={lane:M,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(m=b=A,o=u):b=b.next=A,se.lanes|=M,qa|=M;N=N.next}while(N!==null&&N!==t);if(b===null?o=u:b.next=m,!xt(u,e.memoizedState)&&(Je=!0,_&&(a=kl,a!==null)))throw a;e.memoizedState=u,e.baseState=o,e.baseQueue=b,l.lastRenderedState=u}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Wc(e){var t=Ve(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,u=t.memoizedState;if(n!==null){a.pending=null;var o=n=n.next;do u=e(u,o.action),o=o.next;while(o!==n);xt(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function bf(e,t,a){var l=se,n=Ve(),u=pe;if(u){if(a===void 0)throw Error(s(407));a=a()}else a=t();var o=!xt((Ce||n).memoizedState,a);if(o&&(n.memoizedState=a,Je=!0),n=n.queue,es(jf.bind(null,l,n,e),[e]),n.getSnapshot!==t||o||Fe!==null&&Fe.memoizedState.tag&1){if(l.flags|=2048,Zl(9,{destroy:void 0},wf.bind(null,l,n,a,t),null),De===null)throw Error(s(349));u||(fa&127)!==0||Sf(l,t,a)}return a}function Sf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=se.updateQueue,t===null?(t=Zi(),se.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function wf(e,t,a,l){t.value=a,t.getSnapshot=l,zf(t)&&Ef(e)}function jf(e,t,a){return a(function(){zf(t)&&Ef(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xt(e,a)}catch{return!0}}function Ef(e){var t=nl(e,2);t!==null&&yt(t,e,2)}function Ic(e){var t=st();if(typeof e=="function"){var a=e;if(e=a(),hl){Na(!0);try{a()}finally{Na(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t}function Nf(e,t,a,l){return e.baseState=a,$c(e,Ce,typeof l=="function"?l:da)}function Ty(e,t,a,l,n){if($i(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){u.listeners.push(o)}};D.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,Cf(t,u)):(u.next=a.next,t.pending=a.next=u)}}function Cf(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var u=D.T,o={};D.T=o;try{var m=a(n,l),b=D.S;b!==null&&b(o,m),Af(e,t,m)}catch(N){Pc(e,t,N)}finally{u!==null&&o.types!==null&&(u.types=o.types),D.T=u}}else try{u=a(n,l),Af(e,t,u)}catch(N){Pc(e,t,N)}}function Af(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Tf(e,t,l)},function(l){return Pc(e,t,l)}):Tf(e,t,a)}function Tf(e,t,a){t.status="fulfilled",t.value=a,Rf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Cf(e,a)))}function Pc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Rf(t),t=t.next;while(t!==l)}e.action=null}function Rf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Df(e,t){return t}function _f(e,t){if(pe){var a=De.formState;if(a!==null){e:{var l=se;if(pe){if(Oe){t:{for(var n=Oe,u=Mt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Bt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Oe=Bt(n.nextSibling),l=n.data==="F!";break e}}Da(l)}l=!1}l&&(t=a[0])}}return a=st(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Df,lastRenderedState:t},a.queue=l,a=Wf.bind(null,se,l),l.dispatch=a,l=Ic(!1),u=is.bind(null,se,!1,l.queue),l=st(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=Ty.bind(null,se,n,u,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function Uf(e){var t=Ve();return Of(t,Ce,e)}function Of(e,t,a){if(t=$c(e,t,Df)[0],e=Ki(da)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Ln(t)}catch(o){throw o===ql?Bi:o}else l=t;t=Ve();var n=t.queue,u=n.dispatch;return a!==t.memoizedState&&(se.flags|=2048,Zl(9,{destroy:void 0},Ry.bind(null,n,a),null)),[l,u,e]}function Ry(e,t){e.action=t}function Mf(e){var t=Ve(),a=Ce;if(a!==null)return Of(t,a,e);Ve(),t=t.memoizedState,a=Ve();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Zl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=se.updateQueue,t===null&&(t=Zi(),se.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Lf(){return Ve().memoizedState}function Fi(e,t,a,l){var n=st();se.flags|=e,n.memoizedState=Zl(1|t,{destroy:void 0},a,l===void 0?null:l)}function Ji(e,t,a,l){var n=Ve();l=l===void 0?null:l;var u=n.memoizedState.inst;Ce!==null&&l!==null&&Qc(l,Ce.memoizedState.deps)?n.memoizedState=Zl(t,u,a,l):(se.flags|=e,n.memoizedState=Zl(1|t,u,a,l))}function Bf(e,t){Fi(8390656,8,e,t)}function es(e,t){Ji(2048,8,e,t)}function Dy(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Zi(),se.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Hf(e){var t=Ve().memoizedState;return Dy({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function kf(e,t){return Ji(4,2,e,t)}function qf(e,t){return Ji(4,4,e,t)}function Yf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gf(e,t,a){a=a!=null?a.concat([e]):null,Ji(4,4,Yf.bind(null,t,e),a)}function ts(){}function Xf(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Qc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Qf(e,t){var a=Ve();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Qc(t,l[1]))return l[0];if(l=e(),hl){Na(!0);try{e()}finally{Na(!1)}}return a.memoizedState=[l,t],l}function as(e,t,a){return a===void 0||(fa&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Zd(),se.lanes|=e,qa|=e,a)}function Zf(e,t,a,l){return xt(a,t)?a:Gl.current!==null?(e=as(e,a,l),xt(e,t)||(Je=!0),e):(fa&42)===0||(fa&1073741824)!==0&&(me&261930)===0?(Je=!0,e.memoizedState=a):(e=Zd(),se.lanes|=e,qa|=e,t)}function Vf(e,t,a,l,n){var u=q.p;q.p=u!==0&&8>u?u:8;var o=D.T,m={};D.T=m,is(e,!1,t,a);try{var b=n(),N=D.S;if(N!==null&&N(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var _=Ny(b,l);Bn(e,t,_,Et(e))}else Bn(e,t,l,Et(e))}catch(M){Bn(e,t,{then:function(){},status:"rejected",reason:M},Et())}finally{q.p=u,o!==null&&m.types!==null&&(o.types=m.types),D.T=o}}function _y(){}function ls(e,t,a,l){if(e.tag!==5)throw Error(s(476));var n=Kf(e).queue;Vf(e,n,t,J,a===null?_y:function(){return Ff(e),a(l)})}function Kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ff(e){var t=Kf(e);t.next===null&&(t=e.alternate.memoizedState),Bn(e,t.next.queue,{},Et())}function ns(){return nt(ei)}function Jf(){return Ve().memoizedState}function $f(){return Ve().memoizedState}function Uy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Et();e=Oa(a);var l=Ma(t,e,a);l!==null&&(yt(l,t,a),_n(l,t,a)),t={cache:Uc()},e.payload=t;return}t=t.return}}function Oy(e,t,a){var l=Et();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},$i(e)?If(t,a):(a=wc(e,t,a,l),a!==null&&(yt(a,e,l),Pf(a,t,l)))}function Wf(e,t,a){var l=Et();Bn(e,t,a,l)}function Bn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if($i(e))If(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,m=u(o,a);if(n.hasEagerState=!0,n.eagerState=m,xt(m,o))return Ri(e,t,n,0),De===null&&Ti(),!1}catch{}if(a=wc(e,t,n,l),a!==null)return yt(a,e,l),Pf(a,t,l),!0}return!1}function is(e,t,a,l){if(l={lane:2,revertLane:Bs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},$i(e)){if(t)throw Error(s(479))}else t=wc(e,a,l,2),t!==null&&yt(t,e,2)}function $i(e){var t=e.alternate;return e===se||t!==null&&t===se}function If(e,t){Xl=Xi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Pf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ao(e,a)}}var Hn={readContext:nt,use:Vi,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};Hn.useEffectEvent=Ge;var ed={readContext:nt,use:Vi,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Bf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Fi(4194308,4,Yf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){Fi(4,2,e,t)},useMemo:function(e,t){var a=st();t=t===void 0?null:t;var l=e();if(hl){Na(!0);try{e()}finally{Na(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=st();if(a!==void 0){var n=a(t);if(hl){Na(!0);try{a(t)}finally{Na(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=Oy.bind(null,se,e),[l.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Ic(e);var t=e.queue,a=Wf.bind(null,se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ts,useDeferredValue:function(e,t){var a=st();return as(a,e,t)},useTransition:function(){var e=Ic(!1);return e=Vf.bind(null,se,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=se,n=st();if(pe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),De===null)throw Error(s(349));(me&127)!==0||Sf(l,t,a)}n.memoizedState=a;var u={value:a,getSnapshot:t};return n.queue=u,Bf(jf.bind(null,l,u,e),[e]),l.flags|=2048,Zl(9,{destroy:void 0},wf.bind(null,l,u,a,t),null),a},useId:function(){var e=st(),t=De.identifierPrefix;if(pe){var a=$t,l=Jt;a=(l&~(1<<32-vt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Qi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Cy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ns,useFormState:_f,useActionState:_f,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=is.bind(null,se,!0,a),a.dispatch=t,[e,t]},useMemoCache:Jc,useCacheRefresh:function(){return st().memoizedState=Uy.bind(null,se)},useEffectEvent:function(e){var t=st(),a={impl:e};return t.memoizedState=a,function(){if((Se&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},us={readContext:nt,use:Vi,useCallback:Xf,useContext:nt,useEffect:es,useImperativeHandle:Gf,useInsertionEffect:kf,useLayoutEffect:qf,useMemo:Qf,useReducer:Ki,useRef:Lf,useState:function(){return Ki(da)},useDebugValue:ts,useDeferredValue:function(e,t){var a=Ve();return Zf(a,Ce.memoizedState,e,t)},useTransition:function(){var e=Ki(da)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Ln(e),t]},useSyncExternalStore:bf,useId:Jf,useHostTransitionStatus:ns,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var a=Ve();return Nf(a,Ce,e,t)},useMemoCache:Jc,useCacheRefresh:$f};us.useEffectEvent=Hf;var td={readContext:nt,use:Vi,useCallback:Xf,useContext:nt,useEffect:es,useImperativeHandle:Gf,useInsertionEffect:kf,useLayoutEffect:qf,useMemo:Qf,useReducer:Wc,useRef:Lf,useState:function(){return Wc(da)},useDebugValue:ts,useDeferredValue:function(e,t){var a=Ve();return Ce===null?as(a,e,t):Zf(a,Ce.memoizedState,e,t)},useTransition:function(){var e=Wc(da)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Ln(e),t]},useSyncExternalStore:bf,useId:Jf,useHostTransitionStatus:ns,useFormState:Mf,useActionState:Mf,useOptimistic:function(e,t){var a=Ve();return Ce!==null?Nf(a,Ce,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Jc,useCacheRefresh:$f};td.useEffectEvent=Hf;function cs(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:z({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ss={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Oa(l);n.payload=t,a!=null&&(n.callback=a),t=Ma(e,n,l),t!==null&&(yt(t,e,l),_n(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Et(),n=Oa(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Ma(e,n,l),t!==null&&(yt(t,e,l),_n(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Et(),l=Oa(a);l.tag=2,t!=null&&(l.callback=t),t=Ma(e,l,a),t!==null&&(yt(t,e,a),_n(t,e,a))}};function ad(e,t,a,l,n,u,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,o):t.prototype&&t.prototype.isPureReactComponent?!zn(a,l)||!zn(n,u):!0}function ld(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&ss.enqueueReplaceState(t,t.state,null)}function ml(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=z({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function nd(e){Ai(e)}function id(e){console.error(e)}function ud(e){Ai(e)}function Wi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function cd(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function rs(e,t,a){return a=Oa(a),a.tag=3,a.payload={element:null},a.callback=function(){Wi(e,t)},a}function sd(e){return e=Oa(e),e.tag=3,e}function rd(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var u=l.value;e.payload=function(){return n(u)},e.callback=function(){cd(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){cd(t,a,l),typeof n!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var m=l.stack;this.componentDidCatch(l.value,{componentStack:m!==null?m:""})})}function My(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Bl(t,a,n,!0),a=St.current,a!==null){switch(a.tag){case 31:case 13:return Lt===null?ru():a.alternate===null&&Xe===0&&(Xe=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Hi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Os(e,l,n)),!1;case 22:return a.flags|=65536,l===Hi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Os(e,l,n)),!1}throw Error(s(435,a.tag))}return Os(e,l,n),ru(),!1}if(pe)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Ac&&(e=Error(s(422),{cause:l}),Cn(_t(e,a)))):(l!==Ac&&(t=Error(s(423),{cause:l}),Cn(_t(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=_t(l,a),n=rs(e.stateNode,l,n),kc(e,n),Xe!==4&&(Xe=2)),!1;var u=Error(s(520),{cause:l});if(u=_t(u,a),Vn===null?Vn=[u]:Vn.push(u),Xe!==4&&(Xe=2),t===null)return!0;l=_t(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=rs(a.stateNode,l,e),kc(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ya===null||!Ya.has(u))))return a.flags|=65536,n&=-n,a.lanes|=n,n=sd(n),rd(n,e,a,l),kc(a,n),!1}a=a.return}while(a!==null);return!1}var os=Error(s(461)),Je=!1;function it(e,t,a,l){t.child=e===null?hf(t,null,a,l):dl(t,e.child,a,l)}function od(e,t,a,l,n){a=a.render;var u=t.ref;if("ref"in l){var o={};for(var m in l)m!=="ref"&&(o[m]=l[m])}else o=l;return sl(t),l=Zc(e,t,a,o,u,n),m=Vc(),e!==null&&!Je?(Kc(e,t,n),ha(e,t,n)):(pe&&m&&Nc(t),t.flags|=1,it(e,t,l,n),t.child)}function fd(e,t,a,l,n){if(e===null){var u=a.type;return typeof u=="function"&&!jc(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,dd(e,t,u,l,n)):(e=_i(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!vs(e,n)){var o=u.memoizedProps;if(a=a.compare,a=a!==null?a:zn,a(o,l)&&e.ref===t.ref)return ha(e,t,n)}return t.flags|=1,e=ca(u,l),e.ref=t.ref,e.return=t,t.child=e}function dd(e,t,a,l,n){if(e!==null){var u=e.memoizedProps;if(zn(u,l)&&e.ref===t.ref)if(Je=!1,t.pendingProps=l=u,vs(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,ha(e,t,n)}return fs(e,t,a,l,n)}function hd(e,t,a,l){var n=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~u}else l=0,t.child=null;return md(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Li(t,u!==null?u.cachePool:null),u!==null?pf(t,u):Yc(),gf(t);else return l=t.lanes=536870912,md(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(Li(t,u.cachePool),pf(t,u),Ba(),t.memoizedState=null):(e!==null&&Li(t,null),Yc(),Ba());return it(e,t,n,a),t.child}function kn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function md(e,t,a,l,n){var u=Mc();return u=u===null?null:{parent:Ke._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Li(t,null),Yc(),gf(t),e!==null&&Bl(e,t,l,!0),t.childLanes=n,null}function Ii(e,t){return t=eu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yd(e,t,a){return dl(t,e.child,null,a),e=Ii(t,t.pendingProps),e.flags|=2,wt(t),t.memoizedState=null,e}function Ly(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(l.mode==="hidden")return e=Ii(t,l),t.lanes=536870912,kn(null,e);if(Xc(t),(e=Oe)?(e=Ch(e,Mt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:Jt,overflow:$t}:null,retryLane:536870912,hydrationErrors:null},a=Wo(e),a.return=t,t.child=a,lt=t,Oe=null)):e=null,e===null)throw Da(t);return t.lanes=536870912,null}return Ii(t,l)}var u=e.memoizedState;if(u!==null){var o=u.dehydrated;if(Xc(t),n)if(t.flags&256)t.flags&=-257,t=yd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Je||Bl(e,t,a,!1),n=(a&e.childLanes)!==0,Je||n){if(l=De,l!==null&&(o=lo(l,a),o!==0&&o!==u.retryLane))throw u.retryLane=o,nl(e,o),yt(l,e,o),os;ru(),t=yd(e,t,a)}else e=u.treeContext,Oe=Bt(o.nextSibling),lt=t,pe=!0,Ra=null,Mt=!1,e!==null&&ef(t,e),t=Ii(t,l),t.flags|=4096;return t}return e=ca(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Pi(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(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function fs(e,t,a,l,n){return sl(t),a=Zc(e,t,a,l,void 0,n),l=Vc(),e!==null&&!Je?(Kc(e,t,n),ha(e,t,n)):(pe&&l&&Nc(t),t.flags|=1,it(e,t,a,n),t.child)}function pd(e,t,a,l,n,u){return sl(t),t.updateQueue=null,a=xf(t,l,a,n),vf(e),l=Vc(),e!==null&&!Je?(Kc(e,t,u),ha(e,t,u)):(pe&&l&&Nc(t),t.flags|=1,it(e,t,a,u),t.child)}function gd(e,t,a,l,n){if(sl(t),t.stateNode===null){var u=Ul,o=a.contextType;typeof o=="object"&&o!==null&&(u=nt(o)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ss,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Bc(t),o=a.contextType,u.context=typeof o=="object"&&o!==null?nt(o):Ul,u.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(cs(t,a,o,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(o=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),o!==u.state&&ss.enqueueReplaceState(u,u.state,null),On(t,l,u,n),Un(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var m=t.memoizedProps,b=ml(a,m);u.props=b;var N=u.context,_=a.contextType;o=Ul,typeof _=="object"&&_!==null&&(o=nt(_));var M=a.getDerivedStateFromProps;_=typeof M=="function"||typeof u.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m||N!==o)&&ld(t,u,l,o),Ua=!1;var A=t.memoizedState;u.state=A,On(t,l,u,n),Un(),N=t.memoizedState,m||A!==N||Ua?(typeof M=="function"&&(cs(t,a,M,l),N=t.memoizedState),(b=Ua||ad(t,a,b,l,A,N,o))?(_||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=N),u.props=l,u.state=N,u.context=o,l=b):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Hc(e,t),o=t.memoizedProps,_=ml(a,o),u.props=_,M=t.pendingProps,A=u.context,N=a.contextType,b=Ul,typeof N=="object"&&N!==null&&(b=nt(N)),m=a.getDerivedStateFromProps,(N=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==M||A!==b)&&ld(t,u,l,b),Ua=!1,A=t.memoizedState,u.state=A,On(t,l,u,n),Un();var R=t.memoizedState;o!==M||A!==R||Ua||e!==null&&e.dependencies!==null&&Oi(e.dependencies)?(typeof m=="function"&&(cs(t,a,m,l),R=t.memoizedState),(_=Ua||ad(t,a,_,l,A,R,b)||e!==null&&e.dependencies!==null&&Oi(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,R,b),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,R,b)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=R),u.props=l,u.state=R,u.context=b,l=_):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Pi(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=dl(t,e.child,null,n),t.child=dl(t,null,a,n)):it(e,t,a,n),t.memoizedState=u.state,e=t.child):e=ha(e,t,n),e}function vd(e,t,a,l){return ul(),t.flags|=256,it(e,t,a,l),t.child}var ds={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hs(e){return{baseLanes:e,cachePool:cf()}}function ms(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zt),e}function xd(e,t,a){var l=t.pendingProps,n=!1,u=(t.flags&128)!==0,o;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(n?La(t):Ba(),(e=Oe)?(e=Ch(e,Mt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:Jt,overflow:$t}:null,retryLane:536870912,hydrationErrors:null},a=Wo(e),a.return=t,t.child=a,lt=t,Oe=null)):e=null,e===null)throw Da(t);return $s(e)?t.lanes=32:t.lanes=536870912,null}var m=l.children;return l=l.fallback,n?(Ba(),n=t.mode,m=eu({mode:"hidden",children:m},n),l=il(l,n,a,null),m.return=t,l.return=t,m.sibling=l,t.child=m,l=t.child,l.memoizedState=hs(a),l.childLanes=ms(e,o,a),t.memoizedState=ds,kn(null,l)):(La(t),ys(t,m))}var b=e.memoizedState;if(b!==null&&(m=b.dehydrated,m!==null)){if(u)t.flags&256?(La(t),t.flags&=-257,t=ps(e,t,a)):t.memoizedState!==null?(Ba(),t.child=e.child,t.flags|=128,t=null):(Ba(),m=l.fallback,n=t.mode,l=eu({mode:"visible",children:l.children},n),m=il(m,n,a,null),m.flags|=2,l.return=t,m.return=t,l.sibling=m,t.child=l,dl(t,e.child,null,a),l=t.child,l.memoizedState=hs(a),l.childLanes=ms(e,o,a),t.memoizedState=ds,t=kn(null,l));else if(La(t),$s(m)){if(o=m.nextSibling&&m.nextSibling.dataset,o)var N=o.dgst;o=N,l=Error(s(419)),l.stack="",l.digest=o,Cn({value:l,source:null,stack:null}),t=ps(e,t,a)}else if(Je||Bl(e,t,a,!1),o=(a&e.childLanes)!==0,Je||o){if(o=De,o!==null&&(l=lo(o,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,nl(e,l),yt(o,e,l),os;Js(m)||ru(),t=ps(e,t,a)}else Js(m)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Oe=Bt(m.nextSibling),lt=t,pe=!0,Ra=null,Mt=!1,e!==null&&ef(t,e),t=ys(t,l.children),t.flags|=4096);return t}return n?(Ba(),m=l.fallback,n=t.mode,b=e.child,N=b.sibling,l=ca(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,N!==null?m=ca(N,m):(m=il(m,n,a,null),m.flags|=2),m.return=t,l.return=t,l.sibling=m,t.child=l,kn(null,l),l=t.child,m=e.child.memoizedState,m===null?m=hs(a):(n=m.cachePool,n!==null?(b=Ke._currentValue,n=n.parent!==b?{parent:b,pool:b}:n):n=cf(),m={baseLanes:m.baseLanes|a,cachePool:n}),l.memoizedState=m,l.childLanes=ms(e,o,a),t.memoizedState=ds,kn(e.child,l)):(La(t),a=e.child,e=a.sibling,a=ca(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function ys(e,t){return t=eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function eu(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function ps(e,t,a){return dl(t,e.child,null,a),e=ys(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Dc(e.return,t,a)}function gs(e,t,a,l,n,u){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:u}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=n,o.treeForkCount=u)}function Sd(e,t,a){var l=t.pendingProps,n=l.revealOrder,u=l.tail;l=l.children;var o=Ze.current,m=(o&2)!==0;if(m?(o=o&1|2,t.flags|=128):o&=1,H(Ze,o),it(e,t,l,a),l=pe?Nn:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bd(e,a,t);else if(e.tag===19)bd(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(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&Gi(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),gs(t,!1,n,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Gi(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}gs(t,!0,a,null,u,l);break;case"together":gs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ha(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),qa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Bl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=ca(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ca(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function vs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Oi(e)))}function By(e,t,a){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),_a(t,Ke,e.memoizedState.cache),ul();break;case 27:case 5:Z(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(La(t),t.flags|=128,null):(a&t.child.childLanes)!==0?xd(e,t,a):(La(t),e=ha(e,t,a),e!==null?e.sibling:null);La(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Bl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return Sd(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),H(Ze,Ze.current),l)break;return null;case 22:return t.lanes=0,hd(e,t,a,t.pendingProps);case 24:_a(t,Ke,e.memoizedState.cache)}return ha(e,t,a)}function wd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!vs(e,a)&&(t.flags&128)===0)return Je=!1,By(e,t,a);Je=(e.flags&131072)!==0}else Je=!1,pe&&(t.flags&1048576)!==0&&Po(t,Nn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=ol(t.elementType),t.type=e,typeof e=="function")jc(e)?(l=ml(e,l),t.tag=1,t=gd(null,t,e,l,a)):(t.tag=0,t=fs(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===ce){t.tag=11,t=od(null,t,e,l,a);break e}else if(n===V){t.tag=14,t=fd(null,t,e,l,a);break e}}throw t=_e(e)||e,Error(s(306,t,""))}}return t;case 0:return fs(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=ml(l,t.pendingProps),gd(e,t,l,n,a);case 3:e:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var u=t.memoizedState;n=u.element,Hc(e,t),On(t,l,null,a);var o=t.memoizedState;if(l=o.cache,_a(t,Ke,l),l!==u.cache&&_c(t,[Ke],a,!0),Un(),l=o.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=vd(e,t,l,a);break e}else if(l!==n){n=_t(Error(s(424)),t),Cn(n),t=vd(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Oe=Bt(e.firstChild),lt=t,pe=!0,Ra=null,Mt=!0,a=hf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ul(),l===n){t=ha(e,t,a);break e}it(e,t,l,a)}t=t.child}return t;case 26:return Pi(e,t),e===null?(a=Uh(t.type,null,t.pendingProps,null))?t.memoizedState=a:pe||(a=t.type,e=t.pendingProps,l=pu($.current).createElement(a),l[at]=t,l[rt]=e,ut(l,a,e),Pe(l),t.stateNode=l):t.memoizedState=Uh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Z(t),e===null&&pe&&(l=t.stateNode=Rh(t.type,t.pendingProps,$.current),lt=t,Mt=!0,n=Oe,Za(t.type)?(Ws=n,Oe=Bt(l.firstChild)):Oe=n),it(e,t,t.pendingProps.children,a),Pi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((n=l=Oe)&&(l=hp(l,t.type,t.pendingProps,Mt),l!==null?(t.stateNode=l,lt=t,Oe=Bt(l.firstChild),Mt=!1,n=!0):n=!1),n||Da(t)),Z(t),n=t.type,u=t.pendingProps,o=e!==null?e.memoizedProps:null,l=u.children,Vs(n,u)?l=null:o!==null&&Vs(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Zc(e,t,Ay,null,null,a),ei._currentValue=n),Pi(e,t),it(e,t,l,a),t.child;case 6:return e===null&&pe&&((e=a=Oe)&&(a=mp(a,t.pendingProps,Mt),a!==null?(t.stateNode=a,lt=t,Oe=null,e=!0):e=!1),e||Da(t)),null;case 13:return xd(e,t,a);case 4:return ge(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=dl(t,null,l,a):it(e,t,l,a),t.child;case 11:return od(e,t,t.type,t.pendingProps,a);case 7:return it(e,t,t.pendingProps,a),t.child;case 8:return it(e,t,t.pendingProps.children,a),t.child;case 12:return it(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,_a(t,t.type,l.value),it(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,sl(t),n=nt(n),l=l(n),t.flags|=1,it(e,t,l,a),t.child;case 14:return fd(e,t,t.type,t.pendingProps,a);case 15:return dd(e,t,t.type,t.pendingProps,a);case 19:return Sd(e,t,a);case 31:return Ly(e,t,a);case 22:return hd(e,t,a,t.pendingProps);case 24:return sl(t),l=nt(Ke),e===null?(n=Mc(),n===null&&(n=De,u=Uc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=a),n=u),t.memoizedState={parent:l,cache:n},Bc(t),_a(t,Ke,n)):((e.lanes&a)!==0&&(Hc(e,t),On(t,null,null,a),Un()),n=e.memoizedState,u=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),_a(t,Ke,l)):(l=u.cache,_a(t,Ke,l),l!==n.cache&&_c(t,[Ke],a,!0))),it(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ma(e){e.flags|=4}function xs(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Jd())e.flags|=8192;else throw fl=Hi,Lc}else e.flags&=-16777217}function jd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hh(t))if(Jd())e.flags|=8192;else throw fl=Hi,Lc}function tu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?eo():536870912,e.lanes|=t,Jl|=t)}function qn(e,t){if(!pe)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 l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Hy(e,t,a){var l=t.pendingProps;switch(Cc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),oa(Ke),ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ll(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tc())),Me(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(ma(t),u!==null?(Me(t),jd(t,u)):(Me(t),xs(t,n,null,l,a))):u?u!==e.memoizedState?(ma(t),Me(t),jd(t,u)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ma(t),Me(t),xs(t,n,e,l,a)),null;case 27:if(we(t),a=$.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Me(t),null}e=Q.current,Ll(t)?tf(t):(e=Rh(n,l,a),t.stateNode=e,ma(t))}return Me(t),null;case 5:if(we(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Me(t),null}if(u=Q.current,Ll(t))tf(t);else{var o=pu($.current);switch(u){case 1:u=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=o.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?o.createElement(n,{is:l.is}):o.createElement(n)}}u[at]=t,u[rt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)u.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=u;e:switch(ut(u,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ma(t)}}return Me(t),xs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=$.current,Ll(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=lt,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[at]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||xh(e.nodeValue,a)),e||Da(t,!0)}else e=pu(e).createTextNode(l),e[at]=t,t.stateNode=e}return Me(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ll(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[at]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),e=!1}else a=Tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(wt(t),t):(wt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Me(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ll(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[at]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),n=!1}else n=Tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(wt(t),t):(wt(t),null)}return wt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),tu(t,t.updateQueue),Me(t),null);case 4:return ie(),e===null&&Ys(t.stateNode.containerInfo),Me(t),null;case 10:return oa(t.type),Me(t),null;case 19:if(T(Ze),l=t.memoizedState,l===null)return Me(t),null;if(n=(t.flags&128)!==0,u=l.rendering,u===null)if(n)qn(l,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Gi(e),u!==null){for(t.flags|=128,qn(l,!1),e=u.updateQueue,t.updateQueue=e,tu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)$o(a,e),a=a.sibling;return H(Ze,Ze.current&1|2),pe&&sa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&pt()>uu&&(t.flags|=128,n=!0,qn(l,!1),t.lanes=4194304)}else{if(!n)if(e=Gi(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,tu(t,e),qn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!pe)return Me(t),null}else 2*pt()-l.renderingStartTime>uu&&a!==536870912&&(t.flags|=128,n=!0,qn(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=pt(),e.sibling=null,a=Ze.current,H(Ze,n?a&1|2:a&1),pe&&sa(t,l.treeForkCount),e):(Me(t),null);case 22:case 23:return wt(t),Gc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),a=t.updateQueue,a!==null&&tu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&T(rl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),oa(Ke),Me(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function ky(e,t){switch(Cc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return oa(Ke),ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(wt(t),t.alternate===null)throw Error(s(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return T(Ze),null;case 4:return ie(),null;case 10:return oa(t.type),null;case 22:case 23:return wt(t),Gc(),e!==null&&T(rl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return oa(Ke),null;case 25:return null;default:return null}}function zd(e,t){switch(Cc(t),t.tag){case 3:oa(Ke),ie();break;case 26:case 27:case 5:we(t);break;case 4:ie();break;case 31:t.memoizedState!==null&&wt(t);break;case 13:wt(t);break;case 19:T(Ze);break;case 10:oa(t.type);break;case 22:case 23:wt(t),Gc(),e!==null&&T(rl);break;case 24:oa(Ke)}}function Yn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var u=a.create,o=a.inst;l=u(),o.destroy=l}a=a.next}while(a!==n)}}catch(m){ze(t,t.return,m)}}function Ha(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var u=n.next;l=u;do{if((l.tag&e)===e){var o=l.inst,m=o.destroy;if(m!==void 0){o.destroy=void 0,n=t;var b=a,N=m;try{N()}catch(_){ze(n,b,_)}}}l=l.next}while(l!==u)}}catch(_){ze(t,t.return,_)}}function Ed(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{yf(t,a)}catch(l){ze(e,e.return,l)}}}function Nd(e,t,a){a.props=ml(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){ze(e,t,l)}}function Gn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){ze(e,t,n)}}function Wt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){ze(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){ze(e,t,n)}else a.current=null}function Cd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){ze(e,e.return,n)}}function bs(e,t,a){try{var l=e.stateNode;cp(l,e.type,a,t),l[rt]=t}catch(n){ze(e,e.return,n)}}function Ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Za(e.type)||e.tag===4}function Ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ad(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&&Za(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 ws(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(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=ia));else if(l!==4&&(l===27&&Za(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ws(e,t,a),e=e.sibling;e!==null;)ws(e,t,a),e=e.sibling}function au(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Za(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(au(e,t,a),e=e.sibling;e!==null;)au(e,t,a),e=e.sibling}function Td(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);ut(t,l,a),t[at]=e,t[rt]=a}catch(u){ze(e,e.return,u)}}var ya=!1,$e=!1,js=!1,Rd=typeof WeakSet=="function"?WeakSet:Set,et=null;function qy(e,t){if(e=e.containerInfo,Qs=ju,e=Yo(e),pc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var o=0,m=-1,b=-1,N=0,_=0,M=e,A=null;t:for(;;){for(var R;M!==a||n!==0&&M.nodeType!==3||(m=o+n),M!==u||l!==0&&M.nodeType!==3||(b=o+l),M.nodeType===3&&(o+=M.nodeValue.length),(R=M.firstChild)!==null;)A=M,M=R;for(;;){if(M===e)break t;if(A===a&&++N===n&&(m=o),A===u&&++_===l&&(b=o),(R=M.nextSibling)!==null)break;M=A,A=M.parentNode}M=R}a=m===-1||b===-1?null:{start:m,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(Zs={focusedElem:e,selectionRange:a},ju=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,n=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var K=ml(a.type,n);e=l.getSnapshotBeforeUpdate(K,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(ee){ze(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Fs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Fs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function Dd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ga(e,a),l&4&&Yn(5,a);break;case 1:if(ga(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){ze(a,a.return,o)}else{var n=ml(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){ze(a,a.return,o)}}l&64&&Ed(a),l&512&&Gn(a,a.return);break;case 3:if(ga(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{yf(e,t)}catch(o){ze(a,a.return,o)}}break;case 27:t===null&&l&4&&Td(a);case 26:case 5:ga(e,a),t===null&&l&4&&Cd(a),l&512&&Gn(a,a.return);break;case 12:ga(e,a);break;case 31:ga(e,a),l&4&&Od(e,a);break;case 13:ga(e,a),l&4&&Md(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Jy.bind(null,a),yp(e,a))));break;case 22:if(l=a.memoizedState!==null||ya,!l){t=t!==null&&t.memoizedState!==null||$e,n=ya;var u=$e;ya=l,($e=t)&&!u?va(e,a,(a.subtreeFlags&8772)!==0):ga(e,a),ya=n,$e=u}break;case 30:break;default:ga(e,a)}}function _d(e){var t=e.alternate;t!==null&&(e.alternate=null,_d(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Le=null,ft=!1;function pa(e,t,a){for(a=a.child;a!==null;)Ud(e,t,a),a=a.sibling}function Ud(e,t,a){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:$e||Wt(a,t),pa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||Wt(a,t);var l=Le,n=ft;Za(a.type)&&(Le=a.stateNode,ft=!1),pa(e,t,a),Wn(a.stateNode),Le=l,ft=n;break;case 5:$e||Wt(a,t);case 6:if(l=Le,n=ft,Le=null,pa(e,t,a),Le=l,ft=n,Le!==null)if(ft)try{(Le.nodeType===9?Le.body:Le.nodeName==="HTML"?Le.ownerDocument.body:Le).removeChild(a.stateNode)}catch(u){ze(a,t,u)}else try{Le.removeChild(a.stateNode)}catch(u){ze(a,t,u)}break;case 18:Le!==null&&(ft?(e=Le,Eh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ln(e)):Eh(Le,a.stateNode));break;case 4:l=Le,n=ft,Le=a.stateNode.containerInfo,ft=!0,pa(e,t,a),Le=l,ft=n;break;case 0:case 11:case 14:case 15:Ha(2,a,t),$e||Ha(4,a,t),pa(e,t,a);break;case 1:$e||(Wt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Nd(a,t,l)),pa(e,t,a);break;case 21:pa(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,pa(e,t,a),$e=l;break;default:pa(e,t,a)}}function Od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ln(e)}catch(a){ze(t,t.return,a)}}}function Md(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ln(e)}catch(a){ze(t,t.return,a)}}function Yy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Rd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Rd),t;default:throw Error(s(435,e.tag))}}function lu(e,t){var a=Yy(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=$y.bind(null,e,l);l.then(n,n)}})}function dt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],u=e,o=t,m=o;e:for(;m!==null;){switch(m.tag){case 27:if(Za(m.type)){Le=m.stateNode,ft=!1;break e}break;case 5:Le=m.stateNode,ft=!1;break e;case 3:case 4:Le=m.stateNode.containerInfo,ft=!0;break e}m=m.return}if(Le===null)throw Error(s(160));Ud(u,o,n),Le=null,ft=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ld(t,e),t=t.sibling}var Xt=null;function Ld(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dt(t,e),ht(e),l&4&&(Ha(3,e,e.return),Yn(3,e),Ha(5,e,e.return));break;case 1:dt(t,e),ht(e),l&512&&($e||a===null||Wt(a,a.return)),l&64&&ya&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Xt;if(dt(t,e),ht(e),l&512&&($e||a===null||Wt(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":u=n.getElementsByTagName("title")[0],(!u||u[yn]||u[at]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(l),n.head.insertBefore(u,n.querySelector("head > title"))),ut(u,l,a),u[at]=e,Pe(u),l=u;break e;case"link":var o=Lh("link","href",n).get(l+(a.href||""));if(o){for(var m=0;m<o.length;m++)if(u=o[m],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(m,1);break t}}u=n.createElement(l),ut(u,l,a),n.head.appendChild(u);break;case"meta":if(o=Lh("meta","content",n).get(l+(a.content||""))){for(m=0;m<o.length;m++)if(u=o[m],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(m,1);break t}}u=n.createElement(l),ut(u,l,a),n.head.appendChild(u);break;default:throw Error(s(468,l))}u[at]=e,Pe(u),l=u}e.stateNode=l}else Bh(n,e.type,e.stateNode);else e.stateNode=Mh(n,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?Bh(n,e.type,e.stateNode):Mh(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&bs(e,e.memoizedProps,a.memoizedProps)}break;case 27:dt(t,e),ht(e),l&512&&($e||a===null||Wt(a,a.return)),a!==null&&l&4&&bs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(dt(t,e),ht(e),l&512&&($e||a===null||Wt(a,a.return)),e.flags&32){n=e.stateNode;try{Nl(n,"")}catch(K){ze(e,e.return,K)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,bs(e,n,a!==null?a.memoizedProps:n)),l&1024&&(js=!0);break;case 6:if(dt(t,e),ht(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(K){ze(e,e.return,K)}}break;case 3:if(xu=null,n=Xt,Xt=gu(t.containerInfo),dt(t,e),Xt=n,ht(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{ln(t.containerInfo)}catch(K){ze(e,e.return,K)}js&&(js=!1,Bd(e));break;case 4:l=Xt,Xt=gu(e.stateNode.containerInfo),dt(t,e),ht(e),Xt=l;break;case 12:dt(t,e),ht(e);break;case 31:dt(t,e),ht(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,lu(e,l)));break;case 13:dt(t,e),ht(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(iu=pt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,lu(e,l)));break;case 22:n=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,N=ya,_=$e;if(ya=N||n,$e=_||b,dt(t,e),$e=_,ya=N,ht(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||b||ya||$e||yl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(u=b.stateNode,n)o=u.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{m=b.stateNode;var M=b.memoizedProps.style,A=M!=null&&M.hasOwnProperty("display")?M.display:null;m.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(K){ze(b,b.return,K)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=n?"":b.memoizedProps}catch(K){ze(b,b.return,K)}}}else if(t.tag===18){if(a===null){b=t;try{var R=b.stateNode;n?Nh(R,!0):Nh(b.stateNode,!1)}catch(K){ze(b,b.return,K)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,lu(e,a))));break;case 19:dt(t,e),ht(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,lu(e,l)));break;case 30:break;case 21:break;default:dt(t,e),ht(e)}}function ht(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Ad(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var n=a.stateNode,u=Ss(e);au(e,u,n);break;case 5:var o=a.stateNode;a.flags&32&&(Nl(o,""),a.flags&=-33);var m=Ss(e);au(e,m,o);break;case 3:case 4:var b=a.stateNode.containerInfo,N=Ss(e);ws(e,N,b);break;default:throw Error(s(161))}}catch(_){ze(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ga(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Dd(e,t.alternate,t),t=t.sibling}function yl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ha(4,t,t.return),yl(t);break;case 1:Wt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Nd(t,t.return,a),yl(t);break;case 27:Wn(t.stateNode);case 26:case 5:Wt(t,t.return),yl(t);break;case 22:t.memoizedState===null&&yl(t);break;case 30:yl(t);break;default:yl(t)}e=e.sibling}}function va(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,u=t,o=u.flags;switch(u.tag){case 0:case 11:case 15:va(n,u,a),Yn(4,u);break;case 1:if(va(n,u,a),l=u,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){ze(l,l.return,N)}if(l=u,n=l.updateQueue,n!==null){var m=l.stateNode;try{var b=n.shared.hiddenCallbacks;if(b!==null)for(n.shared.hiddenCallbacks=null,n=0;n<b.length;n++)mf(b[n],m)}catch(N){ze(l,l.return,N)}}a&&o&64&&Ed(u),Gn(u,u.return);break;case 27:Td(u);case 26:case 5:va(n,u,a),a&&l===null&&o&4&&Cd(u),Gn(u,u.return);break;case 12:va(n,u,a);break;case 31:va(n,u,a),a&&o&4&&Od(n,u);break;case 13:va(n,u,a),a&&o&4&&Md(n,u);break;case 22:u.memoizedState===null&&va(n,u,a),Gn(u,u.return);break;case 30:break;default:va(n,u,a)}t=t.sibling}}function zs(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&&e.refCount++,a!=null&&An(a))}function Es(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&An(e))}function Qt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hd(e,t,a,l),t=t.sibling}function Hd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,a,l),n&2048&&Yn(9,t);break;case 1:Qt(e,t,a,l);break;case 3:Qt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&An(e)));break;case 12:if(n&2048){Qt(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,o=u.id,m=u.onPostCommit;typeof m=="function"&&m(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){ze(t,t.return,b)}}else Qt(e,t,a,l);break;case 31:Qt(e,t,a,l);break;case 13:Qt(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,o=t.alternate,t.memoizedState!==null?u._visibility&2?Qt(e,t,a,l):Xn(e,t):u._visibility&2?Qt(e,t,a,l):(u._visibility|=2,Vl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&zs(o,t);break;case 24:Qt(e,t,a,l),n&2048&&Es(t.alternate,t);break;default:Qt(e,t,a,l)}}function Vl(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,o=t,m=a,b=l,N=o.flags;switch(o.tag){case 0:case 11:case 15:Vl(u,o,m,b,n),Yn(8,o);break;case 23:break;case 22:var _=o.stateNode;o.memoizedState!==null?_._visibility&2?Vl(u,o,m,b,n):Xn(u,o):(_._visibility|=2,Vl(u,o,m,b,n)),n&&N&2048&&zs(o.alternate,o);break;case 24:Vl(u,o,m,b,n),n&&N&2048&&Es(o.alternate,o);break;default:Vl(u,o,m,b,n)}t=t.sibling}}function Xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Xn(a,l),n&2048&&zs(l.alternate,l);break;case 24:Xn(a,l),n&2048&&Es(l.alternate,l);break;default:Xn(a,l)}t=t.sibling}}var Qn=8192;function Kl(e,t,a){if(e.subtreeFlags&Qn)for(e=e.child;e!==null;)kd(e,t,a),e=e.sibling}function kd(e,t,a){switch(e.tag){case 26:Kl(e,t,a),e.flags&Qn&&e.memoizedState!==null&&Cp(a,Xt,e.memoizedState,e.memoizedProps);break;case 5:Kl(e,t,a);break;case 3:case 4:var l=Xt;Xt=gu(e.stateNode.containerInfo),Kl(e,t,a),Xt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Qn,Qn=16777216,Kl(e,t,a),Qn=l):Kl(e,t,a));break;default:Kl(e,t,a)}}function qd(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 Zn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,Gd(l,e)}qd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yd(e),e=e.sibling}function Yd(e){switch(e.tag){case 0:case 11:case 15:Zn(e),e.flags&2048&&Ha(9,e,e.return);break;case 3:Zn(e);break;case 12:Zn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nu(e)):Zn(e);break;default:Zn(e)}}function nu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,Gd(l,e)}qd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ha(8,t,t.return),nu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,nu(t));break;default:nu(t)}e=e.sibling}}function Gd(e,t){for(;et!==null;){var a=et;switch(a.tag){case 0:case 11:case 15:Ha(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:An(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,et=l;else e:for(a=e;et!==null;){l=et;var n=l.sibling,u=l.return;if(_d(l),l===a){et=null;break e}if(n!==null){n.return=u,et=n;break e}et=u}}}var Gy={getCacheForType:function(e){var t=nt(Ke),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return nt(Ke).controller.signal}},Xy=typeof WeakMap=="function"?WeakMap:Map,Se=0,De=null,de=null,me=0,je=0,jt=null,ka=!1,Fl=!1,Ns=!1,xa=0,Xe=0,qa=0,pl=0,Cs=0,zt=0,Jl=0,Vn=null,mt=null,As=!1,iu=0,Xd=0,uu=1/0,cu=null,Ya=null,We=0,Ga=null,$l=null,ba=0,Ts=0,Rs=null,Qd=null,Kn=0,Ds=null;function Et(){return(Se&2)!==0&&me!==0?me&-me:D.T!==null?Bs():no()}function Zd(){if(zt===0)if((me&536870912)===0||pe){var e=yi;yi<<=1,(yi&3932160)===0&&(yi=262144),zt=e}else zt=536870912;return e=St.current,e!==null&&(e.flags|=32),zt}function yt(e,t,a){(e===De&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Wl(e,0),Xa(e,me,zt,!1)),mn(e,a),((Se&2)===0||e!==De)&&(e===De&&((Se&2)===0&&(pl|=a),Xe===4&&Xa(e,me,zt,!1)),It(e))}function Vd(e,t,a){if((Se&6)!==0)throw Error(s(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||hn(e,t),n=l?Vy(e,t):Us(e,t,!0),u=l;do{if(n===0){Fl&&!l&&Xa(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Qy(a)){n=Us(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var m=e;n=Vn;var b=m.current.memoizedState.isDehydrated;if(b&&(Wl(m,o).flags|=256),o=Us(m,o,!1),o!==2){if(Ns&&!b){m.errorRecoveryDisabledLanes|=u,pl|=u,n=4;break e}u=mt,mt=n,u!==null&&(mt===null?mt=u:mt.push.apply(mt,u))}n=o}if(u=!1,n!==2)continue}}if(n===1){Wl(e,0),Xa(e,t,0,!0);break}e:{switch(l=e,u=n,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Xa(l,t,zt,!ka);break e;case 2:mt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=iu+300-pt(),10<n)){if(Xa(l,t,zt,!ka),gi(l,0,!0)!==0)break e;ba=t,l.timeoutHandle=jh(Kd.bind(null,l,a,mt,cu,As,t,zt,pl,Jl,ka,u,"Throttled",-0,0),n);break e}Kd(l,a,mt,cu,As,t,zt,pl,Jl,ka,u,null,-0,0)}}break}while(!0);It(e)}function Kd(e,t,a,l,n,u,o,m,b,N,_,M,A,R){if(e.timeoutHandle=-1,M=t.subtreeFlags,M&8192||(M&16785408)===16785408){M={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ia},kd(t,u,M);var K=(u&62914560)===u?iu-pt():(u&4194048)===u?Xd-pt():0;if(K=Ap(M,K),K!==null){ba=u,e.cancelPendingCommit=K(th.bind(null,e,t,u,a,l,n,o,m,b,_,M,null,A,R)),Xa(e,u,o,!N);return}}th(e,t,u,a,l,n,o,m,b)}function Qy(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 l=0;l<a.length;l++){var n=a[l],u=n.getSnapshot;n=n.value;try{if(!xt(u(),n))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 Xa(e,t,a,l){t&=~Cs,t&=~pl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var u=31-vt(n),o=1<<u;l[u]=-1,n&=~o}a!==0&&to(e,a,t)}function su(){return(Se&6)===0?(Fn(0),!1):!0}function _s(){if(de!==null){if(je===0)var e=de.return;else e=de,ra=cl=null,Fc(e),Yl=null,Rn=0,e=de;for(;e!==null;)zd(e.alternate,e),e=e.return;de=null}}function Wl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,op(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ba=0,_s(),De=e,de=a=ca(e.current,null),me=t,je=0,jt=null,ka=!1,Fl=hn(e,t),Ns=!1,Jl=zt=Cs=pl=qa=Xe=0,mt=Vn=null,As=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-vt(l),u=1<<n;t|=e[n],l&=~u}return xa=t,Ti(),a}function Fd(e,t){se=null,D.H=Hn,t===ql||t===Bi?(t=of(),je=3):t===Lc?(t=of(),je=4):je=t===os?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,de===null&&(Xe=1,Wi(e,_t(t,e.current)))}function Jd(){var e=St.current;return e===null?!0:(me&4194048)===me?Lt===null:(me&62914560)===me||(me&536870912)!==0?e===Lt:!1}function $d(){var e=D.H;return D.H=Hn,e===null?Hn:e}function Wd(){var e=D.A;return D.A=Gy,e}function ru(){Xe=4,ka||(me&4194048)!==me&&St.current!==null||(Fl=!0),(qa&134217727)===0&&(pl&134217727)===0||De===null||Xa(De,me,zt,!1)}function Us(e,t,a){var l=Se;Se|=2;var n=$d(),u=Wd();(De!==e||me!==t)&&(cu=null,Wl(e,t)),t=!1;var o=Xe;e:do try{if(je!==0&&de!==null){var m=de,b=jt;switch(je){case 8:_s(),o=6;break e;case 3:case 2:case 9:case 6:St.current===null&&(t=!0);var N=je;if(je=0,jt=null,Il(e,m,b,N),a&&Fl){o=0;break e}break;default:N=je,je=0,jt=null,Il(e,m,b,N)}}Zy(),o=Xe;break}catch(_){Fd(e,_)}while(!0);return t&&e.shellSuspendCounter++,ra=cl=null,Se=l,D.H=n,D.A=u,de===null&&(De=null,me=0,Ti()),o}function Zy(){for(;de!==null;)Id(de)}function Vy(e,t){var a=Se;Se|=2;var l=$d(),n=Wd();De!==e||me!==t?(cu=null,uu=pt()+500,Wl(e,t)):Fl=hn(e,t);e:do try{if(je!==0&&de!==null){t=de;var u=jt;t:switch(je){case 1:je=0,jt=null,Il(e,t,u,1);break;case 2:case 9:if(sf(u)){je=0,jt=null,Pd(t);break}t=function(){je!==2&&je!==9||De!==e||(je=7),It(e)},u.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:sf(u)?(je=0,jt=null,Pd(t)):(je=0,jt=null,Il(e,t,u,7));break;case 5:var o=null;switch(de.tag){case 26:o=de.memoizedState;case 5:case 27:var m=de;if(o?Hh(o):m.stateNode.complete){je=0,jt=null;var b=m.sibling;if(b!==null)de=b;else{var N=m.return;N!==null?(de=N,ou(N)):de=null}break t}}je=0,jt=null,Il(e,t,u,5);break;case 6:je=0,jt=null,Il(e,t,u,6);break;case 8:_s(),Xe=6;break e;default:throw Error(s(462))}}Ky();break}catch(_){Fd(e,_)}while(!0);return ra=cl=null,D.H=l,D.A=n,Se=a,de!==null?0:(De=null,me=0,Ti(),Xe)}function Ky(){for(;de!==null&&!p0();)Id(de)}function Id(e){var t=wd(e.alternate,e,xa);e.memoizedProps=e.pendingProps,t===null?ou(e):de=t}function Pd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=pd(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=pd(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Fc(t);default:zd(a,t),t=de=$o(t,xa),t=wd(a,t,xa)}e.memoizedProps=e.pendingProps,t===null?ou(e):de=t}function Il(e,t,a,l){ra=cl=null,Fc(t),Yl=null,Rn=0;var n=t.return;try{if(My(e,n,t,a,me)){Xe=1,Wi(e,_t(a,e.current)),de=null;return}}catch(u){if(n!==null)throw de=n,u;Xe=1,Wi(e,_t(a,e.current)),de=null;return}t.flags&32768?(pe||l===1?e=!0:Fl||(me&536870912)!==0?e=!1:(ka=e=!0,(l===2||l===9||l===3||l===6)&&(l=St.current,l!==null&&l.tag===13&&(l.flags|=16384))),eh(t,e)):ou(t)}function ou(e){var t=e;do{if((t.flags&32768)!==0){eh(t,ka);return}e=t.return;var a=Hy(t.alternate,t,xa);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Xe===0&&(Xe=5)}function eh(e,t){do{var a=ky(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);Xe=6,de=null}function th(e,t,a,l,n,u,o,m,b){e.cancelPendingCommit=null;do fu();while(We!==0);if((Se&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=Sc,N0(e,a,u,o,m,b),e===De&&(de=De=null,me=0),$l=t,Ga=e,ba=a,Ts=u,Rs=n,Qd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wy(hi,function(){return uh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,n=q.p,q.p=2,o=Se,Se|=4;try{qy(e,t,a)}finally{Se=o,q.p=n,D.T=l}}We=1,ah(),lh(),nh()}}function ah(){if(We===1){We=0;var e=Ga,t=$l,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=q.p;q.p=2;var n=Se;Se|=4;try{Ld(t,e);var u=Zs,o=Yo(e.containerInfo),m=u.focusedElem,b=u.selectionRange;if(o!==m&&m&&m.ownerDocument&&qo(m.ownerDocument.documentElement,m)){if(b!==null&&pc(m)){var N=b.start,_=b.end;if(_===void 0&&(_=N),"selectionStart"in m)m.selectionStart=N,m.selectionEnd=Math.min(_,m.value.length);else{var M=m.ownerDocument||document,A=M&&M.defaultView||window;if(A.getSelection){var R=A.getSelection(),K=m.textContent.length,ee=Math.min(b.start,K),Te=b.end===void 0?ee:Math.min(b.end,K);!R.extend&&ee>Te&&(o=Te,Te=ee,ee=o);var j=ko(m,ee),w=ko(m,Te);if(j&&w&&(R.rangeCount!==1||R.anchorNode!==j.node||R.anchorOffset!==j.offset||R.focusNode!==w.node||R.focusOffset!==w.offset)){var E=M.createRange();E.setStart(j.node,j.offset),R.removeAllRanges(),ee>Te?(R.addRange(E),R.extend(w.node,w.offset)):(E.setEnd(w.node,w.offset),R.addRange(E))}}}}for(M=[],R=m;R=R.parentNode;)R.nodeType===1&&M.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<M.length;m++){var U=M[m];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}ju=!!Qs,Zs=Qs=null}finally{Se=n,q.p=l,D.T=a}}e.current=t,We=2}}function lh(){if(We===2){We=0;var e=Ga,t=$l,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=q.p;q.p=2;var n=Se;Se|=4;try{Dd(e,t.alternate,t)}finally{Se=n,q.p=l,D.T=a}}We=3}}function nh(){if(We===4||We===3){We=0,g0();var e=Ga,t=$l,a=ba,l=Qd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,$l=Ga=null,ih(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ya=null),Wu(a),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(dn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=D.T,n=q.p,q.p=2,D.T=null;try{for(var u=e.onRecoverableError,o=0;o<l.length;o++){var m=l[o];u(m.value,{componentStack:m.stack})}}finally{D.T=t,q.p=n}}(ba&3)!==0&&fu(),It(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Ds?Kn++:(Kn=0,Ds=e):Kn=0,Fn(0)}}function ih(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,An(t)))}function fu(){return ah(),lh(),nh(),uh()}function uh(){if(We!==5)return!1;var e=Ga,t=Ts;Ts=0;var a=Wu(ba),l=D.T,n=q.p;try{q.p=32>a?32:a,D.T=null,a=Rs,Rs=null;var u=Ga,o=ba;if(We=0,$l=Ga=null,ba=0,(Se&6)!==0)throw Error(s(331));var m=Se;if(Se|=4,Yd(u.current),Hd(u,u.current,o,a),Se=m,Fn(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(dn,u)}catch{}return!0}finally{q.p=n,D.T=l,ih(e,t)}}function ch(e,t,a){t=_t(a,t),t=rs(e.stateNode,t,2),e=Ma(e,t,2),e!==null&&(mn(e,2),It(e))}function ze(e,t,a){if(e.tag===3)ch(e,e,a);else for(;t!==null;){if(t.tag===3){ch(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ya===null||!Ya.has(l))){e=_t(a,e),a=sd(2),l=Ma(t,a,2),l!==null&&(rd(a,l,t,e),mn(l,2),It(l));break}}t=t.return}}function Os(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Xy;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Ns=!0,n.add(a),e=Fy.bind(null,e,t,a),t.then(e,e))}function Fy(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,De===e&&(me&a)===a&&(Xe===4||Xe===3&&(me&62914560)===me&&300>pt()-iu?(Se&2)===0&&Wl(e,0):Cs|=a,Jl===me&&(Jl=0)),It(e)}function sh(e,t){t===0&&(t=eo()),e=nl(e,t),e!==null&&(mn(e,t),It(e))}function Jy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),sh(e,a)}function $y(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),sh(e,a)}function Wy(e,t){return la(e,t)}var du=null,Pl=null,Ms=!1,hu=!1,Ls=!1,Qa=0;function It(e){e!==Pl&&e.next===null&&(Pl===null?du=Pl=e:Pl=Pl.next=e),hu=!0,Ms||(Ms=!0,Py())}function Fn(e,t){if(!Ls&&hu){Ls=!0;do for(var a=!1,l=du;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var u=0;else{var o=l.suspendedLanes,m=l.pingedLanes;u=(1<<31-vt(42|e)+1)-1,u&=n&~(o&~m),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,dh(l,u))}else u=me,u=gi(l,l===De?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||hn(l,u)||(a=!0,dh(l,u));l=l.next}while(a);Ls=!1}}function Iy(){rh()}function rh(){hu=Ms=!1;var e=0;Qa!==0&&rp()&&(e=Qa);for(var t=pt(),a=null,l=du;l!==null;){var n=l.next,u=oh(l,t);u===0?(l.next=null,a===null?du=n:a.next=n,n===null&&(Pl=a)):(a=l,(e!==0||(u&3)!==0)&&(hu=!0)),l=n}We!==0&&We!==5||Fn(e),Qa!==0&&(Qa=0)}function oh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var o=31-vt(u),m=1<<o,b=n[o];b===-1?((m&a)===0||(m&l)!==0)&&(n[o]=E0(m,t)):b<=t&&(e.expiredLanes|=m),u&=~m}if(t=De,a=me,a=gi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&xl(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||hn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&xl(l),Wu(a)){case 2:case 8:a=Ir;break;case 32:a=hi;break;case 268435456:a=Pr;break;default:a=hi}return l=fh.bind(null,e),a=la(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&xl(l),e.callbackPriority=2,e.callbackNode=null,2}function fh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(fu()&&e.callbackNode!==a)return null;var l=me;return l=gi(e,e===De?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Vd(e,l,t),oh(e,pt()),e.callbackNode!=null&&e.callbackNode===a?fh.bind(null,e):null)}function dh(e,t){if(fu())return null;Vd(e,t,!0)}function Py(){fp(function(){(Se&6)!==0?la(Wr,Iy):rh()})}function Bs(){if(Qa===0){var e=Hl;e===0&&(e=mi,mi<<=1,(mi&261888)===0&&(mi=256)),Qa=e}return Qa}function hh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Si(""+e)}function mh(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 ep(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var u=hh((n[rt]||null).action),o=l.submitter;o&&(t=(t=o[rt]||null)?hh(t.formAction):o.getAttribute("formAction"),t!==null&&(u=t,o=null));var m=new Ei("action","action",null,l,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Qa!==0){var b=o?mh(n,o):new FormData(n);ls(a,{pending:!0,data:b,method:n.method,action:u},null,b)}}else typeof u=="function"&&(m.preventDefault(),b=o?mh(n,o):new FormData(n),ls(a,{pending:!0,data:b,method:n.method,action:u},u,b))},currentTarget:n}]})}}for(var Hs=0;Hs<bc.length;Hs++){var ks=bc[Hs],tp=ks.toLowerCase(),ap=ks[0].toUpperCase()+ks.slice(1);Gt(tp,"on"+ap)}Gt(Qo,"onAnimationEnd"),Gt(Zo,"onAnimationIteration"),Gt(Vo,"onAnimationStart"),Gt("dblclick","onDoubleClick"),Gt("focusin","onFocus"),Gt("focusout","onBlur"),Gt(vy,"onTransitionRun"),Gt(xy,"onTransitionStart"),Gt(by,"onTransitionCancel"),Gt(Ko,"onTransitionEnd"),zl("onMouseEnter",["mouseout","mouseover"]),zl("onMouseLeave",["mouseout","mouseover"]),zl("onPointerEnter",["pointerout","pointerover"]),zl("onPointerLeave",["pointerout","pointerover"]),el("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),el("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),el("onBeforeInput",["compositionend","keypress","textInput","paste"]),el("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),el("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),el("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jn="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(" "),lp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jn));function yh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var o=l.length-1;0<=o;o--){var m=l[o],b=m.instance,N=m.currentTarget;if(m=m.listener,b!==u&&n.isPropagationStopped())break e;u=m,n.currentTarget=N;try{u(n)}catch(_){Ai(_)}n.currentTarget=null,u=b}else for(o=0;o<l.length;o++){if(m=l[o],b=m.instance,N=m.currentTarget,m=m.listener,b!==u&&n.isPropagationStopped())break e;u=m,n.currentTarget=N;try{u(n)}catch(_){Ai(_)}n.currentTarget=null,u=b}}}}function he(e,t){var a=t[Iu];a===void 0&&(a=t[Iu]=new Set);var l=e+"__bubble";a.has(l)||(ph(t,e,2,!1),a.add(l))}function qs(e,t,a){var l=0;t&&(l|=4),ph(a,e,l,t)}var mu="_reactListening"+Math.random().toString(36).slice(2);function Ys(e){if(!e[mu]){e[mu]=!0,co.forEach(function(a){a!=="selectionchange"&&(lp.has(a)||qs(a,!1,e),qs(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mu]||(t[mu]=!0,qs("selectionchange",!1,t))}}function ph(e,t,a,l){switch(Zh(t)){case 2:var n=Dp;break;case 8:n=_p;break;default:n=ar}a=n.bind(null,t,a,e),n=void 0,!cc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Gs(e,t,a,l,n){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var m=l.stateNode.containerInfo;if(m===n)break;if(o===4)for(o=l.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;m!==null;){if(o=Sl(m),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){l=u=o;continue e}m=m.parentNode}}l=l.return}bo(function(){var N=u,_=ic(a),M=[];e:{var A=Fo.get(e);if(A!==void 0){var R=Ei,K=e;switch(e){case"keypress":if(ji(a)===0)break e;case"keydown":case"keyup":R=$0;break;case"focusin":K="focus",R=fc;break;case"focusout":K="blur",R=fc;break;case"beforeblur":case"afterblur":R=fc;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":R=jo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=H0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=P0;break;case Qo:case Zo:case Vo:R=Y0;break;case Ko:R=ty;break;case"scroll":case"scrollend":R=L0;break;case"wheel":R=ly;break;case"copy":case"cut":case"paste":R=X0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=Eo;break;case"toggle":case"beforetoggle":R=iy}var ee=(t&4)!==0,Te=!ee&&(e==="scroll"||e==="scrollend"),j=ee?A!==null?A+"Capture":null:A;ee=[];for(var w=N,E;w!==null;){var U=w;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||j===null||(U=gn(w,j),U!=null&&ee.push($n(w,U,E))),Te)break;w=w.return}0<ee.length&&(A=new R(A,K,null,a,_),M.push({event:A,listeners:ee}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",A&&a!==nc&&(K=a.relatedTarget||a.fromElement)&&(Sl(K)||K[bl]))break e;if((R||A)&&(A=_.window===_?_:(A=_.ownerDocument)?A.defaultView||A.parentWindow:window,R?(K=a.relatedTarget||a.toElement,R=N,K=K?Sl(K):null,K!==null&&(Te=h(K),ee=K.tag,K!==Te||ee!==5&&ee!==27&&ee!==6)&&(K=null)):(R=null,K=N),R!==K)){if(ee=jo,U="onMouseLeave",j="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ee=Eo,U="onPointerLeave",j="onPointerEnter",w="pointer"),Te=R==null?A:pn(R),E=K==null?A:pn(K),A=new ee(U,w+"leave",R,a,_),A.target=Te,A.relatedTarget=E,U=null,Sl(_)===N&&(ee=new ee(j,w+"enter",K,a,_),ee.target=E,ee.relatedTarget=Te,U=ee),Te=U,R&&K)t:{for(ee=np,j=R,w=K,E=0,U=j;U;U=ee(U))E++;U=0;for(var P=w;P;P=ee(P))U++;for(;0<E-U;)j=ee(j),E--;for(;0<U-E;)w=ee(w),U--;for(;E--;){if(j===w||w!==null&&j===w.alternate){ee=j;break t}j=ee(j),w=ee(w)}ee=null}else ee=null;R!==null&&gh(M,A,R,ee,!1),K!==null&&Te!==null&&gh(M,Te,K,ee,!0)}}e:{if(A=N?pn(N):window,R=A.nodeName&&A.nodeName.toLowerCase(),R==="select"||R==="input"&&A.type==="file")var ve=Uo;else if(Do(A))if(Oo)ve=yy;else{ve=hy;var W=dy}else R=A.nodeName,!R||R.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?N&&lc(N.elementType)&&(ve=Uo):ve=my;if(ve&&(ve=ve(e,N))){_o(M,ve,a,_);break e}W&&W(e,A,N),e==="focusout"&&N&&A.type==="number"&&N.memoizedProps.value!=null&&ac(A,"number",A.value)}switch(W=N?pn(N):window,e){case"focusin":(Do(W)||W.contentEditable==="true")&&(Rl=W,gc=N,En=null);break;case"focusout":En=gc=Rl=null;break;case"mousedown":vc=!0;break;case"contextmenu":case"mouseup":case"dragend":vc=!1,Go(M,a,_);break;case"selectionchange":if(gy)break;case"keydown":case"keyup":Go(M,a,_)}var oe;if(hc)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Tl?To(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(No&&a.locale!=="ko"&&(Tl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Tl&&(oe=So()):(Aa=_,sc="value"in Aa?Aa.value:Aa.textContent,Tl=!0)),W=yu(N,ye),0<W.length&&(ye=new zo(ye,e,null,a,_),M.push({event:ye,listeners:W}),oe?ye.data=oe:(oe=Ro(a),oe!==null&&(ye.data=oe)))),(oe=cy?sy(e,a):ry(e,a))&&(ye=yu(N,"onBeforeInput"),0<ye.length&&(W=new zo("onBeforeInput","beforeinput",null,a,_),M.push({event:W,listeners:ye}),W.data=oe)),ep(M,e,N,a,_)}yh(M,t)})}function $n(e,t,a){return{instance:e,listener:t,currentTarget:a}}function yu(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=gn(e,a),n!=null&&l.unshift($n(e,n,u)),n=gn(e,t),n!=null&&l.push($n(e,n,u))),e.tag===3)return l;e=e.return}return[]}function np(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gh(e,t,a,l,n){for(var u=t._reactName,o=[];a!==null&&a!==l;){var m=a,b=m.alternate,N=m.stateNode;if(m=m.tag,b!==null&&b===l)break;m!==5&&m!==26&&m!==27||N===null||(b=N,n?(N=gn(a,u),N!=null&&o.unshift($n(a,N,b))):n||(N=gn(a,u),N!=null&&o.push($n(a,N,b)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var ip=/\r\n?/g,up=/\u0000|\uFFFD/g;function vh(e){return(typeof e=="string"?e:""+e).replace(ip,`
9
+ `).replace(up,"")}function xh(e,t){return t=vh(t),vh(e)===t}function Ae(e,t,a,l,n,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Nl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Nl(e,""+l);break;case"className":xi(e,"class",l);break;case"tabIndex":xi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":xi(e,a,l);break;case"style":vo(e,l,u);break;case"data":if(t!=="object"){xi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Si(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="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 u=="function"&&(a==="formAction"?(t!=="input"&&Ae(e,t,"name",n.name,n,null),Ae(e,t,"formEncType",n.formEncType,n,null),Ae(e,t,"formMethod",n.formMethod,n,null),Ae(e,t,"formTarget",n.formTarget,n,null)):(Ae(e,t,"encType",n.encType,n,null),Ae(e,t,"method",n.method,n,null),Ae(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Si(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ia);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Si(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),vi(e,"popover",l);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":vi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=O0.get(a)||a,vi(e,a,l))}}function Xs(e,t,a,l,n,u){switch(a){case"style":vo(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Nl(e,l):(typeof l=="number"||typeof l=="bigint")&&Nl(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ia);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!so.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),u=e[rt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):vi(e,a,l)}}}function ut(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,n=!1,u;for(u in a)if(a.hasOwnProperty(u)){var o=a[u];if(o!=null)switch(u){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ae(e,t,u,o,a,null)}}n&&Ae(e,t,"srcSet",a.srcSet,a,null),l&&Ae(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var m=u=o=n=null,b=null,N=null;for(l in a)if(a.hasOwnProperty(l)){var _=a[l];if(_!=null)switch(l){case"name":n=_;break;case"type":o=_;break;case"checked":b=_;break;case"defaultChecked":N=_;break;case"value":u=_;break;case"defaultValue":m=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,t));break;default:Ae(e,t,l,_,a,null)}}mo(e,u,m,b,N,o,n,!1);return;case"select":he("invalid",e),l=o=u=null;for(n in a)if(a.hasOwnProperty(n)&&(m=a[n],m!=null))switch(n){case"value":u=m;break;case"defaultValue":o=m;break;case"multiple":l=m;default:Ae(e,t,n,m,a,null)}t=u,a=o,e.multiple=!!l,t!=null?El(e,!!l,t,!1):a!=null&&El(e,!!l,a,!0);return;case"textarea":he("invalid",e),u=n=l=null;for(o in a)if(a.hasOwnProperty(o)&&(m=a[o],m!=null))switch(o){case"value":l=m;break;case"defaultValue":n=m;break;case"children":u=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:Ae(e,t,o,m,a,null)}po(e,l,n,u);return;case"option":for(b in a)a.hasOwnProperty(b)&&(l=a[b],l!=null)&&(b==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ae(e,t,b,l,a,null));return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<Jn.length;l++)he(Jn[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ae(e,t,N,l,a,null)}return;default:if(lc(t)){for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!==void 0&&Xs(e,t,_,l,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(l=a[m],l!=null&&Ae(e,t,m,l,a,null))}function cp(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,o=null,m=null,b=null,N=null,_=null;for(R in a){var M=a[R];if(a.hasOwnProperty(R)&&M!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":b=M;default:l.hasOwnProperty(R)||Ae(e,t,R,null,l,M)}}for(var A in l){var R=l[A];if(M=a[A],l.hasOwnProperty(A)&&(R!=null||M!=null))switch(A){case"type":u=R;break;case"name":n=R;break;case"checked":N=R;break;case"defaultChecked":_=R;break;case"value":o=R;break;case"defaultValue":m=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,t));break;default:R!==M&&Ae(e,t,A,R,l,M)}}tc(e,o,m,b,N,_,u,n);return;case"select":R=o=m=A=null;for(u in a)if(b=a[u],a.hasOwnProperty(u)&&b!=null)switch(u){case"value":break;case"multiple":R=b;default:l.hasOwnProperty(u)||Ae(e,t,u,null,l,b)}for(n in l)if(u=l[n],b=a[n],l.hasOwnProperty(n)&&(u!=null||b!=null))switch(n){case"value":A=u;break;case"defaultValue":m=u;break;case"multiple":o=u;default:u!==b&&Ae(e,t,n,u,l,b)}t=m,a=o,l=R,A!=null?El(e,!!a,A,!1):!!l!=!!a&&(t!=null?El(e,!!a,t,!0):El(e,!!a,a?[]:"",!1));return;case"textarea":R=A=null;for(m in a)if(n=a[m],a.hasOwnProperty(m)&&n!=null&&!l.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ae(e,t,m,null,l,n)}for(o in l)if(n=l[o],u=a[o],l.hasOwnProperty(o)&&(n!=null||u!=null))switch(o){case"value":A=n;break;case"defaultValue":R=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==u&&Ae(e,t,o,n,l,u)}yo(e,A,R);return;case"option":for(var K in a)A=a[K],a.hasOwnProperty(K)&&A!=null&&!l.hasOwnProperty(K)&&(K==="selected"?e.selected=!1:Ae(e,t,K,null,l,A));for(b in l)A=l[b],R=a[b],l.hasOwnProperty(b)&&A!==R&&(A!=null||R!=null)&&(b==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Ae(e,t,b,A,l,R));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 ee in a)A=a[ee],a.hasOwnProperty(ee)&&A!=null&&!l.hasOwnProperty(ee)&&Ae(e,t,ee,null,l,A);for(N in l)if(A=l[N],R=a[N],l.hasOwnProperty(N)&&A!==R&&(A!=null||R!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,t));break;default:Ae(e,t,N,A,l,R)}return;default:if(lc(t)){for(var Te in a)A=a[Te],a.hasOwnProperty(Te)&&A!==void 0&&!l.hasOwnProperty(Te)&&Xs(e,t,Te,void 0,l,A);for(_ in l)A=l[_],R=a[_],!l.hasOwnProperty(_)||A===R||A===void 0&&R===void 0||Xs(e,t,_,A,l,R);return}}for(var j in a)A=a[j],a.hasOwnProperty(j)&&A!=null&&!l.hasOwnProperty(j)&&Ae(e,t,j,null,l,A);for(M in l)A=l[M],R=a[M],!l.hasOwnProperty(M)||A===R||A==null&&R==null||Ae(e,t,M,A,l,R)}function bh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],u=n.transferSize,o=n.initiatorType,m=n.duration;if(u&&m&&bh(o)){for(o=0,m=n.responseEnd,l+=1;l<a.length;l++){var b=a[l],N=b.startTime;if(N>m)break;var _=b.transferSize,M=b.initiatorType;_&&bh(M)&&(b=b.responseEnd,o+=_*(b<m?1:(m-N)/(b-N)))}if(--l,t+=8*(u+o)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Qs=null,Zs=null;function pu(e){return e.nodeType===9?e:e.ownerDocument}function Sh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Vs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ks=null;function rp(){var e=window.event;return e&&e.type==="popstate"?e===Ks?!1:(Ks=e,!0):(Ks=null,!1)}var jh=typeof setTimeout=="function"?setTimeout:void 0,op=typeof clearTimeout=="function"?clearTimeout:void 0,zh=typeof Promise=="function"?Promise:void 0,fp=typeof queueMicrotask=="function"?queueMicrotask:typeof zh<"u"?function(e){return zh.resolve(null).then(e).catch(dp)}:jh;function dp(e){setTimeout(function(){throw e})}function Za(e){return e==="head"}function Eh(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),ln(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Wn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Wn(a);for(var u=a.firstChild;u;){var o=u.nextSibling,m=u.nodeName;u[yn]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=o}}else a==="body"&&Wn(e.ownerDocument.body);a=n}while(a);ln(t)}function Nh(e,t){var a=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Fs(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":Fs(a),Pu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function hp(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[yn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Bt(e.nextSibling),e===null)break}return null}function mp(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Bt(e.nextSibling),e===null))return null;return e}function Ch(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bt(e.nextSibling),e===null))return null;return e}function Js(e){return e.data==="$?"||e.data==="$~"}function $s(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Bt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ws=null;function Ah(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Bt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Th(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Rh(e,t,a){switch(t=pu(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Wn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pu(e)}var Ht=new Map,Dh=new Set;function gu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sa=q.d;q.d={f:pp,r:gp,D:vp,C:xp,L:bp,m:Sp,X:jp,S:wp,M:zp};function pp(){var e=Sa.f(),t=su();return e||t}function gp(e){var t=wl(e);t!==null&&t.tag===5&&t.type==="form"?Ff(t):Sa.r(e)}var en=typeof document>"u"?null:document;function _h(e,t,a){var l=en;if(l&&typeof t=="string"&&t){var n=Rt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),Dh.has(n)||(Dh.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),ut(t,"link",e),Pe(t),l.head.appendChild(t)))}}function vp(e){Sa.D(e),_h("dns-prefetch",e,null)}function xp(e,t){Sa.C(e,t),_h("preconnect",e,t)}function bp(e,t,a){Sa.L(e,t,a);var l=en;if(l&&e&&t){var n='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Rt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Rt(a.imageSizes)+'"]')):n+='[href="'+Rt(e)+'"]';var u=n;switch(t){case"style":u=tn(e);break;case"script":u=an(e)}Ht.has(u)||(e=z({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ht.set(u,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(In(u))||t==="script"&&l.querySelector(Pn(u))||(t=l.createElement("link"),ut(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Sp(e,t){Sa.m(e,t);var a=en;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Rt(l)+'"][href="'+Rt(e)+'"]',u=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=an(e)}if(!Ht.has(u)&&(e=z({rel:"modulepreload",href:e},t),Ht.set(u,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Pn(u)))return}l=a.createElement("link"),ut(l,"link",e),Pe(l),a.head.appendChild(l)}}}function wp(e,t,a){Sa.S(e,t,a);var l=en;if(l&&e){var n=jl(l).hoistableStyles,u=tn(e);t=t||"default";var o=n.get(u);if(!o){var m={loading:0,preload:null};if(o=l.querySelector(In(u)))m.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ht.get(u))&&Is(e,a);var b=o=l.createElement("link");Pe(b),ut(b,"link",e),b._p=new Promise(function(N,_){b.onload=N,b.onerror=_}),b.addEventListener("load",function(){m.loading|=1}),b.addEventListener("error",function(){m.loading|=2}),m.loading|=4,vu(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:m},n.set(u,o)}}}function jp(e,t){Sa.X(e,t);var a=en;if(a&&e){var l=jl(a).hoistableScripts,n=an(e),u=l.get(n);u||(u=a.querySelector(Pn(n)),u||(e=z({src:e,async:!0},t),(t=Ht.get(n))&&Ps(e,t),u=a.createElement("script"),Pe(u),ut(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function zp(e,t){Sa.M(e,t);var a=en;if(a&&e){var l=jl(a).hoistableScripts,n=an(e),u=l.get(n);u||(u=a.querySelector(Pn(n)),u||(e=z({src:e,async:!0,type:"module"},t),(t=Ht.get(n))&&Ps(e,t),u=a.createElement("script"),Pe(u),ut(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function Uh(e,t,a,l){var n=(n=$.current)?gu(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=tn(a.href),a=jl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=tn(a.href);var u=jl(n).hoistableStyles,o=u.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,o),(u=n.querySelector(In(e)))&&!u._p&&(o.instance=u,o.state.loading=5),Ht.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ht.set(e,a),u||Ep(n,e,a,o.state))),t&&l===null)throw Error(s(528,""));return o}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=an(a),a=jl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function tn(e){return'href="'+Rt(e)+'"'}function In(e){return'link[rel="stylesheet"]['+e+"]"}function Oh(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function Ep(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",a),Pe(t),e.head.appendChild(t))}function an(e){return'[src="'+Rt(e)+'"]'}function Pn(e){return"script[async]"+e}function Mh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Rt(a.href)+'"]');if(l)return t.instance=l,Pe(l),l;var n=z({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Pe(l),ut(l,"style",n),vu(l,a.precedence,e),t.instance=l;case"stylesheet":n=tn(a.href);var u=e.querySelector(In(n));if(u)return t.state.loading|=4,t.instance=u,Pe(u),u;l=Oh(a),(n=Ht.get(n))&&Is(l,n),u=(e.ownerDocument||e).createElement("link"),Pe(u);var o=u;return o._p=new Promise(function(m,b){o.onload=m,o.onerror=b}),ut(u,"link",l),t.state.loading|=4,vu(u,a.precedence,e),t.instance=u;case"script":return u=an(a.src),(n=e.querySelector(Pn(u)))?(t.instance=n,Pe(n),n):(l=a,(n=Ht.get(u))&&(l=z({},a),Ps(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Pe(n),ut(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,vu(l,a.precedence,e));return t.instance}function vu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,u=n,o=0;o<l.length;o++){var m=l[o];if(m.dataset.precedence===t)u=m;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ps(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var xu=null;function Lh(e,t,a){if(xu===null){var l=new Map,n=xu=new Map;n.set(a,l)}else n=xu,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var u=a[n];if(!(u[yn]||u[at]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var o=u.getAttribute(t)||"";o=e+o;var m=l.get(o);m?m.push(u):l.set(o,[u])}}return l}function Bh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Np(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=tn(l.href),u=t.querySelector(In(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=bu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,Pe(u);return}u=t.ownerDocument||t,l=Oh(l),(n=Ht.get(n))&&Is(l,n),u=u.createElement("link"),Pe(u);var o=u;o._p=new Promise(function(m,b){o.onload=m,o.onerror=b}),ut(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=bu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var er=0;function Ap(e,t){return e.stylesheets&&e.count===0&&wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&wu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&er===0&&(er=62500*sp());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>er?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Su=null;function wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Su=new Map,t.forEach(Tp,e),Su=null,bu.call(e))}function Tp(e,t){if(!(t.state.loading&4)){var a=Su.get(e);if(a)var l=a.get(null);else{a=new Map,Su.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var o=n[u];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}n=t.instance,o=n.getAttribute("data-precedence"),u=a.get(o)||l,u===l&&a.set(null,n),a.set(o,n),this.count++,l=bu.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var ei={$$typeof:F,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Rp(e,t,a,l,n,u,o,m,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.hiddenUpdates=Ju(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function kh(e,t,a,l,n,u,o,m,b,N,_,M){return e=new Rp(e,t,a,o,b,N,_,M,m),t=1,u===!0&&(t|=24),u=bt(3,null,null,t),e.current=u,u.stateNode=e,t=Uc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},Bc(u),e}function qh(e){return e?(e=Ul,e):Ul}function Yh(e,t,a,l,n,u){n=qh(n),l.context===null?l.context=n:l.pendingContext=n,l=Oa(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Ma(e,l,t),a!==null&&(yt(a,e,t),_n(a,e,t))}function Gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function tr(e,t){Gh(e,t),(e=e.alternate)&&Gh(e,t)}function Xh(e){if(e.tag===13||e.tag===31){var t=nl(e,67108864);t!==null&&yt(t,e,67108864),tr(e,67108864)}}function Qh(e){if(e.tag===13||e.tag===31){var t=Et();t=$u(t);var a=nl(e,t);a!==null&&yt(a,e,t),tr(e,t)}}var ju=!0;function Dp(e,t,a,l){var n=D.T;D.T=null;var u=q.p;try{q.p=2,ar(e,t,a,l)}finally{q.p=u,D.T=n}}function _p(e,t,a,l){var n=D.T;D.T=null;var u=q.p;try{q.p=8,ar(e,t,a,l)}finally{q.p=u,D.T=n}}function ar(e,t,a,l){if(ju){var n=lr(l);if(n===null)Gs(e,t,l,zu,a),Vh(e,l);else if(Op(n,e,t,a,l))l.stopPropagation();else if(Vh(e,l),t&4&&-1<Up.indexOf(e)){for(;n!==null;){var u=wl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var o=Pa(u.pendingLanes);if(o!==0){var m=u;for(m.pendingLanes|=2,m.entangledLanes|=2;o;){var b=1<<31-vt(o);m.entanglements[1]|=b,o&=~b}It(u),(Se&6)===0&&(uu=pt()+500,Fn(0))}}break;case 31:case 13:m=nl(u,2),m!==null&&yt(m,u,2),su(),tr(u,2)}if(u=lr(l),u===null&&Gs(e,t,l,zu,a),u===n)break;n=u}n!==null&&l.stopPropagation()}else Gs(e,t,l,null,a)}}function lr(e){return e=ic(e),nr(e)}var zu=null;function nr(e){if(zu=null,e=Sl(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===31){if(e=x(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 zu=e,null}function Zh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(v0()){case Wr:return 2;case Ir:return 8;case hi:case x0:return 32;case Pr:return 268435456;default:return 32}default:return 32}}var ir=!1,Va=null,Ka=null,Fa=null,ti=new Map,ai=new Map,Ja=[],Up="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vh(e,t){switch(e){case"focusin":case"focusout":Va=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Fa=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function li(e,t,a,l,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[n]},t!==null&&(t=wl(t),t!==null&&Xh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Op(e,t,a,l,n){switch(t){case"focusin":return Va=li(Va,e,t,a,l,n),!0;case"dragenter":return Ka=li(Ka,e,t,a,l,n),!0;case"mouseover":return Fa=li(Fa,e,t,a,l,n),!0;case"pointerover":var u=n.pointerId;return ti.set(u,li(ti.get(u)||null,e,t,a,l,n)),!0;case"gotpointercapture":return u=n.pointerId,ai.set(u,li(ai.get(u)||null,e,t,a,l,n)),!0}return!1}function Kh(e){var t=Sl(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,io(e.priority,function(){Qh(a)});return}}else if(t===31){if(t=x(a),t!==null){e.blockedOn=t,io(e.priority,function(){Qh(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 Eu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=lr(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);nc=l,a.target.dispatchEvent(l),nc=null}else return t=wl(a),t!==null&&Xh(t),e.blockedOn=a,!1;t.shift()}return!0}function Fh(e,t,a){Eu(e)&&a.delete(t)}function Mp(){ir=!1,Va!==null&&Eu(Va)&&(Va=null),Ka!==null&&Eu(Ka)&&(Ka=null),Fa!==null&&Eu(Fa)&&(Fa=null),ti.forEach(Fh),ai.forEach(Fh)}function Nu(e,t){e.blockedOn===t&&(e.blockedOn=null,ir||(ir=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Mp)))}var Cu=null;function Jh(e){Cu!==e&&(Cu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Cu===e&&(Cu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(nr(l||a)===null)continue;break}var u=wl(a);u!==null&&(e.splice(t,3),t-=3,ls(u,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function ln(e){function t(b){return Nu(b,e)}Va!==null&&Nu(Va,e),Ka!==null&&Nu(Ka,e),Fa!==null&&Nu(Fa,e),ti.forEach(t),ai.forEach(t);for(var a=0;a<Ja.length;a++){var l=Ja[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ja.length&&(a=Ja[0],a.blockedOn===null);)Kh(a),a.blockedOn===null&&Ja.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],u=a[l+1],o=n[rt]||null;if(typeof u=="function")o||Jh(a);else if(o){var m=null;if(u&&u.hasAttribute("formAction")){if(n=u,o=u[rt]||null)m=o.formAction;else if(nr(n)!==null)continue}else m=o.action;typeof m=="function"?a[l+1]=m:(a.splice(l,3),l-=3),Jh(a)}}}function $h(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ur(e){this._internalRoot=e}Au.prototype.render=ur.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=Et();Yh(a,l,e,t,null,null)},Au.prototype.unmount=ur.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yh(e.current,2,null,e,null,null),su(),t[bl]=null}};function Au(e){this._internalRoot=e}Au.prototype.unstable_scheduleHydration=function(e){if(e){var t=no();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ja.length&&t!==0&&t<Ja[a].priority;a++);Ja.splice(a,0,e),a===0&&Kh(e)}};var Wh=c.version;if(Wh!=="19.2.8")throw Error(s(527,Wh,"19.2.8"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e};var Lp={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tu.isDisabled&&Tu.supportsFiber)try{dn=Tu.inject(Lp),gt=Tu}catch{}}return ii.createRoot=function(e,t){if(!d(e))throw Error(s(299));var a=!1,l="",n=nd,u=id,o=ud;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=kh(e,1,!1,null,null,a,l,null,n,u,o,$h),e[bl]=t.current,Ys(e),new ur(t)},ii.hydrateRoot=function(e,t,a){if(!d(e))throw Error(s(299));var l=!1,n="",u=nd,o=id,m=ud,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=kh(e,1,!0,t,a??null,l,n,b,u,o,m,$h),t.context=qh(null),a=t.current,l=Et(),l=$u(l),n=Oa(l),n.callback=null,Ma(a,n,l),a=l,t.current.lanes=a,mn(t,a),It(t),e[bl]=t.current,Ys(e),new Au(t)},ii.version="19.2.8",ii}var cm;function Kp(){if(cm)return rr.exports;cm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),rr.exports=Vp(),rr.exports}var Fp=Kp();var Rr=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Tm=/^[\\/]{2}/;function Jp(i,c){return c+i.replace(/\\/g,"/")}var sm="popstate";function rm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function $p(i={}){function c(s,d){let h=d.state?.masked,{pathname:y,search:x,hash:p}=h||s.location;return Sr("",{pathname:y,search:x,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default",h?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,d){return typeof d=="string"?d:ri(d)}return Ip(c,r,null,i)}function He(i,c){if(i===!1||i===null||typeof i>"u")throw new Error(c)}function kt(i,c){if(!i){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Wp(){return Math.random().toString(36).substring(2,10)}function om(i,c){return{usr:i.state,key:i.key,idx:c,masked:i.mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Sr(i,c,r=null,s,d){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof c=="string"?sn(c):c,state:r,key:c&&c.key||s||Wp(),mask:d}}function ri({pathname:i="/",search:c="",hash:r=""}){return c&&c!=="?"&&(i+=c.charAt(0)==="?"?c:"?"+c),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function sn(i){let c={};if(i){let r=i.indexOf("#");r>=0&&(c.hash=i.substring(r),i=i.substring(0,r));let s=i.indexOf("?");s>=0&&(c.search=i.substring(s),i=i.substring(0,s)),i&&(c.pathname=i)}return c}function Ip(i,c,r,s={}){let{window:d=document.defaultView,v5Compat:h=!1}=s,y=d.history,x="POP",p=null,g=C();g==null&&(g=0,y.replaceState({...y.state,idx:g},""));function C(){return(y.state||{idx:null}).idx}function z(){x="POP";let L=C(),G=L==null?null:L-g;g=L,p&&p({action:x,location:O.location,delta:G})}function B(L,G){x="PUSH";let I=rm(L)?L:Sr(O.location,L,G);g=C()+1;let F=om(I,g),ce=O.createHref(I.mask||I);try{y.pushState(F,"",ce)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;d.location.assign(ce)}h&&p&&p({action:x,location:O.location,delta:1})}function k(L,G){x="REPLACE";let I=rm(L)?L:Sr(O.location,L,G);g=C();let F=om(I,g),ce=O.createHref(I.mask||I);y.replaceState(F,"",ce),h&&p&&p({action:x,location:O.location,delta:0})}function X(L){return Pp(d,L)}let O={get action(){return x},get location(){return i(d,y)},listen(L){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(sm,z),p=L,()=>{d.removeEventListener(sm,z),p=null}},createHref(L){return c(d,L)},createURL:X,encodeLocation(L){let G=X(L);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:B,replace:k,go(L){return y.go(L)}};return O}function Pp(i,c,r=!1){let s="http://localhost";i&&(s=i.location.origin!=="null"?i.location.origin:i.location.href),He(s,"No window.location.(origin|href) available to create URL");let d=typeof c=="string"?c:ri(c);return d=d.replace(/ $/,"%20"),!r&&Tm.test(d)&&(d=s+d),new URL(d,s)}function Rm(i,c,r="/"){return eg(i,c,r,!1)}function eg(i,c,r,s,d){let h=typeof c=="string"?sn(c):c,y=wa(h.pathname||"/",r);if(y==null)return null;let x=tg(i),p=null,g=dg(y);for(let C=0;p==null&&C<x.length;++C)p=fg(x[C],g,s);return p}function tg(i){let c=Dm(i);return ag(c),c}function Dm(i,c=[],r=[],s="",d=!1){let h=(y,x,p=d,g)=>{let C={relativePath:g===void 0?y.path||"":g,caseSensitive:y.caseSensitive===!0,childrenIndex:x,route:y};if(C.relativePath.startsWith("/")){if(!C.relativePath.startsWith(s)&&p)return;He(C.relativePath.startsWith(s),`Absolute route path "${C.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),C.relativePath=C.relativePath.slice(s.length)}let z=Zt([s,C.relativePath]),B=r.concat(C);y.children&&y.children.length>0&&(He(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${z}".`),Dm(y.children,c,B,z,p)),!(y.path==null&&!y.index)&&c.push({path:z,score:rg(z,y.index),routesMeta:B.map((k,X)=>{let[O,L]=Om(k.relativePath,k.caseSensitive,X===B.length-1);return{...k,matcher:O,compiledParams:L}})})};return i.forEach((y,x)=>{if(y.path===""||!y.path?.includes("?"))h(y,x);else for(let p of _m(y.path))h(y,x,!0,p)}),c}function _m(i){let c=i.split("/");if(c.length===0)return[];let[r,...s]=c,d=r.endsWith("?"),h=r.replace(/\?$/,"");if(s.length===0)return d?[h,""]:[h];let y=_m(s.join("/")),x=[];return x.push(...y.map(p=>p===""?h:[h,p].join("/"))),d&&x.push(...y),x.map(p=>i.startsWith("/")&&p===""?"/":p)}function ag(i){i.sort((c,r)=>c.score!==r.score?r.score-c.score:og(c.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var lg=/^:[\w-]+$/,ng=3,ig=2,ug=1,cg=10,sg=-2,fm=i=>i==="*";function rg(i,c){let r=i.split("/"),s=r.length;return r.some(fm)&&(s+=sg),c&&(s+=ig),r.filter(d=>!fm(d)).reduce((d,h)=>d+(lg.test(h)?ng:h===""?ug:cg),s)}function og(i,c){return i.length===c.length&&i.slice(0,-1).every((s,d)=>s===c[d])?i[i.length-1]-c[c.length-1]:0}function fg(i,c,r=!1){let{routesMeta:s}=i,d={},h="/",y=[];for(let x=0;x<s.length;++x){let p=s[x],g=x===s.length-1,C=h==="/"?c:c.slice(h.length)||"/",z={path:p.relativePath,caseSensitive:p.caseSensitive,end:g},B=p.matcher&&p.compiledParams?Um(z,C,p.matcher,p.compiledParams):Ou(z,C),k=p.route;if(!B&&g&&r&&!s[s.length-1].route.index&&(B=Ou({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},C)),!B)return null;Object.assign(d,B.params),y.push({params:d,pathname:Zt([h,B.pathname]),pathnameBase:yg(Zt([h,B.pathnameBase])),route:k}),B.pathnameBase!=="/"&&(h=Zt([h,B.pathnameBase]))}return y}function Ou(i,c){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,s]=Om(i.path,i.caseSensitive,i.end);return Um(i,c,r,s)}function Um(i,c,r,s){let d=c.match(r);if(!d)return null;let h=d[0],y=h.replace(/(.)\/+$/,"$1"),x=d.slice(1);return{params:s.reduce((g,{paramName:C,isOptional:z},B)=>{if(C==="*"){let X=x[B]||"";y=h.slice(0,h.length-X.length).replace(/(.)\/+$/,"$1")}const k=x[B];return z&&!k?g[C]=void 0:g[C]=(k||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:y,pattern:i}}function Om(i,c=!1,r=!0){kt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let s=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,x,p,g,C)=>{if(s.push({paramName:x,isOptional:p!=null}),p){let z=C.charAt(g+y.length);return z&&z!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(s.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,c?void 0:"i"),s]}function dg(i){try{return i.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return kt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),i}}function wa(i,c){if(c==="/")return i;if(!i.toLowerCase().startsWith(c.toLowerCase()))return null;let r=c.endsWith("/")?c.length-1:c.length,s=i.charAt(r);return s&&s!=="/"?null:i.slice(r)||"/"}function hg(i,c="/"){let{pathname:r,search:s="",hash:d=""}=typeof i=="string"?sn(i):i,h;return r?(r=Mm(r),r.startsWith("/")?h=dm(r.substring(1),"/"):h=dm(r,c)):h=c,{pathname:h,search:pg(s),hash:gg(d)}}function dm(i,c){let r=Mu(c).split("/");return i.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function hr(i,c,r,s){return`Cannot include a '${i}' character in a manually specified \`to.${c}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function mg(i){return i.filter((c,r)=>r===0||c.route.path&&c.route.path.length>0)}function Dr(i){let c=mg(i);return c.map((r,s)=>s===c.length-1?r.pathname:r.pathnameBase)}function Yu(i,c,r,s=!1){let d;typeof i=="string"?d=sn(i):(d={...i},He(!d.pathname||!d.pathname.includes("?"),hr("?","pathname","search",d)),He(!d.pathname||!d.pathname.includes("#"),hr("#","pathname","hash",d)),He(!d.search||!d.search.includes("#"),hr("#","search","hash",d)));let h=i===""||d.pathname==="",y=h?"/":d.pathname,x;if(y==null)x=r;else{let z=c.length-1;if(!s&&y.startsWith("..")){let B=y.split("/");for(;B[0]==="..";)B.shift(),z-=1;d.pathname=B.join("/")}x=z>=0?c[z]:"/"}let p=hg(d,x),g=y&&y!=="/"&&y.endsWith("/"),C=(h||y===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||C)&&(p.pathname+="/"),p}var Mm=i=>i.replace(/[\\/]{2,}/g,"/"),Zt=i=>Mm(i.join("/")),Mu=i=>i.replace(/\/+$/,""),yg=i=>Mu(i).replace(/^\/*/,"/"),pg=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,gg=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,vg=class{constructor(i,c,r,s=!1){this.status=i,this.statusText=c||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function xg(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function bg(i){let c=i.map(r=>r.route.path).filter(Boolean);return Zt(c)||"/"}var Lm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Bm(i,c){let r=i;if(typeof r!="string"||!Rr.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,d=!1;if(Lm)try{let h=new URL(window.location.href),y=Tm.test(r)?new URL(Jp(r,h.protocol)):new URL(r),x=wa(y.pathname,c);y.origin===h.origin&&x!=null?r=x+y.search+y.hash:d=!0}catch{kt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Hm=["POST","PUT","PATCH","DELETE"];new Set(Hm);var Sg=["GET",...Hm];new Set(Sg);var wg=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function jg(i){try{return wg.includes(new URL(i).protocol)}catch{return!1}}var rn=S.createContext(null);rn.displayName="DataRouter";var Gu=S.createContext(null);Gu.displayName="DataRouterState";var km=S.createContext(!1);function zg(){return S.useContext(km)}var qm=S.createContext({isTransitioning:!1});qm.displayName="ViewTransition";var Eg=S.createContext(new Map);Eg.displayName="Fetchers";var Ng=S.createContext(null);Ng.displayName="Await";var Ct=S.createContext(null);Ct.displayName="Navigation";var fi=S.createContext(null);fi.displayName="Location";var ea=S.createContext({outlet:null,matches:[],isDataRoute:!1});ea.displayName="Route";var _r=S.createContext(null);_r.displayName="RouteError";var Ym="REACT_ROUTER_ERROR",Cg="REDIRECT",Ag="ROUTE_ERROR_RESPONSE";function Tg(i){if(i.startsWith(`${Ym}:${Cg}:{`))try{let c=JSON.parse(i.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function Rg(i){if(i.startsWith(`${Ym}:${Ag}:{`))try{let c=JSON.parse(i.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new vg(c.status,c.statusText,c.data)}catch{}}function Dg(i,{relative:c}={}){He(on(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=S.useContext(Ct),{hash:d,pathname:h,search:y}=di(i,{relative:c}),x=h;return r!=="/"&&(x=h==="/"?r:Zt([r,h])),s.createHref({pathname:x,search:y,hash:d})}function on(){return S.useContext(fi)!=null}function qt(){return He(on(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(fi).location}var Gm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Xm(i){S.useContext(Ct).static||S.useLayoutEffect(i)}function ta(){let{isDataRoute:i}=S.useContext(ea);return i?Qg():_g()}function _g(){He(on(),"useNavigate() may be used only in the context of a <Router> component.");let i=S.useContext(rn),{basename:c,navigator:r}=S.useContext(Ct),{matches:s}=S.useContext(ea),{pathname:d}=qt(),h=JSON.stringify(Dr(s)),y=S.useRef(!1);return Xm(()=>{y.current=!0}),S.useCallback((p,g={})=>{if(kt(y.current,Gm),!y.current)return;if(typeof p=="number"){r.go(p);return}let C=Yu(p,JSON.parse(h),d,g.relative==="path");i==null&&c!=="/"&&(C.pathname=C.pathname==="/"?c:Zt([c,C.pathname])),(g.replace?r.replace:r.push)(C,g.state,g)},[c,r,h,d,i])}S.createContext(null);function di(i,{relative:c}={}){let{matches:r}=S.useContext(ea),{pathname:s}=qt(),d=JSON.stringify(Dr(r));return S.useMemo(()=>Yu(i,JSON.parse(d),s,c==="path"),[i,d,s,c])}function Ug(i,c){return Qm(i,c)}function Qm(i,c,r){He(on(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=S.useContext(Ct),{matches:d}=S.useContext(ea),h=d[d.length-1],y=h?h.params:{},x=h?h.pathname:"/",p=h?h.pathnameBase:"/",g=h&&h.route;{let L=g&&g.path||"";Vm(x,!g||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
10
 
11
- Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let C=qt(),z;if(c){let L=typeof c=="string"?cn(c):c;Be(p==="/"||L.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${L.pathname}" was given in the \`location\` prop.`),z=L}else z=C;let B=z.pathname||"/",Y=B;if(p!=="/"){let L=p.replace(/^\//,"").split("/");Y="/"+B.replace(/^\//,"").split("/").slice(L.length).join("/")}let Q=r&&r.state.matches.length?r.state.matches.map(L=>Object.assign(L,{route:r.manifest[L.route.id]||L.route})):Rm(i,{pathname:Y});Ht(g||Q!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),Ht(Q==null||Q[Q.length-1].route.element!==void 0||Q[Q.length-1].route.Component!==void 0||Q[Q.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=Hg(Q&&Q.map(L=>Object.assign({},L,{params:Object.assign({},y,L.params),pathname:Vt([p,s.encodeLocation?s.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?p:Vt([p,s.encodeLocation?s.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),d,r);return c&&O?S.createElement(oi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...z},navigationType:"POP"}},O):O}function Og(){let i=Xg(),c=xg(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:s},h={padding:"2px 4px",backgroundColor:s},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:h},"ErrorBoundary")," or"," ",S.createElement("code",{style:h},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},c),r?S.createElement("pre",{style:d},r):null,y)}var Mg=S.createElement(Og,null),Zm=class extends S.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,c){return c.location!==i.location||c.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:c.error,location:c.location,revalidation:i.revalidation||c.revalidation}}componentDidCatch(i,c){this.props.onError?this.props.onError(i,c):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const r=Rg(i.digest);r&&(i=r)}let c=i!==void 0?S.createElement(Pt.Provider,{value:this.props.routeContext},S.createElement(_r.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?S.createElement(Lg,{error:i},c):c}};Zm.contextType=qm;var mr=new WeakMap;function Lg({children:i,error:c}){let{basename:r}=S.useContext(Ct);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let s=Tg(c.digest);if(s){let d=mr.get(c);if(d)throw d;let h=Bm(s.location,r),y=h.absoluteURL||h.to;if(jg(y))throw new Error("Invalid redirect location");if(Lm&&!mr.get(c))if(h.isExternal||s.reloadDocument)window.location.href=y;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:s.replace}));throw mr.set(c,x),x}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y}`})}}return i}function Bg({routeContext:i,match:c,children:r}){let s=S.useContext(sn);return s&&s.static&&s.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=c.route.id),S.createElement(Pt.Provider,{value:i},r)}function Hg(i,c=[],r){let s=r?.state;if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(c.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let d=i,h=s?.errors;if(h!=null){let C=d.findIndex(z=>z.route.id&&h?.[z.route.id]!==void 0);Be(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,C+1))}let y=!1,x=-1;if(r&&s){y=s.renderFallback;for(let C=0;C<d.length;C++){let z=d[C];if((z.route.HydrateFallback||z.route.hydrateFallbackElement)&&(x=C),z.route.id){let{loaderData:B,errors:Y}=s,Q=z.route.loader&&!B.hasOwnProperty(z.route.id)&&(!Y||Y[z.route.id]===void 0);if(z.route.lazy||Q){r.isStatic&&(y=!0),x>=0?d=d.slice(0,x+1):d=[d[0]];break}}}}let p=r?.onError,g=s&&p?(C,z)=>{p(C,{location:s.location,params:s.matches?.[0]?.params??{},pattern:bg(s.matches),errorInfo:z})}:void 0;return d.reduceRight((C,z,B)=>{let Y,Q=!1,O=null,L=null;s&&(Y=h&&z.route.id?h[z.route.id]:void 0,O=z.route.errorElement||Mg,y&&(x<0&&B===0?(Vm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Q=!0,L=null):x===B&&(Q=!0,L=z.route.hydrateFallbackElement||null)));let X=c.concat(d.slice(0,B+1)),W=()=>{let F;return Y?F=O:Q?F=L:z.route.Component?F=S.createElement(z.route.Component,null):z.route.element?F=z.route.element:F=C,S.createElement(Bg,{match:z,routeContext:{outlet:C,matches:X,isDataRoute:s!=null},children:F})};return s&&(z.route.ErrorBoundary||z.route.errorElement||B===0)?S.createElement(Zm,{location:s.location,revalidation:s.revalidation,component:O,error:Y,children:W(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:g}):W()},null)}function Ur(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qg(i){let c=S.useContext(sn);return Be(c,Ur(i)),c}function kg(i){let c=S.useContext(Yu);return Be(c,Ur(i)),c}function Yg(i){let c=S.useContext(Pt);return Be(c,Ur(i)),c}function Or(i){let c=Yg(i),r=c.matches[c.matches.length-1];return Be(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function Gg(){return Or("useRouteId")}function Xg(){let i=S.useContext(_r),c=kg("useRouteError"),r=Or("useRouteError");return i!==void 0?i:c.errors?.[r]}function Qg(){let{router:i}=qg("useNavigate"),c=Or("useNavigate"),r=S.useRef(!1);return Xm(()=>{r.current=!0}),S.useCallback(async(d,h={})=>{Ht(r.current,Gm),r.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:c,...h}))},[i,c])}var hm={};function Vm(i,c,r){!c&&!hm[i]&&(hm[i]=!0,Ht(!1,r))}S.memo(Zg);function Zg({routes:i,manifest:c,future:r,state:s,isStatic:d,onError:h}){return Qm(i,void 0,{manifest:c,state:s,isStatic:d,onError:h})}function wa({to:i,replace:c,state:r,relative:s}){Be(rn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=S.useContext(Ct);Ht(!d,"<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:h}=S.useContext(Pt),{pathname:y}=qt(),x=ea(),p=ku(i,Dr(h),y,s==="path"),g=JSON.stringify(p);return S.useEffect(()=>{x(JSON.parse(g),{replace:c,state:r,relative:s})},[x,g,s,c,r]),null}function Nt(i){Be(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Vg({basename:i="/",children:c=null,location:r,navigationType:s="POP",navigator:d,static:h=!1,useTransitions:y}){Be(!rn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=i.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:x,navigator:d,static:h,useTransitions:y,future:{}}),[x,d,h,y]);typeof r=="string"&&(r=cn(r));let{pathname:g="/",search:C="",hash:z="",state:B=null,key:Y="default",mask:Q}=r,O=S.useMemo(()=>{let L=Sa(g,x);return L==null?null:{location:{pathname:L,search:C,hash:z,state:B,key:Y,mask:Q},navigationType:s}},[x,g,C,z,B,Y,s,Q]);return Ht(O!=null,`<Router basename="${x}"> is not able to match the URL "${g}${C}${z}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:S.createElement(Ct.Provider,{value:p},S.createElement(oi.Provider,{children:c,value:O}))}function Kg({children:i,location:c}){return Ug(wr(i),c)}function wr(i,c=[]){let r=[];return S.Children.forEach(i,(s,d)=>{if(!S.isValidElement(s))return;let h=[...c,d];if(s.type===S.Fragment){r.push.apply(r,wr(s.props.children,h));return}Be(s.type===Nt,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Be(!s.props.index||!s.props.children,"An index route cannot have child routes.");let y={id:s.props.id||h.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(y.children=wr(s.props.children,h)),r.push(y)}),r}var Du="get",_u="application/x-www-form-urlencoded";function Gu(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Fg(i){return Gu(i)&&i.tagName.toLowerCase()==="button"}function Jg(i){return Gu(i)&&i.tagName.toLowerCase()==="form"}function $g(i){return Gu(i)&&i.tagName.toLowerCase()==="input"}function Wg(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Ig(i,c){return i.button===0&&(!c||c==="_self")&&!Wg(i)}function jr(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((c,r)=>{let s=i[r];return c.concat(Array.isArray(s)?s.map(d=>[r,d]):[[r,s]])},[]))}function Pg(i,c){let r=jr(i);return c&&c.forEach((s,d)=>{r.has(d)||c.getAll(d).forEach(h=>{r.append(d,h)})}),r}var Tu=null;function ev(){if(Tu===null)try{new FormData(document.createElement("form"),0),Tu=!1}catch{Tu=!0}return Tu}var tv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yr(i){return i!=null&&!tv.has(i)?(Ht(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_u}"`),null):i}function av(i,c){let r,s,d,h,y;if(Jg(i)){let x=i.getAttribute("action");s=x?Sa(x,c):null,r=i.getAttribute("method")||Du,d=yr(i.getAttribute("enctype"))||_u,h=new FormData(i)}else if(Fg(i)||$g(i)&&(i.type==="submit"||i.type==="image")){let x=i.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=i.getAttribute("formaction")||x.getAttribute("action");if(s=p?Sa(p,c):null,r=i.getAttribute("formmethod")||x.getAttribute("method")||Du,d=yr(i.getAttribute("formenctype"))||yr(x.getAttribute("enctype"))||_u,h=new FormData(x,i),!ev()){let{name:g,type:C,value:z}=i;if(C==="image"){let B=g?`${g}.`:"";h.append(`${B}x`,"0"),h.append(`${B}y`,"0")}else g&&h.append(g,z)}}else{if(Gu(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Du,s=null,d=_u,y=i}return h&&d==="text/plain"&&(y=h,h=void 0),{action:s,method:r.toLowerCase(),encType:d,formData:h,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mr(i,c){if(i===!1||i===null||typeof i>"u")throw new Error(c)}function Km(i,c,r,s){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${s}`:d.pathname=`${d.pathname}.${s}`:d.pathname==="/"?d.pathname=`_root.${s}`:c&&Sa(d.pathname,c)==="/"?d.pathname=`${Ou(c)}/_root.${s}`:d.pathname=`${Ou(d.pathname)}.${s}`,d}async function lv(i,c){if(i.id in c)return c[i.id];try{let r=await import(i.module);return c[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function nv(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function iv(i,c,r){let s=await Promise.all(i.map(async d=>{let h=c.routes[d.route.id];if(h){let y=await lv(h,r);return y.links?y.links():[]}return[]}));return rv(s.flat(1).filter(nv).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function mm(i,c,r,s,d,h){let y=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,x=(p,g)=>r[g].pathname!==p.pathname||r[g].route.path?.endsWith("*")&&r[g].params["*"]!==p.params["*"];return h==="assets"?c.filter((p,g)=>y(p,g)||x(p,g)):h==="data"?c.filter((p,g)=>{let C=s.routes[p.route.id];if(!C||!C.hasLoader)return!1;if(y(p,g)||x(p,g))return!0;if(p.route.shouldRevalidate){let z=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function uv(i,c,{includeHydrateFallback:r}={}){return cv(i.map(s=>{let d=c.routes[s.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function cv(i){return[...new Set(i)]}function sv(i){let c={},r=Object.keys(i).sort();for(let s of r)c[s]=i[s];return c}function rv(i,c){let r=new Set;return new Set(c),i.reduce((s,d)=>{let h=JSON.stringify(sv(d));return r.has(h)||(r.add(h),s.push({key:h,link:d})),s},[])}function Lr(){let i=S.useContext(sn);return Mr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function ov(){let i=S.useContext(Yu);return Mr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Br=S.createContext(void 0);Br.displayName="FrameworkContext";function Xu(){let i=S.useContext(Br);return Mr(i,"You must render this element inside a <HydratedRouter> element"),i}function fv(i,c){let r=S.useContext(Br),[s,d]=S.useState(!1),[h,y]=S.useState(!1),{onFocus:x,onBlur:p,onMouseEnter:g,onMouseLeave:C,onTouchStart:z}=c,B=S.useRef(null);S.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let O=X=>{X.forEach(W=>{y(W.isIntersecting)})},L=new IntersectionObserver(O,{threshold:.5});return B.current&&L.observe(B.current),()=>{L.disconnect()}}},[i]),S.useEffect(()=>{if(s){let O=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(O)}}},[s]);let Y=()=>{d(!0)},Q=()=>{d(!1),y(!1)};return r?i!=="intent"?[h,B,{}]:[h,B,{onFocus:ii(x,Y),onBlur:ii(p,Q),onMouseEnter:ii(g,Y),onMouseLeave:ii(C,Q),onTouchStart:ii(z,Y)}]:[!1,B,{}]}function ii(i,c){return r=>{i&&i(r),r.defaultPrevented||c(r)}}function dv({page:i,...c}){let r=zg(),{nonce:s}=Xu(),{router:d}=Lr(),h=S.useMemo(()=>Rm(d.routes,i,d.basename),[d.routes,i,d.basename]);return h?(c.nonce==null&&s&&(c={...c,nonce:s}),r?S.createElement(mv,{page:i,matches:h,...c}):S.createElement(yv,{page:i,matches:h,...c})):null}function hv(i){let{manifest:c,routeModules:r}=Xu(),[s,d]=S.useState([]);return S.useEffect(()=>{let h=!1;return iv(i,c,r).then(y=>{h||d(y)}),()=>{h=!0}},[i,c,r]),s}function mv({page:i,matches:c,...r}){let s=qt(),{future:d}=Xu(),{basename:h}=Lr(),y=S.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let x=Km(i,h,d.v8_trailingSlashAwareDataRequests,"rsc"),p=!1,g=[];for(let C of c)typeof C.route.shouldRevalidate=="function"?p=!0:g.push(C.route.id);return p&&g.length>0&&x.searchParams.set("_routes",g.join(",")),[x.pathname+x.search]},[h,d.v8_trailingSlashAwareDataRequests,i,s,c]);return S.createElement(S.Fragment,null,y.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...r})))}function yv({page:i,matches:c,...r}){let s=qt(),{future:d,manifest:h,routeModules:y}=Xu(),{basename:x}=Lr(),{loaderData:p,matches:g}=ov(),C=S.useMemo(()=>mm(i,c,g,h,s,"data"),[i,c,g,h,s]),z=S.useMemo(()=>mm(i,c,g,h,s,"assets"),[i,c,g,h,s]),B=S.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let O=new Set,L=!1;if(c.forEach(W=>{let F=h.routes[W.route.id];!F||!F.hasLoader||(!C.some(le=>le.route.id===W.route.id)&&W.route.id in p&&y[W.route.id]?.shouldRevalidate||F.hasClientLoader?L=!0:O.add(W.route.id))}),O.size===0)return[];let X=Km(i,x,d.v8_trailingSlashAwareDataRequests,"data");return L&&O.size>0&&X.searchParams.set("_routes",c.filter(W=>O.has(W.route.id)).map(W=>W.route.id).join(",")),[X.pathname+X.search]},[x,d.v8_trailingSlashAwareDataRequests,p,s,h,C,c,i,y]),Y=S.useMemo(()=>uv(z,h),[z,h]),Q=hv(z);return S.createElement(S.Fragment,null,B.map(O=>S.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...r})),Y.map(O=>S.createElement("link",{key:O,rel:"modulepreload",href:O,...r})),Q.map(({key:O,link:L})=>S.createElement("link",{key:O,nonce:r.nonce,...L,crossOrigin:L.crossOrigin??r.crossOrigin})))}function pv(...i){return c=>{i.forEach(r=>{typeof r=="function"?r(c):r!=null&&(r.current=c)})}}var gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gv&&(window.__reactRouterVersion="7.18.2")}catch{}function vv({basename:i,children:c,useTransitions:r,window:s}){let d=S.useRef();d.current==null&&(d.current=$p({window:s,v5Compat:!0}));let h=d.current,[y,x]=S.useState({action:h.action,location:h.location}),p=S.useCallback(g=>{r===!1?x(g):S.startTransition(()=>x(g))},[r]);return S.useLayoutEffect(()=>h.listen(p),[h,p]),S.createElement(Vg,{basename:i,children:c,location:y.location,navigationType:y.action,navigator:h,useTransitions:r})}var Mu=S.forwardRef(function({onClick:c,discover:r="render",prefetch:s="none",relative:d,reloadDocument:h,replace:y,mask:x,state:p,target:g,to:C,preventScrollReset:z,viewTransition:B,defaultShouldRevalidate:Y,...Q},O){let{basename:L,navigator:X,useTransitions:W}=S.useContext(Ct),F=typeof C=="string"&&Rr.test(C),le=Bm(C,L);C=le.to;let ne=Dg(C,{relative:d}),te=qt(),Z=null;if(x){let Ee=ku(x,[],te.mask?te.mask.pathname:"/",!0);L!=="/"&&(Ee.pathname=Ee.pathname==="/"?L:Vt([L,Ee.pathname])),Z=X.createHref(Ee)}let[re,ze,Se]=fv(s,Q),He=wv(C,{replace:y,mask:x,state:p,target:g,preventScrollReset:z,relative:d,viewTransition:B,defaultShouldRevalidate:Y,useTransitions:W});function _e(Ee){c&&c(Ee),Ee.defaultPrevented||He(Ee)}let qe=!(le.isExternal||h),De=S.createElement("a",{...Q,...Se,href:(qe?Z:void 0)||le.absoluteURL||ne,onClick:qe?_e:c,ref:pv(O,ze),target:g,"data-discover":!F&&r==="render"?"true":void 0});return re&&!F?S.createElement(S.Fragment,null,De,S.createElement(dv,{page:ne})):De});Mu.displayName="Link";var xv=S.forwardRef(function({"aria-current":c="page",caseSensitive:r=!1,className:s="",end:d=!1,style:h,to:y,viewTransition:x,children:p,...g},C){let z=fi(y,{relative:g.relative}),B=qt(),Y=S.useContext(Yu),{navigator:Q,basename:O}=S.useContext(Ct),L=Y!=null&&Av(z)&&x===!0,X=Q.encodeLocation?Q.encodeLocation(z).pathname:z.pathname,W=B.pathname,F=Y&&Y.navigation&&Y.navigation.location?Y.navigation.location.pathname:null;r||(W=W.toLowerCase(),F=F?F.toLowerCase():null,X=X.toLowerCase()),F&&O&&(F=Sa(F,O)||F);const le=X!=="/"&&X.endsWith("/")?X.length-1:X.length;let ne=W===X||!d&&W.startsWith(X)&&W.charAt(le)==="/",te=F!=null&&(F===X||!d&&F.startsWith(X)&&F.charAt(X.length)==="/"),Z={isActive:ne,isPending:te,isTransitioning:L},re=ne?c:void 0,ze;typeof s=="function"?ze=s(Z):ze=[s,ne?"active":null,te?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let Se=typeof h=="function"?h(Z):h;return S.createElement(Mu,{...g,"aria-current":re,className:ze,ref:C,style:Se,to:y,viewTransition:x},typeof p=="function"?p(Z):p)});xv.displayName="NavLink";var bv=S.forwardRef(({discover:i="render",fetcherKey:c,navigate:r,reloadDocument:s,replace:d,state:h,method:y=Du,action:x,onSubmit:p,relative:g,preventScrollReset:C,viewTransition:z,defaultShouldRevalidate:B,...Y},Q)=>{let{useTransitions:O}=S.useContext(Ct),L=Nv(),X=Cv(x,{relative:g}),W=y.toLowerCase()==="get"?"get":"post",F=typeof x=="string"&&Rr.test(x),le=ne=>{if(p&&p(ne),ne.defaultPrevented)return;ne.preventDefault();let te=ne.nativeEvent.submitter,Z=te?.getAttribute("formmethod")||y,re=()=>L(te||ne.currentTarget,{fetcherKey:c,method:Z,navigate:r,replace:d,state:h,relative:g,preventScrollReset:C,viewTransition:z,defaultShouldRevalidate:B});O&&r!==!1?S.startTransition(()=>re()):re()};return S.createElement("form",{ref:Q,method:W,action:X,onSubmit:s?p:le,...Y,"data-discover":!F&&i==="render"?"true":void 0})});bv.displayName="Form";function Sv(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fm(i){let c=S.useContext(sn);return Be(c,Sv(i)),c}function wv(i,{target:c,replace:r,mask:s,state:d,preventScrollReset:h,relative:y,viewTransition:x,defaultShouldRevalidate:p,useTransitions:g}={}){let C=ea(),z=qt(),B=fi(i,{relative:y});return S.useCallback(Y=>{if(Ig(Y,c)){Y.preventDefault();let Q=r!==void 0?r:si(z)===si(B),O=()=>C(i,{replace:Q,mask:s,state:d,preventScrollReset:h,relative:y,viewTransition:x,defaultShouldRevalidate:p});g?S.startTransition(()=>O()):O()}},[z,C,B,r,s,d,c,i,h,y,x,p,g])}function jv(i){Ht(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 c=S.useRef(jr(i)),r=S.useRef(!1),s=qt(),d=S.useMemo(()=>Pg(s.search,r.current?null:c.current),[s.search]),h=ea(),y=S.useCallback((x,p)=>{const g=jr(typeof x=="function"?x(new URLSearchParams(d)):x);r.current=!0,h("?"+g,p)},[h,d]);return[d,y]}var zv=0,Ev=()=>`__${String(++zv)}__`;function Nv(){let{router:i}=Fm("useSubmit"),{basename:c}=S.useContext(Ct),r=Gg(),s=i.fetch,d=i.navigate;return S.useCallback(async(h,y={})=>{let{action:x,method:p,encType:g,formData:C,body:z}=av(h,c);if(y.navigate===!1){let B=y.fetcherKey||Ev();await s(B,r,y.action||x,{defaultShouldRevalidate:y.defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:C,body:z,formMethod:y.method||p,formEncType:y.encType||g,flushSync:y.flushSync})}else await d(y.action||x,{defaultShouldRevalidate:y.defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:C,body:z,formMethod:y.method||p,formEncType:y.encType||g,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[s,d,c,r])}function Cv(i,{relative:c}={}){let{basename:r}=S.useContext(Ct),s=S.useContext(Pt);Be(s,"useFormAction must be used inside a RouteContext");let[d]=s.matches.slice(-1),h={...fi(i||".",{relative:c})},y=qt();if(i==null){h.search=y.search;let x=new URLSearchParams(h.search),p=x.getAll("index");if(p.some(C=>C==="")){x.delete("index"),p.filter(z=>z).forEach(z=>x.append("index",z));let C=x.toString();h.search=C?`?${C}`:""}}return(!i||i===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(h.pathname=h.pathname==="/"?r:Vt([r,h.pathname])),si(h)}function Av(i,{relative:c}={}){let r=S.useContext(km);Be(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Fm("useViewTransitionState"),d=fi(i,{relative:c});if(!r.isTransitioning)return!1;let h=Sa(r.currentLocation.pathname,s)||r.currentLocation.pathname,y=Sa(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Uu(d.pathname,y)!=null||Uu(d.pathname,h)!=null}const Hr="css-account",qr="xpod.cssAccountToken",Tv="CSS-Account-Token";function kr(){return typeof window<"u"&&typeof document<"u"}function Rv(){if(!kr())return;const i=document.cookie.split(";");for(const c of i){const[r,...s]=c.trim().split("=");if(r===Hr){const d=s.join("=");try{return d?decodeURIComponent(d):void 0}catch{return}}}}function Jm(i){kr()&&(document.cookie=`${Hr}=${encodeURIComponent(i)}; Path=/; SameSite=Lax`)}function Dv(){kr()&&(document.cookie=`${Hr}=; Path=/; SameSite=Lax; Max-Age=0`)}function _v(){if(!(typeof window>"u"))try{return window.sessionStorage.getItem(qr)||void 0}catch{return}}function Uv(i){if(!(typeof window>"u"))try{window.sessionStorage.setItem(qr,i)}catch{}}function Ov(){if(!(typeof window>"u"))try{window.sessionStorage.removeItem(qr)}catch{}}function pr(i){i&&(Uv(i),Jm(i))}function Yr(){Ov(),Dv()}function Mv(){const i=Rv();if(i)return i;const c=_v();if(c)return Jm(c),c}function Kt(i,c={Accept:"application/json"}){const r={...c};return i&&!Lv(r,"Authorization")&&(r.Authorization=`${Tv} ${i}`),r}function Le(i={Accept:"application/json"}){return Kt(Mv(),i)}function Lv(i,c){const r=c.toLowerCase();return Object.keys(i).some(s=>s.toLowerCase()===r)}const $m=S.createContext(null);function kt(){const i=S.useContext($m);if(!i)throw new Error("useAuth must be used within AuthProvider");return i}function Bv({children:i}){const c="/.account/",[r,s]=S.useState(null),[d,h]=S.useState(!0),[y,x]=S.useState(null),[p,g]=S.useState(!1),C=!!r?.account?.logout,z=d,B=S.useCallback(async()=>{try{const O=await fetch("/.account/oidc/consent/",{headers:Le(),credentials:"include"});return O.ok?!!(await O.json()).client:!1}catch{return!1}},[]),Y=S.useCallback(async()=>{try{const O=await fetch(c,{headers:Le(),credentials:"include"});if(O.ok){const L=await O.json().catch(()=>({}));let X=!1;L.controls?.account?.logout&&(X=await B()),g(X),s(L.controls||{})}else{if(O.status===401||O.status===403){Yr(),g(!1),s({});return}x(`Failed to load configuration (Status: ${O.status})`)}}catch{x("Network error: Could not connect to authentication server")}},[B,c]);S.useEffect(()=>{(async()=>(await Y(),h(!1)))()},[Y]);const Q=S.useCallback(async()=>{await Y()},[Y]);return f.jsx($m.Provider,{value:{controls:r,isInitializing:d,initError:y,idpIndex:c,isLoggedIn:C,authenticating:z,hasOidcPending:p,refetchControls:Q},children:i})}const Wm=(...i)=>i.filter((c,r,s)=>!!c&&c.trim()!==""&&s.indexOf(c)===r).join(" ").trim();const Hv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const qv=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,r,s)=>s?s.toUpperCase():r.toLowerCase());const ym=i=>{const c=qv(i);return c.charAt(0).toUpperCase()+c.slice(1)};var kv={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 Yv=i=>{for(const c in i)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1};const Gv=S.forwardRef(({color:i="currentColor",size:c=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:d="",children:h,iconNode:y,...x},p)=>S.createElement("svg",{ref:p,...kv,width:c,height:c,stroke:i,strokeWidth:s?Number(r)*24/Number(c):r,className:Wm("lucide",d),...!h&&!Yv(x)&&{"aria-hidden":"true"},...x},[...y.map(([g,C])=>S.createElement(g,C)),...Array.isArray(h)?h:[h]]));const Xe=(i,c)=>{const r=S.forwardRef(({className:s,...d},h)=>S.createElement(Gv,{ref:h,iconNode:c,className:Wm(`lucide-${Hv(ym(i))}`,`lucide-${i}`,s),...d}));return r.displayName=ym(i),r};const Xv=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Im=Xe("arrow-left",Xv);const Qv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Qu=Xe("arrow-right",Qv);const Zv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$a=Xe("check",Zv);const Vv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kv=Xe("chevron-down",Vv);const Fv=[["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"}]],Gr=Xe("circle-alert",Fv);const Jv=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Pm=Xe("clock",Jv);const $v=[["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"}]],Ru=Xe("copy",$v);const Wv=[["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"}]],Iv=Xe("database",Wv);const Pv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],pm=Xe("external-link",Pv);const ex=[["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"}]],tx=Xe("globe",ex);const ax=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],e0=Xe("hard-drive",ax);const lx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],nx=Xe("info",lx);const ix=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],gr=Xe("key",ix);const ux=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],t0=Xe("layers",ux);const cx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],gl=Xe("loader-circle",cx);const sx=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ui=Xe("lock",sx);const rx=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],ox=Xe("log-out",rx);const fx=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],zr=Xe("mail",fx);const dx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],vr=Xe("plus",dx);const hx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],ri=Xe("shield",hx);const mx=[["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"}]],gm=Xe("trash-2",mx);const yx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],a0=Xe("user",yx);function l0(){return f.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:f.jsx(gl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function on({children:i,title:c,subtitle:r,icon:s,showBack:d,onBack:h}){return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[f.jsxs("div",{className:"flex flex-col items-center mb-6",children:[f.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[d?f.jsx("button",{onClick:h,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:f.jsx(Im,{className:"w-4 h-4"})}):f.jsx("div",{className:"w-8"}),f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s?f.jsx(s,{className:"w-5 h-5 text-white"}):f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),f.jsx("div",{className:"w-8"})]}),f.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:c}),r&&f.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:r})]}),i]})]})}function px({message:i}){return f.jsx(on,{title:"Error",subtitle:i,icon:Gr,children:f.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const Er="xpod:returnTo";function ci(i){try{i&&sessionStorage.setItem(Er,i)}catch{return}}function gx(){try{const i=sessionStorage.getItem(Er);return i&&sessionStorage.removeItem(Er),i}catch{return null}}function vx(){try{const i=new URLSearchParams(window.location.search).get("returnTo");return!i||new URL(i,window.location.origin).origin!==window.location.origin?null:i}catch{return null}}function xx(i,c,r=!1){return i&&c&&!r}function vm({children:i,allowOidcPending:c=!1}){const{isLoggedIn:r,hasOidcPending:s}=kt(),d=qt();return xx(r,s,c)?f.jsx(wa,{to:"/.account/oidc/consent/",replace:!0}):r?f.jsx(f.Fragment,{children:i}):(ci(d.pathname+d.search),f.jsx(wa,{to:"/.account/login/password/",replace:!0}))}function n0(i){var c,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(c=0;c<d;c++)i[c]&&(r=n0(i[c]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function ln(){for(var i,c,r=0,s="",d=arguments.length;r<d;r++)(i=arguments[r])&&(c=n0(i))&&(s&&(s+=" "),s+=c);return s}const xm=3,Lu=63,bx=/^[a-z0-9-]+$/;function It(i){return i.trim().toLowerCase()}function Wa(i){const c=It(i);if(!c)return"Username is required";if(c.length<xm||c.length>Lu)return`Username must be ${xm}-${Lu} characters`;if(!bx.test(c))return"Username can only contain lowercase letters, numbers, and hyphens";if(c.startsWith("-")||c.endsWith("-"))return"Username cannot start or end with a hyphen"}function Sx(i,c=5){const s=It(i).replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,Lu-3)||"user",d=Array.from({length:Math.max(c,3)},(h,y)=>`${s}-${y+1}`);return Array.from(new Set(d.map(h=>h.slice(0,Lu)).filter(h=>!Wa(h)))).slice(0,c)}function wx(i){if(typeof window<"u")return"/api/v1/identity";try{const c=new URL(i);return c.hostname.startsWith("id.")?`${c.protocol}//api.${c.hostname.slice(3)}/api/v1/identity`:`${c.origin}/api/v1/identity`}catch{return"/api/v1/identity"}}async function i0(i,c,r){const s=`${wx(c)}/${encodeURIComponent(i)}`;try{const d=await r(s,{headers:{Accept:"application/json"},credentials:"include"});if(d.status===404)return!1;if(d.ok||d.status===409)return!0}catch{}}async function jx(i,c,r,s=3){const d=Sx(i,Math.max(s*2,5)),h=[];for(const y of d)if(await i0(y,c,r)===!1&&h.push(y),h.length>=s)break;return h}async function bm(i,c,r=fetch){const s=It(i),d=Wa(s);if(d)return{available:!1,suggestions:[],error:d};const h=await i0(s,c,r);return h===!1?{available:!0,suggestions:[]}:h===void 0?{available:!1,suggestions:[],error:"Unable to verify username availability right now. Please try again."}:{available:!1,suggestions:await jx(s,c,r)}}function Zu(i){return typeof i=="object"&&i!==null}function Bu(i){return Zu(i)&&typeof i.message=="string"?i.message:""}function pl(i,c){return i instanceof Error&&i.message?i.message:c}function u0(){try{const i=sessionStorage.getItem("provisionCode")?.trim();return i||void 0}catch{return}}function zx(i){const c=i.split(".")[0];if(!c)return!0;try{const r=c.replace(/-/g,"+").replace(/_/g,"/"),s=r.padEnd(Math.ceil(r.length/4)*4,"=");if(typeof globalThis.atob!="function")return!0;const d=JSON.parse(globalThis.atob(s));return typeof d.exp=="number"?d.exp>Math.floor(Date.now()/1e3):!0}catch{return!0}}function Xr(i){const c=i?.trim();if(c)return zx(c)?c:void 0}function un(){const i=u0(),c=Xr(i);return i&&!c&&Qr(),c}function Ex(i){try{sessionStorage.setItem("provisionCode",i)}catch{}}function Qr(){try{sessionStorage.removeItem("provisionCode")}catch{}}function Zr(i,c=un()){const r={name:i.trim()};return c&&(r.settings={provisionCode:c}),r}async function Vr(i=fetch,c){const r=c?.trim()||u0(),s=Xr(r);if(r||typeof window<"u"){const d=await Nx(i);if(d)return Ex(d),d}return r&&!s&&Qr(),s}async function Kr(i=fetch,c){return Vr(i,c)}async function Nx(i){const c=await i("/provision/status",{headers:{Accept:"application/json"},credentials:"include"}).catch(()=>{});if(!c?.ok)return;const r=await c.json().catch(()=>{});if(!(!r?.registered||typeof r.provisionCode!="string"))return Xr(r.provisionCode)}function Cx(i){if(!i)return;const c=i.split(".")[0];if(c)try{const r=c.replace(/-/g,"+").replace(/_/g,"/"),s=r.padEnd(Math.ceil(r.length/4)*4,"=");if(typeof globalThis.atob!="function")return;const d=Uint8Array.from(globalThis.atob(s),y=>y.charCodeAt(0)),h=JSON.parse(new TextDecoder().decode(d));return typeof h.spUrl!="string"||typeof h.serviceToken!="string"||typeof h.exp=="number"&&h.exp<Math.floor(Date.now()/1e3)?void 0:{spUrl:ja(h.spUrl),serviceToken:h.serviceToken,spDomain:typeof h.spDomain=="string"?h.spDomain:void 0,exp:typeof h.exp=="number"?h.exp:void 0}}catch{return}}function Fr(i){const c=Cx(i);if(c)return{lookupUrl:c.spUrl,storageRoot:c.spDomain?ja(`https://${c.spDomain}`):ja(c.spUrl),serviceToken:c.serviceToken}}async function Vu(i,c,r){const s=Fr(r);if(!s)return;const d=Array.from(new Set(c.filter(p=>typeof p=="string"&&p.length>0)));if(d.length===0)return[];const h=await i(new URL("/provision/webids",s.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${s.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:d})});if(!h.ok)return[];const y=await h.json().catch(()=>{});if(!Array.isArray(y?.entries))return[];const x=new Set(d);return y.entries.filter(p=>p&&typeof p.webId=="string"&&x.has(p.webId)).filter(p=>typeof p.storageUrl=="string"&&p.storageUrl.length>0).filter(p=>c0(p.storageUrl,s.storageRoot)).map(p=>({webId:p.webId,podUrl:typeof p.podUrl=="string"?ja(p.podUrl):void 0,storageUrl:ja(p.storageUrl)}))}async function Ax(i,c,r){const s=s0(r);if(!s)return[];const d=Array.from(new Set(c.filter(y=>typeof y=="string"&&y.length>0)));return(await Promise.all(d.map(async y=>{const p=(await Dx(i,y)).find(g=>c0(g,s));return p?{webId:y,storageUrl:ja(p)}:void 0}))).filter(y=>!!y)}function c0(i,c){const r=r0(i),s=s0(c);return!!(r&&s&&r.startsWith(s))}function Tx(i){if(i)try{return ja(new URL(i).origin)}catch{return}}function s0(i){if(i)try{return ja(new URL(i).toString())}catch{return}}const Rx=new Set(["solid:storage","http://www.w3.org/ns/solid/terms#storage","pim:storage","http://www.w3.org/ns/pim/space#storage"]);async function Dx(i,c){const r=await i(c,{headers:{Accept:"text/turtle, application/ld+json, application/json"},credentials:"include"}).catch(()=>{});if(!r?.ok)return[];const s=r.headers?.get?.("content-type")??"",d=await r.text().catch(()=>"");if(!d)return[];if(s.includes("json"))try{return Sm(Ux(JSON.parse(d)))}catch{return[]}return Sm(_x(d))}function _x(i){return Array.from(i.matchAll(/(?:solid:storage|pim:storage|<http:\/\/www\.w3\.org\/ns\/solid\/terms#storage>|<http:\/\/www\.w3\.org\/ns\/pim\/space#storage>)\s+<([^>]+)>/giu)).map(c=>c[1]).filter(c=>typeof c=="string"&&c.length>0)}function Ux(i){const c=new Set,r=new WeakSet,s=(d,h=!1)=>{if(typeof d=="string"){h&&c.add(d);return}if(!(!d||typeof d!="object")&&!r.has(d)){if(r.add(d),Array.isArray(d)){for(const y of d)s(y,h);return}for(const[y,x]of Object.entries(d)){const p=Rx.has(y);if(h&&y==="@id"){s(x,!0);continue}s(x,h||p)}}};return s(i),Array.from(c)}function r0(i){try{return ja(new URL(i).toString())}catch{return}}function Sm(i){const c=new Set;for(const r of i){const s=r0(r);s&&c.add(s)}return Array.from(c)}function ja(i){return i.replace(/\/+$/u,"")+"/"}class nn extends Error{code;constructor(c,r){super(c),this.name="RegistrationError",this.code=r}}async function Jr(i){const c=await i.json().catch(()=>{});return c?.message||c?.error}async function wm(i){const c=await i.json().catch(()=>({}));return Zu(c)?c:{}}function Ox(i){return i.match(/There already is a resource at\s+(\S+)/iu)?.[1]}function Mx(i,c){if(!i)return!1;const r=Ox(i);if(r)return $r(r,c);const s=i.match(/Pod name "([^"]+)" is already taken/iu)?.[1];return s?s===c:/Username already taken/i.test(i)}function Lx(i){return i?/already is a login for this e-mail address/i.test(i)||/email(?: address)? is already/i.test(i)||/already registered/i.test(i):!1}function $r(i,c){try{return new URL(i,"http://xpod.local").pathname.split("/").filter(Boolean)[0]===c}catch{return!1}}async function Bx(i,c,r,s,d,h){if(h)return Hx(i,r,s,d,h);const y=await i(c,{headers:Kt(d),credentials:"include"});if(!y.ok)return!1;const x=await y.json().catch(()=>({}));return Object.keys(x.pods??{}).some(p=>$r(p,s))}async function Hx(i,c,r,s,d){if(!c)return!1;const h=await i(c,{headers:Kt(s),credentials:"include"});if(!h.ok)return!1;const y=await h.json().catch(()=>({})),x=Object.keys(y.webIdLinks??{});return(await Vu(i,x,d)??[]).some(g=>$r(g.storageUrl,r))}async function qx(i){const c=i.fetchImpl??fetch;let r=await c(i.accountCreateUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!r.ok)throw new Error(Bu(await wm(r))||"Failed to create account");const s=await r.json().catch(()=>({})),d=typeof s.authorization=="string"?s.authorization:"";if(!d)throw new Error("Account token not returned");if(r=await c(i.idpIndex,{headers:Kt(d),credentials:"include"}),!r.ok)throw new Error(Bu(await wm(r))||"Failed to load account controls");const h=await r.json().catch(()=>({})),y=h.controls?.password?.create,x=h.controls?.password?.login;if(!y)throw new Error("Password endpoint not found");if(!x)throw new Error("Login endpoint not found");if(r=await c(y,{method:"POST",headers:{...Kt(d),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:i.email,password:i.password})}),!r.ok){const p=await Jr(r);throw Lx(p)?new nn("This email is already registered. Sign in instead, or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(p||"Failed to set password")}return{accountToken:d,loginUrl:x}}async function kx(i){const r=await(i.fetchImpl??fetch)(i.loginUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:i.email,password:i.password})});if(!r.ok){const h=await Jr(r);throw i.duplicateEmailRecovery?new nn("This email is already registered, but the password did not match. Sign in or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(h||"Auto-login failed")}const s=await r.json().catch(()=>({})),d=typeof s.authorization=="string"?s.authorization:"";if(!d)throw new Error("Account token not returned after login");return{accountToken:d}}async function jm(i,c,r,s,d=15e3,h){const y=Date.now()+d;let x=r?.pod,p=r?.webId;for(;Date.now()<y;){try{if(!x&&!p){const g=await i(c,{headers:Kt(s),credentials:"include"});if(g.ok){const C=await g.json().catch(()=>({}));x=C.controls?.account?.pod,p=C.controls?.account?.webId}}if(p){const g=await i(p,{headers:Kt(s),credentials:"include"});if(g.ok){const C=await g.json().catch(()=>({})),z=Object.keys(C.webIdLinks??{});if(h){if((await Vu(i,z,h)??[]).length>0)return!0}else if(z.length>0)return!0}}if(!h&&x){const g=await i(x,{headers:Kt(s),credentials:"include"});if(g.ok){const C=await g.json().catch(()=>({}));if(Object.keys(C.pods??{}).length>0)return!0}}}catch{}await new Promise(g=>setTimeout(g,500))}return!1}async function zm(i){const c=i.fetchImpl??fetch,{accountToken:r,idpIndex:s,username:d}=i,h=await Kr(c,i.provisionCode??un());let y=await c(s,{headers:Kt(r),credentials:"include"});const x=await y.json().catch(()=>({})),p=x.controls?.account?.pod;if(!p)throw new Error("Pod creation endpoint not found. The account API did not expose controls.account.pod.");if(await Bx(c,p,x.controls?.account?.webId,d,r,h))return await jm(c,s,x.controls?.account,r,15e3,h),{createdPod:!0,redirectedToConsent:await Em(c,r)};if(y=await c(p,{method:"POST",headers:{...Kt(r),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Zr(d,h))}),!y.ok){const g=await Jr(y);throw Mx(g,d)?new nn("Username is already taken. Your account was created; sign in and choose another Pod name.","USERNAME_ALREADY_TAKEN"):new Error(g||"Failed to create pod")}return await y.json().catch(()=>({})),await jm(c,s,x.controls?.account,r,15e3,h),{createdPod:!0,redirectedToConsent:await Em(c,r)}}async function Em(i,c){const r=await i("/.account/oidc/consent/",{headers:Kt(c),credentials:"include"});return!!(r.ok&&(await r.json().catch(()=>({}))).client)}function Nr({initialIsRegister:i=!1}){const{controls:c,idpIndex:r,isLoggedIn:s,hasOidcPending:d,authenticating:h}=kt(),y=ea(),[x,p]=S.useState(!1),[g,C]=S.useState(i),[z,B]=S.useState(""),[Y,Q]=S.useState(""),[O,L]=S.useState(""),[X,W]=S.useState(!1),[F,le]=S.useState(!1),[ne,te]=S.useState(null),[Z,re]=S.useState([]),[ze,Se]=S.useState(null),[He,_e]=S.useState(""),[qe,De]=S.useState(null),[Ee,D]=S.useState(null),G=Y.length>0&&O.length>0&&Y===O,J=It(z),ae=g?Wa(J):void 0;if(S.useEffect(()=>{const q=vx();q&&ci(q)},[]),S.useEffect(()=>{if(!g){le(!1),te(null),re([]),Se(null);return}if(!J){le(!1),te(null),re([]),Se(null);return}if(ae){le(!1),te(!1),re([]),Se(ae);return}let q=!1;le(!0);const K=window.setTimeout(async()=>{const I=await bm(J,r);q||(le(!1),te(I.available),re(I.suggestions),Se(I.error??null))},300);return()=>{q=!0,window.clearTimeout(K)}},[r,g,J,ae]),s)return f.jsx(wa,{to:"/.account/create-pod/",replace:!0,state:{next:d?"/.account/oidc/consent/":"/.account/account/"}});const oe=[{icon:Pm,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you are not talking to it"},{icon:t0,title:"All Your Pieces, In One Place",desc:"Data, memory, and working context come back into one system"},{icon:ri,title:"One Secretary, Many Agents",desc:"One aligned layer can direct many agents while keeping privacy and control inside your boundary"}],v=async q=>{q.preventDefault(),p(!0),De(null),D(null);const K=new FormData(q.currentTarget),I=K.get("email"),ie=K.get("password");try{if(g){const fe=K.get("confirmPassword"),k=It(K.get("username")),xe=Wa(k);if(ie!==fe){alert("Passwords do not match"),p(!1);return}if(xe){alert(xe),p(!1);return}const Ne=await bm(k,r),Yt=c?.password?.login||"/.account/login/password/",yt=async(it=!1)=>{const ta=await kx({duplicateEmailRecovery:it,email:I,fetchImpl:fetch,loginUrl:Yt,password:ie});return pr(ta.accountToken),ta.accountToken};if(!Ne.available){let it;try{it=await yt()}catch{}if(it){const ta=await zm({accountToken:it,idpIndex:r,username:k});window.location.href=ta.redirectedToConsent?"/.account/oidc/consent/":"/.account/create-pod/";return}te(!1),re(Ne.suggestions),Se(Ne.error??"Username is already taken"),p(!1);return}if(Ne.error){te(!1),Se(Ne.error),p(!1);return}let nt;const ke=await yt().catch(()=>{});if(ke)nt=ke;else try{nt=(await qx({accountCreateUrl:c?.account?.create||"/.account/account/",email:I,password:ie,idpIndex:r})).accountToken,pr(nt)}catch(it){if(!(it instanceof nn)||it.code!=="EMAIL_ALREADY_REGISTERED")throw it;nt=await yt(!0)}const Gt=await zm({accountToken:nt,idpIndex:r,username:k});window.location.href=Gt.redirectedToConsent?"/.account/oidc/consent/":"/.account/create-pod/"}else{const fe=await fetch(c?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:I,password:ie})}),k=await fe.json().catch(()=>({}));if(fe.ok){pr(typeof k.authorization=="string"?k.authorization:void 0);const xe=fe.headers.get("Location");if(k.location){window.location.href=k.location;return}if(xe){window.location.href=xe;return}const Ne=gx();if(Ne){window.location.href=Ne;return}try{if((await fetch("/.account/oidc/consent/",{headers:Le(),credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/create-pod/"}else D(k.message||"Login failed")}}catch(fe){fe instanceof nn&&fe.code==="EMAIL_ALREADY_REGISTERED"?De(fe.message):fe instanceof nn&&fe.code==="USERNAME_ALREADY_TAKEN"?(te(!1),Se(fe.message)):D(pl(fe,"Operation failed"))}finally{p(!1)}},R=()=>{C(!g),B(""),Q(""),L(""),le(!1),te(null),re([]),Se(null),_e(""),De(null),D(null)},H=async()=>{if(c?.oidc?.cancel){W(!0);try{const K=await(await fetch(c.oidc.cancel,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include"})).json();K.location&&(window.location.href=K.location)}catch{alert("Failed to cancel"),W(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:oe.map(({icon:q,title:K,desc:I})=>f.jsxs("div",{className:"flex gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:f.jsx(q,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:K}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:I})]})]},K))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:g?"Create account":"Welcome back"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:g?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),f.jsxs("form",{className:"space-y-4",onSubmit:v,children:[Ee&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:Ee}),f.jsxs("div",{className:"space-y-3",children:[g&&f.jsxs("div",{className:"relative",children:[f.jsx(a0,{className:ln("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",ae&&z.length>0?"text-amber-500":"text-zinc-400")}),f.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:z,onChange:q=>B(q.target.value),className:ln("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",ae&&z.length>0||ne===!1?"border-amber-300 focus:border-amber-500":ne?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(zr,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,value:He,onChange:q=>{_e(q.target.value),qe&&De(null)},className:ln("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",qe?"border-red-300 focus:border-red-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Email"})]}),qe&&f.jsxs("p",{className:"text-[11px] leading-relaxed text-red-600",children:[qe," ",f.jsx("button",{type:"button",onClick:()=>{C(!1),De(null),D(null)},className:"font-medium text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Sign in"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(ui,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:Y,onChange:q=>Q(q.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),g&&f.jsxs("div",{className:"relative",children:[G?f.jsx($a,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(ui,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:O,onChange:q=>L(q.target.value),className:ln("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",G?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),g&&f.jsx("p",{className:ln("text-[11px] leading-relaxed",ae&&z.length>0||ne===!1?"text-amber-600":ne?"text-emerald-600":"text-zinc-500"),children:ae&&z.length>0?ae:F?"Checking username availability...":ze||(J&&ne===!1?"Username is already taken.":J&&ne?"Username is available.":"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens.")}),g&&Z.length>0&&!ae&&ne===!1&&f.jsx("div",{className:"flex flex-wrap gap-2",children:Z.map(q=>f.jsx("button",{type:"button",onClick:()=>B(q),className:"rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] text-zinc-600 hover:border-[#7C4DFF] hover:text-[#7C4DFF]",children:q},q))}),!g&&f.jsx("div",{className:"flex justify-end",children:f.jsx("button",{type:"button",onClick:()=>y("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),f.jsx("button",{type:"submit",disabled:x||X||!!(g&&(ae||F||ne===!1)),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:x?f.jsx(gl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:[g?"Sign up":"Sign in",f.jsx(Qu,{className:"h-4 w-4"})]})}),h&&!g&&f.jsx("button",{type:"button",onClick:H,disabled:X||x,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:X?f.jsx(gl,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),f.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:f.jsxs("p",{className:"text-[11px] text-zinc-500",children:[g?"Already have an account? ":"Don't have an account? ",f.jsx("button",{onClick:R,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:g?"Sign in":"Sign up"})]})})]})})]})]})}function Yx(){const{isLoggedIn:i,hasOidcPending:c}=kt();return i&&c?f.jsx(wa,{to:"/.account/oidc/consent/",replace:!0}):i?f.jsx(wa,{to:"/.account/account/",replace:!0}):f.jsx(Nr,{})}function Gx(){const i=ea(),{isLoggedIn:c}=kt(),r=[{icon:Pm,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:t0,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:ri,title:"One Secretary, Many Agents",desc:"Full power, full privacy"}];return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:r.map(({icon:s,title:d,desc:h})=>f.jsxs("div",{className:"flex gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:f.jsx(s,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:d}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:h})]})]},d))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"lg:hidden mb-8",children:[f.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-2",children:r.map(({icon:s,title:d,desc:h})=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx(s,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),f.jsxs("div",{children:[f.jsx("span",{className:"text-xs font-medium text-zinc-900",children:d}),f.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",h]})]})]},d))})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),f.jsxs("div",{className:"space-y-3 mb-6",children:[f.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(pm,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),f.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(pm,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),f.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[f.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),f.jsxs("button",{onClick:()=>i(c?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[f.jsx(Im,{className:"w-4 h-4"}),c?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function Ku(i){return i.replace(/\/+$/u,"")+"/"}function za(i){if(i)try{return new URL(i)}catch{return}}function o0(i){const c=za(i);if(c)return Ku(c.toString())}function Xx(i){return o0(i)}function Hu(i,c){const r=za(i),s=za(c);if(!r||!s||r.origin!==s.origin)return!1;const d=Jx(s.pathname);return r.pathname===d||r.pathname.startsWith(d)}function qu(i,c){const r=za(i),s=za(c);return!r||!s?"custom":r.origin===s.origin?"cloud":"local"}function Qx(i){if(!i)return;const c=i.indexOf(".");if(!(c<=0))try{const r=i.slice(0,c),s=JSON.parse(Fx(r)),d=s.spDomain?`https://${s.spDomain}`:s.spUrl,h=o0(d);return h?{root:h,lookupUrl:s.spUrl?Ku(s.spUrl):void 0,serviceToken:s.serviceToken,mode:"local"}:void 0}catch{return}}function Zx(i,c){const r=Qx(c);if(r)return r;const s=Xx(i);if(s)return{root:s,mode:"cloud"}}async function Vx(i,c,r){if(!r.lookupUrl||!r.serviceToken||c.length===0)return[];const s=await i(new URL("/provision/webids",r.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${r.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:c})});if(!s.ok)return[];const d=await s.json().catch(()=>null);if(!Array.isArray(d?.entries))return[];const h=new Set(c);return d.entries.filter(y=>typeof y.webId=="string"&&typeof y.storageUrl=="string"&&h.has(y.webId)&&Hu(y.storageUrl,r.root)).map(y=>({webId:y.webId,storageUrl:Ku(y.storageUrl),storageMode:y.storageMode??qu(y.webId,y.storageUrl)}))}function Kx(i,c,r){const s=c.filter(h=>Hu(h,r.root));if(s.length===0)return[];const d=[];for(const h of i){const y=qu(h,r.root);if(r.mode!=="local"&&y!==r.mode)continue;const x=y==="cloud"?s.filter(p=>$x(p,h)):s.filter(p=>Wx(p,h));for(const p of x)d.push({webId:h,storageUrl:Ku(p),storageMode:qu(h,p)})}return f0(d)}function f0(i){const c=new Set,r=[];for(const s of i){const d=`${s.webId}
12
- ${s.storageUrl}`;c.has(d)||(c.add(d),r.push(s))}return r}function Fx(i){const c=i.replace(/-/gu,"+").replace(/_/gu,"/").padEnd(Math.ceil(i.length/4)*4,"=");return atob(c)}function Jx(i){return!i||i==="/"?"/":i.endsWith("/")?i:`${i}/`}function $x(i,c){const r=za(i),s=za(c);if(!r||!s||r.origin!==s.origin)return!1;const[d]=r.pathname.split("/").filter(Boolean),[h]=s.pathname.split("/").filter(Boolean);return!!(d&&h&&d===h)}function Wx(i,c){const r=za(i),s=za(c);if(!r||!s)return!1;const[d]=r.pathname.split("/").filter(Boolean),[h]=s.pathname.split("/").filter(Boolean);return!!(d&&h&&d===h)}function d0(i){try{const r=new URL(i).pathname.split("/").filter(Boolean);return r[r.length-1]}catch{return}}function Ix(i){const c=i?.pods;return!c||typeof c!="object"?[]:Object.entries(c).map(([r,s])=>({id:r,resourceUrl:s,name:d0(r)}))}function Px(i){const c=new Set,r=[];for(const s of i)c.has(s.storageUrl)||(c.add(s.storageUrl),r.push({id:s.storageUrl,name:d0(s.storageUrl),storageMode:s.storageMode??qu(s.webId,s.storageUrl)}));return r}function eb(i){return Array.from(new Set(i.map(c=>c.webId)))}function tb(i){try{const c=new URL(i).pathname.split("/").filter(Boolean);return c[c.length-1]??i}catch{return i.split("/").filter(Boolean).pop()??i}}function xr(i,c){return`sk-${btoa(`${i}:${c}`)}`}function ab(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:i,hostname:c,origin:r}=window.location;return c.startsWith("id.")?`${i}//api.${c.slice(3)}/v1`:c.startsWith("api.")?`${r}/v1`:`${r.replace(/\/$/,"")}/v1`}function lb(){const{controls:i,refetchControls:c,hasOidcPending:r}=kt(),s=ea(),[d,h]=S.useState(!1),[y,x]=S.useState([]),[p,g]=S.useState([]),[C,z]=S.useState(!1),[B,Y]=S.useState(!1),[Q,O]=S.useState(""),[L,X]=S.useState(!1),[W,F]=S.useState(""),[le,ne]=S.useState([]),[te,Z]=S.useState(null),[re,ze]=S.useState(!1),[Se,He]=S.useState(""),[_e,qe]=S.useState(""),[De,Ee]=S.useState(null),[D,G]=S.useState(!1),J=S.useRef(null),ae=ab();S.useEffect(()=>{const k=xe=>{J.current&&!J.current.contains(xe.target)&&G(!1)};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[]);const oe=async(k,xe)=>{try{await navigator.clipboard.writeText(k),Ee(xe),setTimeout(()=>Ee(null),2e3)}catch{}},v=S.useCallback(async()=>{try{const k=Zx(window.location.origin,un());let xe=[],Ne=[],Yt=[],yt=[];if(i?.account?.webId){const ke=await fetch(i.account.webId,{headers:Le(),credentials:"include"});if(ke.ok){const it=(await ke.json()).webIdLinks||{};Ne=Object.keys(it)}else Ne=[]}if(i?.account?.pod){const ke=await fetch(i.account.pod,{headers:Le(),credentials:"include"});if(ke.ok){const Gt=await ke.json();Yt=Ix(Gt)}else Yt=[]}k&&(yt=k.serviceToken?await Vx(fetch,Ne,k):Kx(Ne,Yt.map(ke=>ke.id),k)),yt=f0(yt),xe=eb(yt);const nt=k?.serviceToken?Px(yt):Yt.filter(ke=>Hu(ke.id,k?.root)).map(ke=>({...ke,storageMode:yt.find(Gt=>Hu(ke.id,Gt.storageUrl))?.storageMode}));if(x(xe),g(nt),z(k?nt.length===0&&Ne.length>0:!1),i?.account?.clientCredentials){const ke=await fetch(i.account.clientCredentials,{headers:Le(),credentials:"include"});if(ke.ok){const it=(await ke.json()).clientCredentials||{},ta=new Set(xe);ne(Object.entries(it).map(([aa,vl])=>({id:tb(aa),resourceUrl:aa,webId:typeof vl=="string"?vl:void 0})).filter(aa=>aa.webId&&ta.has(aa.webId)))}else ne([])}else ne([])}catch(k){console.error("Failed to fetch account data:",k),x([]),g([]),ne([]),z(!1)}},[i?.account?.clientCredentials,i?.account?.pod,i?.account?.webId]);S.useEffect(()=>{v()},[v]);const R=async()=>{if(i?.account?.logout){h(!0);try{(await fetch(i.account.logout,{method:"POST",headers:Le(),credentials:"include"})).ok&&(Qr(),Yr(),await c(),s("/.account/"))}catch{alert("Logout failed")}finally{h(!1)}}},H=async k=>{if(k.preventDefault(),!(!i?.account?.pod||!Q.trim())){h(!0);try{const xe=await fetch(i.account.pod,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify(Zr(Q))});if(xe.ok)O(""),Y(!1),await c(),await v(),r&&s("/.account/oidc/consent/");else{const Ne=await xe.json().catch(()=>({}));alert(Ne.message||"Failed to create pod")}}catch{alert("Network error")}finally{h(!1)}}},q=async k=>{if(k.preventDefault(),!(!i?.account?.webId||!W.trim())){if(un()){X(!1),alert("Link WebID is disabled in a scoped Local storage session.");return}h(!0);try{const xe=await fetch(i.account.webId,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:W.trim()})});if(xe.ok)F(""),X(!1),await v();else{const Ne=await xe.json().catch(()=>({}));alert(Ne.message||"Failed to link WebID")}}catch{alert("Network error")}finally{h(!1)}}},K=async k=>{if(k.resourceUrl&&confirm(`Delete pod ${k.id}? This cannot be undone.`)){h(!0);try{(await fetch(k.resourceUrl,{method:"DELETE",headers:Le(),credentials:"include"})).ok?await v():alert("Failed to delete pod")}catch{alert("Network error")}finally{h(!1)}}},I=async k=>{if(k.preventDefault(),!(!i?.account?.clientCredentials||!Se||!_e.trim())){h(!0);try{const xe=await fetch(i.account.clientCredentials,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({name:_e.trim(),webId:Se})});if(xe.ok){const Ne=await xe.json();Z({id:Ne.id,secret:Ne.secret}),ze(!1),He(""),qe(""),await v()}else{const Ne=await xe.json().catch(()=>({}));alert(Ne.message||"Failed to create credential")}}catch{alert("Network error")}finally{h(!1)}}},ie=()=>{if(y.length===0){alert("Please create a Pod first to get a WebID");return}He(y[0]),qe(""),ze(!0)},fe=async k=>{if(confirm("Delete this credential? This cannot be undone.")){h(!0);try{(await fetch(k.resourceUrl,{method:"DELETE",headers:Le(),credentials:"include"})).ok?await v():alert("Failed to delete credential")}catch{alert("Network error")}finally{h(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:f.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:f.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),f.jsxs("div",{children:[f.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Mu,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[f.jsx(nx,{className:"w-3.5 h-3.5"}),"About"]}),f.jsxs("button",{onClick:R,disabled:d,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[f.jsx(ox,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),f.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[r&&f.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:f.jsx(ri,{className:"w-5 h-5 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),f.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),f.jsxs(Mu,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",f.jsx(Qu,{className:"w-4 h-4"})]})]})}),f.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(e0,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),i?.account?.pod&&f.jsxs("button",{onClick:()=>Y(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(vr,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),B&&f.jsxs("form",{onSubmit:H,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:Q,onChange:k=>O(k.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Creating...":"Create"}),f.jsx("button",{type:"button",onClick:()=>Y(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:p.length===0?f.jsx("div",{className:"p-4",children:f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:C?"WebID 已存在,Pod 信息正在同步。请稍等后刷新页面。":"No Pods found. Create one to get started."})}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:p.map(k=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(Iv,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("a",{href:k.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate block",children:k.id}),k.name&&f.jsxs("p",{className:"text-[11px] text-zinc-500 truncate",children:["Pod: ",k.name]})]})]}),f.jsx("button",{onClick:()=>K(k),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:f.jsx(gm,{className:"w-4 h-4"})})]},k.id))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(a0,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),i?.account?.webId&&f.jsxs("button",{onClick:()=>X(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(vr,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),L&&f.jsxs("form",{onSubmit:q,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"url",value:W,onChange:k=>F(k.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Linking...":"Link"}),f.jsx("button",{type:"button",onClick:()=>X(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:y.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:y.map(k=>f.jsxs("li",{className:"p-3 flex items-center gap-3",children:[f.jsx(tx,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("a",{href:k,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:k})]},k))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(gr,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),i?.account?.clientCredentials&&f.jsxs("button",{onClick:ie,disabled:d,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(vr,{className:"w-3.5 h-3.5"}),"New Key"]})]}),f.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"}),"."]}),i?.account?.clientCredentials?f.jsxs(f.Fragment,{children:[re&&f.jsxs("form",{onSubmit:I,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),f.jsx("input",{type:"text",value:_e,onChange:k=>qe(k.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),f.jsxs("div",{className:"relative",ref:J,children:[f.jsxs("button",{type:"button",onClick:()=>G(!D),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[f.jsx("span",{className:"truncate text-zinc-700",children:Se||"Select WebID"}),f.jsx(Kv,{className:`w-4 h-4 text-zinc-400 transition-transform ${D?"rotate-180":""}`})]}),D&&f.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:y.map(k=>f.jsx("button",{type:"button",onClick:()=>{He(k),G(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${Se===k?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:k},k))}),f.jsx("input",{type:"hidden",name:"webId",value:Se,required:!0})]})]}),f.jsxs("div",{className:"flex gap-2 justify-end",children:[f.jsx("button",{type:"button",onClick:()=>ze(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Creating...":"Create"})]})]}),te&&f.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:f.jsx(gr,{className:"w-4 h-4 text-emerald-600"})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),f.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),f.jsx("p",{className:"text-zinc-600 truncate",children:te.id})]}),f.jsx("button",{onClick:()=>oe(te.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:De==="id"?f.jsx($a,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Ru,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),f.jsx("p",{className:"text-zinc-600 break-all",children:te.secret})]}),f.jsx("button",{onClick:()=>oe(te.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:De==="secret"?f.jsx($a,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Ru,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),f.jsx("p",{className:"text-emerald-600 break-all font-medium",children:xr(te.id,te.secret)})]}),f.jsx("button",{onClick:()=>oe(xr(te.id,te.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:De==="apikey"?f.jsx($a,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Ru,{className:"w-3.5 h-3.5"})})]})]}),f.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[f.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),f.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),f.jsx("p",{className:"break-all text-zinc-600",children:ae})]}),f.jsx("button",{onClick:()=>oe(ae,"baseurl"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Base URL",children:De==="baseurl"?f.jsx($a,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Ru,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),f.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",xr(te.id,te.secret)]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),f.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),f.jsx("button",{onClick:()=>Z(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:le.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:le.map(k=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(gr,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:k.id})]}),f.jsx("button",{onClick:()=>fe(k),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:f.jsx(gm,{className:"w-4 h-4"})})]},k.id))})})]}):f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:f.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),f.jsxs("section",{children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[f.jsx(ri,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),f.jsx("a",{href:i?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function nb(i){for(const c of i){if(!c)continue;const r=ob(c);if(!r)continue;const s=It(r).replace(/[^a-z0-9-]/gu,"-").replace(/-+/gu,"-").replace(/^-+|-+$/gu,"");if(s&&!Wa(s))return s}return""}async function ib(i){const c=i.fetchImpl??fetch,r=It(i.username),s=Wa(r);if(s)return{status:"invalid",message:s};const d=await Kr(c,i.provisionCode),h=Fr(d);if(!h)return{status:"unknown"};const y=new URL(`/provision/pods/${encodeURIComponent(r)}`,h.lookupUrl).toString(),x=await c(y,{headers:{Accept:"application/json",Authorization:`Bearer ${h.serviceToken}`},credentials:"include"}).catch(()=>{});return x?x.status===404?{status:"available",message:"This Pod name is available."}:x.ok?{status:"taken",message:`Pod name "${r}" is already used on this storage.`}:x.status===409?{status:"taken",message:await Cr(x)??`Pod name "${r}" is already used on this storage.`}:{status:"unknown",message:await Cr(x)??"Could not check this Pod name right now."}:{status:"unknown",message:"Could not check this Pod name right now."}}async function ub(i){const c=i.fetchImpl??fetch,r=It(i.username),s=Wa(r);if(s)throw new Error(s);const d=await Kr(c,i.provisionCode),h=await c(i.createPodUrl,{method:"POST",headers:{...i.headers,Accept:"application/json","Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Zr(r,d))});if(!h.ok){const g=await Cr(h);throw h.status===409||sb(g)?new Error("Pod name is already taken. Choose another name."):new Error(g||"Failed to create Pod")}const y=await h.json().catch(()=>{}),x=rb(y);if(!i.pickWebIdUrl)return x;const p=await h0({fetchImpl:c,headers:i.headers,maxAttempts:i.maxAttempts,pickWebIdUrl:i.pickWebIdUrl,pollIntervalMs:i.pollIntervalMs});return p.length>0?p:x}async function h0(i){const c=i.fetchImpl??fetch,r=Math.max(1,i.maxAttempts??30),s=Math.max(0,i.pollIntervalMs??500);for(let d=0;d<r;d+=1){const h=await cb(c,i.pickWebIdUrl,i.headers);if(h.length>0)return h;d<r-1&&s>0&&await new Promise(y=>setTimeout(y,s))}return[]}async function cb(i,c,r){const s=await i(c,{headers:r,credentials:"include"}).catch(()=>{});if(!s?.ok)return[];const d=await s.json().catch(()=>{});return Array.isArray(d?.webIds)?d.webIds.filter(h=>typeof h=="string"&&h.length>0):[]}async function Cr(i){const c=await i.text?.().catch(()=>{});if(c)try{const r=JSON.parse(c);return typeof r.message=="string"?r.message:typeof r.error=="string"?r.error:c}catch{return c}}function sb(i){return i?/already (?:is )?a resource/iu.test(i)||/already taken/iu.test(i)||/already exists/iu.test(i):!1}function rb(i){const c=new Set;if(typeof i?.webId=="string"&&i.webId.length>0&&c.add(i.webId),Array.isArray(i?.webIds))for(const r of i.webIds)typeof r=="string"&&r.length>0&&c.add(r);return Array.from(c)}function ob(i){try{return new URL(i).pathname.split("/").filter(Boolean)[0]}catch{return}}function m0({createPodUrl:i,headers:c,onCreated:r,onError:s,pickWebIdUrl:d,provisionCode:h,webIdCandidates:y=[]}){const[x,p]=S.useState(()=>nb(y)),[g,C]=S.useState(!1),[z,B]=S.useState(null),[Y,Q]=S.useState({status:"idle"}),O=It(x),L=O?Wa(O):void 0,X=!!(O&&z===O);S.useEffect(()=>{if(!O){Q({status:"idle"});return}if(X){Q({status:"created",message:"Storage was created. Refresh authorization when the WebID is ready."});return}if(L){Q({status:"invalid",message:L});return}let Z=!1;Q({status:"checking",message:"Checking Pod name..."});const re=setTimeout(()=>{ib({provisionCode:h,username:O}).then(ze=>{Z||Q(ze)})},300);return()=>{Z=!0,clearTimeout(re)}},[X,L,O,h]);const W=async()=>{try{s(null),C(!0);const Z=d?await h0({headers:c,pickWebIdUrl:d}):[];Z.length>0&&B(null),await r(Z)}catch(Z){s(pl(Z,"Failed to refresh authorization state"))}finally{C(!1)}},F=async Z=>{if(Z.preventDefault(),X){await W();return}if(L){s(L);return}if(Y.status==="taken"){s(Y.message||"This Pod name is already used on this storage.");return}if(Y.status==="checking"){s("Please wait for the Pod name check to finish.");return}if(!i){s("Pod creation endpoint not found. Please reload and try again.");return}try{s(null),C(!0);const re=await ub({createPodUrl:i,headers:c,pickWebIdUrl:d,provisionCode:h,username:O});B(re.length>0?null:O),p(O),await r(re)}catch(re){s(pl(re,"Failed to create Pod"))}finally{C(!1)}},le=(()=>{switch(Y.status){case"available":return"text-emerald-600";case"taken":case"invalid":return"text-red-600";case"checking":return"text-zinc-500";case"created":return"text-amber-600";default:return"text-zinc-400"}})(),ne=g||Y.status==="checking"||!X&&Y.status==="taken"||!!L,te=g?X?"Refreshing...":"Creating...":X?"Refresh authorization":"Create storage";return f.jsxs("form",{onSubmit:F,className:"rounded-xl border border-zinc-200 bg-zinc-50 p-4 space-y-3",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-700",children:"Create your first storage"}),f.jsx("p",{className:"text-[11px] text-zinc-500 mt-1",children:"Choose a short Pod name. After it is created, this authorization will continue here."})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 mb-1",children:"Pod name"}),f.jsx("input",{type:"text",value:x,onChange:Z=>{p(It(Z.target.value)),s(null)},placeholder:"alice",disabled:g,className:"w-full px-3 py-2 bg-white border border-zinc-200 rounded-lg text-sm text-zinc-700 focus:border-[#7C4DFF] focus:outline-none disabled:opacity-60",autoComplete:"username",required:!0}),Y.message&&f.jsx("p",{className:`mt-1 text-[11px] ${le}`,children:Y.message})]}),f.jsx("button",{type:"submit",disabled:ne,className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium disabled:opacity-50 transition-colors",children:te})]})}function fb(){const{controls:i,hasOidcPending:c,refetchControls:r}=kt(),s=ea(),[d,h]=S.useState(!0),[y,x]=S.useState(!1),[p,g]=S.useState([]),[C,z]=S.useState(null),[B,Y]=S.useState(()=>un()),Q=c?"/.account/oidc/pick-webid/":void 0;return S.useEffect(()=>{let O=!1;return(async()=>{try{const L=await Vr(fetch,B);if(O)return;Y(L);const X=await db({accountWebIdUrl:i?.account?.webId,provisionCode:L});if(O)return;if(g(X.allWebIds),X.currentStorageWebIds.length>0){s(c?"/.account/oidc/consent/":"/.account/account/",{replace:!0});return}x(!0)}catch(L){O||(z(pl(L,"Failed to check storage state")),x(!0))}finally{O||h(!1)}})(),()=>{O=!0}},[i?.account?.webId,c,s,B]),f.jsxs(on,{title:"Create storage",subtitle:"Set up this space before entering the dashboard",icon:e0,children:[C&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(Gr,{className:"w-4 h-4 inline mr-2"}),C]}),d&&f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(gl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}),!d&&y&&f.jsx(m0,{createPodUrl:i?.account?.pod,headers:Le(),onCreated:async O=>{if(c&&O.length===0){z("Storage was created. Click Refresh authorization when the WebID is ready.");return}await r(),s(c?"/.account/oidc/consent/":"/.account/account/",{replace:!0})},onError:z,pickWebIdUrl:Q,provisionCode:B,webIdCandidates:p})]})}async function db(i){const c=i.accountWebIdUrl;if(!c)return{allWebIds:[],currentStorageWebIds:[]};const r=await fetch(c,{headers:Le(),credentials:"include"});if(!r.ok)return{allWebIds:[],currentStorageWebIds:[]};const s=await r.json().catch(()=>({})),d=Object.keys(s.webIdLinks??{});if(d.length===0)return{allWebIds:d,currentStorageWebIds:[]};if(Fr(i.provisionCode)){const x=await Vu(fetch,d,i.provisionCode);return{allWebIds:d,currentStorageWebIds:(x??[]).map(p=>p.webId)}}const y=await Ax(fetch,d,Tx(window.location.origin));return{allWebIds:d,currentStorageWebIds:y.map(x=>x.webId)}}function hb(i,c,r){return i.length>0?i:r?[]:c?[c]:[]}function mb(i,c){return i?.oidc?.cancel||`${c}oidc/cancel`}async function yb(i){const c=i.fetchImpl??fetch,r=i.timeoutMs??15e3,s=r>0?new AbortController:null;let d;s&&(d=setTimeout(()=>s.abort(),r));try{const h=await c(i.cancelUrl,{method:"POST",headers:i.headers,credentials:"include",body:JSON.stringify({}),signal:s?.signal});return await pb(h)}catch(h){throw gb(h,"AbortError")?new Error("Authorization cancellation timed out. Please close this tab and retry login."):h}finally{d&&clearTimeout(d)}}async function pb(i){const c=await i.json().catch(()=>null);if(!i.ok)throw new Error(Bu(c)||`Authorization cancellation failed (${i.status}).`);const r=Zu(c)&&typeof c.location=="string"?c.location.trim():"",s=i.headers.get("Location")?.trim()||"",d=r||s;if(!d)throw new Error("Authorization cancellation did not return a redirect URL.");return d}function gb(i,c){return Zu(i)&&i.name===c}function vb(){const{idpIndex:i,isLoggedIn:c,controls:r}=kt(),s=ea(),[d,h]=S.useState(!0),[y,x]=S.useState(null),[p,g]=S.useState(null),[C,z]=S.useState([]),[B,Y]=S.useState(""),[Q,O]=S.useState(null),[L,X]=S.useState(null),[W,F]=S.useState(!0),[le,ne]=S.useState(()=>un()),[te,Z]=S.useState(!1),[re,ze]=S.useState(!1),Se=`${i}oidc/consent/`,He=`${i}oidc/pick-webid/`,_e=mb(r,i),qe=S.useCallback(async()=>{const v=await Vr(fetch,le);ne(v);const R=await fetch(Se,{headers:Le(),credentials:"include"});if(console.log("[Consent] GET consent response status:",R.status),R.status===401||R.status===403)return O("Please sign in to continue authorization."),[];if(!R.ok){const k=await R.json().catch(()=>({}));throw new Error(Bu(k)||"Failed to load consent info")}const H=await R.json().catch(()=>({}));x(H.client||{}),g(H.webId||null);const q=await fetch(He,{headers:Le(),credentials:"include"});if(!q.ok)return z([]),Y(""),[];const K=await q.json().catch(()=>({})),I=Array.isArray(K.webIds)?K.webIds.filter(k=>typeof k=="string"&&k.length>0):[],ie=v?await Vu(fetch,I,v):void 0,fe=ie?ie.map(k=>k.webId):I;return z(fe),H.webId&&fe.includes(H.webId)?Y(H.webId):fe.length>0?Y(fe[0]):Y(""),fe},[Se,He,le]);S.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),ci(window.location.href),(async()=>{try{await qe()}catch(v){O(pl(v,"Failed to load consent info"))}finally{h(!1)}})()},[qe]);const De=v=>{try{const R=new URL(v),H=R.pathname.split("/").filter(Boolean);return{provider:R.host,podId:H[0]??"-",full:v}}catch{return{provider:"-",podId:"-",full:v}}},Ee=async v=>{try{await navigator.clipboard.writeText(v),X(v),setTimeout(()=>X(null),1200)}catch{X(null)}},D=async()=>{try{r?.account?.logout&&await fetch(r.account.logout,{method:"POST",headers:Le(),credentials:"include"}),Yr(),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},G=async v=>{if(console.log("[Consent] handleConsent called, allow:",v),!v){await J();return}try{if(Z(!0),O(null),B&&B!==p){console.log("[Consent] Picking WebID:",B);const I=await fetch(He,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:B,remember:!1})}),ie=await I.json().catch(()=>({}));if(!I.ok)throw new Error(ie.message||"Failed to select WebID");ie.location&&await fetch(ie.location,{credentials:"include"})}const R=await fetch(Se,{method:"POST",headers:Le({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({remember:W})}),H=await R.json().catch(()=>({}));if(console.log("[Consent] Response:",R.status,H),console.log("[Consent] Location header:",R.headers.get("Location")),!R.ok)throw new Error(H.message||"Consent failed");const q=R.headers.get("Location"),K=H.location||q;console.log("[Consent] Redirect URL:",K),K?window.location.href=K:(O("Authorization completed but no redirect URL received. The application may need to restart the login flow."),h(!1))}catch(R){O(pl(R,"Consent failed"))}finally{Z(!1)}},J=async()=>{console.log("[Consent] Cancelling...");try{ze(!0),O(null);const v=await yb({cancelUrl:_e,headers:Le({"Content-Type":"application/json",Accept:"application/json"})});window.location.href=v}catch(v){O(pl(v,"Authorization cancellation failed"))}finally{ze(!1)}},ae=hb(C,p,!!le),oe=te||re;return f.jsxs(on,{title:"Authorize",subtitle:`${y?.client_name||"Application"} requests access`,icon:ri,children:[!c&&f.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[f.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),f.jsx("button",{onClick:()=>{ci(window.location.href),s("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),Q&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(Gr,{className:"w-4 h-4 inline mr-2"}),Q]}),d?f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(gl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):f.jsxs("div",{className:"space-y-4",children:[(y?.client_uri||y?.client_id)&&f.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[y?.client_uri&&f.jsx("div",{children:f.jsx("a",{href:y.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:y.client_uri})}),y?.client_id&&f.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:y.client_id,children:["ID: ",y.client_id]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),ae.length>0&&f.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",f.jsx("span",{className:"text-zinc-600",children:De(ae[0]).provider})]})]}),ae.length===0?f.jsx(m0,{createPodUrl:r?.account?.pod,headers:Le(),onCreated:async v=>{if(v.length===0){await qe(),O("Storage was created. Click Refresh authorization when the WebID is ready.");return}z(v),Y(v[0]||"")},onError:O,pickWebIdUrl:He,provisionCode:le,webIdCandidates:[p]}):f.jsx("div",{className:"space-y-1",children:ae.map(v=>{const R=De(v);return f.jsxs("label",{className:ln("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",B===v?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[f.jsx("input",{type:"radio",name:"webId",value:v,checked:B===v,onChange:H=>Y(H.target.value),className:"text-[#7C4DFF]"}),f.jsx("div",{className:"min-w-0 flex-1",children:f.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:R.full,children:R.podId})}),f.jsx("button",{type:"button",onClick:H=>{H.preventDefault(),Ee(v)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:L===v?"Copied":"Copy"})]},v)})})]}),f.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:W,onChange:v=>F(v.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),f.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[f.jsx("button",{onClick:()=>G(!1),disabled:oe,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:re?"Denying...":"Deny"}),f.jsx("button",{onClick:()=>G(!0),disabled:oe||ae.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:te?"Authorizing...":"Authorize"})]}),f.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[f.jsx("button",{type:"button",onClick:()=>{ci(window.location.href),s("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),f.jsx("button",{type:"button",onClick:D,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function xb(){const{controls:i,isLoggedIn:c}=kt(),r=ea(),[s,d]=S.useState(!1),[h,y]=S.useState(!1);if(c)return f.jsx(wa,{to:"/.account/account/",replace:!0});const x=async p=>{p.preventDefault(),d(!0);const g=new FormData(p.currentTarget).get("email");try{await fetch(i?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:g})}),y(!0)}catch{alert("Failed to send reset email")}finally{d(!1)}};return f.jsx(on,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:zr,showBack:!0,onBack:()=>r("/.account/login/password/"),children:h?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx($a,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),f.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),f.jsx("button",{onClick:()=>y(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):f.jsxs("form",{className:"space-y-4",onSubmit:x,children:[f.jsxs("div",{className:"relative",children:[f.jsx(zr,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),f.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:s?f.jsx(gl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Send Reset Link ",f.jsx(Qu,{className:"h-4 w-4"})]})})]})})}function bb(){const{controls:i,isLoggedIn:c}=kt(),r=ea(),[s]=jv(),[d,h]=S.useState(!1),[y,x]=S.useState(!1),[p,g]=S.useState(null),[C,z]=S.useState(""),[B,Y]=S.useState(""),Q=s.get("rid"),O=C.length>0&&B.length>0&&C===B;if(c)return f.jsx(wa,{to:"/.account/account/",replace:!0});if(!Q)return f.jsx(wa,{to:"/.account/login/password/forgot/",replace:!0});const L=async X=>{if(X.preventDefault(),!O){g("Passwords do not match");return}h(!0),g(null);try{const W=i?.password?.reset||"/.account/login/password/reset/",F=await fetch(W,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:Q,password:C})});if(F.ok)x(!0);else{const le=await F.json().catch(()=>({}));g(le.message||"Failed to reset password")}}catch{g("Network error")}finally{h(!1)}};return f.jsx(on,{title:"Reset Password",subtitle:"Enter your new password.",icon:ui,children:y?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx($a,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),f.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):f.jsxs("form",{className:"space-y-4",onSubmit:L,children:[p&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:p}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx(ui,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:C,onChange:X=>z(X.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),f.jsxs("div",{className:"relative",children:[O?f.jsx($a,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(ui,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:B,onChange:X=>Y(X.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${O?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),f.jsx("button",{type:"submit",disabled:d||!O,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:d?f.jsx(gl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Reset Password ",f.jsx(Qu,{className:"h-4 w-4"})]})}),f.jsx("div",{className:"text-center",children:f.jsx("button",{type:"button",onClick:()=>r("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function Sb(){const{controls:i,isLoggedIn:c}=kt(),[r,s]=S.useState([]),[d,h]=S.useState(!0);return S.useEffect(()=>{if(c){window.location.href="/.account/account/";return}(async()=>{try{if(i?.main?.logins){const x=await(await fetch(i.main.logins,{headers:Le(),credentials:"include"})).json(),p=Object.entries(x.logins||{});if(p.length===1){window.location.href=p[0][1];return}if(p.length===0){window.location.href="/.account/login/password/";return}s(p)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=i?.html?.password?.login||"/.account/login/password/"}finally{h(!1)}})()},[i,c]),d?f.jsx(l0,{}):f.jsx(on,{title:"Select Login Method",children:f.jsx("div",{className:"space-y-2",children:r.map(([y,x])=>f.jsx("a",{href:x,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:y},y))})})}var y0={"chatkit.error":"onError","chatkit.history.close":"onHistoryClose","chatkit.history.open":"onHistoryOpen","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect","chatkit.deeplink":"onDeeplink"},wb=Object.keys(y0),jb=S.forwardRef(function({control:c,...r},s){const d=S.useRef(null);return S.useLayoutEffect(()=>{const h=d.current;if(!h)return;if(customElements.get("openai-chatkit")){h.setOptions(c.options);return}let y=!0;return customElements.whenDefined("openai-chatkit").then(()=>{y&&h.setOptions(c.options)}),()=>{y=!1}},[c.options]),S.useEffect(()=>{const h=d.current;if(!h)return;const y=new AbortController;for(const x of wb)h.addEventListener(x,p=>{const g=y0[x],C=c.handlers[g];typeof C=="function"&&C(p.detail)},{signal:y.signal});return()=>{y.abort()}},[c.handlers]),f.jsx("openai-chatkit",{ref:h=>{d.current=h,c.setInstance(h),typeof s=="function"?s(h):s&&(s.current=h),d.current},...r})});function Nm(i){return i!==null&&typeof i=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(i))||Array.isArray(i)}function Ar(i,c,r=new WeakMap){if(Object.is(i,c))return!0;if(typeof i=="function"&&typeof c=="function")return typeof i==typeof c;if(!Nm(i)||!Nm(c))return!1;const s=r.get(i);if(s&&s===c)return!0;if(r.set(i,c),Array.isArray(i)||Array.isArray(c)){if(!Array.isArray(i)||!Array.isArray(c)||i.length!==c.length)return!1;for(let y=0;y<i.length;y++)if(!Ar(i[y],c[y],r))return!1;return!0}const d=Object.keys(i),h=Object.keys(c);if(d.length!==h.length)return!1;for(let y=0;y<d.length;y++){const x=d[y];if(!Object.prototype.hasOwnProperty.call(c,x))return!1;const p=i[x],g=c[x];if(!Ar(p,g,r))return!1}return!0}function zb(i){const c=[],r=(h,y)=>y.reduce((x,p)=>x==null?x:x[p],h),s=(h,y)=>(...x)=>{const p=r(i.current,h),g=p?.[y];if(typeof g=="function")return g.apply(p,x)},d=h=>{if(typeof h=="function"){const y=c[c.length-1],x=c.slice(0,-1);return s(x,y)}if(Array.isArray(h)){const y=c.length,x=new Array(h.length);for(let p=0;p<h.length;p++)c[y]=p,x[p]=d(h[p]);return c.length=y,x}if(h&&typeof h=="object"){const y=c.length,x={};for(const p of Object.keys(h))c[y]=p,x[p]=d(h[p]);return c.length=y,x}return h};return d(i.current)}function Eb(i){const c=br.useRef(i);c.current=i;const r=br.useRef(null);return(!r.current||!Ar(r.current.snapshot,i))&&(r.current={snapshot:i,shaped:zb(c)}),r.current.shaped}var Nb=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function Cb(i){const c=S.useRef(null),r=Eb(i),s=S.useMemo(()=>Nb.reduce((y,x)=>(y[x]=(...p)=>{if(!c.current){console.warn("ChatKit element is not mounted");return}return c.current[x](...p)},y),{}),[]),d=S.useCallback(y=>{c.current=y},[]),h=S.useMemo(()=>{const y={},x={};for(const[p,g]of Object.entries(r))/^on[A-Z]/.test(p)&&p!=="onClientTool"?x[p]=g:y[p]=g;return{setInstance:d,options:y,handlers:x}},[r,d]);return S.useMemo(()=>({...s,control:h,ref:c}),[s,h])}const Cm="http://localhost:3000/chatkit",Am="domain_pk_localhost_dev";function Ab(){const{isLoggedIn:i}=kt(),[c,r]=S.useState(""),[s,d]=S.useState(!1),h=S.useCallback(async(x,p={})=>{const g={...p.headers||{}};return c?g.Authorization=`Bearer ${c}`:Object.assign(g,Le(g)),fetch(x,{...p,headers:g,credentials:"include"})},[c]),y=Cb({api:{url:Cm,domainKey:Am,fetch:h},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return f.jsxs("div",{className:"min-h-screen bg-gray-50",children:[f.jsxs("header",{className:"bg-white shadow-sm border-b",children:[f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:f.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),f.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("button",{onClick:()=>d(!s),className:"text-sm text-gray-500 hover:text-gray-700",children:c?"🔑 API Key Set":"Set API Key"}),f.jsx("div",{className:"text-sm text-gray-500",children:i?f.jsx("span",{className:"text-green-600",children:"● Logged in"}):f.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),s&&f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:c,onChange:x=>r(x.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("button",{onClick:()=>d(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),f.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),f.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[f.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:f.jsx(jb,{control:y.control,style:{width:"100%",height:"100%"}})}),f.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[f.jsxs("p",{children:[f.jsx("strong",{children:"API URL:"})," ",Cm]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Domain Key:"})," ",Am]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Auth:"})," ",c?"API Key":i?"Session":"None"]})]})]})]})}function Tb(){const{isInitializing:i,initError:c}=kt();return i?f.jsx(l0,{}):c?f.jsx(px,{message:c}):f.jsxs(Kg,{children:[f.jsx(Nt,{path:"/.account/",element:f.jsx(Yx,{})}),f.jsx(Nt,{path:"/.account/about/",element:f.jsx(Gx,{})}),f.jsx(Nt,{path:"/.account/account/",element:f.jsx(vm,{allowOidcPending:!0,children:f.jsx(lb,{})})}),f.jsx(Nt,{path:"/.account/create-pod/",element:f.jsx(vm,{allowOidcPending:!0,children:f.jsx(fb,{})})}),f.jsx(Nt,{path:"/chat/",element:f.jsx(Ab,{})}),f.jsx(Nt,{path:"/.account/login/",element:f.jsx(Sb,{})}),f.jsx(Nt,{path:"/.account/login/password/",element:f.jsx(Nr,{initialIsRegister:!1})}),f.jsx(Nt,{path:"/.account/login/password/register/",element:f.jsx(Nr,{initialIsRegister:!0})}),f.jsx(Nt,{path:"/.account/login/password/forgot/",element:f.jsx(xb,{})}),f.jsx(Nt,{path:"/.account/login/password/reset/",element:f.jsx(bb,{})}),f.jsx(Nt,{path:"/.account/oidc/consent/",element:f.jsx(vb,{})}),f.jsx(Nt,{path:"*",element:f.jsx(wa,{to:"/.account/",replace:!0})})]})}function Rb(){return f.jsx(vv,{children:f.jsx(Bv,{children:f.jsx(Tb,{})})})}try{const i=new URLSearchParams(location.search).get("provisionCode");i&&sessionStorage.setItem("provisionCode",i)}catch{}Fp.createRoot(document.getElementById("root")).render(f.jsx(br.StrictMode,{children:f.jsx(Rb,{})}));
11
+ Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let C=qt(),z;if(c){let L=typeof c=="string"?sn(c):c;He(p==="/"||L.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${L.pathname}" was given in the \`location\` prop.`),z=L}else z=C;let B=z.pathname||"/",k=B;if(p!=="/"){let L=p.replace(/^\//,"").split("/");k="/"+B.replace(/^\//,"").split("/").slice(L.length).join("/")}let X=r&&r.state.matches.length?r.state.matches.map(L=>Object.assign(L,{route:r.manifest[L.route.id]||L.route})):Rm(i,{pathname:k});kt(g||X!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),kt(X==null||X[X.length-1].route.element!==void 0||X[X.length-1].route.Component!==void 0||X[X.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=Hg(X&&X.map(L=>Object.assign({},L,{params:Object.assign({},y,L.params),pathname:Zt([p,s.encodeLocation?s.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?p:Zt([p,s.encodeLocation?s.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),d,r);return c&&O?S.createElement(fi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...z},navigationType:"POP"}},O):O}function Og(){let i=Xg(),c=xg(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,s="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:s},h={padding:"2px 4px",backgroundColor:s},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:h},"ErrorBoundary")," or"," ",S.createElement("code",{style:h},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},c),r?S.createElement("pre",{style:d},r):null,y)}var Mg=S.createElement(Og,null),Zm=class extends S.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,c){return c.location!==i.location||c.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:c.error,location:c.location,revalidation:i.revalidation||c.revalidation}}componentDidCatch(i,c){this.props.onError?this.props.onError(i,c):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const r=Rg(i.digest);r&&(i=r)}let c=i!==void 0?S.createElement(ea.Provider,{value:this.props.routeContext},S.createElement(_r.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?S.createElement(Lg,{error:i},c):c}};Zm.contextType=km;var mr=new WeakMap;function Lg({children:i,error:c}){let{basename:r}=S.useContext(Ct);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let s=Tg(c.digest);if(s){let d=mr.get(c);if(d)throw d;let h=Bm(s.location,r),y=h.absoluteURL||h.to;if(jg(y))throw new Error("Invalid redirect location");if(Lm&&!mr.get(c))if(h.isExternal||s.reloadDocument)window.location.href=y;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:s.replace}));throw mr.set(c,x),x}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y}`})}}return i}function Bg({routeContext:i,match:c,children:r}){let s=S.useContext(rn);return s&&s.static&&s.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=c.route.id),S.createElement(ea.Provider,{value:i},r)}function Hg(i,c=[],r){let s=r?.state;if(i==null){if(!s)return null;if(s.errors)i=s.matches;else if(c.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let d=i,h=s?.errors;if(h!=null){let C=d.findIndex(z=>z.route.id&&h?.[z.route.id]!==void 0);He(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,C+1))}let y=!1,x=-1;if(r&&s){y=s.renderFallback;for(let C=0;C<d.length;C++){let z=d[C];if((z.route.HydrateFallback||z.route.hydrateFallbackElement)&&(x=C),z.route.id){let{loaderData:B,errors:k}=s,X=z.route.loader&&!B.hasOwnProperty(z.route.id)&&(!k||k[z.route.id]===void 0);if(z.route.lazy||X){r.isStatic&&(y=!0),x>=0?d=d.slice(0,x+1):d=[d[0]];break}}}}let p=r?.onError,g=s&&p?(C,z)=>{p(C,{location:s.location,params:s.matches?.[0]?.params??{},pattern:bg(s.matches),errorInfo:z})}:void 0;return d.reduceRight((C,z,B)=>{let k,X=!1,O=null,L=null;s&&(k=h&&z.route.id?h[z.route.id]:void 0,O=z.route.errorElement||Mg,y&&(x<0&&B===0?(Vm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),X=!0,L=null):x===B&&(X=!0,L=z.route.hydrateFallbackElement||null)));let G=c.concat(d.slice(0,B+1)),I=()=>{let F;return k?F=O:X?F=L:z.route.Component?F=S.createElement(z.route.Component,null):z.route.element?F=z.route.element:F=C,S.createElement(Bg,{match:z,routeContext:{outlet:C,matches:G,isDataRoute:s!=null},children:F})};return s&&(z.route.ErrorBoundary||z.route.errorElement||B===0)?S.createElement(Zm,{location:s.location,revalidation:s.revalidation,component:O,error:k,children:I(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:g}):I()},null)}function Ur(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kg(i){let c=S.useContext(rn);return He(c,Ur(i)),c}function qg(i){let c=S.useContext(Gu);return He(c,Ur(i)),c}function Yg(i){let c=S.useContext(ea);return He(c,Ur(i)),c}function Or(i){let c=Yg(i),r=c.matches[c.matches.length-1];return He(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function Gg(){return Or("useRouteId")}function Xg(){let i=S.useContext(_r),c=qg("useRouteError"),r=Or("useRouteError");return i!==void 0?i:c.errors?.[r]}function Qg(){let{router:i}=kg("useNavigate"),c=Or("useNavigate"),r=S.useRef(!1);return Xm(()=>{r.current=!0}),S.useCallback(async(d,h={})=>{kt(r.current,Gm),r.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:c,...h}))},[i,c])}var hm={};function Vm(i,c,r){!c&&!hm[i]&&(hm[i]=!0,kt(!1,r))}S.memo(Zg);function Zg({routes:i,manifest:c,future:r,state:s,isStatic:d,onError:h}){return Qm(i,void 0,{manifest:c,state:s,isStatic:d,onError:h})}function ja({to:i,replace:c,state:r,relative:s}){He(on(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=S.useContext(Ct);kt(!d,"<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:h}=S.useContext(ea),{pathname:y}=qt(),x=ta(),p=Yu(i,Dr(h),y,s==="path"),g=JSON.stringify(p);return S.useEffect(()=>{x(JSON.parse(g),{replace:c,state:r,relative:s})},[x,g,s,c,r]),null}function Nt(i){He(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Vg({basename:i="/",children:c=null,location:r,navigationType:s="POP",navigator:d,static:h=!1,useTransitions:y}){He(!on(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=i.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:x,navigator:d,static:h,useTransitions:y,future:{}}),[x,d,h,y]);typeof r=="string"&&(r=sn(r));let{pathname:g="/",search:C="",hash:z="",state:B=null,key:k="default",mask:X}=r,O=S.useMemo(()=>{let L=wa(g,x);return L==null?null:{location:{pathname:L,search:C,hash:z,state:B,key:k,mask:X},navigationType:s}},[x,g,C,z,B,k,s,X]);return kt(O!=null,`<Router basename="${x}"> is not able to match the URL "${g}${C}${z}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:S.createElement(Ct.Provider,{value:p},S.createElement(fi.Provider,{children:c,value:O}))}function Kg({children:i,location:c}){return Ug(wr(i),c)}function wr(i,c=[]){let r=[];return S.Children.forEach(i,(s,d)=>{if(!S.isValidElement(s))return;let h=[...c,d];if(s.type===S.Fragment){r.push.apply(r,wr(s.props.children,h));return}He(s.type===Nt,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),He(!s.props.index||!s.props.children,"An index route cannot have child routes.");let y={id:s.props.id||h.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(y.children=wr(s.props.children,h)),r.push(y)}),r}var _u="get",Uu="application/x-www-form-urlencoded";function Xu(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Fg(i){return Xu(i)&&i.tagName.toLowerCase()==="button"}function Jg(i){return Xu(i)&&i.tagName.toLowerCase()==="form"}function $g(i){return Xu(i)&&i.tagName.toLowerCase()==="input"}function Wg(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Ig(i,c){return i.button===0&&(!c||c==="_self")&&!Wg(i)}function jr(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((c,r)=>{let s=i[r];return c.concat(Array.isArray(s)?s.map(d=>[r,d]):[[r,s]])},[]))}function Pg(i,c){let r=jr(i);return c&&c.forEach((s,d)=>{r.has(d)||c.getAll(d).forEach(h=>{r.append(d,h)})}),r}var Ru=null;function ev(){if(Ru===null)try{new FormData(document.createElement("form"),0),Ru=!1}catch{Ru=!0}return Ru}var tv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yr(i){return i!=null&&!tv.has(i)?(kt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Uu}"`),null):i}function av(i,c){let r,s,d,h,y;if(Jg(i)){let x=i.getAttribute("action");s=x?wa(x,c):null,r=i.getAttribute("method")||_u,d=yr(i.getAttribute("enctype"))||Uu,h=new FormData(i)}else if(Fg(i)||$g(i)&&(i.type==="submit"||i.type==="image")){let x=i.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=i.getAttribute("formaction")||x.getAttribute("action");if(s=p?wa(p,c):null,r=i.getAttribute("formmethod")||x.getAttribute("method")||_u,d=yr(i.getAttribute("formenctype"))||yr(x.getAttribute("enctype"))||Uu,h=new FormData(x,i),!ev()){let{name:g,type:C,value:z}=i;if(C==="image"){let B=g?`${g}.`:"";h.append(`${B}x`,"0"),h.append(`${B}y`,"0")}else g&&h.append(g,z)}}else{if(Xu(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=_u,s=null,d=Uu,y=i}return h&&d==="text/plain"&&(y=h,h=void 0),{action:s,method:r.toLowerCase(),encType:d,formData:h,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Mr(i,c){if(i===!1||i===null||typeof i>"u")throw new Error(c)}function Km(i,c,r,s){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${s}`:d.pathname=`${d.pathname}.${s}`:d.pathname==="/"?d.pathname=`_root.${s}`:c&&wa(d.pathname,c)==="/"?d.pathname=`${Mu(c)}/_root.${s}`:d.pathname=`${Mu(d.pathname)}.${s}`,d}async function lv(i,c){if(i.id in c)return c[i.id];try{let r=await import(i.module);return c[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function nv(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function iv(i,c,r){let s=await Promise.all(i.map(async d=>{let h=c.routes[d.route.id];if(h){let y=await lv(h,r);return y.links?y.links():[]}return[]}));return rv(s.flat(1).filter(nv).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function mm(i,c,r,s,d,h){let y=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,x=(p,g)=>r[g].pathname!==p.pathname||r[g].route.path?.endsWith("*")&&r[g].params["*"]!==p.params["*"];return h==="assets"?c.filter((p,g)=>y(p,g)||x(p,g)):h==="data"?c.filter((p,g)=>{let C=s.routes[p.route.id];if(!C||!C.hasLoader)return!1;if(y(p,g)||x(p,g))return!0;if(p.route.shouldRevalidate){let z=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function uv(i,c,{includeHydrateFallback:r}={}){return cv(i.map(s=>{let d=c.routes[s.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function cv(i){return[...new Set(i)]}function sv(i){let c={},r=Object.keys(i).sort();for(let s of r)c[s]=i[s];return c}function rv(i,c){let r=new Set;return new Set(c),i.reduce((s,d)=>{let h=JSON.stringify(sv(d));return r.has(h)||(r.add(h),s.push({key:h,link:d})),s},[])}function Lr(){let i=S.useContext(rn);return Mr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function ov(){let i=S.useContext(Gu);return Mr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Br=S.createContext(void 0);Br.displayName="FrameworkContext";function Qu(){let i=S.useContext(Br);return Mr(i,"You must render this element inside a <HydratedRouter> element"),i}function fv(i,c){let r=S.useContext(Br),[s,d]=S.useState(!1),[h,y]=S.useState(!1),{onFocus:x,onBlur:p,onMouseEnter:g,onMouseLeave:C,onTouchStart:z}=c,B=S.useRef(null);S.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let O=G=>{G.forEach(I=>{y(I.isIntersecting)})},L=new IntersectionObserver(O,{threshold:.5});return B.current&&L.observe(B.current),()=>{L.disconnect()}}},[i]),S.useEffect(()=>{if(s){let O=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(O)}}},[s]);let k=()=>{d(!0)},X=()=>{d(!1),y(!1)};return r?i!=="intent"?[h,B,{}]:[h,B,{onFocus:ui(x,k),onBlur:ui(p,X),onMouseEnter:ui(g,k),onMouseLeave:ui(C,X),onTouchStart:ui(z,k)}]:[!1,B,{}]}function ui(i,c){return r=>{i&&i(r),r.defaultPrevented||c(r)}}function dv({page:i,...c}){let r=zg(),{nonce:s}=Qu(),{router:d}=Lr(),h=S.useMemo(()=>Rm(d.routes,i,d.basename),[d.routes,i,d.basename]);return h?(c.nonce==null&&s&&(c={...c,nonce:s}),r?S.createElement(mv,{page:i,matches:h,...c}):S.createElement(yv,{page:i,matches:h,...c})):null}function hv(i){let{manifest:c,routeModules:r}=Qu(),[s,d]=S.useState([]);return S.useEffect(()=>{let h=!1;return iv(i,c,r).then(y=>{h||d(y)}),()=>{h=!0}},[i,c,r]),s}function mv({page:i,matches:c,...r}){let s=qt(),{future:d}=Qu(),{basename:h}=Lr(),y=S.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let x=Km(i,h,d.v8_trailingSlashAwareDataRequests,"rsc"),p=!1,g=[];for(let C of c)typeof C.route.shouldRevalidate=="function"?p=!0:g.push(C.route.id);return p&&g.length>0&&x.searchParams.set("_routes",g.join(",")),[x.pathname+x.search]},[h,d.v8_trailingSlashAwareDataRequests,i,s,c]);return S.createElement(S.Fragment,null,y.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...r})))}function yv({page:i,matches:c,...r}){let s=qt(),{future:d,manifest:h,routeModules:y}=Qu(),{basename:x}=Lr(),{loaderData:p,matches:g}=ov(),C=S.useMemo(()=>mm(i,c,g,h,s,"data"),[i,c,g,h,s]),z=S.useMemo(()=>mm(i,c,g,h,s,"assets"),[i,c,g,h,s]),B=S.useMemo(()=>{if(i===s.pathname+s.search+s.hash)return[];let O=new Set,L=!1;if(c.forEach(I=>{let F=h.routes[I.route.id];!F||!F.hasLoader||(!C.some(ce=>ce.route.id===I.route.id)&&I.route.id in p&&y[I.route.id]?.shouldRevalidate||F.hasClientLoader?L=!0:O.add(I.route.id))}),O.size===0)return[];let G=Km(i,x,d.v8_trailingSlashAwareDataRequests,"data");return L&&O.size>0&&G.searchParams.set("_routes",c.filter(I=>O.has(I.route.id)).map(I=>I.route.id).join(",")),[G.pathname+G.search]},[x,d.v8_trailingSlashAwareDataRequests,p,s,h,C,c,i,y]),k=S.useMemo(()=>uv(z,h),[z,h]),X=hv(z);return S.createElement(S.Fragment,null,B.map(O=>S.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...r})),k.map(O=>S.createElement("link",{key:O,rel:"modulepreload",href:O,...r})),X.map(({key:O,link:L})=>S.createElement("link",{key:O,nonce:r.nonce,...L,crossOrigin:L.crossOrigin??r.crossOrigin})))}function pv(...i){return c=>{i.forEach(r=>{typeof r=="function"?r(c):r!=null&&(r.current=c)})}}var gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gv&&(window.__reactRouterVersion="7.18.2")}catch{}function vv({basename:i,children:c,useTransitions:r,window:s}){let d=S.useRef();d.current==null&&(d.current=$p({window:s,v5Compat:!0}));let h=d.current,[y,x]=S.useState({action:h.action,location:h.location}),p=S.useCallback(g=>{r===!1?x(g):S.startTransition(()=>x(g))},[r]);return S.useLayoutEffect(()=>h.listen(p),[h,p]),S.createElement(Vg,{basename:i,children:c,location:y.location,navigationType:y.action,navigator:h,useTransitions:r})}var Lu=S.forwardRef(function({onClick:c,discover:r="render",prefetch:s="none",relative:d,reloadDocument:h,replace:y,mask:x,state:p,target:g,to:C,preventScrollReset:z,viewTransition:B,defaultShouldRevalidate:k,...X},O){let{basename:L,navigator:G,useTransitions:I}=S.useContext(Ct),F=typeof C=="string"&&Rr.test(C),ce=Bm(C,L);C=ce.to;let ne=Dg(C,{relative:d}),ae=qt(),V=null;if(x){let Ne=Yu(x,[],ae.mask?ae.mask.pathname:"/",!0);L!=="/"&&(Ne.pathname=Ne.pathname==="/"?L:Zt([L,Ne.pathname])),V=G.createHref(Ne)}let[re,Ee,be]=fv(s,X),ke=wv(C,{replace:y,mask:x,state:p,target:g,preventScrollReset:z,relative:d,viewTransition:B,defaultShouldRevalidate:k,useTransitions:I});function Ue(Ne){c&&c(Ne),Ne.defaultPrevented||ke(Ne)}let qe=!(ce.isExternal||h),_e=S.createElement("a",{...X,...be,href:(qe?V:void 0)||ce.absoluteURL||ne,onClick:qe?Ue:c,ref:pv(O,Ee),target:g,"data-discover":!F&&r==="render"?"true":void 0});return re&&!F?S.createElement(S.Fragment,null,_e,S.createElement(dv,{page:ne})):_e});Lu.displayName="Link";var xv=S.forwardRef(function({"aria-current":c="page",caseSensitive:r=!1,className:s="",end:d=!1,style:h,to:y,viewTransition:x,children:p,...g},C){let z=di(y,{relative:g.relative}),B=qt(),k=S.useContext(Gu),{navigator:X,basename:O}=S.useContext(Ct),L=k!=null&&Av(z)&&x===!0,G=X.encodeLocation?X.encodeLocation(z).pathname:z.pathname,I=B.pathname,F=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;r||(I=I.toLowerCase(),F=F?F.toLowerCase():null,G=G.toLowerCase()),F&&O&&(F=wa(F,O)||F);const ce=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let ne=I===G||!d&&I.startsWith(G)&&I.charAt(ce)==="/",ae=F!=null&&(F===G||!d&&F.startsWith(G)&&F.charAt(G.length)==="/"),V={isActive:ne,isPending:ae,isTransitioning:L},re=ne?c:void 0,Ee;typeof s=="function"?Ee=s(V):Ee=[s,ne?"active":null,ae?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let be=typeof h=="function"?h(V):h;return S.createElement(Lu,{...g,"aria-current":re,className:Ee,ref:C,style:be,to:y,viewTransition:x},typeof p=="function"?p(V):p)});xv.displayName="NavLink";var bv=S.forwardRef(({discover:i="render",fetcherKey:c,navigate:r,reloadDocument:s,replace:d,state:h,method:y=_u,action:x,onSubmit:p,relative:g,preventScrollReset:C,viewTransition:z,defaultShouldRevalidate:B,...k},X)=>{let{useTransitions:O}=S.useContext(Ct),L=Nv(),G=Cv(x,{relative:g}),I=y.toLowerCase()==="get"?"get":"post",F=typeof x=="string"&&Rr.test(x),ce=ne=>{if(p&&p(ne),ne.defaultPrevented)return;ne.preventDefault();let ae=ne.nativeEvent.submitter,V=ae?.getAttribute("formmethod")||y,re=()=>L(ae||ne.currentTarget,{fetcherKey:c,method:V,navigate:r,replace:d,state:h,relative:g,preventScrollReset:C,viewTransition:z,defaultShouldRevalidate:B});O&&r!==!1?S.startTransition(()=>re()):re()};return S.createElement("form",{ref:X,method:I,action:G,onSubmit:s?p:ce,...k,"data-discover":!F&&i==="render"?"true":void 0})});bv.displayName="Form";function Sv(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fm(i){let c=S.useContext(rn);return He(c,Sv(i)),c}function wv(i,{target:c,replace:r,mask:s,state:d,preventScrollReset:h,relative:y,viewTransition:x,defaultShouldRevalidate:p,useTransitions:g}={}){let C=ta(),z=qt(),B=di(i,{relative:y});return S.useCallback(k=>{if(Ig(k,c)){k.preventDefault();let X=r!==void 0?r:ri(z)===ri(B),O=()=>C(i,{replace:X,mask:s,state:d,preventScrollReset:h,relative:y,viewTransition:x,defaultShouldRevalidate:p});g?S.startTransition(()=>O()):O()}},[z,C,B,r,s,d,c,i,h,y,x,p,g])}function jv(i){kt(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 c=S.useRef(jr(i)),r=S.useRef(!1),s=qt(),d=S.useMemo(()=>Pg(s.search,r.current?null:c.current),[s.search]),h=ta(),y=S.useCallback((x,p)=>{const g=jr(typeof x=="function"?x(new URLSearchParams(d)):x);r.current=!0,h("?"+g,p)},[h,d]);return[d,y]}var zv=0,Ev=()=>`__${String(++zv)}__`;function Nv(){let{router:i}=Fm("useSubmit"),{basename:c}=S.useContext(Ct),r=Gg(),s=i.fetch,d=i.navigate;return S.useCallback(async(h,y={})=>{let{action:x,method:p,encType:g,formData:C,body:z}=av(h,c);if(y.navigate===!1){let B=y.fetcherKey||Ev();await s(B,r,y.action||x,{defaultShouldRevalidate:y.defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:C,body:z,formMethod:y.method||p,formEncType:y.encType||g,flushSync:y.flushSync})}else await d(y.action||x,{defaultShouldRevalidate:y.defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:C,body:z,formMethod:y.method||p,formEncType:y.encType||g,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[s,d,c,r])}function Cv(i,{relative:c}={}){let{basename:r}=S.useContext(Ct),s=S.useContext(ea);He(s,"useFormAction must be used inside a RouteContext");let[d]=s.matches.slice(-1),h={...di(i||".",{relative:c})},y=qt();if(i==null){h.search=y.search;let x=new URLSearchParams(h.search),p=x.getAll("index");if(p.some(C=>C==="")){x.delete("index"),p.filter(z=>z).forEach(z=>x.append("index",z));let C=x.toString();h.search=C?`?${C}`:""}}return(!i||i===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(h.pathname=h.pathname==="/"?r:Zt([r,h.pathname])),ri(h)}function Av(i,{relative:c}={}){let r=S.useContext(qm);He(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Fm("useViewTransitionState"),d=di(i,{relative:c});if(!r.isTransitioning)return!1;let h=wa(r.currentLocation.pathname,s)||r.currentLocation.pathname,y=wa(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Ou(d.pathname,y)!=null||Ou(d.pathname,h)!=null}const Hr="css-account",kr="xpod.cssAccountToken",Tv="CSS-Account-Token";function qr(){return typeof window<"u"&&typeof document<"u"}function Rv(){if(!qr())return;const i=document.cookie.split(";");for(const c of i){const[r,...s]=c.trim().split("=");if(r===Hr){const d=s.join("=");try{return d?decodeURIComponent(d):void 0}catch{return}}}}function Jm(i){qr()&&(document.cookie=`${Hr}=${encodeURIComponent(i)}; Path=/; SameSite=Lax`)}function Dv(){qr()&&(document.cookie=`${Hr}=; Path=/; SameSite=Lax; Max-Age=0`)}function _v(){if(!(typeof window>"u"))try{return window.sessionStorage.getItem(kr)||void 0}catch{return}}function Uv(i){if(!(typeof window>"u"))try{window.sessionStorage.setItem(kr,i)}catch{}}function Ov(){if(!(typeof window>"u"))try{window.sessionStorage.removeItem(kr)}catch{}}function pr(i){i&&(Uv(i),Jm(i))}function Yr(){Ov(),Dv()}function Mv(){const i=Rv();if(i)return i;const c=_v();if(c)return Jm(c),c}function Vt(i,c={Accept:"application/json"}){const r={...c};return i&&!Lv(r,"Authorization")&&(r.Authorization=`${Tv} ${i}`),r}function Be(i={Accept:"application/json"}){return Vt(Mv(),i)}function Lv(i,c){const r=c.toLowerCase();return Object.keys(i).some(s=>s.toLowerCase()===r)}const $m=S.createContext(null);function Yt(){const i=S.useContext($m);if(!i)throw new Error("useAuth must be used within AuthProvider");return i}function Bv({children:i}){const c="/.account/",[r,s]=S.useState(null),[d,h]=S.useState(!0),[y,x]=S.useState(null),[p,g]=S.useState(!1),C=!!r?.account?.logout,z=d,B=S.useCallback(async()=>{try{const O=await fetch("/.account/oidc/consent/",{headers:Be(),credentials:"include"});return O.ok?!!(await O.json()).client:!1}catch{return!1}},[]),k=S.useCallback(async()=>{try{const O=await fetch(c,{headers:Be(),credentials:"include"});if(O.ok){const L=await O.json().catch(()=>({}));let G=!1;L.controls?.account?.logout&&(G=await B()),g(G),s(L.controls||{})}else{if(O.status===401||O.status===403){Yr(),g(!1),s({});return}x(`Failed to load configuration (Status: ${O.status})`)}}catch{x("Network error: Could not connect to authentication server")}},[B,c]);S.useEffect(()=>{(async()=>(await k(),h(!1)))()},[k]);const X=S.useCallback(async()=>{await k()},[k]);return f.jsx($m.Provider,{value:{controls:r,isInitializing:d,initError:y,idpIndex:c,isLoggedIn:C,authenticating:z,hasOidcPending:p,refetchControls:X},children:i})}const Wm=(...i)=>i.filter((c,r,s)=>!!c&&c.trim()!==""&&s.indexOf(c)===r).join(" ").trim();const Hv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const kv=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,r,s)=>s?s.toUpperCase():r.toLowerCase());const ym=i=>{const c=kv(i);return c.charAt(0).toUpperCase()+c.slice(1)};var qv={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 Yv=i=>{for(const c in i)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1};const Gv=S.forwardRef(({color:i="currentColor",size:c=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:d="",children:h,iconNode:y,...x},p)=>S.createElement("svg",{ref:p,...qv,width:c,height:c,stroke:i,strokeWidth:s?Number(r)*24/Number(c):r,className:Wm("lucide",d),...!h&&!Yv(x)&&{"aria-hidden":"true"},...x},[...y.map(([g,C])=>S.createElement(g,C)),...Array.isArray(h)?h:[h]]));const Qe=(i,c)=>{const r=S.forwardRef(({className:s,...d},h)=>S.createElement(Gv,{ref:h,iconNode:c,className:Wm(`lucide-${Hv(ym(i))}`,`lucide-${i}`,s),...d}));return r.displayName=ym(i),r};const Xv=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Im=Qe("arrow-left",Xv);const Qv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Zu=Qe("arrow-right",Qv);const Zv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Wa=Qe("check",Zv);const Vv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kv=Qe("chevron-down",Vv);const Fv=[["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"}]],Gr=Qe("circle-alert",Fv);const Jv=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Pm=Qe("clock",Jv);const $v=[["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"}]],Du=Qe("copy",$v);const Wv=[["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"}]],Iv=Qe("database",Wv);const Pv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],pm=Qe("external-link",Pv);const ex=[["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"}]],tx=Qe("globe",ex);const ax=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],e0=Qe("hard-drive",ax);const lx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],nx=Qe("info",lx);const ix=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],gr=Qe("key",ix);const ux=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],t0=Qe("layers",ux);const cx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],vl=Qe("loader-circle",cx);const sx=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ci=Qe("lock",sx);const rx=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],ox=Qe("log-out",rx);const fx=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],zr=Qe("mail",fx);const dx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],vr=Qe("plus",dx);const hx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],oi=Qe("shield",hx);const mx=[["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"}]],gm=Qe("trash-2",mx);const yx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],a0=Qe("user",yx);function l0(){return f.jsx("div",{className:"flex min-h-screen bg-zinc-50 text-zinc-900 items-center justify-center",children:f.jsx(vl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})})}function fn({children:i,title:c,subtitle:r,icon:s,showBack:d,onBack:h}){return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsxs("div",{className:"w-full max-w-[360px] bg-white border border-zinc-200 rounded-3xl shadow-xl shadow-zinc-200/50 p-6 relative z-10",children:[f.jsxs("div",{className:"flex flex-col items-center mb-6",children:[f.jsxs("div",{className:"flex w-full items-center justify-between mb-4",children:[d?f.jsx("button",{onClick:h,className:"p-2 -ml-2 rounded-full hover:bg-zinc-100 text-zinc-400 hover:text-zinc-900 transition-colors",children:f.jsx(Im,{className:"w-4 h-4"})}):f.jsx("div",{className:"w-8"}),f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:s?f.jsx(s,{className:"w-5 h-5 text-white"}):f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-80"})}),f.jsx("div",{className:"w-8"})]}),f.jsx("h2",{className:"text-xl font-bold tracking-tight text-center",children:c}),r&&f.jsx("p",{className:"mt-1 text-zinc-500 text-[11px] text-center leading-relaxed",children:r})]}),i]})]})}function px({message:i}){return f.jsx(fn,{title:"Error",subtitle:i,icon:Gr,children:f.jsx("button",{onClick:()=>window.location.reload(),className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium transition-colors",children:"Retry"})})}const Er="xpod:returnTo";function si(i){try{i&&sessionStorage.setItem(Er,i)}catch{return}}function gx(){try{const i=sessionStorage.getItem(Er);return i&&sessionStorage.removeItem(Er),i}catch{return null}}function vx(){try{const i=new URLSearchParams(window.location.search).get("returnTo");return!i||new URL(i,window.location.origin).origin!==window.location.origin?null:i}catch{return null}}function xx(i,c,r=!1){return i&&c&&!r}function vm({children:i,allowOidcPending:c=!1}){const{isLoggedIn:r,hasOidcPending:s}=Yt(),d=qt();return xx(r,s,c)?f.jsx(ja,{to:"/.account/oidc/consent/",replace:!0}):r?f.jsx(f.Fragment,{children:i}):(si(d.pathname+d.search),f.jsx(ja,{to:"/.account/login/password/",replace:!0}))}function n0(i){var c,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(c=0;c<d;c++)i[c]&&(r=n0(i[c]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function nn(){for(var i,c,r=0,s="",d=arguments.length;r<d;r++)(i=arguments[r])&&(c=n0(i))&&(s&&(s+=" "),s+=c);return s}const xm=3,Bu=63,bx=/^[a-z0-9-]+$/;function Pt(i){return i.trim().toLowerCase()}function Ia(i){const c=Pt(i);if(!c)return"Username is required";if(c.length<xm||c.length>Bu)return`Username must be ${xm}-${Bu} characters`;if(!bx.test(c))return"Username can only contain lowercase letters, numbers, and hyphens";if(c.startsWith("-")||c.endsWith("-"))return"Username cannot start or end with a hyphen"}function Sx(i,c=5){const s=Pt(i).replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,Bu-3)||"user",d=Array.from({length:Math.max(c,3)},(h,y)=>`${s}-${y+1}`);return Array.from(new Set(d.map(h=>h.slice(0,Bu)).filter(h=>!Ia(h)))).slice(0,c)}function wx(i){if(typeof window<"u")return"/api/v1/identity";try{const c=new URL(i);return c.hostname.startsWith("id.")?`${c.protocol}//api.${c.hostname.slice(3)}/api/v1/identity`:`${c.origin}/api/v1/identity`}catch{return"/api/v1/identity"}}async function i0(i,c,r){const s=`${wx(c)}/${encodeURIComponent(i)}`;try{const d=await r(s,{headers:{Accept:"application/json"},credentials:"include"});if(d.status===404)return!1;if(d.ok||d.status===409)return!0}catch{}}async function jx(i,c,r,s=3){const d=Sx(i,Math.max(s*2,5)),h=[];for(const y of d)if(await i0(y,c,r)===!1&&h.push(y),h.length>=s)break;return h}async function bm(i,c,r=fetch){const s=Pt(i),d=Ia(s);if(d)return{available:!1,suggestions:[],error:d};const h=await i0(s,c,r);return h===!1?{available:!0,suggestions:[]}:h===void 0?{available:!1,suggestions:[],error:"Unable to verify username availability right now. Please try again."}:{available:!1,suggestions:await jx(s,c,r)}}function Vu(i){return typeof i=="object"&&i!==null}function Hu(i){return Vu(i)&&typeof i.message=="string"?i.message:""}function gl(i,c){return i instanceof Error&&i.message?i.message:c}function u0(){try{const i=sessionStorage.getItem("provisionCode")?.trim();return i||void 0}catch{return}}function zx(i){const c=i.split(".")[0];if(!c)return!0;try{const r=c.replace(/-/g,"+").replace(/_/g,"/"),s=r.padEnd(Math.ceil(r.length/4)*4,"=");if(typeof globalThis.atob!="function")return!0;const d=JSON.parse(globalThis.atob(s));return typeof d.exp=="number"?d.exp>Math.floor(Date.now()/1e3):!0}catch{return!0}}function Xr(i){const c=i?.trim();if(c)return zx(c)?c:void 0}function cn(){const i=u0(),c=Xr(i);return i&&!c&&Qr(),c}function Ex(i){try{sessionStorage.setItem("provisionCode",i)}catch{}}function Qr(){try{sessionStorage.removeItem("provisionCode")}catch{}}function Zr(i,c=cn()){const r={name:i.trim()};return c&&(r.settings={provisionCode:c}),r}async function Vr(i=fetch,c){const r=c?.trim()||u0(),s=Xr(r);if(r||typeof window<"u"){const d=await Nx(i);if(d)return Ex(d),d}return r&&!s&&Qr(),s}async function Kr(i=fetch,c){return Vr(i,c)}async function Nx(i){const c=await i("/provision/status",{headers:{Accept:"application/json"},credentials:"include"}).catch(()=>{});if(!c?.ok)return;const r=await c.json().catch(()=>{});if(!(!r?.registered||typeof r.provisionCode!="string"))return Xr(r.provisionCode)}function Cx(i){if(!i)return;const c=i.split(".")[0];if(c)try{const r=c.replace(/-/g,"+").replace(/_/g,"/"),s=r.padEnd(Math.ceil(r.length/4)*4,"=");if(typeof globalThis.atob!="function")return;const d=Uint8Array.from(globalThis.atob(s),y=>y.charCodeAt(0)),h=JSON.parse(new TextDecoder().decode(d));return typeof h.spUrl!="string"||typeof h.serviceToken!="string"||typeof h.exp=="number"&&h.exp<Math.floor(Date.now()/1e3)?void 0:{spUrl:za(h.spUrl),serviceToken:h.serviceToken,spDomain:typeof h.spDomain=="string"?h.spDomain:void 0,exp:typeof h.exp=="number"?h.exp:void 0}}catch{return}}function Fr(i){const c=Cx(i);if(c)return{lookupUrl:c.spUrl,storageRoot:c.spDomain?za(`https://${c.spDomain}`):za(c.spUrl),serviceToken:c.serviceToken}}async function Ku(i,c,r){const s=Fr(r);if(!s)return;const d=Array.from(new Set(c.filter(p=>typeof p=="string"&&p.length>0)));if(d.length===0)return[];const h=await i(new URL("/provision/webids",s.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${s.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:d})});if(!h.ok)return[];const y=await h.json().catch(()=>{});if(!Array.isArray(y?.entries))return[];const x=new Set(d);return y.entries.filter(p=>p&&typeof p.webId=="string"&&x.has(p.webId)).filter(p=>typeof p.storageUrl=="string"&&p.storageUrl.length>0).filter(p=>c0(p.storageUrl,s.storageRoot)).map(p=>({webId:p.webId,podUrl:typeof p.podUrl=="string"?za(p.podUrl):void 0,storageUrl:za(p.storageUrl)}))}async function Ax(i,c,r){const s=s0(r);if(!s)return[];const d=Array.from(new Set(c.filter(y=>typeof y=="string"&&y.length>0)));return(await Promise.all(d.map(async y=>{const p=(await Dx(i,y)).find(g=>c0(g,s));return p?{webId:y,storageUrl:za(p)}:void 0}))).filter(y=>!!y)}function c0(i,c){const r=r0(i),s=s0(c);return!!(r&&s&&r.startsWith(s))}function Tx(i){if(i)try{return za(new URL(i).origin)}catch{return}}function s0(i){if(i)try{return za(new URL(i).toString())}catch{return}}const Rx=new Set(["solid:storage","http://www.w3.org/ns/solid/terms#storage","pim:storage","http://www.w3.org/ns/pim/space#storage"]);async function Dx(i,c){const r=await i(c,{headers:{Accept:"text/turtle, application/ld+json, application/json"},credentials:"include"}).catch(()=>{});if(!r?.ok)return[];const s=r.headers?.get?.("content-type")??"",d=await r.text().catch(()=>"");if(!d)return[];if(s.includes("json"))try{return Sm(Ux(JSON.parse(d)))}catch{return[]}return Sm(_x(d))}function _x(i){return Array.from(i.matchAll(/(?:solid:storage|pim:storage|<http:\/\/www\.w3\.org\/ns\/solid\/terms#storage>|<http:\/\/www\.w3\.org\/ns\/pim\/space#storage>)\s+<([^>]+)>/giu)).map(c=>c[1]).filter(c=>typeof c=="string"&&c.length>0)}function Ux(i){const c=new Set,r=new WeakSet,s=(d,h=!1)=>{if(typeof d=="string"){h&&c.add(d);return}if(!(!d||typeof d!="object")&&!r.has(d)){if(r.add(d),Array.isArray(d)){for(const y of d)s(y,h);return}for(const[y,x]of Object.entries(d)){const p=Rx.has(y);if(h&&y==="@id"){s(x,!0);continue}s(x,h||p)}}};return s(i),Array.from(c)}function r0(i){try{return za(new URL(i).toString())}catch{return}}function Sm(i){const c=new Set;for(const r of i){const s=r0(r);s&&c.add(s)}return Array.from(c)}function za(i){return i.replace(/\/+$/u,"")+"/"}class un extends Error{code;constructor(c,r){super(c),this.name="RegistrationError",this.code=r}}async function Jr(i){const c=await i.json().catch(()=>{});return c?.message||c?.error}async function wm(i){const c=await i.json().catch(()=>({}));return Vu(c)?c:{}}function Ox(i){return i.match(/There already is a resource at\s+(\S+)/iu)?.[1]}function Mx(i,c){if(!i)return!1;const r=Ox(i);if(r)return $r(r,c);const s=i.match(/Pod name "([^"]+)" is already taken/iu)?.[1];return s?s===c:/Username already taken/i.test(i)}function Lx(i){return i?/already is a login for this e-mail address/i.test(i)||/email(?: address)? is already/i.test(i)||/already registered/i.test(i):!1}function $r(i,c){try{return new URL(i,"http://xpod.local").pathname.split("/").filter(Boolean)[0]===c}catch{return!1}}async function Bx(i,c,r,s,d,h){if(h)return Hx(i,r,s,d,h);const y=await i(c,{headers:Vt(d),credentials:"include"});if(!y.ok)return!1;const x=await y.json().catch(()=>({}));return Object.keys(x.pods??{}).some(p=>$r(p,s))}async function Hx(i,c,r,s,d){if(!c)return!1;const h=await i(c,{headers:Vt(s),credentials:"include"});if(!h.ok)return!1;const y=await h.json().catch(()=>({})),x=Object.keys(y.webIdLinks??{});return(await Ku(i,x,d)??[]).some(g=>$r(g.storageUrl,r))}async function kx(i){const c=i.fetchImpl??fetch;let r=await c(i.accountCreateUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({})});if(!r.ok)throw new Error(Hu(await wm(r))||"Failed to create account");const s=await r.json().catch(()=>({})),d=typeof s.authorization=="string"?s.authorization:"";if(!d)throw new Error("Account token not returned");if(r=await c(i.idpIndex,{headers:Vt(d),credentials:"include"}),!r.ok)throw new Error(Hu(await wm(r))||"Failed to load account controls");const h=await r.json().catch(()=>({})),y=h.controls?.password?.create,x=h.controls?.password?.login;if(!y)throw new Error("Password endpoint not found");if(!x)throw new Error("Login endpoint not found");if(r=await c(y,{method:"POST",headers:{...Vt(d),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:i.email,password:i.password})}),!r.ok){const p=await Jr(r);throw Lx(p)?new un("This email is already registered. Sign in instead, or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(p||"Failed to set password")}return{accountToken:d,loginUrl:x}}async function qx(i){const r=await(i.fetchImpl??fetch)(i.loginUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:i.email,password:i.password})});if(!r.ok){const h=await Jr(r);throw i.duplicateEmailRecovery?new un("This email is already registered, but the password did not match. Sign in or reset the password.","EMAIL_ALREADY_REGISTERED"):new Error(h||"Auto-login failed")}const s=await r.json().catch(()=>({})),d=typeof s.authorization=="string"?s.authorization:"";if(!d)throw new Error("Account token not returned after login");return{accountToken:d}}async function jm(i,c,r,s,d=15e3,h){const y=Date.now()+d;let x=r?.pod,p=r?.webId;for(;Date.now()<y;){try{if(!x&&!p){const g=await i(c,{headers:Vt(s),credentials:"include"});if(g.ok){const C=await g.json().catch(()=>({}));x=C.controls?.account?.pod,p=C.controls?.account?.webId}}if(p){const g=await i(p,{headers:Vt(s),credentials:"include"});if(g.ok){const C=await g.json().catch(()=>({})),z=Object.keys(C.webIdLinks??{});if(h){if((await Ku(i,z,h)??[]).length>0)return!0}else if(z.length>0)return!0}}if(!h&&x){const g=await i(x,{headers:Vt(s),credentials:"include"});if(g.ok){const C=await g.json().catch(()=>({}));if(Object.keys(C.pods??{}).length>0)return!0}}}catch{}await new Promise(g=>setTimeout(g,500))}return!1}async function zm(i){const c=i.fetchImpl??fetch,{accountToken:r,idpIndex:s,username:d}=i,h=await Kr(c,i.provisionCode??cn());let y=await c(s,{headers:Vt(r),credentials:"include"});const x=await y.json().catch(()=>({})),p=x.controls?.account?.pod;if(!p)throw new Error("Pod creation endpoint not found. The account API did not expose controls.account.pod.");if(await Bx(c,p,x.controls?.account?.webId,d,r,h))return await jm(c,s,x.controls?.account,r,15e3,h),{createdPod:!0,redirectedToConsent:await Em(c,r)};if(y=await c(p,{method:"POST",headers:{...Vt(r),"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Zr(d,h))}),!y.ok){const g=await Jr(y);throw Mx(g,d)?new un("Username is already taken. Your account was created; sign in and choose another Pod name.","USERNAME_ALREADY_TAKEN"):new Error(g||"Failed to create pod")}return await y.json().catch(()=>({})),await jm(c,s,x.controls?.account,r,15e3,h),{createdPod:!0,redirectedToConsent:await Em(c,r)}}async function Em(i,c){const r=await i("/.account/oidc/consent/",{headers:Vt(c),credentials:"include"});return!!(r.ok&&(await r.json().catch(()=>({}))).client)}function Nr({initialIsRegister:i=!1}){const{controls:c,idpIndex:r,isLoggedIn:s,hasOidcPending:d,authenticating:h}=Yt(),y=ta(),[x,p]=S.useState(!1),[g,C]=S.useState(i),[z,B]=S.useState(""),[k,X]=S.useState(""),[O,L]=S.useState(""),[G,I]=S.useState(!1),[F,ce]=S.useState(!1),[ne,ae]=S.useState(null),[V,re]=S.useState([]),[Ee,be]=S.useState(null),[ke,Ue]=S.useState(""),[qe,_e]=S.useState(null),[Ne,D]=S.useState(null),q=k.length>0&&O.length>0&&k===O,J=Pt(z),te=g?Ia(J):void 0,fe=Y=>{ce(Y.checking),ae(Y.available),re(Y.suggestions),be(Y.error)};if(S.useEffect(()=>{const Y=vx();Y&&si(Y)},[]),S.useEffect(()=>{let Y=!1;const $=ge=>{queueMicrotask(()=>{Y||fe(ge)})};if(!g)return $({checking:!1,available:null,suggestions:[],error:null}),()=>{Y=!0};if(!J)return $({checking:!1,available:null,suggestions:[],error:null}),()=>{Y=!0};if(te)return $({checking:!1,available:!1,suggestions:[],error:te}),()=>{Y=!0};$({checking:!0,available:null,suggestions:[],error:null});const le=window.setTimeout(async()=>{const ge=await bm(J,r);Y||(ce(!1),ae(ge.available),re(ge.suggestions),be(ge.error??null))},300);return()=>{Y=!0,window.clearTimeout(le)}},[r,g,J,te]),s)return f.jsx(ja,{to:"/.account/create-pod/",replace:!0,state:{next:d?"/.account/oidc/consent/":"/.account/account/"}});const v=[{icon:Pm,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you are not talking to it"},{icon:t0,title:"All Your Pieces, In One Place",desc:"Data, memory, and working context come back into one system"},{icon:oi,title:"One Secretary, Many Agents",desc:"One aligned layer can direct many agents while keeping privacy and control inside your boundary"}],T=async Y=>{Y.preventDefault(),p(!0),_e(null),D(null);const $=new FormData(Y.currentTarget),le=$.get("email"),ge=$.get("password");try{if(g){const ie=$.get("confirmPassword"),Z=Pt($.get("username")),we=Ia(Z);if(ge!==ie){alert("Passwords do not match"),p(!1);return}if(we){alert(we),p(!1);return}const Re=await bm(Z,r),Kt=c?.password?.login||"/.account/login/password/",Ie=async(tt=!1)=>{const Ft=await qx({duplicateEmailRecovery:tt,email:le,fetchImpl:fetch,loginUrl:Kt,password:ge});return pr(Ft.accountToken),Ft.accountToken};if(!Re.available){let tt;try{tt=await Ie()}catch{}if(tt){const Ft=await zm({accountToken:tt,idpIndex:r,username:Z});window.location.href=Ft.redirectedToConsent?"/.account/oidc/consent/":"/.account/create-pod/";return}ae(!1),re(Re.suggestions),be(Re.error??"Username is already taken"),p(!1);return}if(Re.error){ae(!1),be(Re.error),p(!1);return}let At;const Ye=await Ie().catch(()=>{});if(Ye)At=Ye;else try{At=(await kx({accountCreateUrl:c?.account?.create||"/.account/account/",email:le,password:ge,idpIndex:r})).accountToken,pr(At)}catch(tt){if(!(tt instanceof un)||tt.code!=="EMAIL_ALREADY_REGISTERED")throw tt;At=await Ie(!0)}const aa=await zm({accountToken:At,idpIndex:r,username:Z});window.location.href=aa.redirectedToConsent?"/.account/oidc/consent/":"/.account/create-pod/"}else{const ie=await fetch(c?.password?.login||"/.account/login/password/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:le,password:ge})}),Z=await ie.json().catch(()=>({}));if(ie.ok){pr(typeof Z.authorization=="string"?Z.authorization:void 0);const we=ie.headers.get("Location");if(Z.location){window.location.href=Z.location;return}if(we){window.location.href=we;return}const Re=gx();if(Re){window.location.href=Re;return}try{if((await fetch("/.account/oidc/consent/",{headers:Be(),credentials:"include"})).ok){window.location.href="/.account/oidc/consent/";return}}catch{}window.location.href="/.account/create-pod/"}else D(Z.message||"Login failed")}}catch(ie){ie instanceof un&&ie.code==="EMAIL_ALREADY_REGISTERED"?_e(ie.message):ie instanceof un&&ie.code==="USERNAME_ALREADY_TAKEN"?(ae(!1),be(ie.message)):D(gl(ie,"Operation failed"))}finally{p(!1)}},H=()=>{C(!g),B(""),X(""),L(""),ce(!1),ae(null),re([]),be(null),Ue(""),_e(null),D(null)},Q=async()=>{if(c?.oidc?.cancel){I(!0);try{const $=await(await fetch(c.oidc.cancel,{method:"POST",headers:Be({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include"})).json();$.location&&(window.location.href=$.location)}catch{alert("Failed to cancel"),I(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:v.map(({icon:Y,title:$,desc:le})=>f.jsxs("div",{className:"flex gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:f.jsx(Y,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:$}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:le})]})]},$))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:g?"Create account":"Welcome back"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:g?"Create your Xpod account to get started.":"Sign in to continue your identity workspace."})]}),f.jsxs("form",{className:"space-y-4",onSubmit:T,children:[Ne&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:Ne}),f.jsxs("div",{className:"space-y-3",children:[g&&f.jsxs("div",{className:"relative",children:[f.jsx(a0,{className:nn("absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4",te&&z.length>0?"text-amber-500":"text-zinc-400")}),f.jsx("input",{name:"username",type:"text",required:!0,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:z,onChange:Y=>B(Y.target.value),className:nn("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",te&&z.length>0||ne===!1?"border-amber-300 focus:border-amber-500":ne?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Username"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(zr,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,value:ke,onChange:Y=>{Ue(Y.target.value),qe&&_e(null)},className:nn("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",qe?"border-red-300 focus:border-red-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Email"})]}),qe&&f.jsxs("p",{className:"text-[11px] leading-relaxed text-red-600",children:[qe," ",f.jsx("button",{type:"button",onClick:()=>{C(!1),_e(null),D(null)},className:"font-medium text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Sign in"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(ci,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:k,onChange:Y=>X(Y.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none transition-colors",placeholder:"Password"})]}),g&&f.jsxs("div",{className:"relative",children:[q?f.jsx(Wa,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(ci,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:O,onChange:Y=>L(Y.target.value),className:nn("block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors",q?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"),placeholder:"Confirm password"})]})]}),g&&f.jsx("p",{className:nn("text-[11px] leading-relaxed",te&&z.length>0||ne===!1?"text-amber-600":ne?"text-emerald-600":"text-zinc-500"),children:te&&z.length>0?te:F?"Checking username availability...":Ee||(J&&ne===!1?"Username is already taken.":J&&ne?"Username is available.":"Username becomes your first Pod URL. Use 3-63 lowercase letters, numbers, or hyphens.")}),g&&V.length>0&&!te&&ne===!1&&f.jsx("div",{className:"flex flex-wrap gap-2",children:V.map(Y=>f.jsx("button",{type:"button",onClick:()=>B(Y),className:"rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] text-zinc-600 hover:border-[#7C4DFF] hover:text-[#7C4DFF]",children:Y},Y))}),!g&&f.jsx("div",{className:"flex justify-end",children:f.jsx("button",{type:"button",onClick:()=>y("/.account/login/password/forgot/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Forgot password?"})}),f.jsx("button",{type:"submit",disabled:x||G||!!(g&&(te||F||ne===!1)),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:x?f.jsx(vl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:[g?"Sign up":"Sign in",f.jsx(Zu,{className:"h-4 w-4"})]})}),h&&!g&&f.jsx("button",{type:"button",onClick:Q,disabled:G||x,className:"w-full py-3 border border-zinc-200 hover:bg-zinc-100 text-zinc-600 rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50 transition-colors",children:G?f.jsx(vl,{className:"w-4 h-4 animate-spin"}):"Cancel"})]}),f.jsx("div",{className:"mt-6 pt-6 border-t border-zinc-100 text-center",children:f.jsxs("p",{className:"text-[11px] text-zinc-500",children:[g?"Already have an account? ":"Don't have an account? ",f.jsx("button",{onClick:H,className:"text-[#7C4DFF] font-medium hover:text-[#6B3FE8]",children:g?"Sign in":"Sign up"})]})})]})})]})]})}function Yx(){const{isLoggedIn:i,hasOidcPending:c}=Yt();return i&&c?f.jsx(ja,{to:"/.account/oidc/consent/",replace:!0}):i?f.jsx(ja,{to:"/.account/account/",replace:!0}):f.jsx(Nr,{})}function Gx(){const i=ta(),{isLoggedIn:c}=Yt(),r=[{icon:Pm,title:"Your AI Secretary Never Stops",desc:"Runs 24/7, even when you're not talking to it"},{icon:t0,title:"One Place for Your Whole Life",desc:"All your messages together in one place"},{icon:oi,title:"One Secretary, Many Agents",desc:"Full power, full privacy"}];return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans flex items-center justify-center p-4 lg:p-8",children:[f.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:[f.jsx("div",{className:"absolute top-0 left-1/4 w-[800px] h-[600px] bg-[#7C4DFF]/5 rounded-full blur-[150px]"}),f.jsx("div",{className:"absolute bottom-0 right-1/4 w-[600px] h-[400px] bg-[#7C4DFF]/3 rounded-full blur-[100px]"})]}),f.jsxs("div",{className:"w-full max-w-6xl grid lg:grid-cols-2 gap-8 lg:gap-16 items-center relative z-10",children:[f.jsx("div",{className:"hidden lg:block px-8",children:f.jsxs("div",{className:"max-w-md ml-auto",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-12 h-12 bg-[#7C4DFF] rounded-xl shadow-lg shadow-[#7C4DFF]/20 flex items-center justify-center",children:f.jsx("div",{className:"w-6 h-6 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-2xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("h1",{className:"text-2xl xl:text-3xl font-bold leading-tight mb-4",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-sm leading-relaxed mb-10",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-4",children:f.jsx("div",{className:"space-y-3",children:r.map(({icon:s,title:d,desc:h})=>f.jsxs("div",{className:"flex gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center shrink-0 shadow-sm",children:f.jsx(s,{className:"w-4 h-4 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium text-zinc-900",children:d}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:h})]})]},d))})}),f.jsx("div",{className:"mt-12",children:f.jsxs("p",{className:"text-[10px] text-zinc-400",children:["Powered by ",f.jsx("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Solid Protocol"})]})})]})}),f.jsx("div",{className:"w-full max-w-sm mx-auto lg:mx-0",children:f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-3xl p-6 lg:p-8 shadow-xl shadow-zinc-200/50",children:[f.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[f.jsx("div",{className:"w-10 h-10 bg-[#7C4DFF] rounded-xl flex items-center justify-center",children:f.jsx("div",{className:"w-5 h-5 border-2 border-white rounded opacity-90"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-xl font-bold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"lg:hidden mb-8",children:[f.jsxs("h1",{className:"text-xl font-bold leading-tight mb-3",children:["Simplify Life with ",f.jsx("span",{className:"text-[#7C4DFF]",children:"Your AI Secretary"})]}),f.jsx("p",{className:"text-zinc-500 text-xs leading-relaxed mb-6",children:"An AI that never stops, knows your whole life, works for you—while guarding your privacy."}),f.jsx("div",{className:"space-y-2",children:r.map(({icon:s,title:d,desc:h})=>f.jsxs("div",{className:"flex gap-2",children:[f.jsx(s,{className:"w-4 h-4 text-[#7C4DFF] shrink-0 mt-0.5"}),f.jsxs("div",{children:[f.jsx("span",{className:"text-xs font-medium text-zinc-900",children:d}),f.jsxs("span",{className:"text-xs text-zinc-500",children:[" - ",h]})]})]},d))})]}),f.jsxs("div",{className:"mb-6",children:[f.jsx("h2",{className:"text-xl font-bold",children:"About Xpod"}),f.jsx("p",{className:"text-zinc-500 text-xs mt-1",children:"Learn more about the platform and resources."})]}),f.jsxs("div",{className:"space-y-3 mb-6",children:[f.jsxs("a",{href:"https://solidproject.org",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(pm,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"Solid Project"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"Learn about the protocol"})]})]}),f.jsxs("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 bg-zinc-50 border border-zinc-200 rounded-xl hover:border-[#7C4DFF]/50 transition-colors group",children:[f.jsx("div",{className:"w-8 h-8 bg-white border border-zinc-200 rounded-lg flex items-center justify-center",children:f.jsx(pm,{className:"w-4 h-4 text-zinc-400 group-hover:text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-zinc-900",children:"GitHub"}),f.jsx("div",{className:"text-xs text-zinc-500",children:"View source code"})]})]})]}),f.jsxs("div",{className:"pt-4 border-t border-zinc-100",children:[f.jsx("p",{className:"text-[10px] text-zinc-400 mb-4",children:"Version 0.1.0 · Built with Solid Protocol"}),f.jsxs("button",{onClick:()=>i(c?"/.account/account/":"/.account/login/password/"),className:"w-full py-3 border border-zinc-200 hover:bg-zinc-50 text-zinc-700 rounded-xl text-sm font-medium flex items-center justify-center gap-2 transition-colors",children:[f.jsx(Im,{className:"w-4 h-4"}),c?"Back to Dashboard":"Back to Login"]})]})]})})]})]})}function Fu(i){return i.replace(/\/+$/u,"")+"/"}function Ea(i){if(i)try{return new URL(i)}catch{return}}function o0(i){const c=Ea(i);if(c)return Fu(c.toString())}function Xx(i){return o0(i)}function ku(i,c){const r=Ea(i),s=Ea(c);if(!r||!s||r.origin!==s.origin)return!1;const d=Jx(s.pathname);return r.pathname===d||r.pathname.startsWith(d)}function qu(i,c){const r=Ea(i),s=Ea(c);return!r||!s?"custom":r.origin===s.origin?"cloud":"local"}function Qx(i){if(!i)return;const c=i.indexOf(".");if(!(c<=0))try{const r=i.slice(0,c),s=JSON.parse(Fx(r)),d=s.spDomain?`https://${s.spDomain}`:s.spUrl,h=o0(d);return h?{root:h,lookupUrl:s.spUrl?Fu(s.spUrl):void 0,serviceToken:s.serviceToken,mode:"local"}:void 0}catch{return}}function Zx(i,c){const r=Qx(c);if(r)return r;const s=Xx(i);if(s)return{root:s,mode:"cloud"}}async function Vx(i,c,r){if(!r.lookupUrl||!r.serviceToken||c.length===0)return[];const s=await i(new URL("/provision/webids",r.lookupUrl).toString(),{method:"POST",headers:{Authorization:`Bearer ${r.serviceToken}`,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({webIds:c})});if(!s.ok)return[];const d=await s.json().catch(()=>null);if(!Array.isArray(d?.entries))return[];const h=new Set(c);return d.entries.filter(y=>typeof y.webId=="string"&&typeof y.storageUrl=="string"&&h.has(y.webId)&&ku(y.storageUrl,r.root)).map(y=>({webId:y.webId,storageUrl:Fu(y.storageUrl),storageMode:y.storageMode??qu(y.webId,y.storageUrl)}))}function Kx(i,c,r){const s=c.filter(h=>ku(h,r.root));if(s.length===0)return[];const d=[];for(const h of i){const y=qu(h,r.root);if(r.mode!=="local"&&y!==r.mode)continue;const x=y==="cloud"?s.filter(p=>$x(p,h)):s.filter(p=>Wx(p,h));for(const p of x)d.push({webId:h,storageUrl:Fu(p),storageMode:qu(h,p)})}return f0(d)}function f0(i){const c=new Set,r=[];for(const s of i){const d=`${s.webId}
12
+ ${s.storageUrl}`;c.has(d)||(c.add(d),r.push(s))}return r}function Fx(i){const c=i.replace(/-/gu,"+").replace(/_/gu,"/").padEnd(Math.ceil(i.length/4)*4,"=");return atob(c)}function Jx(i){return!i||i==="/"?"/":i.endsWith("/")?i:`${i}/`}function $x(i,c){const r=Ea(i),s=Ea(c);if(!r||!s||r.origin!==s.origin)return!1;const[d]=r.pathname.split("/").filter(Boolean),[h]=s.pathname.split("/").filter(Boolean);return!!(d&&h&&d===h)}function Wx(i,c){const r=Ea(i),s=Ea(c);if(!r||!s)return!1;const[d]=r.pathname.split("/").filter(Boolean),[h]=s.pathname.split("/").filter(Boolean);return!!(d&&h&&d===h)}function d0(i){try{const r=new URL(i).pathname.split("/").filter(Boolean);return r[r.length-1]}catch{return}}function Ix(i){const c=i?.pods;return!c||typeof c!="object"?[]:Object.entries(c).map(([r,s])=>({id:r,resourceUrl:s,name:d0(r)}))}function Px(i){const c=new Set,r=[];for(const s of i)c.has(s.storageUrl)||(c.add(s.storageUrl),r.push({id:s.storageUrl,name:d0(s.storageUrl),storageMode:s.storageMode??qu(s.webId,s.storageUrl)}));return r}function eb(i){return Array.from(new Set(i.map(c=>c.webId)))}function tb(i){try{const c=new URL(i).pathname.split("/").filter(Boolean);return c[c.length-1]??i}catch{return i.split("/").filter(Boolean).pop()??i}}function xr(i,c){return`sk-${btoa(`${i}:${c}`)}`}function ab(){if(typeof window>"u")return"https://api.undefineds.co/v1";const{protocol:i,hostname:c,origin:r}=window.location;return c.startsWith("id.")?`${i}//api.${c.slice(3)}/v1`:c.startsWith("api.")?`${r}/v1`:`${r.replace(/\/$/,"")}/v1`}function lb(){const{controls:i,refetchControls:c,hasOidcPending:r}=Yt(),s=ta(),[d,h]=S.useState(!1),[y,x]=S.useState([]),[p,g]=S.useState([]),[C,z]=S.useState(!1),[B,k]=S.useState(!1),[X,O]=S.useState(""),[L,G]=S.useState(!1),[I,F]=S.useState(""),[ce,ne]=S.useState([]),[ae,V]=S.useState(null),[re,Ee]=S.useState(!1),[be,ke]=S.useState(""),[Ue,qe]=S.useState(""),[_e,Ne]=S.useState(null),[D,q]=S.useState(!1),J=S.useRef(null),te=ab(),fe=i?.account;S.useEffect(()=>{const Z=we=>{J.current&&!J.current.contains(we.target)&&q(!1)};return document.addEventListener("mousedown",Z),()=>document.removeEventListener("mousedown",Z)},[]);const v=async(Z,we)=>{try{await navigator.clipboard.writeText(Z),Ne(we),setTimeout(()=>Ne(null),2e3)}catch{}},T=S.useCallback(async()=>{try{const Z=Zx(window.location.origin,cn());let we=[],Re=[],Kt=[],Ie=[];if(fe?.webId){const Ye=await fetch(fe.webId,{headers:Be(),credentials:"include"});if(Ye.ok){const tt=(await Ye.json()).webIdLinks||{};Re=Object.keys(tt)}else Re=[]}if(fe?.pod){const Ye=await fetch(fe.pod,{headers:Be(),credentials:"include"});if(Ye.ok){const aa=await Ye.json();Kt=Ix(aa)}else Kt=[]}Z&&(Ie=Z.serviceToken?await Vx(fetch,Re,Z):Kx(Re,Kt.map(Ye=>Ye.id),Z)),Ie=f0(Ie),we=eb(Ie);const At=Z?.serviceToken?Px(Ie):Kt.filter(Ye=>ku(Ye.id,Z?.root)).map(Ye=>({...Ye,storageMode:Ie.find(aa=>ku(Ye.id,aa.storageUrl))?.storageMode}));if(x(we),g(At),z(Z?At.length===0&&Re.length>0:!1),fe?.clientCredentials){const Ye=await fetch(fe.clientCredentials,{headers:Be(),credentials:"include"});if(Ye.ok){const tt=(await Ye.json()).clientCredentials||{},Ft=new Set(we);ne(Object.entries(tt).map(([la,xl])=>({id:tb(la),resourceUrl:la,webId:typeof xl=="string"?xl:void 0})).filter(la=>la.webId&&Ft.has(la.webId)))}else ne([])}else ne([])}catch(Z){console.error("Failed to fetch account data:",Z),x([]),g([]),ne([]),z(!1)}},[fe]);S.useEffect(()=>{queueMicrotask(()=>{T()})},[T]);const H=async()=>{if(i?.account?.logout){h(!0);try{(await fetch(i.account.logout,{method:"POST",headers:Be(),credentials:"include"})).ok&&(Qr(),Yr(),await c(),s("/.account/"))}catch{alert("Logout failed")}finally{h(!1)}}},Q=async Z=>{if(Z.preventDefault(),!(!i?.account?.pod||!X.trim())){h(!0);try{const we=await fetch(i.account.pod,{method:"POST",headers:Be({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify(Zr(X))});if(we.ok)O(""),k(!1),await c(),await T(),r&&s("/.account/oidc/consent/");else{const Re=await we.json().catch(()=>({}));alert(Re.message||"Failed to create pod")}}catch{alert("Network error")}finally{h(!1)}}},Y=async Z=>{if(Z.preventDefault(),!(!i?.account?.webId||!I.trim())){if(cn()){G(!1),alert("Link WebID is disabled in a scoped Local storage session.");return}h(!0);try{const we=await fetch(i.account.webId,{method:"POST",headers:Be({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:I.trim()})});if(we.ok)F(""),G(!1),await T();else{const Re=await we.json().catch(()=>({}));alert(Re.message||"Failed to link WebID")}}catch{alert("Network error")}finally{h(!1)}}},$=async Z=>{if(Z.resourceUrl&&confirm(`Delete pod ${Z.id}? This cannot be undone.`)){h(!0);try{(await fetch(Z.resourceUrl,{method:"DELETE",headers:Be(),credentials:"include"})).ok?await T():alert("Failed to delete pod")}catch{alert("Network error")}finally{h(!1)}}},le=async Z=>{if(Z.preventDefault(),!(!i?.account?.clientCredentials||!be||!Ue.trim())){h(!0);try{const we=await fetch(i.account.clientCredentials,{method:"POST",headers:Be({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({name:Ue.trim(),webId:be})});if(we.ok){const Re=await we.json();V({id:Re.id,secret:Re.secret}),Ee(!1),ke(""),qe(""),await T()}else{const Re=await we.json().catch(()=>({}));alert(Re.message||"Failed to create credential")}}catch{alert("Network error")}finally{h(!1)}}},ge=()=>{if(y.length===0){alert("Please create a Pod first to get a WebID");return}ke(y[0]),qe(""),Ee(!0)},ie=async Z=>{if(confirm("Delete this credential? This cannot be undone.")){h(!0);try{(await fetch(Z.resourceUrl,{method:"DELETE",headers:Be(),credentials:"include"})).ok?await T():alert("Failed to delete credential")}catch{alert("Network error")}finally{h(!1)}}};return f.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900 font-sans",children:[f.jsx("div",{className:"fixed inset-0 overflow-hidden pointer-events-none",children:f.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#7C4DFF]/5 rounded-full blur-[120px]"})}),f.jsx("header",{className:"relative z-10 border-b border-zinc-200 bg-white/80 backdrop-blur",children:f.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-8 h-8 bg-[#7C4DFF] rounded-lg flex items-center justify-center",children:f.jsx("div",{className:"w-4 h-4 border-2 border-white rounded opacity-80"})}),f.jsxs("div",{children:[f.jsx("div",{className:"font-semibold leading-tight",children:"Xpod"}),f.jsx("div",{className:"text-[10px] text-zinc-500 leading-tight",children:"Personal Messages Platform"})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Lu,{to:"/.account/about/",className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[f.jsx(nx,{className:"w-3.5 h-3.5"}),"About"]}),f.jsxs("button",{onClick:H,disabled:d,className:"flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-500 hover:text-zinc-900 hover:bg-zinc-100 rounded-lg transition-colors",children:[f.jsx(ox,{className:"w-3.5 h-3.5"}),"Sign out"]})]})]})}),f.jsxs("main",{className:"relative z-10 max-w-2xl mx-auto px-4 py-8 space-y-8",children:[r&&f.jsx("div",{className:"p-4 bg-[#7C4DFF]/10 border border-[#7C4DFF]/30 rounded-xl",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 bg-[#7C4DFF]/20 rounded-lg",children:f.jsx(oi,{className:"w-5 h-5 text-[#7C4DFF]"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-900",children:"Authorization Pending"}),f.jsx("p",{className:"text-xs text-zinc-500",children:"An application is waiting for your authorization"})]})]}),f.jsxs(Lu,{to:"/.account/oidc/consent/",className:"flex items-center gap-2 px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-sm font-medium rounded-lg transition-colors",children:["Continue",f.jsx(Zu,{className:"w-4 h-4"})]})]})}),f.jsx("h1",{className:"text-2xl font-bold",children:"Account Dashboard"}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(e0,{className:"w-4 h-4 text-[#7C4DFF]"}),"Storage"]}),i?.account?.pod&&f.jsxs("button",{onClick:()=>k(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(vr,{className:"w-3.5 h-3.5"}),"Add Pod"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your personal data stores (Pods). You own and control all data stored here."}),B&&f.jsxs("form",{onSubmit:Q,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"Pod Name"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",value:X,onChange:Z=>O(Z.target.value),placeholder:"my-pod",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Creating...":"Create"}),f.jsx("button",{type:"button",onClick:()=>k(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:p.length===0?f.jsx("div",{className:"p-4",children:f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:C?"WebID 已存在,Pod 信息正在同步。请稍等后刷新页面。":"No Pods found. Create one to get started."})}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:p.map(Z=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(Iv,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("a",{href:Z.id,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate block",children:Z.id}),Z.name&&f.jsxs("p",{className:"text-[11px] text-zinc-500 truncate",children:["Pod: ",Z.name]})]})]}),f.jsx("button",{onClick:()=>$(Z),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Delete Pod",children:f.jsx(gm,{className:"w-4 h-4"})})]},Z.id))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(a0,{className:"w-4 h-4 text-[#7C4DFF]"}),"Identity"]}),i?.account?.webId&&f.jsxs("button",{onClick:()=>G(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(vr,{className:"w-3.5 h-3.5"}),"Link WebID"]})]}),f.jsx("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Your unique decentralized identifiers (WebIDs). This is your identity on the Solid network."}),L&&f.jsxs("form",{onSubmit:Y,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm",children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-2",children:"WebID URL"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"url",value:I,onChange:Z=>F(Z.target.value),placeholder:"https://example.com/profile/card#me",className:"flex-1 px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Linking...":"Link"}),f.jsx("button",{type:"button",onClick:()=>G(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"})]})]}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:y.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No WebIDs found. Create a Pod first to get a WebID."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:y.map(Z=>f.jsxs("li",{className:"p-3 flex items-center gap-3",children:[f.jsx(tx,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("a",{href:Z,target:"_blank",rel:"noopener",className:"text-xs font-mono text-[#7C4DFF] hover:text-[#6B3FE8] truncate",children:Z})]},Z))})})]}),f.jsxs("section",{children:[f.jsxs("div",{className:"flex justify-between items-center mb-1",children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2",children:[f.jsx(gr,{className:"w-4 h-4 text-[#7C4DFF]"}),"Developer Access"]}),i?.account?.clientCredentials&&f.jsxs("button",{onClick:ge,disabled:d,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg transition-colors",children:[f.jsx(vr,{className:"w-3.5 h-3.5"}),"New Key"]})]}),f.jsxs("p",{className:"text-[11px] text-zinc-500 mb-3",children:["AI API keys for model endpoints such as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/chat/completions"})," and ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"/v1/responses"}),". Send as ",f.jsx("code",{className:"bg-zinc-100 px-1 py-0.5 rounded",children:"Authorization: Bearer sk-xxx"}),"."]}),i?.account?.clientCredentials?f.jsxs(f.Fragment,{children:[re&&f.jsxs("form",{onSubmit:le,className:"mb-4 p-4 bg-white border border-zinc-200 rounded-xl shadow-sm space-y-3",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"Key Name"}),f.jsx("input",{type:"text",value:Ue,onChange:Z=>qe(Z.target.value),placeholder:"my-app-key",className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none",required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs text-zinc-500 mb-1",children:"WebID"}),f.jsxs("div",{className:"relative",ref:J,children:[f.jsxs("button",{type:"button",onClick:()=>q(!D),className:"w-full px-3 py-2 bg-zinc-50 border border-zinc-200 rounded-lg text-sm focus:border-[#7C4DFF] focus:outline-none text-left flex items-center justify-between",children:[f.jsx("span",{className:"truncate text-zinc-700",children:be||"Select WebID"}),f.jsx(Kv,{className:`w-4 h-4 text-zinc-400 transition-transform ${D?"rotate-180":""}`})]}),D&&f.jsx("div",{className:"absolute z-10 mt-1 w-full bg-white border border-zinc-200 rounded-lg shadow-lg max-h-48 overflow-auto",children:y.map(Z=>f.jsx("button",{type:"button",onClick:()=>{ke(Z),q(!1)},className:`w-full px-3 py-2 text-left text-sm hover:bg-zinc-50 truncate ${be===Z?"bg-[#7C4DFF]/10 text-[#7C4DFF]":"text-zinc-700"}`,children:Z},Z))}),f.jsx("input",{type:"hidden",name:"webId",value:be,required:!0})]})]}),f.jsxs("div",{className:"flex gap-2 justify-end",children:[f.jsx("button",{type:"button",onClick:()=>Ee(!1),className:"px-3 py-2 text-zinc-500 hover:text-zinc-900 text-xs",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:d,className:"px-4 py-2 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white text-xs rounded-lg disabled:opacity-50",children:d?"Creating...":"Create"})]})]}),ae&&f.jsx("div",{className:"mb-4 p-4 bg-emerald-50 border border-emerald-200 rounded-xl",children:f.jsxs("div",{className:"flex items-start gap-3",children:[f.jsx("div",{className:"p-2 bg-emerald-100 rounded-lg",children:f.jsx(gr,{className:"w-4 h-4 text-emerald-600"})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"text-sm font-medium text-emerald-700 mb-1",children:"New API Key Created"}),f.jsx("p",{className:"text-xs text-zinc-500 mb-3",children:"Copy your API Key now. It will not be shown again."}),f.jsxs("div",{className:"space-y-3 text-xs font-mono bg-white p-3 rounded-lg border border-zinc-200",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client ID"}),f.jsx("p",{className:"text-zinc-600 truncate",children:ae.id})]}),f.jsx("button",{onClick:()=>v(ae.id,"id"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client ID",children:_e==="id"?f.jsx(Wa,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Du,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Client Secret"}),f.jsx("p",{className:"text-zinc-600 break-all",children:ae.secret})]}),f.jsx("button",{onClick:()=>v(ae.secret,"secret"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Client Secret",children:_e==="secret"?f.jsx(Wa,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Du,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 pt-3 border-t border-zinc-100",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"API Key"}),f.jsx("p",{className:"text-emerald-600 break-all font-medium",children:xr(ae.id,ae.secret)})]}),f.jsx("button",{onClick:()=>v(xr(ae.id,ae.secret),"apikey"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy API Key",children:_e==="apikey"?f.jsx(Wa,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Du,{className:"w-3.5 h-3.5"})})]})]}),f.jsxs("div",{className:"mt-3 rounded-lg border border-zinc-200 bg-white p-3 text-xs",children:[f.jsx("p",{className:"mb-2 font-medium text-zinc-700",children:"Usage"}),f.jsxs("div",{className:"space-y-2 font-mono text-[11px]",children:[f.jsxs("div",{className:"flex items-start justify-between gap-2",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Base URL"}),f.jsx("p",{className:"break-all text-zinc-600",children:te})]}),f.jsx("button",{onClick:()=>v(te,"baseurl"),className:"p-1.5 text-zinc-400 hover:text-zinc-900 hover:bg-zinc-100 rounded transition-colors shrink-0",title:"Copy Base URL",children:_e==="baseurl"?f.jsx(Wa,{className:"w-3.5 h-3.5 text-emerald-500"}):f.jsx(Du,{className:"w-3.5 h-3.5"})})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Authorization"}),f.jsxs("p",{className:"break-all text-zinc-600",children:["Bearer ",xr(ae.id,ae.secret)]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-zinc-400 select-none",children:"Endpoints"}),f.jsx("p",{className:"break-all text-zinc-600",children:"/chat/completions · /responses · /models"})]})]})]}),f.jsx("button",{onClick:()=>V(null),className:"mt-2 text-xs text-zinc-500 hover:text-zinc-900 font-medium",children:"Done"})]})]})}),f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm",children:ce.length===0?f.jsx("p",{className:"p-4 text-xs text-zinc-500",children:"No API keys found."}):f.jsx("ul",{className:"divide-y divide-zinc-100",children:ce.map(Z=>f.jsxs("li",{className:"p-3 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-3 overflow-hidden",children:[f.jsx(gr,{className:"w-4 h-4 text-zinc-400 shrink-0"}),f.jsx("span",{className:"text-xs font-mono text-zinc-600 truncate",children:Z.id})]}),f.jsx("button",{onClick:()=>ie(Z),className:"p-2 text-zinc-400 hover:text-red-500 hover:bg-red-50 rounded-lg transition-colors",title:"Revoke Key",children:f.jsx(gm,{className:"w-4 h-4"})})]},Z.id))})})]}):f.jsx("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4",children:f.jsx("p",{className:"text-xs text-zinc-500",children:"Client credential endpoint not configured."})})]}),f.jsxs("section",{children:[f.jsxs("h2",{className:"text-sm font-semibold text-zinc-700 flex items-center gap-2 mb-3",children:[f.jsx(oi,{className:"w-4 h-4 text-[#7C4DFF]"}),"Security"]}),f.jsxs("div",{className:"bg-white border border-zinc-200 rounded-xl shadow-sm p-4 flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-xs font-medium mb-1",children:"Password"}),f.jsx("p",{className:"text-[10px] text-zinc-500",children:"Update your account password"})]}),f.jsx("a",{href:i?.password?.forgot||"/.account/login/password/forgot/",className:"px-3 py-1.5 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 text-xs rounded-lg transition-colors",children:"Change Password"})]})]})]})]})}function nb(i){for(const c of i){if(!c)continue;const r=ob(c);if(!r)continue;const s=Pt(r).replace(/[^a-z0-9-]/gu,"-").replace(/-+/gu,"-").replace(/^-+|-+$/gu,"");if(s&&!Ia(s))return s}return""}async function ib(i){const c=i.fetchImpl??fetch,r=Pt(i.username),s=Ia(r);if(s)return{status:"invalid",message:s};const d=await Kr(c,i.provisionCode),h=Fr(d);if(!h)return{status:"unknown"};const y=new URL(`/provision/pods/${encodeURIComponent(r)}`,h.lookupUrl).toString(),x=await c(y,{headers:{Accept:"application/json",Authorization:`Bearer ${h.serviceToken}`},credentials:"include"}).catch(()=>{});return x?x.status===404?{status:"available",message:"This Pod name is available."}:x.ok?{status:"taken",message:`Pod name "${r}" is already used on this storage.`}:x.status===409?{status:"taken",message:await Cr(x)??`Pod name "${r}" is already used on this storage.`}:{status:"unknown",message:await Cr(x)??"Could not check this Pod name right now."}:{status:"unknown",message:"Could not check this Pod name right now."}}async function ub(i){const c=i.fetchImpl??fetch,r=Pt(i.username),s=Ia(r);if(s)throw new Error(s);const d=await Kr(c,i.provisionCode),h=await c(i.createPodUrl,{method:"POST",headers:{...i.headers,Accept:"application/json","Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Zr(r,d))});if(!h.ok){const g=await Cr(h);throw h.status===409||sb(g)?new Error("Pod name is already taken. Choose another name."):new Error(g||"Failed to create Pod")}const y=await h.json().catch(()=>{}),x=rb(y);if(!i.pickWebIdUrl)return x;const p=await h0({fetchImpl:c,headers:i.headers,maxAttempts:i.maxAttempts,pickWebIdUrl:i.pickWebIdUrl,pollIntervalMs:i.pollIntervalMs});return p.length>0?p:x}async function h0(i){const c=i.fetchImpl??fetch,r=Math.max(1,i.maxAttempts??30),s=Math.max(0,i.pollIntervalMs??500);for(let d=0;d<r;d+=1){const h=await cb(c,i.pickWebIdUrl,i.headers);if(h.length>0)return h;d<r-1&&s>0&&await new Promise(y=>setTimeout(y,s))}return[]}async function cb(i,c,r){const s=await i(c,{headers:r,credentials:"include"}).catch(()=>{});if(!s?.ok)return[];const d=await s.json().catch(()=>{});return Array.isArray(d?.webIds)?d.webIds.filter(h=>typeof h=="string"&&h.length>0):[]}async function Cr(i){const c=await i.text?.().catch(()=>{});if(c)try{const r=JSON.parse(c);return typeof r.message=="string"?r.message:typeof r.error=="string"?r.error:c}catch{return c}}function sb(i){return i?/already (?:is )?a resource/iu.test(i)||/already taken/iu.test(i)||/already exists/iu.test(i):!1}function rb(i){const c=new Set;if(typeof i?.webId=="string"&&i.webId.length>0&&c.add(i.webId),Array.isArray(i?.webIds))for(const r of i.webIds)typeof r=="string"&&r.length>0&&c.add(r);return Array.from(c)}function ob(i){try{return new URL(i).pathname.split("/").filter(Boolean)[0]}catch{return}}function m0({createPodUrl:i,headers:c,onCreated:r,onError:s,pickWebIdUrl:d,provisionCode:h,webIdCandidates:y=[]}){const[x,p]=S.useState(()=>nb(y)),[g,C]=S.useState(!1),[z,B]=S.useState(null),[k,X]=S.useState({status:"idle"}),O=Pt(x),L=O?Ia(O):void 0,G=!!(O&&z===O);S.useEffect(()=>{let V=!1;const re=be=>{queueMicrotask(()=>{V||X(be)})};if(!O)return re({status:"idle"}),()=>{V=!0};if(G)return re({status:"created",message:"Storage was created. Refresh authorization when the WebID is ready."}),()=>{V=!0};if(L)return re({status:"invalid",message:L}),()=>{V=!0};re({status:"checking",message:"Checking Pod name..."});const Ee=setTimeout(()=>{ib({provisionCode:h,username:O}).then(be=>{V||X(be)})},300);return()=>{V=!0,clearTimeout(Ee)}},[G,L,O,h]);const I=async()=>{try{s(null),C(!0);const V=d?await h0({headers:c,pickWebIdUrl:d}):[];V.length>0&&B(null),await r(V)}catch(V){s(gl(V,"Failed to refresh authorization state"))}finally{C(!1)}},F=async V=>{if(V.preventDefault(),G){await I();return}if(L){s(L);return}if(k.status==="taken"){s(k.message||"This Pod name is already used on this storage.");return}if(k.status==="checking"){s("Please wait for the Pod name check to finish.");return}if(!i){s("Pod creation endpoint not found. Please reload and try again.");return}try{s(null),C(!0);const re=await ub({createPodUrl:i,headers:c,pickWebIdUrl:d,provisionCode:h,username:O});B(re.length>0?null:O),p(O),await r(re)}catch(re){s(gl(re,"Failed to create Pod"))}finally{C(!1)}},ce=(()=>{switch(k.status){case"available":return"text-emerald-600";case"taken":case"invalid":return"text-red-600";case"checking":return"text-zinc-500";case"created":return"text-amber-600";default:return"text-zinc-400"}})(),ne=g||k.status==="checking"||!G&&k.status==="taken"||!!L,ae=g?G?"Refreshing...":"Creating...":G?"Refresh authorization":"Create storage";return f.jsxs("form",{onSubmit:F,className:"rounded-xl border border-zinc-200 bg-zinc-50 p-4 space-y-3",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-zinc-700",children:"Create your first storage"}),f.jsx("p",{className:"text-[11px] text-zinc-500 mt-1",children:"Choose a short Pod name. After it is created, this authorization will continue here."})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 mb-1",children:"Pod name"}),f.jsx("input",{type:"text",value:x,onChange:V=>{p(Pt(V.target.value)),s(null)},placeholder:"alice",disabled:g,className:"w-full px-3 py-2 bg-white border border-zinc-200 rounded-lg text-sm text-zinc-700 focus:border-[#7C4DFF] focus:outline-none disabled:opacity-60",autoComplete:"username",required:!0}),k.message&&f.jsx("p",{className:`mt-1 text-[11px] ${ce}`,children:k.message})]}),f.jsx("button",{type:"submit",disabled:ne,className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium disabled:opacity-50 transition-colors",children:ae})]})}function fb(){const{controls:i,hasOidcPending:c,refetchControls:r}=Yt(),s=ta(),[d,h]=S.useState(!0),[y,x]=S.useState(!1),[p,g]=S.useState([]),[C,z]=S.useState(null),[B,k]=S.useState(()=>cn()),X=c?"/.account/oidc/pick-webid/":void 0;return S.useEffect(()=>{let O=!1;return(async()=>{try{const L=await Vr(fetch,B);if(O)return;k(L);const G=await db({accountWebIdUrl:i?.account?.webId,provisionCode:L});if(O)return;if(g(G.allWebIds),G.currentStorageWebIds.length>0){s(c?"/.account/oidc/consent/":"/.account/account/",{replace:!0});return}x(!0)}catch(L){O||(z(gl(L,"Failed to check storage state")),x(!0))}finally{O||h(!1)}})(),()=>{O=!0}},[i?.account?.webId,c,s,B]),f.jsxs(fn,{title:"Create storage",subtitle:"Set up this space before entering the dashboard",icon:e0,children:[C&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(Gr,{className:"w-4 h-4 inline mr-2"}),C]}),d&&f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(vl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}),!d&&y&&f.jsx(m0,{createPodUrl:i?.account?.pod,headers:Be(),onCreated:async O=>{if(c&&O.length===0){z("Storage was created. Click Refresh authorization when the WebID is ready.");return}await r(),s(c?"/.account/oidc/consent/":"/.account/account/",{replace:!0})},onError:z,pickWebIdUrl:X,provisionCode:B,webIdCandidates:p})]})}async function db(i){const c=i.accountWebIdUrl;if(!c)return{allWebIds:[],currentStorageWebIds:[]};const r=await fetch(c,{headers:Be(),credentials:"include"});if(!r.ok)return{allWebIds:[],currentStorageWebIds:[]};const s=await r.json().catch(()=>({})),d=Object.keys(s.webIdLinks??{});if(d.length===0)return{allWebIds:d,currentStorageWebIds:[]};if(Fr(i.provisionCode)){const x=await Ku(fetch,d,i.provisionCode);return{allWebIds:d,currentStorageWebIds:(x??[]).map(p=>p.webId)}}const y=await Ax(fetch,d,Tx(window.location.origin));return{allWebIds:d,currentStorageWebIds:y.map(x=>x.webId)}}function hb(i,c,r){return i.length>0?i:r?[]:c?[c]:[]}function mb(i,c){return i?.oidc?.cancel||`${c}oidc/cancel`}async function yb(i){const c=i.fetchImpl??fetch,r=i.timeoutMs??15e3,s=r>0?new AbortController:null;let d;s&&(d=setTimeout(()=>s.abort(),r));try{const h=await c(i.cancelUrl,{method:"POST",headers:i.headers,credentials:"include",body:JSON.stringify({}),signal:s?.signal});return await pb(h)}catch(h){throw gb(h,"AbortError")?new Error("Authorization cancellation timed out. Please close this tab and retry login."):h}finally{d&&clearTimeout(d)}}async function pb(i){const c=await i.json().catch(()=>null);if(!i.ok)throw new Error(Hu(c)||`Authorization cancellation failed (${i.status}).`);const r=Vu(c)&&typeof c.location=="string"?c.location.trim():"",s=i.headers.get("Location")?.trim()||"",d=r||s;if(!d)throw new Error("Authorization cancellation did not return a redirect URL.");return d}function gb(i,c){return Vu(i)&&i.name===c}function vb(){const{idpIndex:i,isLoggedIn:c,controls:r}=Yt(),s=ta(),[d,h]=S.useState(!0),[y,x]=S.useState(null),[p,g]=S.useState(null),[C,z]=S.useState([]),[B,k]=S.useState(""),[X,O]=S.useState(null),[L,G]=S.useState(null),[I,F]=S.useState(!0),[ce,ne]=S.useState(()=>cn()),[ae,V]=S.useState(!1),[re,Ee]=S.useState(!1),be=`${i}oidc/consent/`,ke=`${i}oidc/pick-webid/`,Ue=mb(r,i),qe=S.useCallback(async()=>{const v=await Vr(fetch,ce);ne(v);const T=await fetch(be,{headers:Be(),credentials:"include"});if(console.log("[Consent] GET consent response status:",T.status),T.status===401||T.status===403)return O("Please sign in to continue authorization."),[];if(!T.ok){const ie=await T.json().catch(()=>({}));throw new Error(Hu(ie)||"Failed to load consent info")}const H=await T.json().catch(()=>({}));x(H.client||{}),g(H.webId||null);const Q=await fetch(ke,{headers:Be(),credentials:"include"});if(!Q.ok)return z([]),k(""),[];const Y=await Q.json().catch(()=>({})),$=Array.isArray(Y.webIds)?Y.webIds.filter(ie=>typeof ie=="string"&&ie.length>0):[],le=v?await Ku(fetch,$,v):void 0,ge=le?le.map(ie=>ie.webId):$;return z(ge),H.webId&&ge.includes(H.webId)?k(H.webId):ge.length>0?k(ge[0]):k(""),ge},[be,ke,ce]);S.useEffect(()=>{console.log("[Consent] Page loaded, fetching consent info..."),si(window.location.href),(async()=>{try{await qe()}catch(v){O(gl(v,"Failed to load consent info"))}finally{h(!1)}})()},[qe]);const _e=v=>{try{const T=new URL(v),H=T.pathname.split("/").filter(Boolean);return{provider:T.host,podId:H[0]??"-",full:v}}catch{return{provider:"-",podId:"-",full:v}}},Ne=async v=>{try{await navigator.clipboard.writeText(v),G(v),setTimeout(()=>G(null),1200)}catch{G(null)}},D=async()=>{try{r?.account?.logout&&await fetch(r.account.logout,{method:"POST",headers:Be(),credentials:"include"}),Yr(),window.location.href="/.account/login/password/"}catch{window.location.href="/.account/login/password/"}},q=async v=>{if(console.log("[Consent] handleConsent called, allow:",v),!v){await J();return}try{if(V(!0),O(null),B&&B!==p){console.log("[Consent] Picking WebID:",B);const $=await fetch(ke,{method:"POST",headers:Be({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({webId:B,remember:!1})}),le=await $.json().catch(()=>({}));if(!$.ok)throw new Error(le.message||"Failed to select WebID");le.location&&await fetch(le.location,{credentials:"include"})}const T=await fetch(be,{method:"POST",headers:Be({"Content-Type":"application/json",Accept:"application/json"}),credentials:"include",body:JSON.stringify({remember:I})}),H=await T.json().catch(()=>({}));if(console.log("[Consent] Response:",T.status,H),console.log("[Consent] Location header:",T.headers.get("Location")),!T.ok)throw new Error(H.message||"Consent failed");const Q=T.headers.get("Location"),Y=H.location||Q;console.log("[Consent] Redirect URL:",Y),Y?window.location.assign(Y):(O("Authorization completed but no redirect URL received. The application may need to restart the login flow."),h(!1))}catch(T){O(gl(T,"Consent failed"))}finally{V(!1)}},J=async()=>{console.log("[Consent] Cancelling...");try{Ee(!0),O(null);const v=await yb({cancelUrl:Ue,headers:Be({"Content-Type":"application/json",Accept:"application/json"})});window.location.href=v}catch(v){O(gl(v,"Authorization cancellation failed"))}finally{Ee(!1)}},te=hb(C,p,!!ce),fe=ae||re;return f.jsxs(fn,{title:"Authorize",subtitle:`${y?.client_name||"Application"} requests access`,icon:oi,children:[!c&&f.jsxs("div",{className:"mb-4 bg-amber-50 border border-amber-200 rounded-xl p-3 text-zinc-600 text-[11px] space-y-3",children:[f.jsx("p",{children:"Sign in to approve this request and choose which WebID to share."}),f.jsx("button",{onClick:()=>{si(window.location.href),s("/.account/login/password/")},className:"w-full py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs font-medium",children:"Go to Sign in"})]}),X&&f.jsxs("div",{className:"mb-4 bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:[f.jsx(Gr,{className:"w-4 h-4 inline mr-2"}),X]}),d?f.jsx("div",{className:"flex justify-center py-6",children:f.jsx(vl,{className:"w-6 h-6 animate-spin text-[#7C4DFF]"})}):f.jsxs("div",{className:"space-y-4",children:[(y?.client_uri||y?.client_id)&&f.jsxs("div",{className:"text-center text-[11px] text-zinc-500 space-y-1",children:[y?.client_uri&&f.jsx("div",{children:f.jsx("a",{href:y.client_uri,target:"_blank",rel:"noopener",className:"text-[#7C4DFF] hover:text-[#6B3FE8]",children:y.client_uri})}),y?.client_id&&f.jsxs("div",{className:"text-[10px] text-zinc-400 truncate",title:y.client_id,children:["ID: ",y.client_id]})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("label",{className:"block text-[11px] font-medium text-zinc-500 uppercase tracking-wider",children:"Sign in as"}),te.length>0&&f.jsxs("div",{className:"text-[10px] text-zinc-500",children:["Provider: ",f.jsx("span",{className:"text-zinc-600",children:_e(te[0]).provider})]})]}),te.length===0?f.jsx(m0,{createPodUrl:r?.account?.pod,headers:Be(),onCreated:async v=>{if(v.length===0){await qe(),O("Storage was created. Click Refresh authorization when the WebID is ready.");return}z(v),k(v[0]||"")},onError:O,pickWebIdUrl:ke,provisionCode:ce,webIdCandidates:[p]}):f.jsx("div",{className:"space-y-1",children:te.map(v=>{const T=_e(v);return f.jsxs("label",{className:nn("flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-colors",B===v?"border-[#7C4DFF]/50 bg-[#7C4DFF]/10":"border-zinc-200 bg-zinc-50 hover:border-zinc-300"),children:[f.jsx("input",{type:"radio",name:"webId",value:v,checked:B===v,onChange:H=>k(H.target.value),className:"text-[#7C4DFF]"}),f.jsx("div",{className:"min-w-0 flex-1",children:f.jsx("div",{className:"text-sm font-medium text-zinc-700 truncate",title:T.full,children:T.podId})}),f.jsx("button",{type:"button",onClick:H=>{H.preventDefault(),Ne(v)},className:"px-2 py-1 text-[10px] rounded-lg border border-zinc-300 text-zinc-600 hover:text-zinc-900 hover:border-[#7C4DFF]/50 shrink-0",children:L===v?"Copied":"Copy"})]},v)})})]}),f.jsxs("label",{className:"flex items-center gap-2 text-xs text-zinc-600 cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:I,onChange:v=>F(v.target.checked),className:"rounded border-zinc-300 text-[#7C4DFF] focus:ring-[#7C4DFF]"}),"Remember this client"]}),f.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[f.jsx("button",{onClick:()=>q(!1),disabled:fe,className:"py-2.5 border border-zinc-200 rounded-xl text-xs text-zinc-500 hover:bg-zinc-100 disabled:opacity-50 transition-colors",children:re?"Denying...":"Deny"}),f.jsx("button",{onClick:()=>q(!0),disabled:fe||te.length===0,className:"py-2.5 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-xs disabled:opacity-50 transition-colors",children:ae?"Authorizing...":"Authorize"})]}),f.jsxs("div",{className:"flex justify-center gap-4 pt-2 border-t border-zinc-100",children:[f.jsx("button",{type:"button",onClick:()=>{si(window.location.href),s("/.account/account/")},className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Edit account"}),f.jsx("button",{type:"button",onClick:D,className:"text-[11px] text-zinc-500 hover:text-zinc-700",children:"Use a different account"})]})]})]})}function xb(){const{controls:i,isLoggedIn:c}=Yt(),r=ta(),[s,d]=S.useState(!1),[h,y]=S.useState(!1);if(c)return f.jsx(ja,{to:"/.account/account/",replace:!0});const x=async p=>{p.preventDefault(),d(!0);const g=new FormData(p.currentTarget).get("email");try{await fetch(i?.password?.forgot||"/.account/login/password/forgot/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({email:g})}),y(!0)}catch{alert("Failed to send reset email")}finally{d(!1)}};return f.jsx(fn,{title:"Reset Password",subtitle:"We will send a reset link to your email.",icon:zr,showBack:!0,onBack:()=>r("/.account/login/password/"),children:h?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx(Wa,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"If that email exists, we've sent a reset link."}),f.jsx("p",{className:"text-[10px] text-zinc-500 mt-2",children:"Check your spam folder if you don't see it."})]}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"flex-1 py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Sign in"}),f.jsx("button",{onClick:()=>y(!1),className:"flex-1 py-3 bg-zinc-100 hover:bg-zinc-200 text-zinc-700 rounded-xl text-sm font-medium",children:"Resend"})]})]}):f.jsxs("form",{className:"space-y-4",onSubmit:x,children:[f.jsxs("div",{className:"relative",children:[f.jsx(zr,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"email",type:"email",required:!0,className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"Email address"})]}),f.jsx("button",{type:"submit",disabled:s,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:s?f.jsx(vl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Send Reset Link ",f.jsx(Zu,{className:"h-4 w-4"})]})})]})})}function bb(){const{controls:i,isLoggedIn:c}=Yt(),r=ta(),[s]=jv(),[d,h]=S.useState(!1),[y,x]=S.useState(!1),[p,g]=S.useState(null),[C,z]=S.useState(""),[B,k]=S.useState(""),X=s.get("rid"),O=C.length>0&&B.length>0&&C===B;if(c)return f.jsx(ja,{to:"/.account/account/",replace:!0});if(!X)return f.jsx(ja,{to:"/.account/login/password/forgot/",replace:!0});const L=async G=>{if(G.preventDefault(),!O){g("Passwords do not match");return}h(!0),g(null);try{const I=i?.password?.reset||"/.account/login/password/reset/",F=await fetch(I,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({recordId:X,password:C})});if(F.ok)x(!0);else{const ce=await F.json().catch(()=>({}));g(ce.message||"Failed to reset password")}}catch{g("Network error")}finally{h(!1)}};return f.jsx(fn,{title:"Reset Password",subtitle:"Enter your new password.",icon:ci,children:y?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-center",children:[f.jsx("div",{className:"w-10 h-10 bg-emerald-100 rounded-full flex items-center justify-center mx-auto mb-3",children:f.jsx(Wa,{className:"w-5 h-5 text-emerald-600"})}),f.jsx("p",{className:"text-xs text-zinc-600",children:"Your password has been reset successfully."})]}),f.jsx("button",{onClick:()=>r("/.account/login/password/"),className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium",children:"Go to Sign in"})]}):f.jsxs("form",{className:"space-y-4",onSubmit:L,children:[p&&f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-3 text-red-600 text-[11px]",children:p}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"relative",children:[f.jsx(ci,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"password",type:"password",required:!0,value:C,onChange:G=>z(G.target.value),className:"block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border border-zinc-200 rounded-xl text-sm placeholder:text-zinc-400 focus:border-[#7C4DFF] focus:outline-none",placeholder:"New password"})]}),f.jsxs("div",{className:"relative",children:[O?f.jsx(Wa,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-emerald-500"}):f.jsx(ci,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-zinc-400"}),f.jsx("input",{name:"confirmPassword",type:"password",required:!0,value:B,onChange:G=>k(G.target.value),className:`block w-full pl-10 pr-4 py-2.5 bg-zinc-50 border rounded-xl text-sm placeholder:text-zinc-400 focus:outline-none transition-colors ${O?"border-emerald-300 focus:border-emerald-500":"border-zinc-200 focus:border-[#7C4DFF]"}`,placeholder:"Confirm new password"})]})]}),f.jsx("button",{type:"submit",disabled:d||!O,className:"w-full py-3 bg-[#7C4DFF] hover:bg-[#6B3FE8] text-white rounded-xl text-sm font-medium flex items-center justify-center gap-2 disabled:opacity-50",children:d?f.jsx(vl,{className:"w-4 h-4 animate-spin"}):f.jsxs(f.Fragment,{children:["Reset Password ",f.jsx(Zu,{className:"h-4 w-4"})]})}),f.jsx("div",{className:"text-center",children:f.jsx("button",{type:"button",onClick:()=>r("/.account/login/password/"),className:"text-[11px] text-[#7C4DFF] hover:text-[#6B3FE8]",children:"Back to Sign in"})})]})})}function Sb(){const{controls:i,isLoggedIn:c}=Yt(),[r,s]=S.useState([]),[d,h]=S.useState(!0);return S.useEffect(()=>{if(c){window.location.href="/.account/account/";return}(async()=>{try{if(i?.main?.logins){const x=await(await fetch(i.main.logins,{headers:Be(),credentials:"include"})).json(),p=Object.entries(x.logins||{});if(p.length===1){window.location.href=p[0][1];return}if(p.length===0){window.location.href="/.account/login/password/";return}s(p)}else{window.location.href="/.account/login/password/";return}}catch{window.location.href=i?.html?.password?.login||"/.account/login/password/"}finally{h(!1)}})()},[i,c]),d?f.jsx(l0,{}):f.jsx(fn,{title:"Select Login Method",children:f.jsx("div",{className:"space-y-2",children:r.map(([y,x])=>f.jsx("a",{href:x,className:"block w-full py-3 px-4 bg-zinc-100 hover:bg-zinc-200 border border-zinc-200 rounded-xl text-center text-zinc-700 text-sm font-medium",children:y},y))})})}var y0={"chatkit.error":"onError","chatkit.history.close":"onHistoryClose","chatkit.history.open":"onHistoryOpen","chatkit.response.end":"onResponseEnd","chatkit.response.start":"onResponseStart","chatkit.log":"onLog","chatkit.thread.change":"onThreadChange","chatkit.thread.load.start":"onThreadLoadStart","chatkit.thread.load.end":"onThreadLoadEnd","chatkit.tool.change":"onToolChange","chatkit.ready":"onReady","chatkit.effect":"onEffect","chatkit.deeplink":"onDeeplink"},wb=Object.keys(y0),jb=S.forwardRef(function({control:c,...r},s){const d=S.useRef(null);return S.useLayoutEffect(()=>{const h=d.current;if(!h)return;if(customElements.get("openai-chatkit")){h.setOptions(c.options);return}let y=!0;return customElements.whenDefined("openai-chatkit").then(()=>{y&&h.setOptions(c.options)}),()=>{y=!1}},[c.options]),S.useEffect(()=>{const h=d.current;if(!h)return;const y=new AbortController;for(const x of wb)h.addEventListener(x,p=>{const g=y0[x],C=c.handlers[g];typeof C=="function"&&C(p.detail)},{signal:y.signal});return()=>{y.abort()}},[c.handlers]),f.jsx("openai-chatkit",{ref:h=>{d.current=h,c.setInstance(h),typeof s=="function"?s(h):s&&(s.current=h),d.current},...r})});function Nm(i){return i!==null&&typeof i=="object"&&[null,Object.prototype].includes(Object.getPrototypeOf(i))||Array.isArray(i)}function Ar(i,c,r=new WeakMap){if(Object.is(i,c))return!0;if(typeof i=="function"&&typeof c=="function")return typeof i==typeof c;if(!Nm(i)||!Nm(c))return!1;const s=r.get(i);if(s&&s===c)return!0;if(r.set(i,c),Array.isArray(i)||Array.isArray(c)){if(!Array.isArray(i)||!Array.isArray(c)||i.length!==c.length)return!1;for(let y=0;y<i.length;y++)if(!Ar(i[y],c[y],r))return!1;return!0}const d=Object.keys(i),h=Object.keys(c);if(d.length!==h.length)return!1;for(let y=0;y<d.length;y++){const x=d[y];if(!Object.prototype.hasOwnProperty.call(c,x))return!1;const p=i[x],g=c[x];if(!Ar(p,g,r))return!1}return!0}function zb(i){const c=[],r=(h,y)=>y.reduce((x,p)=>x==null?x:x[p],h),s=(h,y)=>(...x)=>{const p=r(i.current,h),g=p?.[y];if(typeof g=="function")return g.apply(p,x)},d=h=>{if(typeof h=="function"){const y=c[c.length-1],x=c.slice(0,-1);return s(x,y)}if(Array.isArray(h)){const y=c.length,x=new Array(h.length);for(let p=0;p<h.length;p++)c[y]=p,x[p]=d(h[p]);return c.length=y,x}if(h&&typeof h=="object"){const y=c.length,x={};for(const p of Object.keys(h))c[y]=p,x[p]=d(h[p]);return c.length=y,x}return h};return d(i.current)}function Eb(i){const c=br.useRef(i);c.current=i;const r=br.useRef(null);return(!r.current||!Ar(r.current.snapshot,i))&&(r.current={snapshot:i,shaped:zb(c)}),r.current.shaped}var Nb=Object.freeze(["focusComposer","setThreadId","sendUserMessage","setComposerValue","fetchUpdates","sendCustomAction","showHistory","hideHistory"]);function Cb(i){const c=S.useRef(null),r=Eb(i),s=S.useMemo(()=>Nb.reduce((y,x)=>(y[x]=(...p)=>{if(!c.current){console.warn("ChatKit element is not mounted");return}return c.current[x](...p)},y),{}),[]),d=S.useCallback(y=>{c.current=y},[]),h=S.useMemo(()=>{const y={},x={};for(const[p,g]of Object.entries(r))/^on[A-Z]/.test(p)&&p!=="onClientTool"?x[p]=g:y[p]=g;return{setInstance:d,options:y,handlers:x}},[r,d]);return S.useMemo(()=>({...s,control:h,ref:c}),[s,h])}const Cm="http://localhost:3000/chatkit",Am="domain_pk_localhost_dev";function Ab(){const{isLoggedIn:i}=Yt(),[c,r]=S.useState(""),[s,d]=S.useState(!1),h=S.useCallback(async(x,p={})=>{const g={...p.headers||{}};return c?g.Authorization=`Bearer ${c}`:Object.assign(g,Be(g)),fetch(x,{...p,headers:g,credentials:"include"})},[c]),y=Cb({api:{url:Cm,domainKey:Am,fetch:h},theme:"light",header:{enabled:!0,title:{enabled:!0,text:"Xpod Chat"}},history:{enabled:!0}});return f.jsxs("div",{className:"min-h-screen bg-gray-50",children:[f.jsxs("header",{className:"bg-white shadow-sm border-b",children:[f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-4 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("a",{href:"/.account/",className:"text-gray-500 hover:text-gray-700",children:f.jsx("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),f.jsx("h1",{className:"text-xl font-semibold text-gray-900",children:"Chat"})]}),f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("button",{onClick:()=>d(!s),className:"text-sm text-gray-500 hover:text-gray-700",children:c?"🔑 API Key Set":"Set API Key"}),f.jsx("div",{className:"text-sm text-gray-500",children:i?f.jsx("span",{className:"text-green-600",children:"● Logged in"}):f.jsx("a",{href:"/.account/login/",className:"text-blue-600 hover:text-blue-800",children:"Login"})})]})]}),s&&f.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-2 border-t bg-gray-50",children:[f.jsxs("div",{className:"flex items-center space-x-2",children:[f.jsx("input",{type:"password",placeholder:"Enter API Key (sk-xxx)",value:c,onChange:x=>r(x.target.value),className:"flex-1 px-3 py-2 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"}),f.jsx("button",{onClick:()=>d(!1),className:"px-4 py-2 bg-blue-600 text-white text-sm rounded-lg hover:bg-blue-700",children:"Save"})]}),f.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Get your API Key from the Account page after logging in."})]})]}),f.jsxs("main",{className:"max-w-4xl mx-auto p-4",children:[f.jsx("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden",style:{height:"calc(100vh - 180px)"},children:f.jsx(jb,{control:y.control,style:{width:"100%",height:"100%"}})}),f.jsxs("div",{className:"mt-4 p-4 bg-gray-100 rounded-lg text-xs text-gray-600",children:[f.jsxs("p",{children:[f.jsx("strong",{children:"API URL:"})," ",Cm]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Domain Key:"})," ",Am]}),f.jsxs("p",{children:[f.jsx("strong",{children:"Auth:"})," ",c?"API Key":i?"Session":"None"]})]})]})]})}function Tb(){const{isInitializing:i,initError:c}=Yt();return i?f.jsx(l0,{}):c?f.jsx(px,{message:c}):f.jsxs(Kg,{children:[f.jsx(Nt,{path:"/.account/",element:f.jsx(Yx,{})}),f.jsx(Nt,{path:"/.account/about/",element:f.jsx(Gx,{})}),f.jsx(Nt,{path:"/.account/account/",element:f.jsx(vm,{allowOidcPending:!0,children:f.jsx(lb,{})})}),f.jsx(Nt,{path:"/.account/create-pod/",element:f.jsx(vm,{allowOidcPending:!0,children:f.jsx(fb,{})})}),f.jsx(Nt,{path:"/chat/",element:f.jsx(Ab,{})}),f.jsx(Nt,{path:"/.account/login/",element:f.jsx(Sb,{})}),f.jsx(Nt,{path:"/.account/login/password/",element:f.jsx(Nr,{initialIsRegister:!1})}),f.jsx(Nt,{path:"/.account/login/password/register/",element:f.jsx(Nr,{initialIsRegister:!0})}),f.jsx(Nt,{path:"/.account/login/password/forgot/",element:f.jsx(xb,{})}),f.jsx(Nt,{path:"/.account/login/password/reset/",element:f.jsx(bb,{})}),f.jsx(Nt,{path:"/.account/oidc/consent/",element:f.jsx(vb,{})}),f.jsx(Nt,{path:"*",element:f.jsx(ja,{to:"/.account/",replace:!0})})]})}function Rb(){return f.jsx(vv,{children:f.jsx(Bv,{children:f.jsx(Tb,{})})})}try{const i=new URLSearchParams(location.search).get("provisionCode");i&&sessionStorage.setItem("provisionCode",i)}catch{}Fp.createRoot(document.getElementById("root")).render(f.jsx(br.StrictMode,{children:f.jsx(Rb,{})}));