leduo-patrol 2.2.1 → 2.2.3

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 (179) hide show
  1. package/README.md +11 -2
  2. package/dist/server/__tests__/acp-session.test.js +92 -0
  3. package/dist/server/__tests__/activity-monitor.test.js +13 -1
  4. package/dist/server/__tests__/session-manager.test.js +215 -1
  5. package/dist/server/acp-session.js +476 -0
  6. package/dist/server/activity-monitor.js +22 -7
  7. package/dist/server/index.js +54 -1
  8. package/dist/server/session-manager.js +1117 -121
  9. package/dist/web/assets/index-B-YXVUoQ.css +1 -0
  10. package/dist/web/assets/index-Bu0K7QgY.js +21 -0
  11. package/dist/web/index.html +2 -2
  12. package/package.json +3 -1
  13. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/LICENSE +191 -0
  14. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/README.md +53 -0
  15. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +823 -0
  16. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.js +965 -0
  17. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -0
  18. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.test.d.ts +1 -0
  19. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +839 -0
  20. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/acp.test.js.map +1 -0
  21. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/agent.d.ts +2 -0
  22. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js +225 -0
  23. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js.map +1 -0
  24. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/client.d.ts +2 -0
  25. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/client.js +130 -0
  26. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/examples/client.js.map +1 -0
  27. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +35 -0
  28. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js +5 -0
  29. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js.map +1 -0
  30. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +27 -0
  31. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +28 -0
  32. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -0
  33. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +2870 -0
  34. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js +3 -0
  35. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js.map +1 -0
  36. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +5333 -0
  37. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +1554 -0
  38. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -0
  39. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/stream.d.ts +24 -0
  40. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/stream.js +64 -0
  41. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/dist/stream.js.map +1 -0
  42. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/package.json +66 -0
  43. package/vendor/claude-code-acp/node_modules/@agentclientprotocol/sdk/schema/schema.json +4125 -0
  44. package/vendor/claude-code-acp/node_modules/@types/node/LICENSE +21 -0
  45. package/vendor/claude-code-acp/node_modules/@types/node/README.md +15 -0
  46. package/vendor/claude-code-acp/node_modules/@types/node/assert/strict.d.ts +105 -0
  47. package/vendor/claude-code-acp/node_modules/@types/node/assert.d.ts +955 -0
  48. package/vendor/claude-code-acp/node_modules/@types/node/async_hooks.d.ts +623 -0
  49. package/vendor/claude-code-acp/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  50. package/vendor/claude-code-acp/node_modules/@types/node/buffer.d.ts +1810 -0
  51. package/vendor/claude-code-acp/node_modules/@types/node/child_process.d.ts +1428 -0
  52. package/vendor/claude-code-acp/node_modules/@types/node/cluster.d.ts +486 -0
  53. package/vendor/claude-code-acp/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  54. package/vendor/claude-code-acp/node_modules/@types/node/console.d.ts +151 -0
  55. package/vendor/claude-code-acp/node_modules/@types/node/constants.d.ts +20 -0
  56. package/vendor/claude-code-acp/node_modules/@types/node/crypto.d.ts +4065 -0
  57. package/vendor/claude-code-acp/node_modules/@types/node/dgram.d.ts +564 -0
  58. package/vendor/claude-code-acp/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
  59. package/vendor/claude-code-acp/node_modules/@types/node/dns/promises.d.ts +503 -0
  60. package/vendor/claude-code-acp/node_modules/@types/node/dns.d.ts +922 -0
  61. package/vendor/claude-code-acp/node_modules/@types/node/domain.d.ts +166 -0
  62. package/vendor/claude-code-acp/node_modules/@types/node/events.d.ts +1054 -0
  63. package/vendor/claude-code-acp/node_modules/@types/node/fs/promises.d.ts +1329 -0
  64. package/vendor/claude-code-acp/node_modules/@types/node/fs.d.ts +4676 -0
  65. package/vendor/claude-code-acp/node_modules/@types/node/globals.d.ts +150 -0
  66. package/vendor/claude-code-acp/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  67. package/vendor/claude-code-acp/node_modules/@types/node/http.d.ts +2167 -0
  68. package/vendor/claude-code-acp/node_modules/@types/node/http2.d.ts +2480 -0
  69. package/vendor/claude-code-acp/node_modules/@types/node/https.d.ts +405 -0
  70. package/vendor/claude-code-acp/node_modules/@types/node/index.d.ts +115 -0
  71. package/vendor/claude-code-acp/node_modules/@types/node/inspector/promises.d.ts +41 -0
  72. package/vendor/claude-code-acp/node_modules/@types/node/inspector.d.ts +224 -0
  73. package/vendor/claude-code-acp/node_modules/@types/node/inspector.generated.d.ts +4226 -0
  74. package/vendor/claude-code-acp/node_modules/@types/node/module.d.ts +819 -0
  75. package/vendor/claude-code-acp/node_modules/@types/node/net.d.ts +933 -0
  76. package/vendor/claude-code-acp/node_modules/@types/node/os.d.ts +507 -0
  77. package/vendor/claude-code-acp/node_modules/@types/node/package.json +155 -0
  78. package/vendor/claude-code-acp/node_modules/@types/node/path/posix.d.ts +8 -0
  79. package/vendor/claude-code-acp/node_modules/@types/node/path/win32.d.ts +8 -0
  80. package/vendor/claude-code-acp/node_modules/@types/node/path.d.ts +187 -0
  81. package/vendor/claude-code-acp/node_modules/@types/node/perf_hooks.d.ts +643 -0
  82. package/vendor/claude-code-acp/node_modules/@types/node/process.d.ts +2161 -0
  83. package/vendor/claude-code-acp/node_modules/@types/node/punycode.d.ts +117 -0
  84. package/vendor/claude-code-acp/node_modules/@types/node/querystring.d.ts +152 -0
  85. package/vendor/claude-code-acp/node_modules/@types/node/quic.d.ts +910 -0
  86. package/vendor/claude-code-acp/node_modules/@types/node/readline/promises.d.ts +161 -0
  87. package/vendor/claude-code-acp/node_modules/@types/node/readline.d.ts +541 -0
  88. package/vendor/claude-code-acp/node_modules/@types/node/repl.d.ts +415 -0
  89. package/vendor/claude-code-acp/node_modules/@types/node/sea.d.ts +162 -0
  90. package/vendor/claude-code-acp/node_modules/@types/node/sqlite.d.ts +955 -0
  91. package/vendor/claude-code-acp/node_modules/@types/node/stream/consumers.d.ts +38 -0
  92. package/vendor/claude-code-acp/node_modules/@types/node/stream/promises.d.ts +211 -0
  93. package/vendor/claude-code-acp/node_modules/@types/node/stream/web.d.ts +296 -0
  94. package/vendor/claude-code-acp/node_modules/@types/node/stream.d.ts +1760 -0
  95. package/vendor/claude-code-acp/node_modules/@types/node/string_decoder.d.ts +67 -0
  96. package/vendor/claude-code-acp/node_modules/@types/node/test/reporters.d.ts +96 -0
  97. package/vendor/claude-code-acp/node_modules/@types/node/test.d.ts +2240 -0
  98. package/vendor/claude-code-acp/node_modules/@types/node/timers/promises.d.ts +108 -0
  99. package/vendor/claude-code-acp/node_modules/@types/node/timers.d.ts +159 -0
  100. package/vendor/claude-code-acp/node_modules/@types/node/tls.d.ts +1198 -0
  101. package/vendor/claude-code-acp/node_modules/@types/node/trace_events.d.ts +197 -0
  102. package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  103. package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  104. package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  105. package/vendor/claude-code-acp/node_modules/@types/node/ts5.6/index.d.ts +117 -0
  106. package/vendor/claude-code-acp/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  107. package/vendor/claude-code-acp/node_modules/@types/node/ts5.7/index.d.ts +117 -0
  108. package/vendor/claude-code-acp/node_modules/@types/node/tty.d.ts +250 -0
  109. package/vendor/claude-code-acp/node_modules/@types/node/url.d.ts +519 -0
  110. package/vendor/claude-code-acp/node_modules/@types/node/util/types.d.ts +558 -0
  111. package/vendor/claude-code-acp/node_modules/@types/node/util.d.ts +1662 -0
  112. package/vendor/claude-code-acp/node_modules/@types/node/v8.d.ts +983 -0
  113. package/vendor/claude-code-acp/node_modules/@types/node/vm.d.ts +1208 -0
  114. package/vendor/claude-code-acp/node_modules/@types/node/wasi.d.ts +202 -0
  115. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  116. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  117. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/console.d.ts +9 -0
  118. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  119. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  120. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  121. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/events.d.ts +106 -0
  122. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  123. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  124. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  125. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  126. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  127. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  128. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  129. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  130. package/vendor/claude-code-acp/node_modules/@types/node/web-globals/url.d.ts +24 -0
  131. package/vendor/claude-code-acp/node_modules/@types/node/worker_threads.d.ts +717 -0
  132. package/vendor/claude-code-acp/node_modules/@types/node/zlib.d.ts +618 -0
  133. package/vendor/claude-code-acp/node_modules/undici-types/LICENSE +21 -0
  134. package/vendor/claude-code-acp/node_modules/undici-types/README.md +6 -0
  135. package/vendor/claude-code-acp/node_modules/undici-types/agent.d.ts +32 -0
  136. package/vendor/claude-code-acp/node_modules/undici-types/api.d.ts +43 -0
  137. package/vendor/claude-code-acp/node_modules/undici-types/balanced-pool.d.ts +29 -0
  138. package/vendor/claude-code-acp/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  139. package/vendor/claude-code-acp/node_modules/undici-types/cache.d.ts +36 -0
  140. package/vendor/claude-code-acp/node_modules/undici-types/client-stats.d.ts +15 -0
  141. package/vendor/claude-code-acp/node_modules/undici-types/client.d.ts +108 -0
  142. package/vendor/claude-code-acp/node_modules/undici-types/connector.d.ts +34 -0
  143. package/vendor/claude-code-acp/node_modules/undici-types/content-type.d.ts +21 -0
  144. package/vendor/claude-code-acp/node_modules/undici-types/cookies.d.ts +30 -0
  145. package/vendor/claude-code-acp/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  146. package/vendor/claude-code-acp/node_modules/undici-types/dispatcher.d.ts +276 -0
  147. package/vendor/claude-code-acp/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  148. package/vendor/claude-code-acp/node_modules/undici-types/errors.d.ts +161 -0
  149. package/vendor/claude-code-acp/node_modules/undici-types/eventsource.d.ts +66 -0
  150. package/vendor/claude-code-acp/node_modules/undici-types/fetch.d.ts +211 -0
  151. package/vendor/claude-code-acp/node_modules/undici-types/formdata.d.ts +108 -0
  152. package/vendor/claude-code-acp/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  153. package/vendor/claude-code-acp/node_modules/undici-types/global-origin.d.ts +7 -0
  154. package/vendor/claude-code-acp/node_modules/undici-types/h2c-client.d.ts +73 -0
  155. package/vendor/claude-code-acp/node_modules/undici-types/handlers.d.ts +15 -0
  156. package/vendor/claude-code-acp/node_modules/undici-types/header.d.ts +160 -0
  157. package/vendor/claude-code-acp/node_modules/undici-types/index.d.ts +80 -0
  158. package/vendor/claude-code-acp/node_modules/undici-types/interceptors.d.ts +39 -0
  159. package/vendor/claude-code-acp/node_modules/undici-types/mock-agent.d.ts +68 -0
  160. package/vendor/claude-code-acp/node_modules/undici-types/mock-call-history.d.ts +111 -0
  161. package/vendor/claude-code-acp/node_modules/undici-types/mock-client.d.ts +27 -0
  162. package/vendor/claude-code-acp/node_modules/undici-types/mock-errors.d.ts +12 -0
  163. package/vendor/claude-code-acp/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  164. package/vendor/claude-code-acp/node_modules/undici-types/mock-pool.d.ts +27 -0
  165. package/vendor/claude-code-acp/node_modules/undici-types/package.json +55 -0
  166. package/vendor/claude-code-acp/node_modules/undici-types/patch.d.ts +29 -0
  167. package/vendor/claude-code-acp/node_modules/undici-types/pool-stats.d.ts +19 -0
  168. package/vendor/claude-code-acp/node_modules/undici-types/pool.d.ts +41 -0
  169. package/vendor/claude-code-acp/node_modules/undici-types/proxy-agent.d.ts +29 -0
  170. package/vendor/claude-code-acp/node_modules/undici-types/readable.d.ts +68 -0
  171. package/vendor/claude-code-acp/node_modules/undici-types/retry-agent.d.ts +8 -0
  172. package/vendor/claude-code-acp/node_modules/undici-types/retry-handler.d.ts +125 -0
  173. package/vendor/claude-code-acp/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  174. package/vendor/claude-code-acp/node_modules/undici-types/util.d.ts +18 -0
  175. package/vendor/claude-code-acp/node_modules/undici-types/utility.d.ts +7 -0
  176. package/vendor/claude-code-acp/node_modules/undici-types/webidl.d.ts +341 -0
  177. package/vendor/claude-code-acp/node_modules/undici-types/websocket.d.ts +186 -0
  178. package/dist/web/assets/index-B5Dh2E8j.css +0 -1
  179. package/dist/web/assets/index-xPPPaEde.js +0 -13
@@ -1,13 +0,0 @@
1
- (function(){const N=document.createElement("link").relList;if(N&&N.supports&&N.supports("modulepreload"))return;for(const x of document.querySelectorAll('link[rel="modulepreload"]'))h(x);new MutationObserver(x=>{for(const L of x)if(L.type==="childList")for(const X of L.addedNodes)X.tagName==="LINK"&&X.rel==="modulepreload"&&h(X)}).observe(document,{childList:!0,subtree:!0});function D(x){const L={};return x.integrity&&(L.integrity=x.integrity),x.referrerPolicy&&(L.referrerPolicy=x.referrerPolicy),x.crossOrigin==="use-credentials"?L.credentials="include":x.crossOrigin==="anonymous"?L.credentials="omit":L.credentials="same-origin",L}function h(x){if(x.ep)return;x.ep=!0;const L=D(x);fetch(x.href,L)}})();function am(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Kf={exports:{}},cu={};var Qd;function ry(){if(Qd)return cu;Qd=1;var r=Symbol.for("react.transitional.element"),N=Symbol.for("react.fragment");function D(h,x,L){var X=null;if(L!==void 0&&(X=""+L),x.key!==void 0&&(X=""+x.key),"key"in x){L={};for(var dl in x)dl!=="key"&&(L[dl]=x[dl])}else L=x;return x=L.ref,{$$typeof:r,type:h,key:X,ref:x!==void 0?x:null,props:L}}return cu.Fragment=N,cu.jsx=D,cu.jsxs=D,cu}var Zd;function dy(){return Zd||(Zd=1,Kf.exports=ry()),Kf.exports}var f=dy(),wf={exports:{}},k={};var Vd;function my(){if(Vd)return k;Vd=1;var r=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),X=Symbol.for("react.context"),dl=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),tl=Symbol.iterator;function W(m){return m===null||typeof m!="object"?null:(m=tl&&m[tl]||m["@@iterator"],typeof m=="function"?m:null)}var Ol={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rl=Object.assign,ml={};function ft(m,_,U){this.props=m,this.context=_,this.refs=ml,this.updater=U||Ol}ft.prototype.isReactComponent={},ft.prototype.setState=function(m,_){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,_,"setState")},ft.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function wt(){}wt.prototype=ft.prototype;function Gl(m,_,U){this.props=m,this.context=_,this.refs=ml,this.updater=U||Ol}var jl=Gl.prototype=new wt;jl.constructor=Gl,Rl(jl,ft.prototype),jl.isPureReactComponent=!0;var Et=Array.isArray;function $l(){}var P={H:null,A:null,T:null,S:null},wl=Object.prototype.hasOwnProperty;function rt(m,_,U){var q=U.ref;return{$$typeof:r,type:m,key:_,ref:q!==void 0?q:null,props:U}}function Jt(m,_){return rt(m.type,_,m.props)}function dt(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}function at(m){var _={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(U){return _[U]})}var zt=/\/+/g;function At(m,_){return typeof m=="object"&&m!==null&&m.key!=null?at(""+m.key):_.toString(36)}function st(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then($l,$l):(m.status="pending",m.then(function(_){m.status==="pending"&&(m.status="fulfilled",m.value=_)},function(_){m.status==="pending"&&(m.status="rejected",m.reason=_)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function E(m,_,U,q,J){var I=typeof m;(I==="undefined"||I==="boolean")&&(m=null);var el=!1;if(m===null)el=!0;else switch(I){case"bigint":case"string":case"number":el=!0;break;case"object":switch(m.$$typeof){case r:case N:el=!0;break;case B:return el=m._init,E(el(m._payload),_,U,q,J)}}if(el)return J=J(m),el=q===""?"."+At(m,0):q,Et(J)?(U="",el!=null&&(U=el.replace(zt,"$&/")+"/"),E(J,_,U,"",function(la){return la})):J!=null&&(dt(J)&&(J=Jt(J,U+(J.key==null||m&&m.key===J.key?"":(""+J.key).replace(zt,"$&/")+"/")+el)),_.push(J)),1;el=0;var Hl=q===""?".":q+":";if(Et(m))for(var Al=0;Al<m.length;Al++)q=m[Al],I=Hl+At(q,Al),el+=E(q,_,U,I,J);else if(Al=W(m),typeof Al=="function")for(m=Al.call(m),Al=0;!(q=m.next()).done;)q=q.value,I=Hl+At(q,Al++),el+=E(q,_,U,I,J);else if(I==="object"){if(typeof m.then=="function")return E(st(m),_,U,q,J);throw _=String(m),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return el}function C(m,_,U){if(m==null)return m;var q=[],J=0;return E(m,q,"","",function(I){return _.call(U,I,J++)}),q}function Z(m){if(m._status===-1){var _=m._result;_=_(),_.then(function(U){(m._status===0||m._status===-1)&&(m._status=1,m._result=U)},function(U){(m._status===0||m._status===-1)&&(m._status=2,m._result=U)}),m._status===-1&&(m._status=0,m._result=_)}if(m._status===1)return m._result.default;throw m._result}var fl=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)},hl={map:C,forEach:function(m,_,U){C(m,function(){_.apply(this,arguments)},U)},count:function(m){var _=0;return C(m,function(){_++}),_},toArray:function(m){return C(m,function(_){return _})||[]},only:function(m){if(!dt(m))throw Error("React.Children.only expected to receive a single React element child.");return m}};return k.Activity=R,k.Children=hl,k.Component=ft,k.Fragment=D,k.Profiler=x,k.PureComponent=Gl,k.StrictMode=h,k.Suspense=O,k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,k.__COMPILER_RUNTIME={__proto__:null,c:function(m){return P.H.useMemoCache(m)}},k.cache=function(m){return function(){return m.apply(null,arguments)}},k.cacheSignal=function(){return null},k.cloneElement=function(m,_,U){if(m==null)throw Error("The argument must be a React element, but you passed "+m+".");var q=Rl({},m.props),J=m.key;if(_!=null)for(I in _.key!==void 0&&(J=""+_.key),_)!wl.call(_,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&_.ref===void 0||(q[I]=_[I]);var I=arguments.length-2;if(I===1)q.children=U;else if(1<I){for(var el=Array(I),Hl=0;Hl<I;Hl++)el[Hl]=arguments[Hl+2];q.children=el}return rt(m.type,J,q)},k.createContext=function(m){return m={$$typeof:X,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null},m.Provider=m,m.Consumer={$$typeof:L,_context:m},m},k.createElement=function(m,_,U){var q,J={},I=null;if(_!=null)for(q in _.key!==void 0&&(I=""+_.key),_)wl.call(_,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(J[q]=_[q]);var el=arguments.length-2;if(el===1)J.children=U;else if(1<el){for(var Hl=Array(el),Al=0;Al<el;Al++)Hl[Al]=arguments[Al+2];J.children=Hl}if(m&&m.defaultProps)for(q in el=m.defaultProps,el)J[q]===void 0&&(J[q]=el[q]);return rt(m,I,J)},k.createRef=function(){return{current:null}},k.forwardRef=function(m){return{$$typeof:dl,render:m}},k.isValidElement=dt,k.lazy=function(m){return{$$typeof:B,_payload:{_status:-1,_result:m},_init:Z}},k.memo=function(m,_){return{$$typeof:A,type:m,compare:_===void 0?null:_}},k.startTransition=function(m){var _=P.T,U={};P.T=U;try{var q=m(),J=P.S;J!==null&&J(U,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then($l,fl)}catch(I){fl(I)}finally{_!==null&&U.types!==null&&(_.types=U.types),P.T=_}},k.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},k.use=function(m){return P.H.use(m)},k.useActionState=function(m,_,U){return P.H.useActionState(m,_,U)},k.useCallback=function(m,_){return P.H.useCallback(m,_)},k.useContext=function(m){return P.H.useContext(m)},k.useDebugValue=function(){},k.useDeferredValue=function(m,_){return P.H.useDeferredValue(m,_)},k.useEffect=function(m,_){return P.H.useEffect(m,_)},k.useEffectEvent=function(m){return P.H.useEffectEvent(m)},k.useId=function(){return P.H.useId()},k.useImperativeHandle=function(m,_,U){return P.H.useImperativeHandle(m,_,U)},k.useInsertionEffect=function(m,_){return P.H.useInsertionEffect(m,_)},k.useLayoutEffect=function(m,_){return P.H.useLayoutEffect(m,_)},k.useMemo=function(m,_){return P.H.useMemo(m,_)},k.useOptimistic=function(m,_){return P.H.useOptimistic(m,_)},k.useReducer=function(m,_,U){return P.H.useReducer(m,_,U)},k.useRef=function(m){return P.H.useRef(m)},k.useState=function(m){return P.H.useState(m)},k.useSyncExternalStore=function(m,_,U){return P.H.useSyncExternalStore(m,_,U)},k.useTransition=function(){return P.H.useTransition()},k.version="19.2.4",k}var Kd;function ts(){return Kd||(Kd=1,wf.exports=my()),wf.exports}var H=ts();const hy=am(H);var Jf={exports:{}},fu={},kf={exports:{}},Wf={};var wd;function yy(){return wd||(wd=1,(function(r){function N(E,C){var Z=E.length;E.push(C);l:for(;0<Z;){var fl=Z-1>>>1,hl=E[fl];if(0<x(hl,C))E[fl]=C,E[Z]=hl,Z=fl;else break l}}function D(E){return E.length===0?null:E[0]}function h(E){if(E.length===0)return null;var C=E[0],Z=E.pop();if(Z!==C){E[0]=Z;l:for(var fl=0,hl=E.length,m=hl>>>1;fl<m;){var _=2*(fl+1)-1,U=E[_],q=_+1,J=E[q];if(0>x(U,Z))q<hl&&0>x(J,U)?(E[fl]=J,E[q]=Z,fl=q):(E[fl]=U,E[_]=Z,fl=_);else if(q<hl&&0>x(J,Z))E[fl]=J,E[q]=Z,fl=q;else break l}}return C}function x(E,C){var Z=E.sortIndex-C.sortIndex;return Z!==0?Z:E.id-C.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var L=performance;r.unstable_now=function(){return L.now()}}else{var X=Date,dl=X.now();r.unstable_now=function(){return X.now()-dl}}var O=[],A=[],B=1,R=null,tl=3,W=!1,Ol=!1,Rl=!1,ml=!1,ft=typeof setTimeout=="function"?setTimeout:null,wt=typeof clearTimeout=="function"?clearTimeout:null,Gl=typeof setImmediate<"u"?setImmediate:null;function jl(E){for(var C=D(A);C!==null;){if(C.callback===null)h(A);else if(C.startTime<=E)h(A),C.sortIndex=C.expirationTime,N(O,C);else break;C=D(A)}}function Et(E){if(Rl=!1,jl(E),!Ol)if(D(O)!==null)Ol=!0,$l||($l=!0,at());else{var C=D(A);C!==null&&st(Et,C.startTime-E)}}var $l=!1,P=-1,wl=5,rt=-1;function Jt(){return ml?!0:!(r.unstable_now()-rt<wl)}function dt(){if(ml=!1,$l){var E=r.unstable_now();rt=E;var C=!0;try{l:{Ol=!1,Rl&&(Rl=!1,wt(P),P=-1),W=!0;var Z=tl;try{t:{for(jl(E),R=D(O);R!==null&&!(R.expirationTime>E&&Jt());){var fl=R.callback;if(typeof fl=="function"){R.callback=null,tl=R.priorityLevel;var hl=fl(R.expirationTime<=E);if(E=r.unstable_now(),typeof hl=="function"){R.callback=hl,jl(E),C=!0;break t}R===D(O)&&h(O),jl(E)}else h(O);R=D(O)}if(R!==null)C=!0;else{var m=D(A);m!==null&&st(Et,m.startTime-E),C=!1}}break l}finally{R=null,tl=Z,W=!1}C=void 0}}finally{C?at():$l=!1}}}var at;if(typeof Gl=="function")at=function(){Gl(dt)};else if(typeof MessageChannel<"u"){var zt=new MessageChannel,At=zt.port2;zt.port1.onmessage=dt,at=function(){At.postMessage(null)}}else at=function(){ft(dt,0)};function st(E,C){P=ft(function(){E(r.unstable_now())},C)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(E){E.callback=null},r.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):wl=0<E?Math.floor(1e3/E):5},r.unstable_getCurrentPriorityLevel=function(){return tl},r.unstable_next=function(E){switch(tl){case 1:case 2:case 3:var C=3;break;default:C=tl}var Z=tl;tl=C;try{return E()}finally{tl=Z}},r.unstable_requestPaint=function(){ml=!0},r.unstable_runWithPriority=function(E,C){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var Z=tl;tl=E;try{return C()}finally{tl=Z}},r.unstable_scheduleCallback=function(E,C,Z){var fl=r.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?fl+Z:fl):Z=fl,E){case 1:var hl=-1;break;case 2:hl=250;break;case 5:hl=1073741823;break;case 4:hl=1e4;break;default:hl=5e3}return hl=Z+hl,E={id:B++,callback:C,priorityLevel:E,startTime:Z,expirationTime:hl,sortIndex:-1},Z>fl?(E.sortIndex=Z,N(A,E),D(O)===null&&E===D(A)&&(Rl?(wt(P),P=-1):Rl=!0,st(Et,Z-fl))):(E.sortIndex=hl,N(O,E),Ol||W||(Ol=!0,$l||($l=!0,at()))),E},r.unstable_shouldYield=Jt,r.unstable_wrapCallback=function(E){var C=tl;return function(){var Z=tl;tl=C;try{return E.apply(this,arguments)}finally{tl=Z}}}})(Wf)),Wf}var Jd;function vy(){return Jd||(Jd=1,kf.exports=yy()),kf.exports}var $f={exports:{}},ct={};var kd;function Sy(){if(kd)return ct;kd=1;var r=ts();function N(O){var A="https://react.dev/errors/"+O;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var B=2;B<arguments.length;B++)A+="&args[]="+encodeURIComponent(arguments[B])}return"Minified React error #"+O+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function D(){}var h={d:{f:D,r:function(){throw Error(N(522))},D,C:D,L:D,m:D,X:D,S:D,M:D},p:0,findDOMNode:null},x=Symbol.for("react.portal");function L(O,A,B){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:x,key:R==null?null:""+R,children:O,containerInfo:A,implementation:B}}var X=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function dl(O,A){if(O==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,ct.createPortal=function(O,A){var B=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(N(299));return L(O,A,null,B)},ct.flushSync=function(O){var A=X.T,B=h.p;try{if(X.T=null,h.p=2,O)return O()}finally{X.T=A,h.p=B,h.d.f()}},ct.preconnect=function(O,A){typeof O=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,h.d.C(O,A))},ct.prefetchDNS=function(O){typeof O=="string"&&h.d.D(O)},ct.preinit=function(O,A){if(typeof O=="string"&&A&&typeof A.as=="string"){var B=A.as,R=dl(B,A.crossOrigin),tl=typeof A.integrity=="string"?A.integrity:void 0,W=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;B==="style"?h.d.S(O,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:R,integrity:tl,fetchPriority:W}):B==="script"&&h.d.X(O,{crossOrigin:R,integrity:tl,fetchPriority:W,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},ct.preinitModule=function(O,A){if(typeof O=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var B=dl(A.as,A.crossOrigin);h.d.M(O,{crossOrigin:B,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&h.d.M(O)},ct.preload=function(O,A){if(typeof O=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var B=A.as,R=dl(B,A.crossOrigin);h.d.L(O,B,{crossOrigin:R,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},ct.preloadModule=function(O,A){if(typeof O=="string")if(A){var B=dl(A.as,A.crossOrigin);h.d.m(O,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:B,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else h.d.m(O)},ct.requestFormReset=function(O){h.d.r(O)},ct.unstable_batchedUpdates=function(O,A){return O(A)},ct.useFormState=function(O,A,B){return X.H.useFormState(O,A,B)},ct.useFormStatus=function(){return X.H.useHostTransitionStatus()},ct.version="19.2.4",ct}var Wd;function gy(){if(Wd)return $f.exports;Wd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(N){console.error(N)}}return r(),$f.exports=Sy(),$f.exports}var $d;function by(){if($d)return fu;$d=1;var r=vy(),N=ts(),D=gy();function h(l){var t="https://react.dev/errors/"+l;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)t+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+l+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function x(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function L(l){var t=l,e=l;if(l.alternate)for(;t.return;)t=t.return;else{l=t;do t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;while(l)}return t.tag===3?e:null}function X(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function dl(l){if(l.tag===31){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function O(l){if(L(l)!==l)throw Error(h(188))}function A(l){var t=l.alternate;if(!t){if(t=L(l),t===null)throw Error(h(188));return t!==l?null:l}for(var e=l,a=t;;){var n=e.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){e=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===e)return O(n),l;if(u===a)return O(n),t;u=u.sibling}throw Error(h(188))}if(e.return!==a.return)e=n,a=u;else{for(var i=!1,c=n.child;c;){if(c===e){i=!0,e=n,a=u;break}if(c===a){i=!0,a=n,e=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===e){i=!0,e=u,a=n;break}if(c===a){i=!0,a=u,e=n;break}c=c.sibling}if(!i)throw Error(h(189))}}if(e.alternate!==a)throw Error(h(190))}if(e.tag!==3)throw Error(h(188));return e.stateNode.current===e?l:t}function B(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=B(l),t!==null)return t;l=l.sibling}return null}var R=Object.assign,tl=Symbol.for("react.element"),W=Symbol.for("react.transitional.element"),Ol=Symbol.for("react.portal"),Rl=Symbol.for("react.fragment"),ml=Symbol.for("react.strict_mode"),ft=Symbol.for("react.profiler"),wt=Symbol.for("react.consumer"),Gl=Symbol.for("react.context"),jl=Symbol.for("react.forward_ref"),Et=Symbol.for("react.suspense"),$l=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),wl=Symbol.for("react.lazy"),rt=Symbol.for("react.activity"),Jt=Symbol.for("react.memo_cache_sentinel"),dt=Symbol.iterator;function at(l){return l===null||typeof l!="object"?null:(l=dt&&l[dt]||l["@@iterator"],typeof l=="function"?l:null)}var zt=Symbol.for("react.client.reference");function At(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===zt?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Rl:return"Fragment";case ft:return"Profiler";case ml:return"StrictMode";case Et:return"Suspense";case $l:return"SuspenseList";case rt:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Ol:return"Portal";case Gl:return l.displayName||"Context";case wt:return(l._context.displayName||"Context")+".Consumer";case jl:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case P:return t=l.displayName||null,t!==null?t:At(l.type)||"Memo";case wl:t=l._payload,l=l._init;try{return At(l(t))}catch{}}return null}var st=Array.isArray,E=N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=D.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},fl=[],hl=-1;function m(l){return{current:l}}function _(l){0>hl||(l.current=fl[hl],fl[hl]=null,hl--)}function U(l,t){hl++,fl[hl]=l.current,l.current=t}var q=m(null),J=m(null),I=m(null),el=m(null);function Hl(l,t){switch(U(I,t),U(J,l),U(q,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?rd(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=rd(t),l=dd(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}_(q),U(q,l)}function Al(){_(q),_(J),_(I)}function la(l){l.memoizedState!==null&&U(el,l);var t=q.current,e=dd(t,l.type);t!==e&&(U(J,l),U(q,e))}function te(l){J.current===l&&(_(q),_(J)),el.current===l&&(_(el),au._currentValue=Z)}var _a,ou;function kt(l){if(_a===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_a=t&&t[1]||"",ou=-1<e.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+_a+l+ou}var ta=!1;function mn(l,t){if(!l||ta)return"";ta=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={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(p){var b=p}Reflect.construct(l,[],M)}else{try{M.call()}catch(p){b=p}l.call(M.prototype)}}else{try{throw Error()}catch(p){b=p}(M=l())&&typeof M.catch=="function"&&M.catch(function(){})}}catch(p){if(p&&b&&typeof p.stack=="string")return[p.stack,b.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var s=i.split(`
4
- `),g=c.split(`
5
- `);for(n=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;if(a===s.length||n===g.length)for(a=s.length-1,n=g.length-1;1<=a&&0<=n&&s[a]!==g[n];)n--;for(;1<=a&&0<=n;a--,n--)if(s[a]!==g[n]){if(a!==1||n!==1)do if(a--,n--,0>n||s[a]!==g[n]){var T=`
6
- `+s[a].replace(" at new "," at ");return l.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",l.displayName)),T}while(1<=a&&0<=n);break}}}finally{ta=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?kt(e):""}function ru(l,t){switch(l.tag){case 26:case 27:case 5:return kt(l.type);case 16:return kt("Lazy");case 13:return l.child!==t&&t!==null?kt("Suspense Fallback"):kt("Suspense");case 19:return kt("SuspenseList");case 0:case 15:return mn(l.type,!1);case 11:return mn(l.type.render,!1);case 1:return mn(l.type,!0);case 31:return kt("Activity");default:return""}}function du(l){try{var t="",e=null;do t+=ru(l,e),e=l,l=l.return;while(l);return t}catch(a){return`
7
- Error generating stack: `+a.message+`
8
- `+a.stack}}var Ma=Object.prototype.hasOwnProperty,hn=r.unstable_scheduleCallback,Na=r.unstable_cancelCallback,ji=r.unstable_shouldYield,Ci=r.unstable_requestPaint,nt=r.unstable_now,mu=r.unstable_getCurrentPriorityLevel,mt=r.unstable_ImmediatePriority,yn=r.unstable_UserBlockingPriority,ea=r.unstable_NormalPriority,hu=r.unstable_LowPriority,Qt=r.unstable_IdlePriority,vn=r.log,Ae=r.unstable_setDisableYieldValue,ee=null,K=null;function Dl(l){if(typeof vn=="function"&&Ae(l),K&&typeof K.setStrictMode=="function")try{K.setStrictMode(ee,l)}catch{}}var Fl=Math.clz32?Math.clz32:Ui,yu=Math.log,aa=Math.LN2;function Ui(l){return l>>>=0,l===0?32:31-(yu(l)/aa|0)|0}var Oa=256,Da=262144,_t=4194304;function ae(l){var t=l&42;if(t!==0)return t;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function _e(l,t,e){var a=l.pendingLanes;if(a===0)return 0;var n=0,u=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~u,a!==0?n=ae(a):(i&=c,i!==0?n=ae(i):e||(e=c&~l,e!==0&&(n=ae(e))))):(c=a&~u,c!==0?n=ae(c):i!==0?n=ae(i):e||(e=a&~l,e!==0&&(n=ae(e)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,e=t&-t,u>=e||u===32&&(e&4194048)!==0)?t:n}function Ut(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Ri(l,t){switch(l){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 vu(){var l=_t;return _t<<=1,(_t&62914560)===0&&(_t=4194304),l}function na(l){for(var t=[],e=0;31>e;e++)t.push(l);return t}function ua(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Hi(l,t,e,a,n,u){var i=l.pendingLanes;l.pendingLanes=e,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=e,l.entangledLanes&=e,l.errorRecoveryDisabledLanes&=e,l.shellSuspendCounter=0;var c=l.entanglements,s=l.expirationTimes,g=l.hiddenUpdates;for(e=i&~e;0<e;){var T=31-Fl(e),M=1<<T;c[T]=0,s[T]=-1;var b=g[T];if(b!==null)for(g[T]=null,T=0;T<b.length;T++){var p=b[T];p!==null&&(p.lane&=-536870913)}e&=~M}a!==0&&Il(l,a,0),u!==0&&n===0&&l.tag!==0&&(l.suspendedLanes|=u&~(i&~t))}function Il(l,t,e){l.pendingLanes|=t,l.suspendedLanes&=~t;var a=31-Fl(t);l.entangledLanes|=t,l.entanglements[a]=l.entanglements[a]|1073741824|e&261930}function Sn(l,t){var e=l.entangledLanes|=t;for(l=l.entanglements;e;){var a=31-Fl(e),n=1<<a;n&t|l[a]&t&&(l[a]|=t),e&=~n}}function gn(l,t){var e=t&-t;return e=(e&42)!==0?1:xa(e),(e&(l.suspendedLanes|t))!==0?0:e}function xa(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function ja(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Su(){var l=C.p;return l!==0?l:(l=window.event,l===void 0?32:Hd(l.type))}function gu(l,t){var e=C.p;try{return C.p=l,t()}finally{C.p=e}}var Wt=Math.random().toString(36).slice(2),Jl="__reactFiber$"+Wt,ut="__reactProps$"+Wt,Me="__reactContainer$"+Wt,ia="__reactEvents$"+Wt,Bi="__reactListeners$"+Wt,qi="__reactHandles$"+Wt,ca="__reactResources$"+Wt,Ne="__reactMarker$"+Wt;function bn(l){delete l[Jl],delete l[ut],delete l[ia],delete l[Bi],delete l[qi]}function Oe(l){var t=l[Jl];if(t)return t;for(var e=l.parentNode;e;){if(t=e[Me]||e[Jl]){if(e=t.alternate,t.child!==null||e!==null&&e.child!==null)for(l=bd(l);l!==null;){if(e=l[Jl])return e;l=bd(l)}return t}l=e,e=l.parentNode}return null}function De(l){if(l=l[Jl]||l[Me]){var t=l.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return l}return null}function fa(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l.stateNode;throw Error(h(33))}function ne(l){var t=l[ca];return t||(t=l[ca]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Xl(l){l[Ne]=!0}var Ca=new Set,bu={};function ue(l,t){o(l,t),o(l+"Capture",t)}function o(l,t){for(bu[l]=t,l=0;l<t.length;l++)Ca.add(t[l])}var v=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]*$"),j={},w={};function ll(l){return Ma.call(w,l)?!0:Ma.call(j,l)?!1:v.test(l)?w[l]=!0:(j[l]=!0,!1)}function sl(l,t,e){if(ll(t))if(e===null)l.removeAttribute(t);else{switch(typeof e){case"undefined":case"function":case"symbol":l.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){l.removeAttribute(t);return}}l.setAttribute(t,""+e)}}function xl(l,t,e){if(e===null)l.removeAttribute(t);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(t);return}l.setAttribute(t,""+e)}}function Bl(l,t,e,a){if(a===null)l.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(e);return}l.setAttributeNS(t,e,""+a)}}function vl(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function bl(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ql(l,t,e){var a=Object.getOwnPropertyDescriptor(l.constructor.prototype,t);if(!l.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){e=""+i,u.call(this,i)}}),Object.defineProperty(l,t,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function ie(l){if(!l._valueTracker){var t=bl(l)?"checked":"value";l._valueTracker=ql(l,t,""+l[t])}}function $t(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var e=t.getValue(),a="";return l&&(a=bl(l)?l.checked?"true":"false":l.value),l=a,l!==e?(t.setValue(l),!0):!1}function ht(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var it=/[\n"\\]/g;function yt(l){return l.replace(it,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yi(l,t,e,a,n,u,i,c){l.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?l.type=i:l.removeAttribute("type"),t!=null?i==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+vl(t)):l.value!==""+vl(t)&&(l.value=""+vl(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?Li(l,i,vl(t)):e!=null?Li(l,i,vl(e)):a!=null&&l.removeAttribute("value"),n==null&&u!=null&&(l.defaultChecked=!!u),n!=null&&(l.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+vl(c):l.removeAttribute("name")}function ns(l,t,e,a,n,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(l.type=u),t!=null||e!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ie(l);return}e=e!=null?""+vl(e):"",t=t!=null?""+vl(t):e,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i),ie(l)}function Li(l,t,e){t==="number"&&ht(l.ownerDocument)===l||l.defaultValue===""+e||(l.defaultValue=""+e)}function Ua(l,t,e,a){if(l=l.options,t){t={};for(var n=0;n<e.length;n++)t["$"+e[n]]=!0;for(e=0;e<l.length;e++)n=t.hasOwnProperty("$"+l[e].value),l[e].selected!==n&&(l[e].selected=n),n&&a&&(l[e].defaultSelected=!0)}else{for(e=""+vl(e),t=null,n=0;n<l.length;n++){if(l[n].value===e){l[n].selected=!0,a&&(l[n].defaultSelected=!0);return}t!==null||l[n].disabled||(t=l[n])}t!==null&&(t.selected=!0)}}function us(l,t,e){if(t!=null&&(t=""+vl(t),t!==l.value&&(l.value=t),e==null)){l.defaultValue!==t&&(l.defaultValue=t);return}l.defaultValue=e!=null?""+vl(e):""}function is(l,t,e,a){if(t==null){if(a!=null){if(e!=null)throw Error(h(92));if(st(a)){if(1<a.length)throw Error(h(93));a=a[0]}e=a}e==null&&(e=""),t=e}e=vl(t),l.defaultValue=e,a=l.textContent,a===e&&a!==""&&a!==null&&(l.value=a),ie(l)}function Ra(l,t){if(t){var e=l.firstChild;if(e&&e===l.lastChild&&e.nodeType===3){e.nodeValue=t;return}}l.textContent=t}var im=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 cs(l,t,e){var a=t.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?l.setProperty(t,""):t==="float"?l.cssFloat="":l[t]="":a?l.setProperty(t,e):typeof e!="number"||e===0||im.has(t)?t==="float"?l.cssFloat=e:l[t]=(""+e).trim():l[t]=e+"px"}function fs(l,t,e){if(t!=null&&typeof t!="object")throw Error(h(62));if(l=l.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?l.setProperty(a,""):a==="float"?l.cssFloat="":l[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&e[n]!==a&&cs(l,n,a)}else for(var u in t)t.hasOwnProperty(u)&&cs(l,u,t[u])}function Gi(l){if(l.indexOf("-")===-1)return!1;switch(l){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 cm=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"]]),fm=/^[\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 pu(l){return fm.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function ce(){}var Xi=null;function Qi(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Ha=null,Ba=null;function ss(l){var t=De(l);if(t&&(l=t.stateNode)){var e=l[ut]||null;l:switch(l=t.stateNode,t.type){case"input":if(Yi(l,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),t=e.name,e.type==="radio"&&t!=null){for(e=l;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<e.length;t++){var a=e[t];if(a!==l&&a.form===l.form){var n=a[ut]||null;if(!n)throw Error(h(90));Yi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<e.length;t++)a=e[t],a.form===l.form&&$t(a)}break l;case"textarea":us(l,e.value,e.defaultValue);break l;case"select":t=e.value,t!=null&&Ua(l,!!e.multiple,t,!1)}}}var Zi=!1;function os(l,t,e){if(Zi)return l(t,e);Zi=!0;try{var a=l(t);return a}finally{if(Zi=!1,(Ha!==null||Ba!==null)&&(ci(),Ha&&(t=Ha,l=Ba,Ba=Ha=null,ss(t),l)))for(t=0;t<l.length;t++)ss(l[t])}}function pn(l,t){var e=l.stateNode;if(e===null)return null;var a=e[ut]||null;if(a===null)return null;e=a[t];l:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(l=l.type,a=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!a;break l;default:l=!1}if(l)return null;if(e&&typeof e!="function")throw Error(h(231,t,typeof e));return e}var fe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vi=!1;if(fe)try{var Tn={};Object.defineProperty(Tn,"passive",{get:function(){Vi=!0}}),window.addEventListener("test",Tn,Tn),window.removeEventListener("test",Tn,Tn)}catch{Vi=!1}var xe=null,Ki=null,Tu=null;function rs(){if(Tu)return Tu;var l,t=Ki,e=t.length,a,n="value"in xe?xe.value:xe.textContent,u=n.length;for(l=0;l<e&&t[l]===n[l];l++);var i=e-l;for(a=1;a<=i&&t[e-a]===n[u-a];a++);return Tu=n.slice(l,1<a?1-a:void 0)}function Eu(l){var t=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&t===13&&(l=13)):l=t,l===10&&(l=13),32<=l||l===13?l:0}function zu(){return!0}function ds(){return!1}function vt(l){function t(e,a,n,u,i){this._reactName=e,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in l)l.hasOwnProperty(c)&&(e=l[c],this[c]=e?e(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?zu:ds,this.isPropagationStopped=ds,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=zu)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=zu)},persist:function(){},isPersistent:zu}),t}var sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Au=vt(sa),En=R({},sa,{view:0,detail:0}),sm=vt(En),wi,Ji,zn,_u=R({},En,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wi,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==zn&&(zn&&l.type==="mousemove"?(wi=l.screenX-zn.screenX,Ji=l.screenY-zn.screenY):Ji=wi=0,zn=l),wi)},movementY:function(l){return"movementY"in l?l.movementY:Ji}}),ms=vt(_u),om=R({},_u,{dataTransfer:0}),rm=vt(om),dm=R({},En,{relatedTarget:0}),ki=vt(dm),mm=R({},sa,{animationName:0,elapsedTime:0,pseudoElement:0}),hm=vt(mm),ym=R({},sa,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),vm=vt(ym),Sm=R({},sa,{data:0}),hs=vt(Sm),gm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bm={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"},pm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tm(l){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(l):(l=pm[l])?!!t[l]:!1}function Wi(){return Tm}var Em=R({},En,{key:function(l){if(l.key){var t=gm[l.key]||l.key;if(t!=="Unidentified")return t}return l.type==="keypress"?(l=Eu(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?bm[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wi,charCode:function(l){return l.type==="keypress"?Eu(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Eu(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),zm=vt(Em),Am=R({},_u,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ys=vt(Am),_m=R({},En,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wi}),Mm=vt(_m),Nm=R({},sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Om=vt(Nm),Dm=R({},_u,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),xm=vt(Dm),jm=R({},sa,{newState:0,oldState:0}),Cm=vt(jm),Um=[9,13,27,32],$i=fe&&"CompositionEvent"in window,An=null;fe&&"documentMode"in document&&(An=document.documentMode);var Rm=fe&&"TextEvent"in window&&!An,vs=fe&&(!$i||An&&8<An&&11>=An),Ss=" ",gs=!1;function bs(l,t){switch(l){case"keyup":return Um.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ps(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var qa=!1;function Hm(l,t){switch(l){case"compositionend":return ps(t);case"keypress":return t.which!==32?null:(gs=!0,Ss);case"textInput":return l=t.data,l===Ss&&gs?null:l;default:return null}}function Bm(l,t){if(qa)return l==="compositionend"||!$i&&bs(l,t)?(l=rs(),Tu=Ki=xe=null,qa=!1,l):null;switch(l){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 vs&&t.locale!=="ko"?null:t.data;default:return null}}var qm={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 Ts(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t==="input"?!!qm[l.type]:t==="textarea"}function Es(l,t,e,a){Ha?Ba?Ba.push(a):Ba=[a]:Ha=a,t=hi(t,"onChange"),0<t.length&&(e=new Au("onChange","change",null,e,a),l.push({event:e,listeners:t}))}var _n=null,Mn=null;function Ym(l){ud(l,0)}function Mu(l){var t=fa(l);if($t(t))return l}function zs(l,t){if(l==="change")return t}var As=!1;if(fe){var Fi;if(fe){var Ii="oninput"in document;if(!Ii){var _s=document.createElement("div");_s.setAttribute("oninput","return;"),Ii=typeof _s.oninput=="function"}Fi=Ii}else Fi=!1;As=Fi&&(!document.documentMode||9<document.documentMode)}function Ms(){_n&&(_n.detachEvent("onpropertychange",Ns),Mn=_n=null)}function Ns(l){if(l.propertyName==="value"&&Mu(Mn)){var t=[];Es(t,Mn,l,Qi(l)),os(Ym,t)}}function Lm(l,t,e){l==="focusin"?(Ms(),_n=t,Mn=e,_n.attachEvent("onpropertychange",Ns)):l==="focusout"&&Ms()}function Gm(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Mu(Mn)}function Xm(l,t){if(l==="click")return Mu(t)}function Qm(l,t){if(l==="input"||l==="change")return Mu(t)}function Zm(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var Mt=typeof Object.is=="function"?Object.is:Zm;function Nn(l,t){if(Mt(l,t))return!0;if(typeof l!="object"||l===null||typeof t!="object"||t===null)return!1;var e=Object.keys(l),a=Object.keys(t);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var n=e[a];if(!Ma.call(t,n)||!Mt(l[n],t[n]))return!1}return!0}function Os(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function Ds(l,t){var e=Os(l);l=0;for(var a;e;){if(e.nodeType===3){if(a=l+e.textContent.length,l<=t&&a>=t)return{node:e,offset:t-l};l=a}l:{for(;e;){if(e.nextSibling){e=e.nextSibling;break l}e=e.parentNode}e=void 0}e=Os(e)}}function xs(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?xs(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function js(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=ht(l.document);t instanceof l.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)l=t.contentWindow;else break;t=ht(l.document)}return t}function Pi(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var Vm=fe&&"documentMode"in document&&11>=document.documentMode,Ya=null,lc=null,On=null,tc=!1;function Cs(l,t,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;tc||Ya==null||Ya!==ht(a)||(a=Ya,"selectionStart"in a&&Pi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),On&&Nn(On,a)||(On=a,a=hi(lc,"onSelect"),0<a.length&&(t=new Au("onSelect","select",null,t,e),l.push({event:t,listeners:a}),t.target=Ya)))}function oa(l,t){var e={};return e[l.toLowerCase()]=t.toLowerCase(),e["Webkit"+l]="webkit"+t,e["Moz"+l]="moz"+t,e}var La={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},ec={},Us={};fe&&(Us=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function ra(l){if(ec[l])return ec[l];if(!La[l])return l;var t=La[l],e;for(e in t)if(t.hasOwnProperty(e)&&e in Us)return ec[l]=t[e];return l}var Rs=ra("animationend"),Hs=ra("animationiteration"),Bs=ra("animationstart"),Km=ra("transitionrun"),wm=ra("transitionstart"),Jm=ra("transitioncancel"),qs=ra("transitionend"),Ys=new Map,ac="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(" ");ac.push("scrollEnd");function Zt(l,t){Ys.set(l,t),ue(t,[l])}var Nu=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},Rt=[],Ga=0,nc=0;function Ou(){for(var l=Ga,t=nc=Ga=0;t<l;){var e=Rt[t];Rt[t++]=null;var a=Rt[t];Rt[t++]=null;var n=Rt[t];Rt[t++]=null;var u=Rt[t];if(Rt[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&Ls(e,n,u)}}function Du(l,t,e,a){Rt[Ga++]=l,Rt[Ga++]=t,Rt[Ga++]=e,Rt[Ga++]=a,nc|=a,l.lanes|=a,l=l.alternate,l!==null&&(l.lanes|=a)}function uc(l,t,e,a){return Du(l,t,e,a),xu(l)}function da(l,t){return Du(l,null,null,t),xu(l)}function Ls(l,t,e){l.lanes|=e;var a=l.alternate;a!==null&&(a.lanes|=e);for(var n=!1,u=l.return;u!==null;)u.childLanes|=e,a=u.alternate,a!==null&&(a.childLanes|=e),u.tag===22&&(l=u.stateNode,l===null||l._visibility&1||(n=!0)),l=u,u=u.return;return l.tag===3?(u=l.stateNode,n&&t!==null&&(n=31-Fl(e),l=u.hiddenUpdates,a=l[n],a===null?l[n]=[t]:a.push(t),t.lane=e|536870912),u):null}function xu(l){if(50<$n)throw $n=0,yf=null,Error(h(185));for(var t=l.return;t!==null;)l=t,t=l.return;return l.tag===3?l.stateNode:null}var Xa={};function km(l,t,e,a){this.tag=l,this.key=e,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(l,t,e,a){return new km(l,t,e,a)}function ic(l){return l=l.prototype,!(!l||!l.isReactComponent)}function se(l,t){var e=l.alternate;return e===null?(e=Nt(l.tag,t,l.key,l.mode),e.elementType=l.elementType,e.type=l.type,e.stateNode=l.stateNode,e.alternate=l,l.alternate=e):(e.pendingProps=t,e.type=l.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=l.flags&65011712,e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},e.sibling=l.sibling,e.index=l.index,e.ref=l.ref,e.refCleanup=l.refCleanup,e}function Gs(l,t){l.flags&=65011714;var e=l.alternate;return e===null?(l.childLanes=0,l.lanes=t,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,l.type=e.type,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l}function ju(l,t,e,a,n,u){var i=0;if(a=l,typeof l=="function")ic(l)&&(i=1);else if(typeof l=="string")i=Ph(l,e,q.current)?26:l==="html"||l==="head"||l==="body"?27:5;else l:switch(l){case rt:return l=Nt(31,e,t,n),l.elementType=rt,l.lanes=u,l;case Rl:return ma(e.children,n,u,t);case ml:i=8,n|=24;break;case ft:return l=Nt(12,e,t,n|2),l.elementType=ft,l.lanes=u,l;case Et:return l=Nt(13,e,t,n),l.elementType=Et,l.lanes=u,l;case $l:return l=Nt(19,e,t,n),l.elementType=$l,l.lanes=u,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Gl:i=10;break l;case wt:i=9;break l;case jl:i=11;break l;case P:i=14;break l;case wl:i=16,a=null;break l}i=29,e=Error(h(130,l===null?"null":typeof l,"")),a=null}return t=Nt(i,e,t,n),t.elementType=l,t.type=a,t.lanes=u,t}function ma(l,t,e,a){return l=Nt(7,l,a,t),l.lanes=e,l}function cc(l,t,e){return l=Nt(6,l,null,t),l.lanes=e,l}function Xs(l){var t=Nt(18,null,null,0);return t.stateNode=l,t}function fc(l,t,e){return t=Nt(4,l.children!==null?l.children:[],l.key,t),t.lanes=e,t.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},t}var Qs=new WeakMap;function Ht(l,t){if(typeof l=="object"&&l!==null){var e=Qs.get(l);return e!==void 0?e:(t={value:l,source:t,stack:du(t)},Qs.set(l,t),t)}return{value:l,source:t,stack:du(t)}}var Qa=[],Za=0,Cu=null,Dn=0,Bt=[],qt=0,je=null,Ft=1,It="";function oe(l,t){Qa[Za++]=Dn,Qa[Za++]=Cu,Cu=l,Dn=t}function Zs(l,t,e){Bt[qt++]=Ft,Bt[qt++]=It,Bt[qt++]=je,je=l;var a=Ft;l=It;var n=32-Fl(a)-1;a&=~(1<<n),e+=1;var u=32-Fl(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Ft=1<<32-Fl(t)+n|e<<n|a,It=u+l}else Ft=1<<u|e<<n|a,It=l}function sc(l){l.return!==null&&(oe(l,1),Zs(l,1,0))}function oc(l){for(;l===Cu;)Cu=Qa[--Za],Qa[Za]=null,Dn=Qa[--Za],Qa[Za]=null;for(;l===je;)je=Bt[--qt],Bt[qt]=null,It=Bt[--qt],Bt[qt]=null,Ft=Bt[--qt],Bt[qt]=null}function Vs(l,t){Bt[qt++]=Ft,Bt[qt++]=It,Bt[qt++]=je,Ft=t.id,It=t.overflow,je=l}var Pl=null,_l=null,cl=!1,Ce=null,Yt=!1,rc=Error(h(519));function Ue(l){var t=Error(h(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xn(Ht(t,l)),rc}function Ks(l){var t=l.stateNode,e=l.type,a=l.memoizedProps;switch(t[Jl]=l,t[ut]=a,e){case"dialog":nl("cancel",t),nl("close",t);break;case"iframe":case"object":case"embed":nl("load",t);break;case"video":case"audio":for(e=0;e<In.length;e++)nl(In[e],t);break;case"source":nl("error",t);break;case"img":case"image":case"link":nl("error",t),nl("load",t);break;case"details":nl("toggle",t);break;case"input":nl("invalid",t),ns(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":nl("invalid",t);break;case"textarea":nl("invalid",t),is(t,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||t.textContent===""+e||a.suppressHydrationWarning===!0||sd(t.textContent,e)?(a.popover!=null&&(nl("beforetoggle",t),nl("toggle",t)),a.onScroll!=null&&nl("scroll",t),a.onScrollEnd!=null&&nl("scrollend",t),a.onClick!=null&&(t.onclick=ce),t=!0):t=!1,t||Ue(l,!0)}function ws(l){for(Pl=l.return;Pl;)switch(Pl.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:Pl=Pl.return}}function Va(l){if(l!==Pl)return!1;if(!cl)return ws(l),cl=!0,!1;var t=l.tag,e;if((e=t!==3&&t!==27)&&((e=t===5)&&(e=l.type,e=!(e!=="form"&&e!=="button")||xf(l.type,l.memoizedProps)),e=!e),e&&_l&&Ue(l),ws(l),t===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(h(317));_l=gd(l)}else if(t===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(h(317));_l=gd(l)}else t===27?(t=_l,Je(l.type)?(l=Hf,Hf=null,_l=l):_l=t):_l=Pl?Gt(l.stateNode.nextSibling):null;return!0}function ha(){_l=Pl=null,cl=!1}function dc(){var l=Ce;return l!==null&&(pt===null?pt=l:pt.push.apply(pt,l),Ce=null),l}function xn(l){Ce===null?Ce=[l]:Ce.push(l)}var mc=m(null),ya=null,re=null;function Re(l,t,e){U(mc,t._currentValue),t._currentValue=e}function de(l){l._currentValue=mc.current,_(mc)}function hc(l,t,e){for(;l!==null;){var a=l.alternate;if((l.childLanes&t)!==t?(l.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),l===e)break;l=l.return}}function yc(l,t,e,a){var n=l.child;for(n!==null&&(n.return=l);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;l:for(;u!==null;){var c=u;u=n;for(var s=0;s<t.length;s++)if(c.context===t[s]){u.lanes|=e,c=u.alternate,c!==null&&(c.lanes|=e),hc(u.return,e,l),a||(i=null);break l}u=c.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(h(341));i.lanes|=e,u=i.alternate,u!==null&&(u.lanes|=e),hc(i,e,l),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===l){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function Ka(l,t,e,a){l=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 i=n.alternate;if(i===null)throw Error(h(387));if(i=i.memoizedProps,i!==null){var c=n.type;Mt(n.pendingProps.value,i.value)||(l!==null?l.push(c):l=[c])}}else if(n===el.current){if(i=n.alternate,i===null)throw Error(h(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(l!==null?l.push(au):l=[au])}n=n.return}l!==null&&yc(t,l,e,a),t.flags|=262144}function Uu(l){for(l=l.firstContext;l!==null;){if(!Mt(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function va(l){ya=l,re=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function lt(l){return Js(ya,l)}function Ru(l,t){return ya===null&&va(l),Js(l,t)}function Js(l,t){var e=t._currentValue;if(t={context:t,memoizedValue:e,next:null},re===null){if(l===null)throw Error(h(308));re=t,l.dependencies={lanes:0,firstContext:t},l.flags|=524288}else re=re.next=t;return e}var Wm=typeof AbortController<"u"?AbortController:function(){var l=[],t=this.signal={aborted:!1,addEventListener:function(e,a){l.push(a)}};this.abort=function(){t.aborted=!0,l.forEach(function(e){return e()})}},$m=r.unstable_scheduleCallback,Fm=r.unstable_NormalPriority,Ql={$$typeof:Gl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vc(){return{controller:new Wm,data:new Map,refCount:0}}function jn(l){l.refCount--,l.refCount===0&&$m(Fm,function(){l.controller.abort()})}var Cn=null,Sc=0,wa=0,Ja=null;function Im(l,t){if(Cn===null){var e=Cn=[];Sc=0,wa=Tf(),Ja={status:"pending",value:void 0,then:function(a){e.push(a)}}}return Sc++,t.then(ks,ks),t}function ks(){if(--Sc===0&&Cn!==null){Ja!==null&&(Ja.status="fulfilled");var l=Cn;Cn=null,wa=0,Ja=null;for(var t=0;t<l.length;t++)(0,l[t])()}}function Pm(l,t){var e=[],a={status:"pending",value:null,reason:null,then:function(n){e.push(n)}};return l.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<e.length;n++)(0,e[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<e.length;n++)(0,e[n])(void 0)}),a}var Ws=E.S;E.S=function(l,t){Ur=nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Im(l,t),Ws!==null&&Ws(l,t)};var Sa=m(null);function gc(){var l=Sa.current;return l!==null?l:zl.pooledCache}function Hu(l,t){t===null?U(Sa,Sa.current):U(Sa,t.pool)}function $s(){var l=gc();return l===null?null:{parent:Ql._currentValue,pool:l}}var ka=Error(h(460)),bc=Error(h(474)),Bu=Error(h(542)),qu={then:function(){}};function Fs(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Is(l,t,e){switch(e=l[e],e===void 0?l.push(t):e!==t&&(t.then(ce,ce),t=e),t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,lo(l),l;default:if(typeof t.status=="string")t.then(ce,ce);else{if(l=zl,l!==null&&100<l.shellSuspendCounter)throw Error(h(482));l=t,l.status="pending",l.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,lo(l),l}throw ba=t,ka}}function ga(l){try{var t=l._init;return t(l._payload)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(ba=e,ka):e}}var ba=null;function Ps(){if(ba===null)throw Error(h(459));var l=ba;return ba=null,l}function lo(l){if(l===ka||l===Bu)throw Error(h(483))}var Wa=null,Un=0;function Yu(l){var t=Un;return Un+=1,Wa===null&&(Wa=[]),Is(Wa,l,t)}function Rn(l,t){t=t.props.ref,l.ref=t!==void 0?t:null}function Lu(l,t){throw t.$$typeof===tl?Error(h(525)):(l=Object.prototype.toString.call(t),Error(h(31,l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)))}function to(l){function t(y,d){if(l){var S=y.deletions;S===null?(y.deletions=[d],y.flags|=16):S.push(d)}}function e(y,d){if(!l)return null;for(;d!==null;)t(y,d),d=d.sibling;return null}function a(y){for(var d=new Map;y!==null;)y.key!==null?d.set(y.key,y):d.set(y.index,y),y=y.sibling;return d}function n(y,d){return y=se(y,d),y.index=0,y.sibling=null,y}function u(y,d,S){return y.index=S,l?(S=y.alternate,S!==null?(S=S.index,S<d?(y.flags|=67108866,d):S):(y.flags|=67108866,d)):(y.flags|=1048576,d)}function i(y){return l&&y.alternate===null&&(y.flags|=67108866),y}function c(y,d,S,z){return d===null||d.tag!==6?(d=cc(S,y.mode,z),d.return=y,d):(d=n(d,S),d.return=y,d)}function s(y,d,S,z){var Q=S.type;return Q===Rl?T(y,d,S.props.children,z,S.key):d!==null&&(d.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===wl&&ga(Q)===d.type)?(d=n(d,S.props),Rn(d,S),d.return=y,d):(d=ju(S.type,S.key,S.props,null,y.mode,z),Rn(d,S),d.return=y,d)}function g(y,d,S,z){return d===null||d.tag!==4||d.stateNode.containerInfo!==S.containerInfo||d.stateNode.implementation!==S.implementation?(d=fc(S,y.mode,z),d.return=y,d):(d=n(d,S.children||[]),d.return=y,d)}function T(y,d,S,z,Q){return d===null||d.tag!==7?(d=ma(S,y.mode,z,Q),d.return=y,d):(d=n(d,S),d.return=y,d)}function M(y,d,S){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=cc(""+d,y.mode,S),d.return=y,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case W:return S=ju(d.type,d.key,d.props,null,y.mode,S),Rn(S,d),S.return=y,S;case Ol:return d=fc(d,y.mode,S),d.return=y,d;case wl:return d=ga(d),M(y,d,S)}if(st(d)||at(d))return d=ma(d,y.mode,S,null),d.return=y,d;if(typeof d.then=="function")return M(y,Yu(d),S);if(d.$$typeof===Gl)return M(y,Ru(y,d),S);Lu(y,d)}return null}function b(y,d,S,z){var Q=d!==null?d.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return Q!==null?null:c(y,d,""+S,z);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case W:return S.key===Q?s(y,d,S,z):null;case Ol:return S.key===Q?g(y,d,S,z):null;case wl:return S=ga(S),b(y,d,S,z)}if(st(S)||at(S))return Q!==null?null:T(y,d,S,z,null);if(typeof S.then=="function")return b(y,d,Yu(S),z);if(S.$$typeof===Gl)return b(y,d,Ru(y,S),z);Lu(y,S)}return null}function p(y,d,S,z,Q){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return y=y.get(S)||null,c(d,y,""+z,Q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case W:return y=y.get(z.key===null?S:z.key)||null,s(d,y,z,Q);case Ol:return y=y.get(z.key===null?S:z.key)||null,g(d,y,z,Q);case wl:return z=ga(z),p(y,d,S,z,Q)}if(st(z)||at(z))return y=y.get(S)||null,T(d,y,z,Q,null);if(typeof z.then=="function")return p(y,d,S,Yu(z),Q);if(z.$$typeof===Gl)return p(y,d,S,Ru(d,z),Q);Lu(d,z)}return null}function Y(y,d,S,z){for(var Q=null,ol=null,G=d,F=d=0,il=null;G!==null&&F<S.length;F++){G.index>F?(il=G,G=null):il=G.sibling;var rl=b(y,G,S[F],z);if(rl===null){G===null&&(G=il);break}l&&G&&rl.alternate===null&&t(y,G),d=u(rl,d,F),ol===null?Q=rl:ol.sibling=rl,ol=rl,G=il}if(F===S.length)return e(y,G),cl&&oe(y,F),Q;if(G===null){for(;F<S.length;F++)G=M(y,S[F],z),G!==null&&(d=u(G,d,F),ol===null?Q=G:ol.sibling=G,ol=G);return cl&&oe(y,F),Q}for(G=a(G);F<S.length;F++)il=p(G,y,F,S[F],z),il!==null&&(l&&il.alternate!==null&&G.delete(il.key===null?F:il.key),d=u(il,d,F),ol===null?Q=il:ol.sibling=il,ol=il);return l&&G.forEach(function(Ie){return t(y,Ie)}),cl&&oe(y,F),Q}function V(y,d,S,z){if(S==null)throw Error(h(151));for(var Q=null,ol=null,G=d,F=d=0,il=null,rl=S.next();G!==null&&!rl.done;F++,rl=S.next()){G.index>F?(il=G,G=null):il=G.sibling;var Ie=b(y,G,rl.value,z);if(Ie===null){G===null&&(G=il);break}l&&G&&Ie.alternate===null&&t(y,G),d=u(Ie,d,F),ol===null?Q=Ie:ol.sibling=Ie,ol=Ie,G=il}if(rl.done)return e(y,G),cl&&oe(y,F),Q;if(G===null){for(;!rl.done;F++,rl=S.next())rl=M(y,rl.value,z),rl!==null&&(d=u(rl,d,F),ol===null?Q=rl:ol.sibling=rl,ol=rl);return cl&&oe(y,F),Q}for(G=a(G);!rl.done;F++,rl=S.next())rl=p(G,y,F,rl.value,z),rl!==null&&(l&&rl.alternate!==null&&G.delete(rl.key===null?F:rl.key),d=u(rl,d,F),ol===null?Q=rl:ol.sibling=rl,ol=rl);return l&&G.forEach(function(oy){return t(y,oy)}),cl&&oe(y,F),Q}function El(y,d,S,z){if(typeof S=="object"&&S!==null&&S.type===Rl&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case W:l:{for(var Q=S.key;d!==null;){if(d.key===Q){if(Q=S.type,Q===Rl){if(d.tag===7){e(y,d.sibling),z=n(d,S.props.children),z.return=y,y=z;break l}}else if(d.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===wl&&ga(Q)===d.type){e(y,d.sibling),z=n(d,S.props),Rn(z,S),z.return=y,y=z;break l}e(y,d);break}else t(y,d);d=d.sibling}S.type===Rl?(z=ma(S.props.children,y.mode,z,S.key),z.return=y,y=z):(z=ju(S.type,S.key,S.props,null,y.mode,z),Rn(z,S),z.return=y,y=z)}return i(y);case Ol:l:{for(Q=S.key;d!==null;){if(d.key===Q)if(d.tag===4&&d.stateNode.containerInfo===S.containerInfo&&d.stateNode.implementation===S.implementation){e(y,d.sibling),z=n(d,S.children||[]),z.return=y,y=z;break l}else{e(y,d);break}else t(y,d);d=d.sibling}z=fc(S,y.mode,z),z.return=y,y=z}return i(y);case wl:return S=ga(S),El(y,d,S,z)}if(st(S))return Y(y,d,S,z);if(at(S)){if(Q=at(S),typeof Q!="function")throw Error(h(150));return S=Q.call(S),V(y,d,S,z)}if(typeof S.then=="function")return El(y,d,Yu(S),z);if(S.$$typeof===Gl)return El(y,d,Ru(y,S),z);Lu(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,d!==null&&d.tag===6?(e(y,d.sibling),z=n(d,S),z.return=y,y=z):(e(y,d),z=cc(S,y.mode,z),z.return=y,y=z),i(y)):e(y,d)}return function(y,d,S,z){try{Un=0;var Q=El(y,d,S,z);return Wa=null,Q}catch(G){if(G===ka||G===Bu)throw G;var ol=Nt(29,G,null,y.mode);return ol.lanes=z,ol.return=y,ol}}}var pa=to(!0),eo=to(!1),He=!1;function pc(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tc(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Be(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function qe(l,t,e){var a=l.updateQueue;if(a===null)return null;if(a=a.shared,(yl&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=xu(l),Ls(l,null,e),t}return Du(l,a,t,e),xu(l)}function Hn(l,t,e){if(t=t.updateQueue,t!==null&&(t=t.shared,(e&4194048)!==0)){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Sn(l,e)}}function Ec(l,t){var e=l.updateQueue,a=l.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var n=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?n=u=t:u=u.next=t}else n=u=t;e={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},l.updateQueue=e;return}l=e.lastBaseUpdate,l===null?e.firstBaseUpdate=t:l.next=t,e.lastBaseUpdate=t}var zc=!1;function Bn(){if(zc){var l=Ja;if(l!==null)throw l}}function qn(l,t,e,a){zc=!1;var n=l.updateQueue;He=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var s=c,g=s.next;s.next=null,i===null?u=g:i.next=g,i=s;var T=l.alternate;T!==null&&(T=T.updateQueue,c=T.lastBaseUpdate,c!==i&&(c===null?T.firstBaseUpdate=g:c.next=g,T.lastBaseUpdate=s))}if(u!==null){var M=n.baseState;i=0,T=g=s=null,c=u;do{var b=c.lane&-536870913,p=b!==c.lane;if(p?(ul&b)===b:(a&b)===b){b!==0&&b===wa&&(zc=!0),T!==null&&(T=T.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var Y=l,V=c;b=t;var El=e;switch(V.tag){case 1:if(Y=V.payload,typeof Y=="function"){M=Y.call(El,M,b);break l}M=Y;break l;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=V.payload,b=typeof Y=="function"?Y.call(El,M,b):Y,b==null)break l;M=R({},M,b);break l;case 2:He=!0}}b=c.callback,b!==null&&(l.flags|=64,p&&(l.flags|=8192),p=n.callbacks,p===null?n.callbacks=[b]:p.push(b))}else p={lane:b,tag:c.tag,payload:c.payload,callback:c.callback,next:null},T===null?(g=T=p,s=M):T=T.next=p,i|=b;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;p=c,c=p.next,p.next=null,n.lastBaseUpdate=p,n.shared.pending=null}}while(!0);T===null&&(s=M),n.baseState=s,n.firstBaseUpdate=g,n.lastBaseUpdate=T,u===null&&(n.shared.lanes=0),Qe|=i,l.lanes=i,l.memoizedState=M}}function ao(l,t){if(typeof l!="function")throw Error(h(191,l));l.call(t)}function no(l,t){var e=l.callbacks;if(e!==null)for(l.callbacks=null,l=0;l<e.length;l++)ao(e[l],t)}var $a=m(null),Gu=m(0);function uo(l,t){l=Te,U(Gu,l),U($a,t),Te=l|t.baseLanes}function Ac(){U(Gu,Te),U($a,$a.current)}function _c(){Te=Gu.current,_($a),_(Gu)}var Ot=m(null),Lt=null;function Ye(l){var t=l.alternate;U(Yl,Yl.current&1),U(Ot,l),Lt===null&&(t===null||$a.current!==null||t.memoizedState!==null)&&(Lt=l)}function Mc(l){U(Yl,Yl.current),U(Ot,l),Lt===null&&(Lt=l)}function io(l){l.tag===22?(U(Yl,Yl.current),U(Ot,l),Lt===null&&(Lt=l)):Le()}function Le(){U(Yl,Yl.current),U(Ot,Ot.current)}function Dt(l){_(Ot),Lt===l&&(Lt=null),_(Yl)}var Yl=m(0);function Xu(l){for(var t=l;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||Uf(e)||Rf(e)))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===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var me=0,$=null,pl=null,Zl=null,Qu=!1,Fa=!1,Ta=!1,Zu=0,Yn=0,Ia=null,lh=0;function Cl(){throw Error(h(321))}function Nc(l,t){if(t===null)return!1;for(var e=0;e<t.length&&e<l.length;e++)if(!Mt(l[e],t[e]))return!1;return!0}function Oc(l,t,e,a,n,u){return me=u,$=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=l===null||l.memoizedState===null?Vo:Zc,Ta=!1,u=e(a,n),Ta=!1,Fa&&(u=fo(t,e,a,n)),co(l),u}function co(l){E.H=Xn;var t=pl!==null&&pl.next!==null;if(me=0,Zl=pl=$=null,Qu=!1,Yn=0,Ia=null,t)throw Error(h(300));l===null||Vl||(l=l.dependencies,l!==null&&Uu(l)&&(Vl=!0))}function fo(l,t,e,a){$=l;var n=0;do{if(Fa&&(Ia=null),Yn=0,Fa=!1,25<=n)throw Error(h(301));if(n+=1,Zl=pl=null,l.updateQueue!=null){var u=l.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}E.H=Ko,u=t(e,a)}while(Fa);return u}function th(){var l=E.H,t=l.useState()[0];return t=typeof t.then=="function"?Ln(t):t,l=l.useState()[0],(pl!==null?pl.memoizedState:null)!==l&&($.flags|=1024),t}function Dc(){var l=Zu!==0;return Zu=0,l}function xc(l,t,e){t.updateQueue=l.updateQueue,t.flags&=-2053,l.lanes&=~e}function jc(l){if(Qu){for(l=l.memoizedState;l!==null;){var t=l.queue;t!==null&&(t.pending=null),l=l.next}Qu=!1}me=0,Zl=pl=$=null,Fa=!1,Yn=Zu=0,Ia=null}function ot(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zl===null?$.memoizedState=Zl=l:Zl=Zl.next=l,Zl}function Ll(){if(pl===null){var l=$.alternate;l=l!==null?l.memoizedState:null}else l=pl.next;var t=Zl===null?$.memoizedState:Zl.next;if(t!==null)Zl=t,pl=l;else{if(l===null)throw $.alternate===null?Error(h(467)):Error(h(310));pl=l,l={memoizedState:pl.memoizedState,baseState:pl.baseState,baseQueue:pl.baseQueue,queue:pl.queue,next:null},Zl===null?$.memoizedState=Zl=l:Zl=Zl.next=l}return Zl}function Vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ln(l){var t=Yn;return Yn+=1,Ia===null&&(Ia=[]),l=Is(Ia,l,t),t=$,(Zl===null?t.memoizedState:Zl.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?Vo:Zc),l}function Ku(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return Ln(l);if(l.$$typeof===Gl)return lt(l)}throw Error(h(438,String(l)))}function Cc(l){var t=null,e=$.updateQueue;if(e!==null&&(t=e.memoCache),t==null){var a=$.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),e===null&&(e=Vu(),$.updateQueue=e),e.memoCache=t,e=t.data[t.index],e===void 0)for(e=t.data[t.index]=Array(l),a=0;a<l;a++)e[a]=Jt;return t.index++,e}function he(l,t){return typeof t=="function"?t(l):t}function wu(l){var t=Ll();return Uc(t,pl,l)}function Uc(l,t,e){var a=l.queue;if(a===null)throw Error(h(311));a.lastRenderedReducer=e;var n=l.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=l.baseState,n===null)l.memoizedState=u;else{t=n.next;var c=i=null,s=null,g=t,T=!1;do{var M=g.lane&-536870913;if(M!==g.lane?(ul&M)===M:(me&M)===M){var b=g.revertLane;if(b===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),M===wa&&(T=!0);else if((me&b)===b){g=g.next,b===wa&&(T=!0);continue}else M={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},s===null?(c=s=M,i=u):s=s.next=M,$.lanes|=b,Qe|=b;M=g.action,Ta&&e(u,M),u=g.hasEagerState?g.eagerState:e(u,M)}else b={lane:M,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},s===null?(c=s=b,i=u):s=s.next=b,$.lanes|=M,Qe|=M;g=g.next}while(g!==null&&g!==t);if(s===null?i=u:s.next=c,!Mt(u,l.memoizedState)&&(Vl=!0,T&&(e=Ja,e!==null)))throw e;l.memoizedState=u,l.baseState=i,l.baseQueue=s,a.lastRenderedState=u}return n===null&&(a.lanes=0),[l.memoizedState,a.dispatch]}function Rc(l){var t=Ll(),e=t.queue;if(e===null)throw Error(h(311));e.lastRenderedReducer=l;var a=e.dispatch,n=e.pending,u=t.memoizedState;if(n!==null){e.pending=null;var i=n=n.next;do u=l(u,i.action),i=i.next;while(i!==n);Mt(u,t.memoizedState)||(Vl=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),e.lastRenderedState=u}return[u,a]}function so(l,t,e){var a=$,n=Ll(),u=cl;if(u){if(e===void 0)throw Error(h(407));e=e()}else e=t();var i=!Mt((pl||n).memoizedState,e);if(i&&(n.memoizedState=e,Vl=!0),n=n.queue,qc(mo.bind(null,a,n,l),[l]),n.getSnapshot!==t||i||Zl!==null&&Zl.memoizedState.tag&1){if(a.flags|=2048,Pa(9,{destroy:void 0},ro.bind(null,a,n,e,t),null),zl===null)throw Error(h(349));u||(me&127)!==0||oo(a,t,e)}return e}function oo(l,t,e){l.flags|=16384,l={getSnapshot:t,value:e},t=$.updateQueue,t===null?(t=Vu(),$.updateQueue=t,t.stores=[l]):(e=t.stores,e===null?t.stores=[l]:e.push(l))}function ro(l,t,e,a){t.value=e,t.getSnapshot=a,ho(t)&&yo(l)}function mo(l,t,e){return e(function(){ho(t)&&yo(l)})}function ho(l){var t=l.getSnapshot;l=l.value;try{var e=t();return!Mt(l,e)}catch{return!0}}function yo(l){var t=da(l,2);t!==null&&Tt(t,l,2)}function Hc(l){var t=ot();if(typeof l=="function"){var e=l;if(l=e(),Ta){Dl(!0);try{e()}finally{Dl(!1)}}}return t.memoizedState=t.baseState=l,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:he,lastRenderedState:l},t}function vo(l,t,e,a){return l.baseState=e,Uc(l,pl,typeof a=="function"?a:he)}function eh(l,t,e,a,n){if(Wu(l))throw Error(h(485));if(l=t.action,l!==null){var u={payload:n,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};E.T!==null?e(!0):u.isTransition=!1,a(u),e=t.pending,e===null?(u.next=t.pending=u,So(t,u)):(u.next=e.next,t.pending=e.next=u)}}function So(l,t){var e=t.action,a=t.payload,n=l.state;if(t.isTransition){var u=E.T,i={};E.T=i;try{var c=e(n,a),s=E.S;s!==null&&s(i,c),go(l,t,c)}catch(g){Bc(l,t,g)}finally{u!==null&&i.types!==null&&(u.types=i.types),E.T=u}}else try{u=e(n,a),go(l,t,u)}catch(g){Bc(l,t,g)}}function go(l,t,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){bo(l,t,a)},function(a){return Bc(l,t,a)}):bo(l,t,e)}function bo(l,t,e){t.status="fulfilled",t.value=e,po(t),l.state=e,t=l.pending,t!==null&&(e=t.next,e===t?l.pending=null:(e=e.next,t.next=e,So(l,e)))}function Bc(l,t,e){var a=l.pending;if(l.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=e,po(t),t=t.next;while(t!==a)}l.action=null}function po(l){l=l.listeners;for(var t=0;t<l.length;t++)(0,l[t])()}function To(l,t){return t}function Eo(l,t){if(cl){var e=zl.formState;if(e!==null){l:{var a=$;if(cl){if(_l){t:{for(var n=_l,u=Yt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Gt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){_l=Gt(n.nextSibling),a=n.data==="F!";break l}}Ue(a)}a=!1}a&&(t=e[0])}}return e=ot(),e.memoizedState=e.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:To,lastRenderedState:t},e.queue=a,e=Xo.bind(null,$,a),a.dispatch=e,a=Hc(!1),u=Qc.bind(null,$,!1,a.queue),a=ot(),n={state:t,dispatch:null,action:l,pending:null},a.queue=n,e=eh.bind(null,$,n,u,e),n.dispatch=e,a.memoizedState=l,[t,e,!1]}function zo(l){var t=Ll();return Ao(t,pl,l)}function Ao(l,t,e){if(t=Uc(l,t,To)[0],l=wu(he)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ln(t)}catch(i){throw i===ka?Bu:i}else a=t;t=Ll();var n=t.queue,u=n.dispatch;return e!==t.memoizedState&&($.flags|=2048,Pa(9,{destroy:void 0},ah.bind(null,n,e),null)),[a,u,l]}function ah(l,t){l.action=t}function _o(l){var t=Ll(),e=pl;if(e!==null)return Ao(t,e,l);Ll(),t=t.memoizedState,e=Ll();var a=e.queue.dispatch;return e.memoizedState=l,[t,a,!1]}function Pa(l,t,e,a){return l={tag:l,create:e,deps:a,inst:t,next:null},t=$.updateQueue,t===null&&(t=Vu(),$.updateQueue=t),e=t.lastEffect,e===null?t.lastEffect=l.next=l:(a=e.next,e.next=l,l.next=a,t.lastEffect=l),l}function Mo(){return Ll().memoizedState}function Ju(l,t,e,a){var n=ot();$.flags|=l,n.memoizedState=Pa(1|t,{destroy:void 0},e,a===void 0?null:a)}function ku(l,t,e,a){var n=Ll();a=a===void 0?null:a;var u=n.memoizedState.inst;pl!==null&&a!==null&&Nc(a,pl.memoizedState.deps)?n.memoizedState=Pa(t,u,e,a):($.flags|=l,n.memoizedState=Pa(1|t,u,e,a))}function No(l,t){Ju(8390656,8,l,t)}function qc(l,t){ku(2048,8,l,t)}function nh(l){$.flags|=4;var t=$.updateQueue;if(t===null)t=Vu(),$.updateQueue=t,t.events=[l];else{var e=t.events;e===null?t.events=[l]:e.push(l)}}function Oo(l){var t=Ll().memoizedState;return nh({ref:t,nextImpl:l}),function(){if((yl&2)!==0)throw Error(h(440));return t.impl.apply(void 0,arguments)}}function Do(l,t){return ku(4,2,l,t)}function xo(l,t){return ku(4,4,l,t)}function jo(l,t){if(typeof t=="function"){l=l();var e=t(l);return function(){typeof e=="function"?e():t(null)}}if(t!=null)return l=l(),t.current=l,function(){t.current=null}}function Co(l,t,e){e=e!=null?e.concat([l]):null,ku(4,4,jo.bind(null,t,l),e)}function Yc(){}function Uo(l,t){var e=Ll();t=t===void 0?null:t;var a=e.memoizedState;return t!==null&&Nc(t,a[1])?a[0]:(e.memoizedState=[l,t],l)}function Ro(l,t){var e=Ll();t=t===void 0?null:t;var a=e.memoizedState;if(t!==null&&Nc(t,a[1]))return a[0];if(a=l(),Ta){Dl(!0);try{l()}finally{Dl(!1)}}return e.memoizedState=[a,t],a}function Lc(l,t,e){return e===void 0||(me&1073741824)!==0&&(ul&261930)===0?l.memoizedState=t:(l.memoizedState=e,l=Hr(),$.lanes|=l,Qe|=l,e)}function Ho(l,t,e,a){return Mt(e,t)?e:$a.current!==null?(l=Lc(l,e,a),Mt(l,t)||(Vl=!0),l):(me&42)===0||(me&1073741824)!==0&&(ul&261930)===0?(Vl=!0,l.memoizedState=e):(l=Hr(),$.lanes|=l,Qe|=l,t)}function Bo(l,t,e,a,n){var u=C.p;C.p=u!==0&&8>u?u:8;var i=E.T,c={};E.T=c,Qc(l,!1,t,e);try{var s=n(),g=E.S;if(g!==null&&g(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var T=Pm(s,a);Gn(l,t,T,Ct(l))}else Gn(l,t,a,Ct(l))}catch(M){Gn(l,t,{then:function(){},status:"rejected",reason:M},Ct())}finally{C.p=u,i!==null&&c.types!==null&&(i.types=c.types),E.T=i}}function uh(){}function Gc(l,t,e,a){if(l.tag!==5)throw Error(h(476));var n=qo(l).queue;Bo(l,n,t,Z,e===null?uh:function(){return Yo(l),e(a)})}function qo(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:he,lastRenderedState:Z},next:null};var e={};return t.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:he,lastRenderedState:e},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function Yo(l){var t=qo(l);t.next===null&&(t=l.alternate.memoizedState),Gn(l,t.next.queue,{},Ct())}function Xc(){return lt(au)}function Lo(){return Ll().memoizedState}function Go(){return Ll().memoizedState}function ih(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var e=Ct();l=Be(e);var a=qe(t,l,e);a!==null&&(Tt(a,t,e),Hn(a,t,e)),t={cache:vc()},l.payload=t;return}t=t.return}}function ch(l,t,e){var a=Ct();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},Wu(l)?Qo(t,e):(e=uc(l,t,e,a),e!==null&&(Tt(e,l,a),Zo(e,t,a)))}function Xo(l,t,e){var a=Ct();Gn(l,t,e,a)}function Gn(l,t,e,a){var n={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(Wu(l))Qo(t,n);else{var u=l.alternate;if(l.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,c=u(i,e);if(n.hasEagerState=!0,n.eagerState=c,Mt(c,i))return Du(l,t,n,0),zl===null&&Ou(),!1}catch{}if(e=uc(l,t,n,a),e!==null)return Tt(e,l,a),Zo(e,t,a),!0}return!1}function Qc(l,t,e,a){if(a={lane:2,revertLane:Tf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Wu(l)){if(t)throw Error(h(479))}else t=uc(l,e,a,2),t!==null&&Tt(t,l,2)}function Wu(l){var t=l.alternate;return l===$||t!==null&&t===$}function Qo(l,t){Fa=Qu=!0;var e=l.pending;e===null?t.next=t:(t.next=e.next,e.next=t),l.pending=t}function Zo(l,t,e){if((e&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Sn(l,e)}}var Xn={readContext:lt,use:Ku,useCallback:Cl,useContext:Cl,useEffect:Cl,useImperativeHandle:Cl,useLayoutEffect:Cl,useInsertionEffect:Cl,useMemo:Cl,useReducer:Cl,useRef:Cl,useState:Cl,useDebugValue:Cl,useDeferredValue:Cl,useTransition:Cl,useSyncExternalStore:Cl,useId:Cl,useHostTransitionStatus:Cl,useFormState:Cl,useActionState:Cl,useOptimistic:Cl,useMemoCache:Cl,useCacheRefresh:Cl};Xn.useEffectEvent=Cl;var Vo={readContext:lt,use:Ku,useCallback:function(l,t){return ot().memoizedState=[l,t===void 0?null:t],l},useContext:lt,useEffect:No,useImperativeHandle:function(l,t,e){e=e!=null?e.concat([l]):null,Ju(4194308,4,jo.bind(null,t,l),e)},useLayoutEffect:function(l,t){return Ju(4194308,4,l,t)},useInsertionEffect:function(l,t){Ju(4,2,l,t)},useMemo:function(l,t){var e=ot();t=t===void 0?null:t;var a=l();if(Ta){Dl(!0);try{l()}finally{Dl(!1)}}return e.memoizedState=[a,t],a},useReducer:function(l,t,e){var a=ot();if(e!==void 0){var n=e(t);if(Ta){Dl(!0);try{e(t)}finally{Dl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:n},a.queue=l,l=l.dispatch=ch.bind(null,$,l),[a.memoizedState,l]},useRef:function(l){var t=ot();return l={current:l},t.memoizedState=l},useState:function(l){l=Hc(l);var t=l.queue,e=Xo.bind(null,$,t);return t.dispatch=e,[l.memoizedState,e]},useDebugValue:Yc,useDeferredValue:function(l,t){var e=ot();return Lc(e,l,t)},useTransition:function(){var l=Hc(!1);return l=Bo.bind(null,$,l.queue,!0,!1),ot().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,e){var a=$,n=ot();if(cl){if(e===void 0)throw Error(h(407));e=e()}else{if(e=t(),zl===null)throw Error(h(349));(ul&127)!==0||oo(a,t,e)}n.memoizedState=e;var u={value:e,getSnapshot:t};return n.queue=u,No(mo.bind(null,a,u,l),[l]),a.flags|=2048,Pa(9,{destroy:void 0},ro.bind(null,a,u,e,t),null),e},useId:function(){var l=ot(),t=zl.identifierPrefix;if(cl){var e=It,a=Ft;e=(a&~(1<<32-Fl(a)-1)).toString(32)+e,t="_"+t+"R_"+e,e=Zu++,0<e&&(t+="H"+e.toString(32)),t+="_"}else e=lh++,t="_"+t+"r_"+e.toString(32)+"_";return l.memoizedState=t},useHostTransitionStatus:Xc,useFormState:Eo,useActionState:Eo,useOptimistic:function(l){var t=ot();t.memoizedState=t.baseState=l;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=e,t=Qc.bind(null,$,!0,e),e.dispatch=t,[l,t]},useMemoCache:Cc,useCacheRefresh:function(){return ot().memoizedState=ih.bind(null,$)},useEffectEvent:function(l){var t=ot(),e={impl:l};return t.memoizedState=e,function(){if((yl&2)!==0)throw Error(h(440));return e.impl.apply(void 0,arguments)}}},Zc={readContext:lt,use:Ku,useCallback:Uo,useContext:lt,useEffect:qc,useImperativeHandle:Co,useInsertionEffect:Do,useLayoutEffect:xo,useMemo:Ro,useReducer:wu,useRef:Mo,useState:function(){return wu(he)},useDebugValue:Yc,useDeferredValue:function(l,t){var e=Ll();return Ho(e,pl.memoizedState,l,t)},useTransition:function(){var l=wu(he)[0],t=Ll().memoizedState;return[typeof l=="boolean"?l:Ln(l),t]},useSyncExternalStore:so,useId:Lo,useHostTransitionStatus:Xc,useFormState:zo,useActionState:zo,useOptimistic:function(l,t){var e=Ll();return vo(e,pl,l,t)},useMemoCache:Cc,useCacheRefresh:Go};Zc.useEffectEvent=Oo;var Ko={readContext:lt,use:Ku,useCallback:Uo,useContext:lt,useEffect:qc,useImperativeHandle:Co,useInsertionEffect:Do,useLayoutEffect:xo,useMemo:Ro,useReducer:Rc,useRef:Mo,useState:function(){return Rc(he)},useDebugValue:Yc,useDeferredValue:function(l,t){var e=Ll();return pl===null?Lc(e,l,t):Ho(e,pl.memoizedState,l,t)},useTransition:function(){var l=Rc(he)[0],t=Ll().memoizedState;return[typeof l=="boolean"?l:Ln(l),t]},useSyncExternalStore:so,useId:Lo,useHostTransitionStatus:Xc,useFormState:_o,useActionState:_o,useOptimistic:function(l,t){var e=Ll();return pl!==null?vo(e,pl,l,t):(e.baseState=l,[l,e.queue.dispatch])},useMemoCache:Cc,useCacheRefresh:Go};Ko.useEffectEvent=Oo;function Vc(l,t,e,a){t=l.memoizedState,e=e(a,t),e=e==null?t:R({},t,e),l.memoizedState=e,l.lanes===0&&(l.updateQueue.baseState=e)}var Kc={enqueueSetState:function(l,t,e){l=l._reactInternals;var a=Ct(),n=Be(a);n.payload=t,e!=null&&(n.callback=e),t=qe(l,n,a),t!==null&&(Tt(t,l,a),Hn(t,l,a))},enqueueReplaceState:function(l,t,e){l=l._reactInternals;var a=Ct(),n=Be(a);n.tag=1,n.payload=t,e!=null&&(n.callback=e),t=qe(l,n,a),t!==null&&(Tt(t,l,a),Hn(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var e=Ct(),a=Be(e);a.tag=2,t!=null&&(a.callback=t),t=qe(l,a,e),t!==null&&(Tt(t,l,e),Hn(t,l,e))}};function wo(l,t,e,a,n,u,i){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!Nn(e,a)||!Nn(n,u):!0}function Jo(l,t,e,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(e,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(e,a),t.state!==l&&Kc.enqueueReplaceState(t,t.state,null)}function Ea(l,t){var e=t;if("ref"in t){e={};for(var a in t)a!=="ref"&&(e[a]=t[a])}if(l=l.defaultProps){e===t&&(e=R({},e));for(var n in l)e[n]===void 0&&(e[n]=l[n])}return e}function ko(l){Nu(l)}function Wo(l){console.error(l)}function $o(l){Nu(l)}function $u(l,t){try{var e=l.onUncaughtError;e(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Fo(l,t,e){try{var a=l.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function wc(l,t,e){return e=Be(e),e.tag=3,e.payload={element:null},e.callback=function(){$u(l,t)},e}function Io(l){return l=Be(l),l.tag=3,l}function Po(l,t,e,a){var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;l.payload=function(){return n(u)},l.callback=function(){Fo(t,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(l.callback=function(){Fo(t,e,a),typeof n!="function"&&(Ze===null?Ze=new Set([this]):Ze.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function fh(l,t,e,a,n){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=e.alternate,t!==null&&Ka(t,e,n,!0),e=Ot.current,e!==null){switch(e.tag){case 31:case 13:return Lt===null?fi():e.alternate===null&&Ul===0&&(Ul=3),e.flags&=-257,e.flags|=65536,e.lanes=n,a===qu?e.flags|=16384:(t=e.updateQueue,t===null?e.updateQueue=new Set([a]):t.add(a),gf(l,a,n)),!1;case 22:return e.flags|=65536,a===qu?e.flags|=16384:(t=e.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=t):(e=t.retryQueue,e===null?t.retryQueue=new Set([a]):e.add(a)),gf(l,a,n)),!1}throw Error(h(435,e.tag))}return gf(l,a,n),fi(),!1}if(cl)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==rc&&(l=Error(h(422),{cause:a}),xn(Ht(l,e)))):(a!==rc&&(t=Error(h(423),{cause:a}),xn(Ht(t,e))),l=l.current.alternate,l.flags|=65536,n&=-n,l.lanes|=n,a=Ht(a,e),n=wc(l.stateNode,a,n),Ec(l,n),Ul!==4&&(Ul=2)),!1;var u=Error(h(520),{cause:a});if(u=Ht(u,e),Wn===null?Wn=[u]:Wn.push(u),Ul!==4&&(Ul=2),t===null)return!0;a=Ht(a,e),e=t;do{switch(e.tag){case 3:return e.flags|=65536,l=n&-n,e.lanes|=l,l=wc(e.stateNode,a,l),Ec(e,l),!1;case 1:if(t=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ze===null||!Ze.has(u))))return e.flags|=65536,n&=-n,e.lanes|=n,n=Io(n),Po(n,l,e,a),Ec(e,n),!1}e=e.return}while(e!==null);return!1}var Jc=Error(h(461)),Vl=!1;function tt(l,t,e,a){t.child=l===null?eo(t,null,e,a):pa(t,l.child,e,a)}function lr(l,t,e,a,n){e=e.render;var u=t.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return va(t),a=Oc(l,t,e,i,u,n),c=Dc(),l!==null&&!Vl?(xc(l,t,n),ye(l,t,n)):(cl&&c&&sc(t),t.flags|=1,tt(l,t,a,n),t.child)}function tr(l,t,e,a,n){if(l===null){var u=e.type;return typeof u=="function"&&!ic(u)&&u.defaultProps===void 0&&e.compare===null?(t.tag=15,t.type=u,er(l,t,u,a,n)):(l=ju(e.type,null,a,t,t.mode,n),l.ref=t.ref,l.return=t,t.child=l)}if(u=l.child,!tf(l,n)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:Nn,e(i,a)&&l.ref===t.ref)return ye(l,t,n)}return t.flags|=1,l=se(u,a),l.ref=t.ref,l.return=t,t.child=l}function er(l,t,e,a,n){if(l!==null){var u=l.memoizedProps;if(Nn(u,a)&&l.ref===t.ref)if(Vl=!1,t.pendingProps=a=u,tf(l,n))(l.flags&131072)!==0&&(Vl=!0);else return t.lanes=l.lanes,ye(l,t,n)}return kc(l,t,e,a,n)}function ar(l,t,e,a){var n=a.children,u=l!==null?l.memoizedState:null;if(l===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|e:e,l!==null){for(a=t.child=l.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return nr(l,t,u,e,a)}if((e&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&Hu(t,u!==null?u.cachePool:null),u!==null?uo(t,u):Ac(),io(t);else return a=t.lanes=536870912,nr(l,t,u!==null?u.baseLanes|e:e,e,a)}else u!==null?(Hu(t,u.cachePool),uo(t,u),Le(),t.memoizedState=null):(l!==null&&Hu(t,null),Ac(),Le());return tt(l,t,n,e),t.child}function Qn(l,t){return l!==null&&l.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function nr(l,t,e,a,n){var u=gc();return u=u===null?null:{parent:Ql._currentValue,pool:u},t.memoizedState={baseLanes:e,cachePool:u},l!==null&&Hu(t,null),Ac(),io(t),l!==null&&Ka(l,t,a,!0),t.childLanes=n,null}function Fu(l,t){return t=Pu({mode:t.mode,children:t.children},l.mode),t.ref=l.ref,l.child=t,t.return=l,t}function ur(l,t,e){return pa(t,l.child,null,e),l=Fu(t,t.pendingProps),l.flags|=2,Dt(t),t.memoizedState=null,l}function sh(l,t,e){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,l===null){if(cl){if(a.mode==="hidden")return l=Fu(t,a),t.lanes=536870912,Qn(null,l);if(Mc(t),(l=_l)?(l=Sd(l,Yt),l=l!==null&&l.data==="&"?l:null,l!==null&&(t.memoizedState={dehydrated:l,treeContext:je!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},e=Xs(l),e.return=t,t.child=e,Pl=t,_l=null)):l=null,l===null)throw Ue(t);return t.lanes=536870912,null}return Fu(t,a)}var u=l.memoizedState;if(u!==null){var i=u.dehydrated;if(Mc(t),n)if(t.flags&256)t.flags&=-257,t=ur(l,t,e);else if(t.memoizedState!==null)t.child=l.child,t.flags|=128,t=null;else throw Error(h(558));else if(Vl||Ka(l,t,e,!1),n=(e&l.childLanes)!==0,Vl||n){if(a=zl,a!==null&&(i=gn(a,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,da(l,i),Tt(a,l,i),Jc;fi(),t=ur(l,t,e)}else l=u.treeContext,_l=Gt(i.nextSibling),Pl=t,cl=!0,Ce=null,Yt=!1,l!==null&&Vs(t,l),t=Fu(t,a),t.flags|=4096;return t}return l=se(l.child,{mode:a.mode,children:a.children}),l.ref=t.ref,t.child=l,l.return=t,l}function Iu(l,t){var e=t.ref;if(e===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(h(284));(l===null||l.ref!==e)&&(t.flags|=4194816)}}function kc(l,t,e,a,n){return va(t),e=Oc(l,t,e,a,void 0,n),a=Dc(),l!==null&&!Vl?(xc(l,t,n),ye(l,t,n)):(cl&&a&&sc(t),t.flags|=1,tt(l,t,e,n),t.child)}function ir(l,t,e,a,n,u){return va(t),t.updateQueue=null,e=fo(t,a,e,n),co(l),a=Dc(),l!==null&&!Vl?(xc(l,t,u),ye(l,t,u)):(cl&&a&&sc(t),t.flags|=1,tt(l,t,e,u),t.child)}function cr(l,t,e,a,n){if(va(t),t.stateNode===null){var u=Xa,i=e.contextType;typeof i=="object"&&i!==null&&(u=lt(i)),u=new e(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Kc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},pc(t),i=e.contextType,u.context=typeof i=="object"&&i!==null?lt(i):Xa,u.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Vc(t,e,i,a),u.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&Kc.enqueueReplaceState(u,u.state,null),qn(t,a,u,n),Bn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){u=t.stateNode;var c=t.memoizedProps,s=Ea(e,c);u.props=s;var g=u.context,T=e.contextType;i=Xa,typeof T=="object"&&T!==null&&(i=lt(T));var M=e.getDerivedStateFromProps;T=typeof M=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,T||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||g!==i)&&Jo(t,u,a,i),He=!1;var b=t.memoizedState;u.state=b,qn(t,a,u,n),Bn(),g=t.memoizedState,c||b!==g||He?(typeof M=="function"&&(Vc(t,e,M,a),g=t.memoizedState),(s=He||wo(t,e,s,a,b,g,i))?(T||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=a,t.memoizedState=g),u.props=a,u.state=g,u.context=i,a=s):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Tc(l,t),i=t.memoizedProps,T=Ea(e,i),u.props=T,M=t.pendingProps,b=u.context,g=e.contextType,s=Xa,typeof g=="object"&&g!==null&&(s=lt(g)),c=e.getDerivedStateFromProps,(g=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==M||b!==s)&&Jo(t,u,a,s),He=!1,b=t.memoizedState,u.state=b,qn(t,a,u,n),Bn();var p=t.memoizedState;i!==M||b!==p||He||l!==null&&l.dependencies!==null&&Uu(l.dependencies)?(typeof c=="function"&&(Vc(t,e,c,a),p=t.memoizedState),(T=He||wo(t,e,T,a,b,p,s)||l!==null&&l.dependencies!==null&&Uu(l.dependencies))?(g||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,p,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,p,s)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=p),u.props=a,u.state=p,u.context=s,a=T):(typeof u.componentDidUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=1024),a=!1)}return u=a,Iu(l,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,l!==null&&a?(t.child=pa(t,l.child,null,n),t.child=pa(t,null,e,n)):tt(l,t,e,n),t.memoizedState=u.state,l=t.child):l=ye(l,t,n),l}function fr(l,t,e,a){return ha(),t.flags|=256,tt(l,t,e,a),t.child}var Wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $c(l){return{baseLanes:l,cachePool:$s()}}function Fc(l,t,e){return l=l!==null?l.childLanes&~e:0,t&&(l|=jt),l}function sr(l,t,e){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=l!==null&&l.memoizedState===null?!1:(Yl.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,l===null){if(cl){if(n?Ye(t):Le(),(l=_l)?(l=Sd(l,Yt),l=l!==null&&l.data!=="&"?l:null,l!==null&&(t.memoizedState={dehydrated:l,treeContext:je!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},e=Xs(l),e.return=t,t.child=e,Pl=t,_l=null)):l=null,l===null)throw Ue(t);return Rf(l)?t.lanes=32:t.lanes=536870912,null}var c=a.children;return a=a.fallback,n?(Le(),n=t.mode,c=Pu({mode:"hidden",children:c},n),a=ma(a,n,e,null),c.return=t,a.return=t,c.sibling=a,t.child=c,a=t.child,a.memoizedState=$c(e),a.childLanes=Fc(l,i,e),t.memoizedState=Wc,Qn(null,a)):(Ye(t),Ic(t,c))}var s=l.memoizedState;if(s!==null&&(c=s.dehydrated,c!==null)){if(u)t.flags&256?(Ye(t),t.flags&=-257,t=Pc(l,t,e)):t.memoizedState!==null?(Le(),t.child=l.child,t.flags|=128,t=null):(Le(),c=a.fallback,n=t.mode,a=Pu({mode:"visible",children:a.children},n),c=ma(c,n,e,null),c.flags|=2,a.return=t,c.return=t,a.sibling=c,t.child=a,pa(t,l.child,null,e),a=t.child,a.memoizedState=$c(e),a.childLanes=Fc(l,i,e),t.memoizedState=Wc,t=Qn(null,a));else if(Ye(t),Rf(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var g=i.dgst;i=g,a=Error(h(419)),a.stack="",a.digest=i,xn({value:a,source:null,stack:null}),t=Pc(l,t,e)}else if(Vl||Ka(l,t,e,!1),i=(e&l.childLanes)!==0,Vl||i){if(i=zl,i!==null&&(a=gn(i,e),a!==0&&a!==s.retryLane))throw s.retryLane=a,da(l,a),Tt(i,l,a),Jc;Uf(c)||fi(),t=Pc(l,t,e)}else Uf(c)?(t.flags|=192,t.child=l.child,t=null):(l=s.treeContext,_l=Gt(c.nextSibling),Pl=t,cl=!0,Ce=null,Yt=!1,l!==null&&Vs(t,l),t=Ic(t,a.children),t.flags|=4096);return t}return n?(Le(),c=a.fallback,n=t.mode,s=l.child,g=s.sibling,a=se(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,g!==null?c=se(g,c):(c=ma(c,n,e,null),c.flags|=2),c.return=t,a.return=t,a.sibling=c,t.child=a,Qn(null,a),a=t.child,c=l.child.memoizedState,c===null?c=$c(e):(n=c.cachePool,n!==null?(s=Ql._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=$s(),c={baseLanes:c.baseLanes|e,cachePool:n}),a.memoizedState=c,a.childLanes=Fc(l,i,e),t.memoizedState=Wc,Qn(l.child,a)):(Ye(t),e=l.child,l=e.sibling,e=se(e,{mode:"visible",children:a.children}),e.return=t,e.sibling=null,l!==null&&(i=t.deletions,i===null?(t.deletions=[l],t.flags|=16):i.push(l)),t.child=e,t.memoizedState=null,e)}function Ic(l,t){return t=Pu({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function Pu(l,t){return l=Nt(22,l,null,t),l.lanes=0,l}function Pc(l,t,e){return pa(t,l.child,null,e),l=Ic(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function or(l,t,e){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),hc(l.return,t,e)}function lf(l,t,e,a,n,u){var i=l.memoizedState;i===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=n,i.treeForkCount=u)}function rr(l,t,e){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Yl.current,c=(i&2)!==0;if(c?(i=i&1|2,t.flags|=128):i&=1,U(Yl,i),tt(l,t,a,e),a=cl?Dn:0,!c&&l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&or(l,e,t);else if(l.tag===19)or(l,e,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(n){case"forwards":for(e=t.child,n=null;e!==null;)l=e.alternate,l!==null&&Xu(l)===null&&(n=e),e=e.sibling;e=n,e===null?(n=t.child,t.child=null):(n=e.sibling,e.sibling=null),lf(t,!1,n,e,u,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,n=t.child,t.child=null;n!==null;){if(l=n.alternate,l!==null&&Xu(l)===null){t.child=n;break}l=n.sibling,n.sibling=e,e=n,n=l}lf(t,!0,e,null,u,a);break;case"together":lf(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function ye(l,t,e){if(l!==null&&(t.dependencies=l.dependencies),Qe|=t.lanes,(e&t.childLanes)===0)if(l!==null){if(Ka(l,t,e,!1),(e&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(h(153));if(t.child!==null){for(l=t.child,e=se(l,l.pendingProps),t.child=e,e.return=t;l.sibling!==null;)l=l.sibling,e=e.sibling=se(l,l.pendingProps),e.return=t;e.sibling=null}return t.child}function tf(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&Uu(l)))}function oh(l,t,e){switch(t.tag){case 3:Hl(t,t.stateNode.containerInfo),Re(t,Ql,l.memoizedState.cache),ha();break;case 27:case 5:la(t);break;case 4:Hl(t,t.stateNode.containerInfo);break;case 10:Re(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Mc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ye(t),t.flags|=128,null):(e&t.child.childLanes)!==0?sr(l,t,e):(Ye(t),l=ye(l,t,e),l!==null?l.sibling:null);Ye(t);break;case 19:var n=(l.flags&128)!==0;if(a=(e&t.childLanes)!==0,a||(Ka(l,t,e,!1),a=(e&t.childLanes)!==0),n){if(a)return rr(l,t,e);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),U(Yl,Yl.current),a)break;return null;case 22:return t.lanes=0,ar(l,t,e,t.pendingProps);case 24:Re(t,Ql,l.memoizedState.cache)}return ye(l,t,e)}function dr(l,t,e){if(l!==null)if(l.memoizedProps!==t.pendingProps)Vl=!0;else{if(!tf(l,e)&&(t.flags&128)===0)return Vl=!1,oh(l,t,e);Vl=(l.flags&131072)!==0}else Vl=!1,cl&&(t.flags&1048576)!==0&&Zs(t,Dn,t.index);switch(t.lanes=0,t.tag){case 16:l:{var a=t.pendingProps;if(l=ga(t.elementType),t.type=l,typeof l=="function")ic(l)?(a=Ea(l,a),t.tag=1,t=cr(null,t,l,a,e)):(t.tag=0,t=kc(null,t,l,a,e));else{if(l!=null){var n=l.$$typeof;if(n===jl){t.tag=11,t=lr(null,t,l,a,e);break l}else if(n===P){t.tag=14,t=tr(null,t,l,a,e);break l}}throw t=At(l)||l,Error(h(306,t,""))}}return t;case 0:return kc(l,t,t.type,t.pendingProps,e);case 1:return a=t.type,n=Ea(a,t.pendingProps),cr(l,t,a,n,e);case 3:l:{if(Hl(t,t.stateNode.containerInfo),l===null)throw Error(h(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Tc(l,t),qn(t,a,null,e);var i=t.memoizedState;if(a=i.cache,Re(t,Ql,a),a!==u.cache&&yc(t,[Ql],e,!0),Bn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=fr(l,t,a,e);break l}else if(a!==n){n=Ht(Error(h(424)),t),xn(n),t=fr(l,t,a,e);break l}else for(l=t.stateNode.containerInfo,l.nodeType===9?l=l.body:l=l.nodeName==="HTML"?l.ownerDocument.body:l,_l=Gt(l.firstChild),Pl=t,cl=!0,Ce=null,Yt=!0,e=eo(t,null,a,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling;else{if(ha(),a===n){t=ye(l,t,e);break l}tt(l,t,a,e)}t=t.child}return t;case 26:return Iu(l,t),l===null?(e=zd(t.type,null,t.pendingProps,null))?t.memoizedState=e:cl||(e=t.type,l=t.pendingProps,a=yi(I.current).createElement(e),a[Jl]=t,a[ut]=l,et(a,e,l),Xl(a),t.stateNode=a):t.memoizedState=zd(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return la(t),l===null&&cl&&(a=t.stateNode=pd(t.type,t.pendingProps,I.current),Pl=t,Yt=!0,n=_l,Je(t.type)?(Hf=n,_l=Gt(a.firstChild)):_l=n),tt(l,t,t.pendingProps.children,e),Iu(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&cl&&((n=a=_l)&&(a=Gh(a,t.type,t.pendingProps,Yt),a!==null?(t.stateNode=a,Pl=t,_l=Gt(a.firstChild),Yt=!1,n=!0):n=!1),n||Ue(t)),la(t),n=t.type,u=t.pendingProps,i=l!==null?l.memoizedProps:null,a=u.children,xf(n,u)?a=null:i!==null&&xf(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=Oc(l,t,th,null,null,e),au._currentValue=n),Iu(l,t),tt(l,t,a,e),t.child;case 6:return l===null&&cl&&((l=e=_l)&&(e=Xh(e,t.pendingProps,Yt),e!==null?(t.stateNode=e,Pl=t,_l=null,l=!0):l=!1),l||Ue(t)),null;case 13:return sr(l,t,e);case 4:return Hl(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=pa(t,null,a,e):tt(l,t,a,e),t.child;case 11:return lr(l,t,t.type,t.pendingProps,e);case 7:return tt(l,t,t.pendingProps,e),t.child;case 8:return tt(l,t,t.pendingProps.children,e),t.child;case 12:return tt(l,t,t.pendingProps.children,e),t.child;case 10:return a=t.pendingProps,Re(t,t.type,a.value),tt(l,t,a.children,e),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,va(t),n=lt(n),a=a(n),t.flags|=1,tt(l,t,a,e),t.child;case 14:return tr(l,t,t.type,t.pendingProps,e);case 15:return er(l,t,t.type,t.pendingProps,e);case 19:return rr(l,t,e);case 31:return sh(l,t,e);case 22:return ar(l,t,e,t.pendingProps);case 24:return va(t),a=lt(Ql),l===null?(n=gc(),n===null&&(n=zl,u=vc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=e),n=u),t.memoizedState={parent:a,cache:n},pc(t),Re(t,Ql,n)):((l.lanes&e)!==0&&(Tc(l,t),qn(t,null,null,e),Bn()),n=l.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Re(t,Ql,a)):(a=u.cache,Re(t,Ql,a),a!==n.cache&&yc(t,[Ql],e,!0))),tt(l,t,t.pendingProps.children,e),t.child;case 29:throw t.pendingProps}throw Error(h(156,t.tag))}function ve(l){l.flags|=4}function ef(l,t,e,a,n){if((t=(l.mode&32)!==0)&&(t=!1),t){if(l.flags|=16777216,(n&335544128)===n)if(l.stateNode.complete)l.flags|=8192;else if(Lr())l.flags|=8192;else throw ba=qu,bc}else l.flags&=-16777217}function mr(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!Od(t))if(Lr())l.flags|=8192;else throw ba=qu,bc}function li(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?vu():536870912,l.lanes|=t,an|=t)}function Zn(l,t){if(!cl)switch(l.tailMode){case"hidden":t=l.tail;for(var e=null;t!==null;)t.alternate!==null&&(e=t),t=t.sibling;e===null?l.tail=null:e.sibling=null;break;case"collapsed":e=l.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function Ml(l){var t=l.alternate!==null&&l.alternate.child===l.child,e=0,a=0;if(t)for(var n=l.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=l,n=n.sibling;else for(n=l.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=l,n=n.sibling;return l.subtreeFlags|=a,l.childLanes=e,t}function rh(l,t,e){var a=t.pendingProps;switch(oc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ml(t),null;case 1:return Ml(t),null;case 3:return e=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),de(Ql),Al(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(l===null||l.child===null)&&(Va(t)?ve(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,dc())),Ml(t),null;case 26:var n=t.type,u=t.memoizedState;return l===null?(ve(t),u!==null?(Ml(t),mr(t,u)):(Ml(t),ef(t,n,null,a,e))):u?u!==l.memoizedState?(ve(t),Ml(t),mr(t,u)):(Ml(t),t.flags&=-16777217):(l=l.memoizedProps,l!==a&&ve(t),Ml(t),ef(t,n,l,a,e)),null;case 27:if(te(t),e=I.current,n=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&ve(t);else{if(!a){if(t.stateNode===null)throw Error(h(166));return Ml(t),null}l=q.current,Va(t)?Ks(t):(l=pd(n,a,e),t.stateNode=l,ve(t))}return Ml(t),null;case 5:if(te(t),n=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&ve(t);else{if(!a){if(t.stateNode===null)throw Error(h(166));return Ml(t),null}if(u=q.current,Va(t))Ks(t);else{var i=yi(I.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Jl]=t,u[ut]=a;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break l;for(;i.sibling===null;){if(i.return===null||i.return===t)break l;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;l:switch(et(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break l;case"img":a=!0;break l;default:a=!1}a&&ve(t)}}return Ml(t),ef(t,t.type,l===null?null:l.memoizedProps,t.pendingProps,e),null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==a&&ve(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(h(166));if(l=I.current,Va(t)){if(l=t.stateNode,e=t.memoizedProps,a=null,n=Pl,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}l[Jl]=t,l=!!(l.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||sd(l.nodeValue,e)),l||Ue(t,!0)}else l=yi(l).createTextNode(a),l[Jl]=t,t.stateNode=l}return Ml(t),null;case 31:if(e=t.memoizedState,l===null||l.memoizedState!==null){if(a=Va(t),e!==null){if(l===null){if(!a)throw Error(h(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(h(557));l[Jl]=t}else ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ml(t),l=!1}else e=dc(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=e),l=!0;if(!l)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(h(558))}return Ml(t),null;case 13:if(a=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(n=Va(t),a!==null&&a.dehydrated!==null){if(l===null){if(!n)throw Error(h(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(317));n[Jl]=t}else ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ml(t),n=!1}else n=dc(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=e,t):(e=a!==null,l=l!==null&&l.memoizedState!==null,e&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),e!==l&&e&&(t.child.flags|=8192),li(t,t.updateQueue),Ml(t),null);case 4:return Al(),l===null&&_f(t.stateNode.containerInfo),Ml(t),null;case 10:return de(t.type),Ml(t),null;case 19:if(_(Yl),a=t.memoizedState,a===null)return Ml(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Zn(a,!1);else{if(Ul!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(u=Xu(l),u!==null){for(t.flags|=128,Zn(a,!1),l=u.updateQueue,t.updateQueue=l,li(t,l),t.subtreeFlags=0,l=e,e=t.child;e!==null;)Gs(e,l),e=e.sibling;return U(Yl,Yl.current&1|2),cl&&oe(t,a.treeForkCount),t.child}l=l.sibling}a.tail!==null&&nt()>ui&&(t.flags|=128,n=!0,Zn(a,!1),t.lanes=4194304)}else{if(!n)if(l=Xu(u),l!==null){if(t.flags|=128,n=!0,l=l.updateQueue,t.updateQueue=l,li(t,l),Zn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!cl)return Ml(t),null}else 2*nt()-a.renderingStartTime>ui&&e!==536870912&&(t.flags|=128,n=!0,Zn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(l=a.last,l!==null?l.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(l=a.tail,a.rendering=l,a.tail=l.sibling,a.renderingStartTime=nt(),l.sibling=null,e=Yl.current,U(Yl,n?e&1|2:e&1),cl&&oe(t,a.treeForkCount),l):(Ml(t),null);case 22:case 23:return Dt(t),_c(),a=t.memoizedState!==null,l!==null?l.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(e&536870912)!==0&&(t.flags&128)===0&&(Ml(t),t.subtreeFlags&6&&(t.flags|=8192)):Ml(t),e=t.updateQueue,e!==null&&li(t,e.retryQueue),e=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==e&&(t.flags|=2048),l!==null&&_(Sa),null;case 24:return e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),de(Ql),Ml(t),null;case 25:return null;case 30:return null}throw Error(h(156,t.tag))}function dh(l,t){switch(oc(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return de(Ql),Al(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return te(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(h(340));ha()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(Dt(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(h(340));ha()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return _(Yl),null;case 4:return Al(),null;case 10:return de(t.type),null;case 22:case 23:return Dt(t),_c(),l!==null&&_(Sa),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return de(Ql),null;case 25:return null;default:return null}}function hr(l,t){switch(oc(t),t.tag){case 3:de(Ql),Al();break;case 26:case 27:case 5:te(t);break;case 4:Al();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:_(Yl);break;case 10:de(t.type);break;case 22:case 23:Dt(t),_c(),l!==null&&_(Sa);break;case 24:de(Ql)}}function Vn(l,t){try{var e=t.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var n=a.next;e=n;do{if((e.tag&l)===l){a=void 0;var u=e.create,i=e.inst;a=u(),i.destroy=a}e=e.next}while(e!==n)}}catch(c){gl(t,t.return,c)}}function Ge(l,t,e){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&l)===l){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,n=t;var s=e,g=c;try{g()}catch(T){gl(n,s,T)}}}a=a.next}while(a!==u)}}catch(T){gl(t,t.return,T)}}function yr(l){var t=l.updateQueue;if(t!==null){var e=l.stateNode;try{no(t,e)}catch(a){gl(l,l.return,a)}}}function vr(l,t,e){e.props=Ea(l.type,l.memoizedProps),e.state=l.memoizedState;try{e.componentWillUnmount()}catch(a){gl(l,t,a)}}function Kn(l,t){try{var e=l.ref;if(e!==null){switch(l.tag){case 26:case 27:case 5:var a=l.stateNode;break;case 30:a=l.stateNode;break;default:a=l.stateNode}typeof e=="function"?l.refCleanup=e(a):e.current=a}}catch(n){gl(l,t,n)}}function Pt(l,t){var e=l.ref,a=l.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(n){gl(l,t,n)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(n){gl(l,t,n)}else e.current=null}function Sr(l){var t=l.type,e=l.memoizedProps,a=l.stateNode;try{l:switch(t){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break l;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(n){gl(l,l.return,n)}}function af(l,t,e){try{var a=l.stateNode;Rh(a,l.type,e,t),a[ut]=t}catch(n){gl(l,l.return,n)}}function gr(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Je(l.type)||l.tag===4}function nf(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||gr(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Je(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function uf(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(l,t):(t=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.appendChild(l),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=ce));else if(a!==4&&(a===27&&Je(l.type)&&(e=l.stateNode,t=null),l=l.child,l!==null))for(uf(l,t,e),l=l.sibling;l!==null;)uf(l,t,e),l=l.sibling}function ti(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?e.insertBefore(l,t):e.appendChild(l);else if(a!==4&&(a===27&&Je(l.type)&&(e=l.stateNode),l=l.child,l!==null))for(ti(l,t,e),l=l.sibling;l!==null;)ti(l,t,e),l=l.sibling}function br(l){var t=l.stateNode,e=l.memoizedProps;try{for(var a=l.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);et(t,a,e),t[Jl]=l,t[ut]=e}catch(u){gl(l,l.return,u)}}var Se=!1,Kl=!1,cf=!1,pr=typeof WeakSet=="function"?WeakSet:Set,Wl=null;function mh(l,t){if(l=l.containerInfo,Of=Ei,l=js(l),Pi(l)){if("selectionStart"in l)var e={start:l.selectionStart,end:l.selectionEnd};else l:{e=(e=l.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break l}var i=0,c=-1,s=-1,g=0,T=0,M=l,b=null;t:for(;;){for(var p;M!==e||n!==0&&M.nodeType!==3||(c=i+n),M!==u||a!==0&&M.nodeType!==3||(s=i+a),M.nodeType===3&&(i+=M.nodeValue.length),(p=M.firstChild)!==null;)b=M,M=p;for(;;){if(M===l)break t;if(b===e&&++g===n&&(c=i),b===u&&++T===a&&(s=i),(p=M.nextSibling)!==null)break;M=b,b=M.parentNode}M=p}e=c===-1||s===-1?null:{start:c,end:s}}else e=null}e=e||{start:0,end:0}}else e=null;for(Df={focusedElem:l,selectionRange:e},Ei=!1,Wl=t;Wl!==null;)if(t=Wl,l=t.child,(t.subtreeFlags&1028)!==0&&l!==null)l.return=t,Wl=l;else for(;Wl!==null;){switch(t=Wl,u=t.alternate,l=t.flags,t.tag){case 0:if((l&4)!==0&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(e=0;e<l.length;e++)n=l[e],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&u!==null){l=void 0,e=t,n=u.memoizedProps,u=u.memoizedState,a=e.stateNode;try{var Y=Ea(e.type,n);l=a.getSnapshotBeforeUpdate(Y,u),a.__reactInternalSnapshotBeforeUpdate=l}catch(V){gl(e,e.return,V)}}break;case 3:if((l&1024)!==0){if(l=t.stateNode.containerInfo,e=l.nodeType,e===9)Cf(l);else if(e===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Cf(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(h(163))}if(l=t.sibling,l!==null){l.return=t.return,Wl=l;break}Wl=t.return}}function Tr(l,t,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:be(l,e),a&4&&Vn(5,e);break;case 1:if(be(l,e),a&4)if(l=e.stateNode,t===null)try{l.componentDidMount()}catch(i){gl(e,e.return,i)}else{var n=Ea(e.type,t.memoizedProps);t=t.memoizedState;try{l.componentDidUpdate(n,t,l.__reactInternalSnapshotBeforeUpdate)}catch(i){gl(e,e.return,i)}}a&64&&yr(e),a&512&&Kn(e,e.return);break;case 3:if(be(l,e),a&64&&(l=e.updateQueue,l!==null)){if(t=null,e.child!==null)switch(e.child.tag){case 27:case 5:t=e.child.stateNode;break;case 1:t=e.child.stateNode}try{no(l,t)}catch(i){gl(e,e.return,i)}}break;case 27:t===null&&a&4&&br(e);case 26:case 5:be(l,e),t===null&&a&4&&Sr(e),a&512&&Kn(e,e.return);break;case 12:be(l,e);break;case 31:be(l,e),a&4&&Ar(l,e);break;case 13:be(l,e),a&4&&_r(l,e),a&64&&(l=e.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(e=Eh.bind(null,e),Qh(l,e))));break;case 22:if(a=e.memoizedState!==null||Se,!a){t=t!==null&&t.memoizedState!==null||Kl,n=Se;var u=Kl;Se=a,(Kl=t)&&!u?pe(l,e,(e.subtreeFlags&8772)!==0):be(l,e),Se=n,Kl=u}break;case 30:break;default:be(l,e)}}function Er(l){var t=l.alternate;t!==null&&(l.alternate=null,Er(t)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(t=l.stateNode,t!==null&&bn(t)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var Nl=null,St=!1;function ge(l,t,e){for(e=e.child;e!==null;)zr(l,t,e),e=e.sibling}function zr(l,t,e){if(K&&typeof K.onCommitFiberUnmount=="function")try{K.onCommitFiberUnmount(ee,e)}catch{}switch(e.tag){case 26:Kl||Pt(e,t),ge(l,t,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:Kl||Pt(e,t);var a=Nl,n=St;Je(e.type)&&(Nl=e.stateNode,St=!1),ge(l,t,e),lu(e.stateNode),Nl=a,St=n;break;case 5:Kl||Pt(e,t);case 6:if(a=Nl,n=St,Nl=null,ge(l,t,e),Nl=a,St=n,Nl!==null)if(St)try{(Nl.nodeType===9?Nl.body:Nl.nodeName==="HTML"?Nl.ownerDocument.body:Nl).removeChild(e.stateNode)}catch(u){gl(e,t,u)}else try{Nl.removeChild(e.stateNode)}catch(u){gl(e,t,u)}break;case 18:Nl!==null&&(St?(l=Nl,yd(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.stateNode),dn(l)):yd(Nl,e.stateNode));break;case 4:a=Nl,n=St,Nl=e.stateNode.containerInfo,St=!0,ge(l,t,e),Nl=a,St=n;break;case 0:case 11:case 14:case 15:Ge(2,e,t),Kl||Ge(4,e,t),ge(l,t,e);break;case 1:Kl||(Pt(e,t),a=e.stateNode,typeof a.componentWillUnmount=="function"&&vr(e,t,a)),ge(l,t,e);break;case 21:ge(l,t,e);break;case 22:Kl=(a=Kl)||e.memoizedState!==null,ge(l,t,e),Kl=a;break;default:ge(l,t,e)}}function Ar(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{dn(l)}catch(e){gl(t,t.return,e)}}}function _r(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{dn(l)}catch(e){gl(t,t.return,e)}}function hh(l){switch(l.tag){case 31:case 13:case 19:var t=l.stateNode;return t===null&&(t=l.stateNode=new pr),t;case 22:return l=l.stateNode,t=l._retryCache,t===null&&(t=l._retryCache=new pr),t;default:throw Error(h(435,l.tag))}}function ei(l,t){var e=hh(l);t.forEach(function(a){if(!e.has(a)){e.add(a);var n=zh.bind(null,l,a);a.then(n,n)}})}function gt(l,t){var e=t.deletions;if(e!==null)for(var a=0;a<e.length;a++){var n=e[a],u=l,i=t,c=i;l:for(;c!==null;){switch(c.tag){case 27:if(Je(c.type)){Nl=c.stateNode,St=!1;break l}break;case 5:Nl=c.stateNode,St=!1;break l;case 3:case 4:Nl=c.stateNode.containerInfo,St=!0;break l}c=c.return}if(Nl===null)throw Error(h(160));zr(u,i,n),Nl=null,St=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Mr(t,l),t=t.sibling}var Vt=null;function Mr(l,t){var e=l.alternate,a=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:gt(t,l),bt(l),a&4&&(Ge(3,l,l.return),Vn(3,l),Ge(5,l,l.return));break;case 1:gt(t,l),bt(l),a&512&&(Kl||e===null||Pt(e,e.return)),a&64&&Se&&(l=l.updateQueue,l!==null&&(a=l.callbacks,a!==null&&(e=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=e===null?a:e.concat(a))));break;case 26:var n=Vt;if(gt(t,l),bt(l),a&512&&(Kl||e===null||Pt(e,e.return)),a&4){var u=e!==null?e.memoizedState:null;if(a=l.memoizedState,e===null)if(a===null)if(l.stateNode===null){l:{a=l.type,e=l.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ne]||u[Jl]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),et(u,a,e),u[Jl]=l,Xl(u),a=u;break l;case"link":var i=Md("link","href",n).get(a+(e.href||""));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&u.getAttribute("rel")===(e.rel==null?null:e.rel)&&u.getAttribute("title")===(e.title==null?null:e.title)&&u.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(c,1);break t}}u=n.createElement(a),et(u,a,e),n.head.appendChild(u);break;case"meta":if(i=Md("meta","content",n).get(a+(e.content||""))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute("content")===(e.content==null?null:""+e.content)&&u.getAttribute("name")===(e.name==null?null:e.name)&&u.getAttribute("property")===(e.property==null?null:e.property)&&u.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&u.getAttribute("charset")===(e.charSet==null?null:e.charSet)){i.splice(c,1);break t}}u=n.createElement(a),et(u,a,e),n.head.appendChild(u);break;default:throw Error(h(468,a))}u[Jl]=l,Xl(u),a=u}l.stateNode=a}else Nd(n,l.type,l.stateNode);else l.stateNode=_d(n,a,l.memoizedProps);else u!==a?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,a===null?Nd(n,l.type,l.stateNode):_d(n,a,l.memoizedProps)):a===null&&l.stateNode!==null&&af(l,l.memoizedProps,e.memoizedProps)}break;case 27:gt(t,l),bt(l),a&512&&(Kl||e===null||Pt(e,e.return)),e!==null&&a&4&&af(l,l.memoizedProps,e.memoizedProps);break;case 5:if(gt(t,l),bt(l),a&512&&(Kl||e===null||Pt(e,e.return)),l.flags&32){n=l.stateNode;try{Ra(n,"")}catch(Y){gl(l,l.return,Y)}}a&4&&l.stateNode!=null&&(n=l.memoizedProps,af(l,n,e!==null?e.memoizedProps:n)),a&1024&&(cf=!0);break;case 6:if(gt(t,l),bt(l),a&4){if(l.stateNode===null)throw Error(h(162));a=l.memoizedProps,e=l.stateNode;try{e.nodeValue=a}catch(Y){gl(l,l.return,Y)}}break;case 3:if(gi=null,n=Vt,Vt=vi(t.containerInfo),gt(t,l),Vt=n,bt(l),a&4&&e!==null&&e.memoizedState.isDehydrated)try{dn(t.containerInfo)}catch(Y){gl(l,l.return,Y)}cf&&(cf=!1,Nr(l));break;case 4:a=Vt,Vt=vi(l.stateNode.containerInfo),gt(t,l),bt(l),Vt=a;break;case 12:gt(t,l),bt(l);break;case 31:gt(t,l),bt(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,ei(l,a)));break;case 13:gt(t,l),bt(l),l.child.flags&8192&&l.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(ni=nt()),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,ei(l,a)));break;case 22:n=l.memoizedState!==null;var s=e!==null&&e.memoizedState!==null,g=Se,T=Kl;if(Se=g||n,Kl=T||s,gt(t,l),Kl=T,Se=g,bt(l),a&8192)l:for(t=l.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(e===null||s||Se||Kl||za(l)),e=null,t=l;;){if(t.tag===5||t.tag===26){if(e===null){s=e=t;try{if(u=s.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=s.stateNode;var M=s.memoizedProps.style,b=M!=null&&M.hasOwnProperty("display")?M.display:null;c.style.display=b==null||typeof b=="boolean"?"":(""+b).trim()}}catch(Y){gl(s,s.return,Y)}}}else if(t.tag===6){if(e===null){s=t;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(Y){gl(s,s.return,Y)}}}else if(t.tag===18){if(e===null){s=t;try{var p=s.stateNode;n?vd(p,!0):vd(s.stateNode,!1)}catch(Y){gl(s,s.return,Y)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===l)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break l;for(;t.sibling===null;){if(t.return===null||t.return===l)break l;e===t&&(e=null),t=t.return}e===t&&(e=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=l.updateQueue,a!==null&&(e=a.retryQueue,e!==null&&(a.retryQueue=null,ei(l,e))));break;case 19:gt(t,l),bt(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,ei(l,a)));break;case 30:break;case 21:break;default:gt(t,l),bt(l)}}function bt(l){var t=l.flags;if(t&2){try{for(var e,a=l.return;a!==null;){if(gr(a)){e=a;break}a=a.return}if(e==null)throw Error(h(160));switch(e.tag){case 27:var n=e.stateNode,u=nf(l);ti(l,u,n);break;case 5:var i=e.stateNode;e.flags&32&&(Ra(i,""),e.flags&=-33);var c=nf(l);ti(l,c,i);break;case 3:case 4:var s=e.stateNode.containerInfo,g=nf(l);uf(l,g,s);break;default:throw Error(h(161))}}catch(T){gl(l,l.return,T)}l.flags&=-3}t&4096&&(l.flags&=-4097)}function Nr(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var t=l;Nr(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),l=l.sibling}}function be(l,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Tr(l,t.alternate,t),t=t.sibling}function za(l){for(l=l.child;l!==null;){var t=l;switch(t.tag){case 0:case 11:case 14:case 15:Ge(4,t,t.return),za(t);break;case 1:Pt(t,t.return);var e=t.stateNode;typeof e.componentWillUnmount=="function"&&vr(t,t.return,e),za(t);break;case 27:lu(t.stateNode);case 26:case 5:Pt(t,t.return),za(t);break;case 22:t.memoizedState===null&&za(t);break;case 30:za(t);break;default:za(t)}l=l.sibling}}function pe(l,t,e){for(e=e&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=l,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:pe(n,u,e),Vn(4,u);break;case 1:if(pe(n,u,e),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(g){gl(a,a.return,g)}if(a=u,n=a.updateQueue,n!==null){var c=a.stateNode;try{var s=n.shared.hiddenCallbacks;if(s!==null)for(n.shared.hiddenCallbacks=null,n=0;n<s.length;n++)ao(s[n],c)}catch(g){gl(a,a.return,g)}}e&&i&64&&yr(u),Kn(u,u.return);break;case 27:br(u);case 26:case 5:pe(n,u,e),e&&a===null&&i&4&&Sr(u),Kn(u,u.return);break;case 12:pe(n,u,e);break;case 31:pe(n,u,e),e&&i&4&&Ar(n,u);break;case 13:pe(n,u,e),e&&i&4&&_r(n,u);break;case 22:u.memoizedState===null&&pe(n,u,e),Kn(u,u.return);break;case 30:break;default:pe(n,u,e)}t=t.sibling}}function ff(l,t){var e=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==e&&(l!=null&&l.refCount++,e!=null&&jn(e))}function sf(l,t){l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&jn(l))}function Kt(l,t,e,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Or(l,t,e,a),t=t.sibling}function Or(l,t,e,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(l,t,e,a),n&2048&&Vn(9,t);break;case 1:Kt(l,t,e,a);break;case 3:Kt(l,t,e,a),n&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&jn(l)));break;case 12:if(n&2048){Kt(l,t,e,a),l=t.stateNode;try{var u=t.memoizedProps,i=u.id,c=u.onPostCommit;typeof c=="function"&&c(i,t.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(s){gl(t,t.return,s)}}else Kt(l,t,e,a);break;case 31:Kt(l,t,e,a);break;case 13:Kt(l,t,e,a);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?Kt(l,t,e,a):wn(l,t):u._visibility&2?Kt(l,t,e,a):(u._visibility|=2,ln(l,t,e,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&ff(i,t);break;case 24:Kt(l,t,e,a),n&2048&&sf(t.alternate,t);break;default:Kt(l,t,e,a)}}function ln(l,t,e,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=l,i=t,c=e,s=a,g=i.flags;switch(i.tag){case 0:case 11:case 15:ln(u,i,c,s,n),Vn(8,i);break;case 23:break;case 22:var T=i.stateNode;i.memoizedState!==null?T._visibility&2?ln(u,i,c,s,n):wn(u,i):(T._visibility|=2,ln(u,i,c,s,n)),n&&g&2048&&ff(i.alternate,i);break;case 24:ln(u,i,c,s,n),n&&g&2048&&sf(i.alternate,i);break;default:ln(u,i,c,s,n)}t=t.sibling}}function wn(l,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var e=l,a=t,n=a.flags;switch(a.tag){case 22:wn(e,a),n&2048&&ff(a.alternate,a);break;case 24:wn(e,a),n&2048&&sf(a.alternate,a);break;default:wn(e,a)}t=t.sibling}}var Jn=8192;function tn(l,t,e){if(l.subtreeFlags&Jn)for(l=l.child;l!==null;)Dr(l,t,e),l=l.sibling}function Dr(l,t,e){switch(l.tag){case 26:tn(l,t,e),l.flags&Jn&&l.memoizedState!==null&&ly(e,Vt,l.memoizedState,l.memoizedProps);break;case 5:tn(l,t,e);break;case 3:case 4:var a=Vt;Vt=vi(l.stateNode.containerInfo),tn(l,t,e),Vt=a;break;case 22:l.memoizedState===null&&(a=l.alternate,a!==null&&a.memoizedState!==null?(a=Jn,Jn=16777216,tn(l,t,e),Jn=a):tn(l,t,e));break;default:tn(l,t,e)}}function xr(l){var t=l.alternate;if(t!==null&&(l=t.child,l!==null)){t.child=null;do t=l.sibling,l.sibling=null,l=t;while(l!==null)}}function kn(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var e=0;e<t.length;e++){var a=t[e];Wl=a,Cr(a,l)}xr(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)jr(l),l=l.sibling}function jr(l){switch(l.tag){case 0:case 11:case 15:kn(l),l.flags&2048&&Ge(9,l,l.return);break;case 3:kn(l);break;case 12:kn(l);break;case 22:var t=l.stateNode;l.memoizedState!==null&&t._visibility&2&&(l.return===null||l.return.tag!==13)?(t._visibility&=-3,ai(l)):kn(l);break;default:kn(l)}}function ai(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var e=0;e<t.length;e++){var a=t[e];Wl=a,Cr(a,l)}xr(l)}for(l=l.child;l!==null;){switch(t=l,t.tag){case 0:case 11:case 15:Ge(8,t,t.return),ai(t);break;case 22:e=t.stateNode,e._visibility&2&&(e._visibility&=-3,ai(t));break;default:ai(t)}l=l.sibling}}function Cr(l,t){for(;Wl!==null;){var e=Wl;switch(e.tag){case 0:case 11:case 15:Ge(8,e,t);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var a=e.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:jn(e.memoizedState.cache)}if(a=e.child,a!==null)a.return=e,Wl=a;else l:for(e=l;Wl!==null;){a=Wl;var n=a.sibling,u=a.return;if(Er(a),a===e){Wl=null;break l}if(n!==null){n.return=u,Wl=n;break l}Wl=u}}}var yh={getCacheForType:function(l){var t=lt(Ql),e=t.data.get(l);return e===void 0&&(e=l(),t.data.set(l,e)),e},cacheSignal:function(){return lt(Ql).controller.signal}},vh=typeof WeakMap=="function"?WeakMap:Map,yl=0,zl=null,al=null,ul=0,Sl=0,xt=null,Xe=!1,en=!1,of=!1,Te=0,Ul=0,Qe=0,Aa=0,rf=0,jt=0,an=0,Wn=null,pt=null,df=!1,ni=0,Ur=0,ui=1/0,ii=null,Ze=null,kl=0,Ve=null,nn=null,Ee=0,mf=0,hf=null,Rr=null,$n=0,yf=null;function Ct(){return(yl&2)!==0&&ul!==0?ul&-ul:E.T!==null?Tf():Su()}function Hr(){if(jt===0)if((ul&536870912)===0||cl){var l=Da;Da<<=1,(Da&3932160)===0&&(Da=262144),jt=l}else jt=536870912;return l=Ot.current,l!==null&&(l.flags|=32),jt}function Tt(l,t,e){(l===zl&&(Sl===2||Sl===9)||l.cancelPendingCommit!==null)&&(un(l,0),Ke(l,ul,jt,!1)),ua(l,e),((yl&2)===0||l!==zl)&&(l===zl&&((yl&2)===0&&(Aa|=e),Ul===4&&Ke(l,ul,jt,!1)),le(l))}function Br(l,t,e){if((yl&6)!==0)throw Error(h(327));var a=!e&&(t&127)===0&&(t&l.expiredLanes)===0||Ut(l,t),n=a?bh(l,t):Sf(l,t,!0),u=a;do{if(n===0){en&&!a&&Ke(l,t,0,!1);break}else{if(e=l.current.alternate,u&&!Sh(e)){n=Sf(l,t,!1),u=!1;continue}if(n===2){if(u=t,l.errorRecoveryDisabledLanes&u)var i=0;else i=l.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;l:{var c=l;n=Wn;var s=c.current.memoizedState.isDehydrated;if(s&&(un(c,i).flags|=256),i=Sf(c,i,!1),i!==2){if(of&&!s){c.errorRecoveryDisabledLanes|=u,Aa|=u,n=4;break l}u=pt,pt=n,u!==null&&(pt===null?pt=u:pt.push.apply(pt,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){un(l,0),Ke(l,t,0,!0);break}l:{switch(a=l,u=n,u){case 0:case 1:throw Error(h(345));case 4:if((t&4194048)!==t)break;case 6:Ke(a,t,jt,!Xe);break l;case 2:pt=null;break;case 3:case 5:break;default:throw Error(h(329))}if((t&62914560)===t&&(n=ni+300-nt(),10<n)){if(Ke(a,t,jt,!Xe),_e(a,0,!0)!==0)break l;Ee=t,a.timeoutHandle=md(qr.bind(null,a,e,pt,ii,df,t,jt,Aa,an,Xe,u,"Throttled",-0,0),n);break l}qr(a,e,pt,ii,df,t,jt,Aa,an,Xe,u,null,-0,0)}}break}while(!0);le(l)}function qr(l,t,e,a,n,u,i,c,s,g,T,M,b,p){if(l.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:ce},Dr(t,u,M);var Y=(u&62914560)===u?ni-nt():(u&4194048)===u?Ur-nt():0;if(Y=ty(M,Y),Y!==null){Ee=u,l.cancelPendingCommit=Y(Kr.bind(null,l,t,u,e,a,n,i,c,s,T,M,null,b,p)),Ke(l,u,i,!g);return}}Kr(l,t,u,e,a,n,i,c,s)}function Sh(l){for(var t=l;;){var e=t.tag;if((e===0||e===11||e===15)&&t.flags&16384&&(e=t.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var a=0;a<e.length;a++){var n=e[a],u=n.getSnapshot;n=n.value;try{if(!Mt(u(),n))return!1}catch{return!1}}if(e=t.child,t.subtreeFlags&16384&&e!==null)e.return=t,t=e;else{if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ke(l,t,e,a){t&=~rf,t&=~Aa,l.suspendedLanes|=t,l.pingedLanes&=~t,a&&(l.warmLanes|=t),a=l.expirationTimes;for(var n=t;0<n;){var u=31-Fl(n),i=1<<u;a[u]=-1,n&=~i}e!==0&&Il(l,e,t)}function ci(){return(yl&6)===0?(Fn(0),!1):!0}function vf(){if(al!==null){if(Sl===0)var l=al.return;else l=al,re=ya=null,jc(l),Wa=null,Un=0,l=al;for(;l!==null;)hr(l.alternate,l),l=l.return;al=null}}function un(l,t){var e=l.timeoutHandle;e!==-1&&(l.timeoutHandle=-1,qh(e)),e=l.cancelPendingCommit,e!==null&&(l.cancelPendingCommit=null,e()),Ee=0,vf(),zl=l,al=e=se(l.current,null),ul=t,Sl=0,xt=null,Xe=!1,en=Ut(l,t),of=!1,an=jt=rf=Aa=Qe=Ul=0,pt=Wn=null,df=!1,(t&8)!==0&&(t|=t&32);var a=l.entangledLanes;if(a!==0)for(l=l.entanglements,a&=t;0<a;){var n=31-Fl(a),u=1<<n;t|=l[n],a&=~u}return Te=t,Ou(),e}function Yr(l,t){$=null,E.H=Xn,t===ka||t===Bu?(t=Ps(),Sl=3):t===bc?(t=Ps(),Sl=4):Sl=t===Jc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,xt=t,al===null&&(Ul=1,$u(l,Ht(t,l.current)))}function Lr(){var l=Ot.current;return l===null?!0:(ul&4194048)===ul?Lt===null:(ul&62914560)===ul||(ul&536870912)!==0?l===Lt:!1}function Gr(){var l=E.H;return E.H=Xn,l===null?Xn:l}function Xr(){var l=E.A;return E.A=yh,l}function fi(){Ul=4,Xe||(ul&4194048)!==ul&&Ot.current!==null||(en=!0),(Qe&134217727)===0&&(Aa&134217727)===0||zl===null||Ke(zl,ul,jt,!1)}function Sf(l,t,e){var a=yl;yl|=2;var n=Gr(),u=Xr();(zl!==l||ul!==t)&&(ii=null,un(l,t)),t=!1;var i=Ul;l:do try{if(Sl!==0&&al!==null){var c=al,s=xt;switch(Sl){case 8:vf(),i=6;break l;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var g=Sl;if(Sl=0,xt=null,cn(l,c,s,g),e&&en){i=0;break l}break;default:g=Sl,Sl=0,xt=null,cn(l,c,s,g)}}gh(),i=Ul;break}catch(T){Yr(l,T)}while(!0);return t&&l.shellSuspendCounter++,re=ya=null,yl=a,E.H=n,E.A=u,al===null&&(zl=null,ul=0,Ou()),i}function gh(){for(;al!==null;)Qr(al)}function bh(l,t){var e=yl;yl|=2;var a=Gr(),n=Xr();zl!==l||ul!==t?(ii=null,ui=nt()+500,un(l,t)):en=Ut(l,t);l:do try{if(Sl!==0&&al!==null){t=al;var u=xt;t:switch(Sl){case 1:Sl=0,xt=null,cn(l,t,u,1);break;case 2:case 9:if(Fs(u)){Sl=0,xt=null,Zr(t);break}t=function(){Sl!==2&&Sl!==9||zl!==l||(Sl=7),le(l)},u.then(t,t);break l;case 3:Sl=7;break l;case 4:Sl=5;break l;case 7:Fs(u)?(Sl=0,xt=null,Zr(t)):(Sl=0,xt=null,cn(l,t,u,7));break;case 5:var i=null;switch(al.tag){case 26:i=al.memoizedState;case 5:case 27:var c=al;if(i?Od(i):c.stateNode.complete){Sl=0,xt=null;var s=c.sibling;if(s!==null)al=s;else{var g=c.return;g!==null?(al=g,si(g)):al=null}break t}}Sl=0,xt=null,cn(l,t,u,5);break;case 6:Sl=0,xt=null,cn(l,t,u,6);break;case 8:vf(),Ul=6;break l;default:throw Error(h(462))}}ph();break}catch(T){Yr(l,T)}while(!0);return re=ya=null,E.H=a,E.A=n,yl=e,al!==null?0:(zl=null,ul=0,Ou(),Ul)}function ph(){for(;al!==null&&!ji();)Qr(al)}function Qr(l){var t=dr(l.alternate,l,Te);l.memoizedProps=l.pendingProps,t===null?si(l):al=t}function Zr(l){var t=l,e=t.alternate;switch(t.tag){case 15:case 0:t=ir(e,t,t.pendingProps,t.type,void 0,ul);break;case 11:t=ir(e,t,t.pendingProps,t.type.render,t.ref,ul);break;case 5:jc(t);default:hr(e,t),t=al=Gs(t,Te),t=dr(e,t,Te)}l.memoizedProps=l.pendingProps,t===null?si(l):al=t}function cn(l,t,e,a){re=ya=null,jc(t),Wa=null,Un=0;var n=t.return;try{if(fh(l,n,t,e,ul)){Ul=1,$u(l,Ht(e,l.current)),al=null;return}}catch(u){if(n!==null)throw al=n,u;Ul=1,$u(l,Ht(e,l.current)),al=null;return}t.flags&32768?(cl||a===1?l=!0:en||(ul&536870912)!==0?l=!1:(Xe=l=!0,(a===2||a===9||a===3||a===6)&&(a=Ot.current,a!==null&&a.tag===13&&(a.flags|=16384))),Vr(t,l)):si(t)}function si(l){var t=l;do{if((t.flags&32768)!==0){Vr(t,Xe);return}l=t.return;var e=rh(t.alternate,t,Te);if(e!==null){al=e;return}if(t=t.sibling,t!==null){al=t;return}al=t=l}while(t!==null);Ul===0&&(Ul=5)}function Vr(l,t){do{var e=dh(l.alternate,l);if(e!==null){e.flags&=32767,al=e;return}if(e=l.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!t&&(l=l.sibling,l!==null)){al=l;return}al=l=e}while(l!==null);Ul=6,al=null}function Kr(l,t,e,a,n,u,i,c,s){l.cancelPendingCommit=null;do oi();while(kl!==0);if((yl&6)!==0)throw Error(h(327));if(t!==null){if(t===l.current)throw Error(h(177));if(u=t.lanes|t.childLanes,u|=nc,Hi(l,e,u,i,c,s),l===zl&&(al=zl=null,ul=0),nn=t,Ve=l,Ee=e,mf=u,hf=n,Rr=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,Ah(ea,function(){return $r(),null})):(l.callbackNode=null,l.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=E.T,E.T=null,n=C.p,C.p=2,i=yl,yl|=4;try{mh(l,t,e)}finally{yl=i,C.p=n,E.T=a}}kl=1,wr(),Jr(),kr()}}function wr(){if(kl===1){kl=0;var l=Ve,t=nn,e=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||e){e=E.T,E.T=null;var a=C.p;C.p=2;var n=yl;yl|=4;try{Mr(t,l);var u=Df,i=js(l.containerInfo),c=u.focusedElem,s=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&xs(c.ownerDocument.documentElement,c)){if(s!==null&&Pi(c)){var g=s.start,T=s.end;if(T===void 0&&(T=g),"selectionStart"in c)c.selectionStart=g,c.selectionEnd=Math.min(T,c.value.length);else{var M=c.ownerDocument||document,b=M&&M.defaultView||window;if(b.getSelection){var p=b.getSelection(),Y=c.textContent.length,V=Math.min(s.start,Y),El=s.end===void 0?V:Math.min(s.end,Y);!p.extend&&V>El&&(i=El,El=V,V=i);var y=Ds(c,V),d=Ds(c,El);if(y&&d&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==d.node||p.focusOffset!==d.offset)){var S=M.createRange();S.setStart(y.node,y.offset),p.removeAllRanges(),V>El?(p.addRange(S),p.extend(d.node,d.offset)):(S.setEnd(d.node,d.offset),p.addRange(S))}}}}for(M=[],p=c;p=p.parentNode;)p.nodeType===1&&M.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<M.length;c++){var z=M[c];z.element.scrollLeft=z.left,z.element.scrollTop=z.top}}Ei=!!Of,Df=Of=null}finally{yl=n,C.p=a,E.T=e}}l.current=t,kl=2}}function Jr(){if(kl===2){kl=0;var l=Ve,t=nn,e=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||e){e=E.T,E.T=null;var a=C.p;C.p=2;var n=yl;yl|=4;try{Tr(l,t.alternate,t)}finally{yl=n,C.p=a,E.T=e}}kl=3}}function kr(){if(kl===4||kl===3){kl=0,Ci();var l=Ve,t=nn,e=Ee,a=Rr;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?kl=5:(kl=0,nn=Ve=null,Wr(l,l.pendingLanes));var n=l.pendingLanes;if(n===0&&(Ze=null),ja(e),t=t.stateNode,K&&typeof K.onCommitFiberRoot=="function")try{K.onCommitFiberRoot(ee,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=E.T,n=C.p,C.p=2,E.T=null;try{for(var u=l.onRecoverableError,i=0;i<a.length;i++){var c=a[i];u(c.value,{componentStack:c.stack})}}finally{E.T=t,C.p=n}}(Ee&3)!==0&&oi(),le(l),n=l.pendingLanes,(e&261930)!==0&&(n&42)!==0?l===yf?$n++:($n=0,yf=l):$n=0,Fn(0)}}function Wr(l,t){(l.pooledCacheLanes&=t)===0&&(t=l.pooledCache,t!=null&&(l.pooledCache=null,jn(t)))}function oi(){return wr(),Jr(),kr(),$r()}function $r(){if(kl!==5)return!1;var l=Ve,t=mf;mf=0;var e=ja(Ee),a=E.T,n=C.p;try{C.p=32>e?32:e,E.T=null,e=hf,hf=null;var u=Ve,i=Ee;if(kl=0,nn=Ve=null,Ee=0,(yl&6)!==0)throw Error(h(331));var c=yl;if(yl|=4,jr(u.current),Or(u,u.current,i,e),yl=c,Fn(0,!1),K&&typeof K.onPostCommitFiberRoot=="function")try{K.onPostCommitFiberRoot(ee,u)}catch{}return!0}finally{C.p=n,E.T=a,Wr(l,t)}}function Fr(l,t,e){t=Ht(e,t),t=wc(l.stateNode,t,2),l=qe(l,t,2),l!==null&&(ua(l,2),le(l))}function gl(l,t,e){if(l.tag===3)Fr(l,l,e);else for(;t!==null;){if(t.tag===3){Fr(t,l,e);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ze===null||!Ze.has(a))){l=Ht(e,l),e=Io(2),a=qe(t,e,2),a!==null&&(Po(e,a,t,l),ua(a,2),le(a));break}}t=t.return}}function gf(l,t,e){var a=l.pingCache;if(a===null){a=l.pingCache=new vh;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(e)||(of=!0,n.add(e),l=Th.bind(null,l,t,e),t.then(l,l))}function Th(l,t,e){var a=l.pingCache;a!==null&&a.delete(t),l.pingedLanes|=l.suspendedLanes&e,l.warmLanes&=~e,zl===l&&(ul&e)===e&&(Ul===4||Ul===3&&(ul&62914560)===ul&&300>nt()-ni?(yl&2)===0&&un(l,0):rf|=e,an===ul&&(an=0)),le(l)}function Ir(l,t){t===0&&(t=vu()),l=da(l,t),l!==null&&(ua(l,t),le(l))}function Eh(l){var t=l.memoizedState,e=0;t!==null&&(e=t.retryLane),Ir(l,e)}function zh(l,t){var e=0;switch(l.tag){case 31:case 13:var a=l.stateNode,n=l.memoizedState;n!==null&&(e=n.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(h(314))}a!==null&&a.delete(t),Ir(l,e)}function Ah(l,t){return hn(l,t)}var ri=null,fn=null,bf=!1,di=!1,pf=!1,we=0;function le(l){l!==fn&&l.next===null&&(fn===null?ri=fn=l:fn=fn.next=l),di=!0,bf||(bf=!0,Mh())}function Fn(l,t){if(!pf&&di){pf=!0;do for(var e=!1,a=ri;a!==null;){if(l!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,c=a.pingedLanes;u=(1<<31-Fl(42|l)+1)-1,u&=n&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,ed(a,u))}else u=ul,u=_e(a,a===zl?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ut(a,u)||(e=!0,ed(a,u));a=a.next}while(e);pf=!1}}function _h(){Pr()}function Pr(){di=bf=!1;var l=0;we!==0&&Bh()&&(l=we);for(var t=nt(),e=null,a=ri;a!==null;){var n=a.next,u=ld(a,t);u===0?(a.next=null,e===null?ri=n:e.next=n,n===null&&(fn=e)):(e=a,(l!==0||(u&3)!==0)&&(di=!0)),a=n}kl!==0&&kl!==5||Fn(l),we!==0&&(we=0)}function ld(l,t){for(var e=l.suspendedLanes,a=l.pingedLanes,n=l.expirationTimes,u=l.pendingLanes&-62914561;0<u;){var i=31-Fl(u),c=1<<i,s=n[i];s===-1?((c&e)===0||(c&a)!==0)&&(n[i]=Ri(c,t)):s<=t&&(l.expiredLanes|=c),u&=~c}if(t=zl,e=ul,e=_e(l,l===t?e:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a=l.callbackNode,e===0||l===t&&(Sl===2||Sl===9)||l.cancelPendingCommit!==null)return a!==null&&a!==null&&Na(a),l.callbackNode=null,l.callbackPriority=0;if((e&3)===0||Ut(l,e)){if(t=e&-e,t===l.callbackPriority)return t;switch(a!==null&&Na(a),ja(e)){case 2:case 8:e=yn;break;case 32:e=ea;break;case 268435456:e=Qt;break;default:e=ea}return a=td.bind(null,l),e=hn(e,a),l.callbackPriority=t,l.callbackNode=e,t}return a!==null&&a!==null&&Na(a),l.callbackPriority=2,l.callbackNode=null,2}function td(l,t){if(kl!==0&&kl!==5)return l.callbackNode=null,l.callbackPriority=0,null;var e=l.callbackNode;if(oi()&&l.callbackNode!==e)return null;var a=ul;return a=_e(l,l===zl?a:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a===0?null:(Br(l,a,t),ld(l,nt()),l.callbackNode!=null&&l.callbackNode===e?td.bind(null,l):null)}function ed(l,t){if(oi())return null;Br(l,t,!0)}function Mh(){Yh(function(){(yl&6)!==0?hn(mt,_h):Pr()})}function Tf(){if(we===0){var l=wa;l===0&&(l=Oa,Oa<<=1,(Oa&261888)===0&&(Oa=256)),we=l}return we}function ad(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:pu(""+l)}function nd(l,t){var e=t.ownerDocument.createElement("input");return e.name=t.name,e.value=t.value,l.id&&e.setAttribute("form",l.id),t.parentNode.insertBefore(e,t),l=new FormData(l),e.parentNode.removeChild(e),l}function Nh(l,t,e,a,n){if(t==="submit"&&e&&e.stateNode===n){var u=ad((n[ut]||null).action),i=a.submitter;i&&(t=(t=i[ut]||null)?ad(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var c=new Au("action","action",null,a,n);l.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(we!==0){var s=i?nd(n,i):new FormData(n);Gc(e,{pending:!0,data:s,method:n.method,action:u},null,s)}}else typeof u=="function"&&(c.preventDefault(),s=i?nd(n,i):new FormData(n),Gc(e,{pending:!0,data:s,method:n.method,action:u},u,s))},currentTarget:n}]})}}for(var Ef=0;Ef<ac.length;Ef++){var zf=ac[Ef],Oh=zf.toLowerCase(),Dh=zf[0].toUpperCase()+zf.slice(1);Zt(Oh,"on"+Dh)}Zt(Rs,"onAnimationEnd"),Zt(Hs,"onAnimationIteration"),Zt(Bs,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(Km,"onTransitionRun"),Zt(wm,"onTransitionStart"),Zt(Jm,"onTransitionCancel"),Zt(qs,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),ue("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ue("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ue("onBeforeInput",["compositionend","keypress","textInput","paste"]),ue("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ue("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ue("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="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(" "),xh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(In));function ud(l,t){t=(t&4)!==0;for(var e=0;e<l.length;e++){var a=l[e],n=a.event;a=a.listeners;l:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var c=a[i],s=c.instance,g=c.currentTarget;if(c=c.listener,s!==u&&n.isPropagationStopped())break l;u=c,n.currentTarget=g;try{u(n)}catch(T){Nu(T)}n.currentTarget=null,u=s}else for(i=0;i<a.length;i++){if(c=a[i],s=c.instance,g=c.currentTarget,c=c.listener,s!==u&&n.isPropagationStopped())break l;u=c,n.currentTarget=g;try{u(n)}catch(T){Nu(T)}n.currentTarget=null,u=s}}}}function nl(l,t){var e=t[ia];e===void 0&&(e=t[ia]=new Set);var a=l+"__bubble";e.has(a)||(id(t,l,2,!1),e.add(a))}function Af(l,t,e){var a=0;t&&(a|=4),id(e,l,a,t)}var mi="_reactListening"+Math.random().toString(36).slice(2);function _f(l){if(!l[mi]){l[mi]=!0,Ca.forEach(function(e){e!=="selectionchange"&&(xh.has(e)||Af(e,!1,l),Af(e,!0,l))});var t=l.nodeType===9?l:l.ownerDocument;t===null||t[mi]||(t[mi]=!0,Af("selectionchange",!1,t))}}function id(l,t,e,a){switch(Hd(t)){case 2:var n=ny;break;case 8:n=uy;break;default:n=Gf}e=n.bind(null,t,e,l),n=void 0,!Vi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?l.addEventListener(t,e,{capture:!0,passive:n}):l.addEventListener(t,e,!0):n!==void 0?l.addEventListener(t,e,{passive:n}):l.addEventListener(t,e,!1)}function Mf(l,t,e,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)l:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===n)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;c!==null;){if(i=Oe(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=u=i;continue l}c=c.parentNode}}a=a.return}os(function(){var g=u,T=Qi(e),M=[];l:{var b=Ys.get(l);if(b!==void 0){var p=Au,Y=l;switch(l){case"keypress":if(Eu(e)===0)break l;case"keydown":case"keyup":p=zm;break;case"focusin":Y="focus",p=ki;break;case"focusout":Y="blur",p=ki;break;case"beforeblur":case"afterblur":p=ki;break;case"click":if(e.button===2)break l;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=ms;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=rm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Mm;break;case Rs:case Hs:case Bs:p=hm;break;case qs:p=Om;break;case"scroll":case"scrollend":p=sm;break;case"wheel":p=xm;break;case"copy":case"cut":case"paste":p=vm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=ys;break;case"toggle":case"beforetoggle":p=Cm}var V=(t&4)!==0,El=!V&&(l==="scroll"||l==="scrollend"),y=V?b!==null?b+"Capture":null:b;V=[];for(var d=g,S;d!==null;){var z=d;if(S=z.stateNode,z=z.tag,z!==5&&z!==26&&z!==27||S===null||y===null||(z=pn(d,y),z!=null&&V.push(Pn(d,z,S))),El)break;d=d.return}0<V.length&&(b=new p(b,Y,null,e,T),M.push({event:b,listeners:V}))}}if((t&7)===0){l:{if(b=l==="mouseover"||l==="pointerover",p=l==="mouseout"||l==="pointerout",b&&e!==Xi&&(Y=e.relatedTarget||e.fromElement)&&(Oe(Y)||Y[Me]))break l;if((p||b)&&(b=T.window===T?T:(b=T.ownerDocument)?b.defaultView||b.parentWindow:window,p?(Y=e.relatedTarget||e.toElement,p=g,Y=Y?Oe(Y):null,Y!==null&&(El=L(Y),V=Y.tag,Y!==El||V!==5&&V!==27&&V!==6)&&(Y=null)):(p=null,Y=g),p!==Y)){if(V=ms,z="onMouseLeave",y="onMouseEnter",d="mouse",(l==="pointerout"||l==="pointerover")&&(V=ys,z="onPointerLeave",y="onPointerEnter",d="pointer"),El=p==null?b:fa(p),S=Y==null?b:fa(Y),b=new V(z,d+"leave",p,e,T),b.target=El,b.relatedTarget=S,z=null,Oe(T)===g&&(V=new V(y,d+"enter",Y,e,T),V.target=S,V.relatedTarget=El,z=V),El=z,p&&Y)t:{for(V=jh,y=p,d=Y,S=0,z=y;z;z=V(z))S++;z=0;for(var Q=d;Q;Q=V(Q))z++;for(;0<S-z;)y=V(y),S--;for(;0<z-S;)d=V(d),z--;for(;S--;){if(y===d||d!==null&&y===d.alternate){V=y;break t}y=V(y),d=V(d)}V=null}else V=null;p!==null&&cd(M,b,p,V,!1),Y!==null&&El!==null&&cd(M,El,Y,V,!0)}}l:{if(b=g?fa(g):window,p=b.nodeName&&b.nodeName.toLowerCase(),p==="select"||p==="input"&&b.type==="file")var ol=zs;else if(Ts(b))if(As)ol=Qm;else{ol=Gm;var G=Lm}else p=b.nodeName,!p||p.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?g&&Gi(g.elementType)&&(ol=zs):ol=Xm;if(ol&&(ol=ol(l,g))){Es(M,ol,e,T);break l}G&&G(l,b,g),l==="focusout"&&g&&b.type==="number"&&g.memoizedProps.value!=null&&Li(b,"number",b.value)}switch(G=g?fa(g):window,l){case"focusin":(Ts(G)||G.contentEditable==="true")&&(Ya=G,lc=g,On=null);break;case"focusout":On=lc=Ya=null;break;case"mousedown":tc=!0;break;case"contextmenu":case"mouseup":case"dragend":tc=!1,Cs(M,e,T);break;case"selectionchange":if(Vm)break;case"keydown":case"keyup":Cs(M,e,T)}var F;if($i)l:{switch(l){case"compositionstart":var il="onCompositionStart";break l;case"compositionend":il="onCompositionEnd";break l;case"compositionupdate":il="onCompositionUpdate";break l}il=void 0}else qa?bs(l,e)&&(il="onCompositionEnd"):l==="keydown"&&e.keyCode===229&&(il="onCompositionStart");il&&(vs&&e.locale!=="ko"&&(qa||il!=="onCompositionStart"?il==="onCompositionEnd"&&qa&&(F=rs()):(xe=T,Ki="value"in xe?xe.value:xe.textContent,qa=!0)),G=hi(g,il),0<G.length&&(il=new hs(il,l,null,e,T),M.push({event:il,listeners:G}),F?il.data=F:(F=ps(e),F!==null&&(il.data=F)))),(F=Rm?Hm(l,e):Bm(l,e))&&(il=hi(g,"onBeforeInput"),0<il.length&&(G=new hs("onBeforeInput","beforeinput",null,e,T),M.push({event:G,listeners:il}),G.data=F)),Nh(M,l,g,e,T)}ud(M,t)})}function Pn(l,t,e){return{instance:l,listener:t,currentTarget:e}}function hi(l,t){for(var e=t+"Capture",a=[];l!==null;){var n=l,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=pn(l,e),n!=null&&a.unshift(Pn(l,n,u)),n=pn(l,t),n!=null&&a.push(Pn(l,n,u))),l.tag===3)return a;l=l.return}return[]}function jh(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function cd(l,t,e,a,n){for(var u=t._reactName,i=[];e!==null&&e!==a;){var c=e,s=c.alternate,g=c.stateNode;if(c=c.tag,s!==null&&s===a)break;c!==5&&c!==26&&c!==27||g===null||(s=g,n?(g=pn(e,u),g!=null&&i.unshift(Pn(e,g,s))):n||(g=pn(e,u),g!=null&&i.push(Pn(e,g,s)))),e=e.return}i.length!==0&&l.push({event:t,listeners:i})}var Ch=/\r\n?/g,Uh=/\u0000|\uFFFD/g;function fd(l){return(typeof l=="string"?l:""+l).replace(Ch,`
9
- `).replace(Uh,"")}function sd(l,t){return t=fd(t),fd(l)===t}function Tl(l,t,e,a,n,u){switch(e){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ra(l,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ra(l,""+a);break;case"className":xl(l,"class",a);break;case"tabIndex":xl(l,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":xl(l,e,a);break;case"style":fs(l,a,u);break;case"data":if(t!=="object"){xl(l,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||e!=="href")){l.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=pu(""+a),l.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){l.setAttribute(e,"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"&&(e==="formAction"?(t!=="input"&&Tl(l,t,"name",n.name,n,null),Tl(l,t,"formEncType",n.formEncType,n,null),Tl(l,t,"formMethod",n.formMethod,n,null),Tl(l,t,"formTarget",n.formTarget,n,null)):(Tl(l,t,"encType",n.encType,n,null),Tl(l,t,"method",n.method,n,null),Tl(l,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=pu(""+a),l.setAttribute(e,a);break;case"onClick":a!=null&&(l.onclick=ce);break;case"onScroll":a!=null&&nl("scroll",l);break;case"onScrollEnd":a!=null&&nl("scrollend",l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(h(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(h(60));l.innerHTML=e}}break;case"multiple":l.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":l.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){l.removeAttribute("xlink:href");break}e=pu(""+a),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,""+a):l.removeAttribute(e);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":a&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,""):l.removeAttribute(e);break;case"capture":case"download":a===!0?l.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,a):l.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?l.setAttribute(e,a):l.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?l.removeAttribute(e):l.setAttribute(e,a);break;case"popover":nl("beforetoggle",l),nl("toggle",l),sl(l,"popover",a);break;case"xlinkActuate":Bl(l,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bl(l,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bl(l,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bl(l,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bl(l,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bl(l,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bl(l,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bl(l,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bl(l,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":sl(l,"is",a);break;case"innerText":case"textContent":break;default:(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(e=cm.get(e)||e,sl(l,e,a))}}function Nf(l,t,e,a,n,u){switch(e){case"style":fs(l,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(h(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(h(60));l.innerHTML=e}}break;case"children":typeof a=="string"?Ra(l,a):(typeof a=="number"||typeof a=="bigint")&&Ra(l,""+a);break;case"onScroll":a!=null&&nl("scroll",l);break;case"onScrollEnd":a!=null&&nl("scrollend",l);break;case"onClick":a!=null&&(l.onclick=ce);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bu.hasOwnProperty(e))l:{if(e[0]==="o"&&e[1]==="n"&&(n=e.endsWith("Capture"),t=e.slice(2,n?e.length-7:void 0),u=l[ut]||null,u=u!=null?u[e]:null,typeof u=="function"&&l.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(e in l?l[e]=null:l.hasAttribute(e)&&l.removeAttribute(e)),l.addEventListener(t,a,n);break l}e in l?l[e]=a:a===!0?l.setAttribute(e,""):sl(l,e,a)}}}function et(l,t,e){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nl("error",l),nl("load",l);var a=!1,n=!1,u;for(u in e)if(e.hasOwnProperty(u)){var i=e[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(h(137,t));default:Tl(l,t,u,i,e,null)}}n&&Tl(l,t,"srcSet",e.srcSet,e,null),a&&Tl(l,t,"src",e.src,e,null);return;case"input":nl("invalid",l);var c=u=i=n=null,s=null,g=null;for(a in e)if(e.hasOwnProperty(a)){var T=e[a];if(T!=null)switch(a){case"name":n=T;break;case"type":i=T;break;case"checked":s=T;break;case"defaultChecked":g=T;break;case"value":u=T;break;case"defaultValue":c=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(h(137,t));break;default:Tl(l,t,a,T,e,null)}}ns(l,u,c,s,g,i,n,!1);return;case"select":nl("invalid",l),a=i=u=null;for(n in e)if(e.hasOwnProperty(n)&&(c=e[n],c!=null))switch(n){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:Tl(l,t,n,c,e,null)}t=u,e=i,l.multiple=!!a,t!=null?Ua(l,!!a,t,!1):e!=null&&Ua(l,!!a,e,!0);return;case"textarea":nl("invalid",l),u=n=a=null;for(i in e)if(e.hasOwnProperty(i)&&(c=e[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":n=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(h(91));break;default:Tl(l,t,i,c,e,null)}is(l,a,n,u);return;case"option":for(s in e)e.hasOwnProperty(s)&&(a=e[s],a!=null)&&(s==="selected"?l.selected=a&&typeof a!="function"&&typeof a!="symbol":Tl(l,t,s,a,e,null));return;case"dialog":nl("beforetoggle",l),nl("toggle",l),nl("cancel",l),nl("close",l);break;case"iframe":case"object":nl("load",l);break;case"video":case"audio":for(a=0;a<In.length;a++)nl(In[a],l);break;case"image":nl("error",l),nl("load",l);break;case"details":nl("toggle",l);break;case"embed":case"source":case"link":nl("error",l),nl("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(g in e)if(e.hasOwnProperty(g)&&(a=e[g],a!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(h(137,t));default:Tl(l,t,g,a,e,null)}return;default:if(Gi(t)){for(T in e)e.hasOwnProperty(T)&&(a=e[T],a!==void 0&&Nf(l,t,T,a,e,void 0));return}}for(c in e)e.hasOwnProperty(c)&&(a=e[c],a!=null&&Tl(l,t,c,a,e,null))}function Rh(l,t,e,a){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,i=null,c=null,s=null,g=null,T=null;for(p in e){var M=e[p];if(e.hasOwnProperty(p)&&M!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=M;default:a.hasOwnProperty(p)||Tl(l,t,p,null,a,M)}}for(var b in a){var p=a[b];if(M=e[b],a.hasOwnProperty(b)&&(p!=null||M!=null))switch(b){case"type":u=p;break;case"name":n=p;break;case"checked":g=p;break;case"defaultChecked":T=p;break;case"value":i=p;break;case"defaultValue":c=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(h(137,t));break;default:p!==M&&Tl(l,t,b,p,a,M)}}Yi(l,i,c,s,g,T,u,n);return;case"select":p=i=c=b=null;for(u in e)if(s=e[u],e.hasOwnProperty(u)&&s!=null)switch(u){case"value":break;case"multiple":p=s;default:a.hasOwnProperty(u)||Tl(l,t,u,null,a,s)}for(n in a)if(u=a[n],s=e[n],a.hasOwnProperty(n)&&(u!=null||s!=null))switch(n){case"value":b=u;break;case"defaultValue":c=u;break;case"multiple":i=u;default:u!==s&&Tl(l,t,n,u,a,s)}t=c,e=i,a=p,b!=null?Ua(l,!!e,b,!1):!!a!=!!e&&(t!=null?Ua(l,!!e,t,!0):Ua(l,!!e,e?[]:"",!1));return;case"textarea":p=b=null;for(c in e)if(n=e[c],e.hasOwnProperty(c)&&n!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:Tl(l,t,c,null,a,n)}for(i in a)if(n=a[i],u=e[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":b=n;break;case"defaultValue":p=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(h(91));break;default:n!==u&&Tl(l,t,i,n,a,u)}us(l,b,p);return;case"option":for(var Y in e)b=e[Y],e.hasOwnProperty(Y)&&b!=null&&!a.hasOwnProperty(Y)&&(Y==="selected"?l.selected=!1:Tl(l,t,Y,null,a,b));for(s in a)b=a[s],p=e[s],a.hasOwnProperty(s)&&b!==p&&(b!=null||p!=null)&&(s==="selected"?l.selected=b&&typeof b!="function"&&typeof b!="symbol":Tl(l,t,s,b,a,p));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 V in e)b=e[V],e.hasOwnProperty(V)&&b!=null&&!a.hasOwnProperty(V)&&Tl(l,t,V,null,a,b);for(g in a)if(b=a[g],p=e[g],a.hasOwnProperty(g)&&b!==p&&(b!=null||p!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(h(137,t));break;default:Tl(l,t,g,b,a,p)}return;default:if(Gi(t)){for(var El in e)b=e[El],e.hasOwnProperty(El)&&b!==void 0&&!a.hasOwnProperty(El)&&Nf(l,t,El,void 0,a,b);for(T in a)b=a[T],p=e[T],!a.hasOwnProperty(T)||b===p||b===void 0&&p===void 0||Nf(l,t,T,b,a,p);return}}for(var y in e)b=e[y],e.hasOwnProperty(y)&&b!=null&&!a.hasOwnProperty(y)&&Tl(l,t,y,null,a,b);for(M in a)b=a[M],p=e[M],!a.hasOwnProperty(M)||b===p||b==null&&p==null||Tl(l,t,M,b,a,p)}function od(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Hh(){if(typeof performance.getEntriesByType=="function"){for(var l=0,t=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var n=e[a],u=n.transferSize,i=n.initiatorType,c=n.duration;if(u&&c&&od(i)){for(i=0,c=n.responseEnd,a+=1;a<e.length;a++){var s=e[a],g=s.startTime;if(g>c)break;var T=s.transferSize,M=s.initiatorType;T&&od(M)&&(s=s.responseEnd,i+=T*(s<c?1:(c-g)/(s-g)))}if(--a,t+=8*(u+i)/(n.duration/1e3),l++,10<l)break}}if(0<l)return t/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var Of=null,Df=null;function yi(l){return l.nodeType===9?l:l.ownerDocument}function rd(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dd(l,t){if(l===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&t==="foreignObject"?0:l}function xf(l,t){return l==="textarea"||l==="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 jf=null;function Bh(){var l=window.event;return l&&l.type==="popstate"?l===jf?!1:(jf=l,!0):(jf=null,!1)}var md=typeof setTimeout=="function"?setTimeout:void 0,qh=typeof clearTimeout=="function"?clearTimeout:void 0,hd=typeof Promise=="function"?Promise:void 0,Yh=typeof queueMicrotask=="function"?queueMicrotask:typeof hd<"u"?function(l){return hd.resolve(null).then(l).catch(Lh)}:md;function Lh(l){setTimeout(function(){throw l})}function Je(l){return l==="head"}function yd(l,t){var e=t,a=0;do{var n=e.nextSibling;if(l.removeChild(e),n&&n.nodeType===8)if(e=n.data,e==="/$"||e==="/&"){if(a===0){l.removeChild(n),dn(t);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")lu(l.ownerDocument.documentElement);else if(e==="head"){e=l.ownerDocument.head,lu(e);for(var u=e.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Ne]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||e.removeChild(u),u=i}}else e==="body"&&lu(l.ownerDocument.body);e=n}while(e);dn(t)}function vd(l,t){var e=l;l=0;do{var a=e.nextSibling;if(e.nodeType===1?t?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(t?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(l===0)break;l--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||l++;e=a}while(e)}function Cf(l){var t=l.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var e=t;switch(t=t.nextSibling,e.nodeName){case"HTML":case"HEAD":case"BODY":Cf(e),bn(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}l.removeChild(e)}}function Gh(l,t,e,a){for(;l.nodeType===1;){var n=e;if(l.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(a){if(!l[Ne])switch(t){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(u=l.getAttribute("rel"),u==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(u!==n.rel||l.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||l.getAttribute("title")!==(n.title==null?null:n.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(u=l.getAttribute("src"),(u!==(n.src==null?null:n.src)||l.getAttribute("type")!==(n.type==null?null:n.type)||l.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(t==="input"&&l.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&l.getAttribute("name")===u)return l}else return l;if(l=Gt(l.nextSibling),l===null)break}return null}function Xh(l,t,e){if(t==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!e||(l=Gt(l.nextSibling),l===null))return null;return l}function Sd(l,t){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!t||(l=Gt(l.nextSibling),l===null))return null;return l}function Uf(l){return l.data==="$?"||l.data==="$~"}function Rf(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function Qh(l,t){var e=l.ownerDocument;if(l.data==="$~")l._reactRetry=t;else if(l.data!=="$?"||e.readyState!=="loading")t();else{var a=function(){t(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),l._reactRetry=a}}function Gt(l){for(;l!=null;l=l.nextSibling){var t=l.nodeType;if(t===1||t===3)break;if(t===8){if(t=l.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return l}var Hf=null;function gd(l){l=l.nextSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="/$"||e==="/&"){if(t===0)return Gt(l.nextSibling);t--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||t++}l=l.nextSibling}return null}function bd(l){l=l.previousSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(t===0)return l;t--}else e!=="/$"&&e!=="/&"||t++}l=l.previousSibling}return null}function pd(l,t,e){switch(t=yi(e),l){case"html":if(l=t.documentElement,!l)throw Error(h(452));return l;case"head":if(l=t.head,!l)throw Error(h(453));return l;case"body":if(l=t.body,!l)throw Error(h(454));return l;default:throw Error(h(451))}}function lu(l){for(var t=l.attributes;t.length;)l.removeAttributeNode(t[0]);bn(l)}var Xt=new Map,Td=new Set;function vi(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var ze=C.d;C.d={f:Zh,r:Vh,D:Kh,C:wh,L:Jh,m:kh,X:$h,S:Wh,M:Fh};function Zh(){var l=ze.f(),t=ci();return l||t}function Vh(l){var t=De(l);t!==null&&t.tag===5&&t.type==="form"?Yo(t):ze.r(l)}var sn=typeof document>"u"?null:document;function Ed(l,t,e){var a=sn;if(a&&typeof t=="string"&&t){var n=yt(t);n='link[rel="'+l+'"][href="'+n+'"]',typeof e=="string"&&(n+='[crossorigin="'+e+'"]'),Td.has(n)||(Td.add(n),l={rel:l,crossOrigin:e,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),et(t,"link",l),Xl(t),a.head.appendChild(t)))}}function Kh(l){ze.D(l),Ed("dns-prefetch",l,null)}function wh(l,t){ze.C(l,t),Ed("preconnect",l,t)}function Jh(l,t,e){ze.L(l,t,e);var a=sn;if(a&&l&&t){var n='link[rel="preload"][as="'+yt(t)+'"]';t==="image"&&e&&e.imageSrcSet?(n+='[imagesrcset="'+yt(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(n+='[imagesizes="'+yt(e.imageSizes)+'"]')):n+='[href="'+yt(l)+'"]';var u=n;switch(t){case"style":u=on(l);break;case"script":u=rn(l)}Xt.has(u)||(l=R({rel:"preload",href:t==="image"&&e&&e.imageSrcSet?void 0:l,as:t},e),Xt.set(u,l),a.querySelector(n)!==null||t==="style"&&a.querySelector(tu(u))||t==="script"&&a.querySelector(eu(u))||(t=a.createElement("link"),et(t,"link",l),Xl(t),a.head.appendChild(t)))}}function kh(l,t){ze.m(l,t);var e=sn;if(e&&l){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+yt(a)+'"][href="'+yt(l)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=rn(l)}if(!Xt.has(u)&&(l=R({rel:"modulepreload",href:l},t),Xt.set(u,l),e.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(eu(u)))return}a=e.createElement("link"),et(a,"link",l),Xl(a),e.head.appendChild(a)}}}function Wh(l,t,e){ze.S(l,t,e);var a=sn;if(a&&l){var n=ne(a).hoistableStyles,u=on(l);t=t||"default";var i=n.get(u);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(tu(u)))c.loading=5;else{l=R({rel:"stylesheet",href:l,"data-precedence":t},e),(e=Xt.get(u))&&Bf(l,e);var s=i=a.createElement("link");Xl(s),et(s,"link",l),s._p=new Promise(function(g,T){s.onload=g,s.onerror=T}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Si(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:c},n.set(u,i)}}}function $h(l,t){ze.X(l,t);var e=sn;if(e&&l){var a=ne(e).hoistableScripts,n=rn(l),u=a.get(n);u||(u=e.querySelector(eu(n)),u||(l=R({src:l,async:!0},t),(t=Xt.get(n))&&qf(l,t),u=e.createElement("script"),Xl(u),et(u,"link",l),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Fh(l,t){ze.M(l,t);var e=sn;if(e&&l){var a=ne(e).hoistableScripts,n=rn(l),u=a.get(n);u||(u=e.querySelector(eu(n)),u||(l=R({src:l,async:!0,type:"module"},t),(t=Xt.get(n))&&qf(l,t),u=e.createElement("script"),Xl(u),et(u,"link",l),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function zd(l,t,e,a){var n=(n=I.current)?vi(n):null;if(!n)throw Error(h(446));switch(l){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(t=on(e.href),e=ne(n).hoistableStyles,a=e.get(t),a||(a={type:"style",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){l=on(e.href);var u=ne(n).hoistableStyles,i=u.get(l);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(l,i),(u=n.querySelector(tu(l)))&&!u._p&&(i.instance=u,i.state.loading=5),Xt.has(l)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},Xt.set(l,e),u||Ih(n,l,e,i.state))),t&&a===null)throw Error(h(528,""));return i}if(t&&a!==null)throw Error(h(529,""));return null;case"script":return t=e.async,e=e.src,typeof e=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=rn(e),e=ne(n).hoistableScripts,a=e.get(t),a||(a={type:"script",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(h(444,l))}}function on(l){return'href="'+yt(l)+'"'}function tu(l){return'link[rel="stylesheet"]['+l+"]"}function Ad(l){return R({},l,{"data-precedence":l.precedence,precedence:null})}function Ih(l,t,e,a){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=l.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),et(t,"link",e),Xl(t),l.head.appendChild(t))}function rn(l){return'[src="'+yt(l)+'"]'}function eu(l){return"script[async]"+l}function _d(l,t,e){if(t.count++,t.instance===null)switch(t.type){case"style":var a=l.querySelector('style[data-href~="'+yt(e.href)+'"]');if(a)return t.instance=a,Xl(a),a;var n=R({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Xl(a),et(a,"style",n),Si(a,e.precedence,l),t.instance=a;case"stylesheet":n=on(e.href);var u=l.querySelector(tu(n));if(u)return t.state.loading|=4,t.instance=u,Xl(u),u;a=Ad(e),(n=Xt.get(n))&&Bf(a,n),u=(l.ownerDocument||l).createElement("link"),Xl(u);var i=u;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),et(u,"link",a),t.state.loading|=4,Si(u,e.precedence,l),t.instance=u;case"script":return u=rn(e.src),(n=l.querySelector(eu(u)))?(t.instance=n,Xl(n),n):(a=e,(n=Xt.get(u))&&(a=R({},e),qf(a,n)),l=l.ownerDocument||l,n=l.createElement("script"),Xl(n),et(n,"link",a),l.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(h(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Si(a,e.precedence,l));return t.instance}function Si(l,t,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===t)u=c;else if(u!==n)break}u?u.parentNode.insertBefore(l,u.nextSibling):(t=e.nodeType===9?e.head:e,t.insertBefore(l,t.firstChild))}function Bf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.title==null&&(l.title=t.title)}function qf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.integrity==null&&(l.integrity=t.integrity)}var gi=null;function Md(l,t,e){if(gi===null){var a=new Map,n=gi=new Map;n.set(e,a)}else n=gi,a=n.get(e),a||(a=new Map,n.set(e,a));if(a.has(l))return a;for(a.set(l,null),e=e.getElementsByTagName(l),n=0;n<e.length;n++){var u=e[n];if(!(u[Ne]||u[Jl]||l==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=l+i;var c=a.get(i);c?c.push(u):a.set(i,[u])}}return a}function Nd(l,t,e){l=l.ownerDocument||l,l.head.insertBefore(e,t==="title"?l.querySelector("head > title"):null)}function Ph(l,t,e){if(e===1||t.itemProp!=null)return!1;switch(l){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"?(l=t.disabled,typeof t.precedence=="string"&&l==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 Od(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function ly(l,t,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var n=on(a.href),u=t.querySelector(tu(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=bi.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=u,Xl(u);return}u=t.ownerDocument||t,a=Ad(a),(n=Xt.get(n))&&Bf(a,n),u=u.createElement("link"),Xl(u);var i=u;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),et(u,"link",a),e.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=bi.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}var Yf=0;function ty(l,t){return l.stylesheets&&l.count===0&&Ti(l,l.stylesheets),0<l.count||0<l.imgCount?function(e){var a=setTimeout(function(){if(l.stylesheets&&Ti(l,l.stylesheets),l.unsuspend){var u=l.unsuspend;l.unsuspend=null,u()}},6e4+t);0<l.imgBytes&&Yf===0&&(Yf=62500*Hh());var n=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Ti(l,l.stylesheets),l.unsuspend)){var u=l.unsuspend;l.unsuspend=null,u()}},(l.imgBytes>Yf?50:800)+t);return l.unsuspend=e,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function bi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ti(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var pi=null;function Ti(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,pi=new Map,t.forEach(ey,l),pi=null,bi.call(l))}function ey(l,t){if(!(t.state.loading&4)){var e=pi.get(l);if(e)var a=e.get(null);else{e=new Map,pi.set(l,e);for(var n=l.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=e.get(i)||a,u===a&&e.set(null,n),e.set(i,n),this.count++,a=bi.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(n,l.firstChild)),t.state.loading|=4}}var au={$$typeof:Gl,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function ay(l,t,e,a,n,u,i,c,s){this.tag=1,this.containerInfo=l,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=na(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=na(0),this.hiddenUpdates=na(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Dd(l,t,e,a,n,u,i,c,s,g,T,M){return l=new ay(l,t,e,i,s,g,T,M,c),t=1,u===!0&&(t|=24),u=Nt(3,null,null,t),l.current=u,u.stateNode=l,t=vc(),t.refCount++,l.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:e,cache:t},pc(u),l}function xd(l){return l?(l=Xa,l):Xa}function jd(l,t,e,a,n,u){n=xd(n),a.context===null?a.context=n:a.pendingContext=n,a=Be(t),a.payload={element:e},u=u===void 0?null:u,u!==null&&(a.callback=u),e=qe(l,a,t),e!==null&&(Tt(e,l,t),Hn(e,l,t))}function Cd(l,t){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var e=l.retryLane;l.retryLane=e!==0&&e<t?e:t}}function Lf(l,t){Cd(l,t),(l=l.alternate)&&Cd(l,t)}function Ud(l){if(l.tag===13||l.tag===31){var t=da(l,67108864);t!==null&&Tt(t,l,67108864),Lf(l,67108864)}}function Rd(l){if(l.tag===13||l.tag===31){var t=Ct();t=xa(t);var e=da(l,t);e!==null&&Tt(e,l,t),Lf(l,t)}}var Ei=!0;function ny(l,t,e,a){var n=E.T;E.T=null;var u=C.p;try{C.p=2,Gf(l,t,e,a)}finally{C.p=u,E.T=n}}function uy(l,t,e,a){var n=E.T;E.T=null;var u=C.p;try{C.p=8,Gf(l,t,e,a)}finally{C.p=u,E.T=n}}function Gf(l,t,e,a){if(Ei){var n=Xf(a);if(n===null)Mf(l,t,a,zi,e),Bd(l,a);else if(cy(n,l,t,e,a))a.stopPropagation();else if(Bd(l,a),t&4&&-1<iy.indexOf(l)){for(;n!==null;){var u=De(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=ae(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-Fl(i);c.entanglements[1]|=s,i&=~s}le(u),(yl&6)===0&&(ui=nt()+500,Fn(0))}}break;case 31:case 13:c=da(u,2),c!==null&&Tt(c,u,2),ci(),Lf(u,2)}if(u=Xf(a),u===null&&Mf(l,t,a,zi,e),u===n)break;n=u}n!==null&&a.stopPropagation()}else Mf(l,t,a,null,e)}}function Xf(l){return l=Qi(l),Qf(l)}var zi=null;function Qf(l){if(zi=null,l=Oe(l),l!==null){var t=L(l);if(t===null)l=null;else{var e=t.tag;if(e===13){if(l=X(t),l!==null)return l;l=null}else if(e===31){if(l=dl(t),l!==null)return l;l=null}else if(e===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;l=null}else t!==l&&(l=null)}}return zi=l,null}function Hd(l){switch(l){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(mu()){case mt:return 2;case yn:return 8;case ea:case hu:return 32;case Qt:return 268435456;default:return 32}default:return 32}}var Zf=!1,ke=null,We=null,$e=null,nu=new Map,uu=new Map,Fe=[],iy="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 Bd(l,t){switch(l){case"focusin":case"focusout":ke=null;break;case"dragenter":case"dragleave":We=null;break;case"mouseover":case"mouseout":$e=null;break;case"pointerover":case"pointerout":nu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":uu.delete(t.pointerId)}}function iu(l,t,e,a,n,u){return l===null||l.nativeEvent!==u?(l={blockedOn:t,domEventName:e,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=De(t),t!==null&&Ud(t)),l):(l.eventSystemFlags|=a,t=l.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),l)}function cy(l,t,e,a,n){switch(t){case"focusin":return ke=iu(ke,l,t,e,a,n),!0;case"dragenter":return We=iu(We,l,t,e,a,n),!0;case"mouseover":return $e=iu($e,l,t,e,a,n),!0;case"pointerover":var u=n.pointerId;return nu.set(u,iu(nu.get(u)||null,l,t,e,a,n)),!0;case"gotpointercapture":return u=n.pointerId,uu.set(u,iu(uu.get(u)||null,l,t,e,a,n)),!0}return!1}function qd(l){var t=Oe(l.target);if(t!==null){var e=L(t);if(e!==null){if(t=e.tag,t===13){if(t=X(e),t!==null){l.blockedOn=t,gu(l.priority,function(){Rd(e)});return}}else if(t===31){if(t=dl(e),t!==null){l.blockedOn=t,gu(l.priority,function(){Rd(e)});return}}else if(t===3&&e.stateNode.current.memoizedState.isDehydrated){l.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Ai(l){if(l.blockedOn!==null)return!1;for(var t=l.targetContainers;0<t.length;){var e=Xf(l.nativeEvent);if(e===null){e=l.nativeEvent;var a=new e.constructor(e.type,e);Xi=a,e.target.dispatchEvent(a),Xi=null}else return t=De(e),t!==null&&Ud(t),l.blockedOn=e,!1;t.shift()}return!0}function Yd(l,t,e){Ai(l)&&e.delete(t)}function fy(){Zf=!1,ke!==null&&Ai(ke)&&(ke=null),We!==null&&Ai(We)&&(We=null),$e!==null&&Ai($e)&&($e=null),nu.forEach(Yd),uu.forEach(Yd)}function _i(l,t){l.blockedOn===t&&(l.blockedOn=null,Zf||(Zf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,fy)))}var Mi=null;function Ld(l){Mi!==l&&(Mi=l,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Mi===l&&(Mi=null);for(var t=0;t<l.length;t+=3){var e=l[t],a=l[t+1],n=l[t+2];if(typeof a!="function"){if(Qf(a||e)===null)continue;break}var u=De(e);u!==null&&(l.splice(t,3),t-=3,Gc(u,{pending:!0,data:n,method:e.method,action:a},a,n))}}))}function dn(l){function t(s){return _i(s,l)}ke!==null&&_i(ke,l),We!==null&&_i(We,l),$e!==null&&_i($e,l),nu.forEach(t),uu.forEach(t);for(var e=0;e<Fe.length;e++){var a=Fe[e];a.blockedOn===l&&(a.blockedOn=null)}for(;0<Fe.length&&(e=Fe[0],e.blockedOn===null);)qd(e),e.blockedOn===null&&Fe.shift();if(e=(l.ownerDocument||l).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var n=e[a],u=e[a+1],i=n[ut]||null;if(typeof u=="function")i||Ld(e);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[ut]||null)c=i.formAction;else if(Qf(n)!==null)continue}else c=i.action;typeof c=="function"?e[a+1]=c:(e.splice(a,3),a-=3),Ld(e)}}}function Gd(){function l(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(e,20)}function e(){if(!a&&!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 a=!1,n=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Vf(l){this._internalRoot=l}Ni.prototype.render=Vf.prototype.render=function(l){var t=this._internalRoot;if(t===null)throw Error(h(409));var e=t.current,a=Ct();jd(e,a,l,t,null,null)},Ni.prototype.unmount=Vf.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var t=l.containerInfo;jd(l.current,2,null,l,null,null),ci(),t[Me]=null}};function Ni(l){this._internalRoot=l}Ni.prototype.unstable_scheduleHydration=function(l){if(l){var t=Su();l={blockedOn:null,target:l,priority:t};for(var e=0;e<Fe.length&&t!==0&&t<Fe[e].priority;e++);Fe.splice(e,0,l),e===0&&qd(l)}};var Xd=N.version;if(Xd!=="19.2.4")throw Error(h(527,Xd,"19.2.4"));C.findDOMNode=function(l){var t=l._reactInternals;if(t===void 0)throw typeof l.render=="function"?Error(h(188)):(l=Object.keys(l).join(","),Error(h(268,l)));return l=A(t),l=l!==null?B(l):null,l=l===null?null:l.stateNode,l};var sy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oi.isDisabled&&Oi.supportsFiber)try{ee=Oi.inject(sy),K=Oi}catch{}}return fu.createRoot=function(l,t){if(!x(l))throw Error(h(299));var e=!1,a="",n=ko,u=Wo,i=$o;return t!=null&&(t.unstable_strictMode===!0&&(e=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Dd(l,1,!1,null,null,e,a,null,n,u,i,Gd),l[Me]=t.current,_f(l),new Vf(t)},fu.hydrateRoot=function(l,t,e){if(!x(l))throw Error(h(299));var a=!1,n="",u=ko,i=Wo,c=$o,s=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError),e.formState!==void 0&&(s=e.formState)),t=Dd(l,1,!0,t,e??null,a,n,s,u,i,c,Gd),t.context=xd(null),e=t.current,a=Ct(),a=xa(a),n=Be(a),n.callback=null,qe(e,n,a),e=a,t.current.lanes=e,ua(t,e),le(t),l[Me]=t.current,_f(l),new Ni(t)},fu.version="19.2.4",fu}var Fd;function py(){if(Fd)return Jf.exports;Fd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(N){console.error(N)}}return r(),Jf.exports=by(),Jf.exports}var Ty=py();const Ey=am(Ty),zy="modulepreload",Ay=function(r){return"/"+r},Id={},Di=function(N,D,h){let x=Promise.resolve();if(D&&D.length>0){let A=function(B){return Promise.all(B.map(R=>Promise.resolve(R).then(tl=>({status:"fulfilled",value:tl}),tl=>({status:"rejected",reason:tl}))))};var X=A;document.getElementsByTagName("link");const dl=document.querySelector("meta[property=csp-nonce]"),O=dl?.nonce||dl?.getAttribute("nonce");x=A(D.map(B=>{if(B=Ay(B),B in Id)return;Id[B]=!0;const R=B.endsWith(".css"),tl=R?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${B}"]${tl}`))return;const W=document.createElement("link");if(W.rel=R?"stylesheet":zy,R||(W.as="script"),W.crossOrigin="",W.href=B,O&&W.setAttribute("nonce",O),document.head.appendChild(W),R)return new Promise((Ol,Rl)=>{W.addEventListener("load",Ol),W.addEventListener("error",()=>Rl(new Error(`Unable to preload CSS for ${B}`)))})}))}function L(dl){const O=new Event("vite:preloadError",{cancelable:!0});if(O.payload=dl,window.dispatchEvent(O),!O.defaultPrevented)throw dl}return x.then(dl=>{for(const O of dl||[])O.status==="rejected"&&L(O.reason);return N().catch(L)})},nm="leduo_vscode_launch_config",Ff=6,_y=960,My=12,Ny=13,Oy=[{key:"escape",label:"Esc"},{key:"backspace",label:"Backspace"},{key:"tab",label:"Tab"},{key:"shiftTab",label:"Shift+Tab"},{key:"arrowUp",label:"↑"},{key:"arrowDown",label:"↓"},{key:"arrowLeft",label:"←"},{key:"arrowRight",label:"→"}];function su(r,N){const D=r.includes("?")?"&":"?";return`${r}${D}key=${encodeURIComponent(N)}`}function Dy(r){return new URLSearchParams(r).get("key")??""}function If(){return Dy(window.location.search)}function xy(r,N){const D=new URL(r,"http://localhost"),h=N.trim();return h?D.searchParams.set("key",h):D.searchParams.delete("key"),`${D.pathname}${D.search}${D.hash}`}function jy(r){window.history.replaceState(null,"",xy(window.location.href,r))}function Cy(r){try{const N=localStorage.getItem(nm);if(N){const D=JSON.parse(N);if(D.mode==="remote"||D.mode==="local")return D}}catch{}return{mode:r?"remote":"local",sshHost:r||""}}function Uy(){const[r,N]=H.useState(()=>If()),[D,h]=H.useState(()=>If()),[x,L]=H.useState("connecting"),[X,dl]=H.useState(null),[O,A]=H.useState([]),[B,R]=H.useState(null),[tl,W]=H.useState([]),[Ol,Rl]=H.useState(""),[ml,ft]=H.useState(!1),[wt,Gl]=H.useState(!1),[jl,Et]=H.useState("cli"),[$l,P]=H.useState(0),[wl,rt]=H.useState(null),[Jt,dt]=H.useState(0),[at,zt]=H.useState(!1),[At,st]=H.useState(""),[E,C]=H.useState(""),[Z,fl]=H.useState(!1),[hl,m]=H.useState(""),[_,U]=H.useState([]),[q,J]=H.useState(""),[I,el]=H.useState(!1),[Hl,Al]=H.useState({mode:"local",sshHost:""}),[la,te]=H.useState(!1),[_a,ou]=H.useState(""),[kt,ta]=H.useState(""),[mn,ru]=H.useState(!1),[du,Ma]=H.useState(!1),[hn,Na]=H.useState(""),[ji,Ci]=H.useState(null),[nt,mu]=H.useState({}),[mt,yn]=H.useState(!1),ea=H.useRef(null),hu=H.useRef(null),Qt=H.useRef(new Map),vn=H.useRef(null),Ae=H.useRef(new Map),ee=H.useRef(null),K=H.useMemo(()=>O.find(o=>o.clientSessionId===B)??null,[O,B]),Dl=ml&&!!K,Fl=ky(B,x,K?.connectionState),yu=!!(X?.enableShell&&(Dl||mt)),aa=ml&&!wt&&!!K,Ui=!ml,Oa=["shell",X?.enableShell&&mt&&!Dl?"shell-has-terminal-drawer":""].filter(Boolean).join(" "),Da=H.useMemo(()=>({top:Jt?`${Jt}px`:void 0,height:wl!=null?`${wl}px`:void 0}),[wl,Jt]),_t=H.useMemo(()=>X?tm(X.workspacePath,X.allowedRoots).root:"",[X]),[ae,_e]=H.useState(""),Ut=H.useMemo(()=>!_t||_.length===0?[]:_.map(o=>um(_t,o.path)).filter(Boolean),[_t,_]),Ri=I?Ut:Ut.slice(0,Ff),vu=Ut.length>Ff,na=K?.workspacePath??X?.workspacePath??"",ua=!!na;H.useEffect(()=>{function o(){const v=If();N(v),h(v)}return window.addEventListener("popstate",o),()=>{window.removeEventListener("popstate",o)}},[]),H.useEffect(()=>{r&&fetch(su("/api/config",r)).then(o=>o.json()).then(o=>{dl(o),Al(Cy(o.sshHost));const v=tm(o.workspacePath,o.allowedRoots);st(o.workspacePath),m(v.root),_e(v.suffix),fl(o.allowSkipPermissions??!1)}).catch(()=>{})},[r]),H.useEffect(()=>{!r||!hl||fetch(su(`/api/directories?root=${encodeURIComponent(hl)}`,r)).then(o=>o.json()).then(o=>{U(o.directories),J("")}).catch(o=>{J(o instanceof Error?o.message:String(o))})},[r,hl]),H.useEffect(()=>{const o=()=>{const v=window.matchMedia?.("(pointer: coarse)").matches??!1,j=navigator.maxTouchPoints??0;ft(em({viewportWidth:window.innerWidth,coarsePointer:v,touchPoints:j}))};return o(),window.addEventListener("resize",o),window.addEventListener("orientationchange",o),()=>{window.removeEventListener("resize",o),window.removeEventListener("orientationchange",o)}},[]),H.useEffect(()=>{ml||(Gl(!1),P(0),rt(null),dt(0))},[ml]),H.useEffect(()=>{Rl(""),Et("cli"),ml&&B&&Gl(!1)},[B,ml]),H.useEffect(()=>{if(!Dl){P(0),rt(null),dt(0);return}const o=window.visualViewport;if(!o)return;const v=()=>{const j=Math.max(0,window.innerHeight-o.height-o.offsetTop);P(j),Dl&&(rt(o.height),dt(o.offsetTop))};return v(),o.addEventListener("resize",v),o.addEventListener("scroll",v),window.addEventListener("orientationchange",v),()=>{o.removeEventListener("resize",v),o.removeEventListener("scroll",v),window.removeEventListener("orientationchange",v)}},[Dl]),H.useEffect(()=>{if(!Dl)return;const o=window.scrollY,v=document.body,j=document.documentElement,w=v.style.position,ll=v.style.top,sl=v.style.left,xl=v.style.right,Bl=v.style.width,vl=v.style.overflow,bl=j.style.overflow,ql=j.style.overscrollBehavior;return v.style.position="fixed",v.style.top=`-${o}px`,v.style.left="0",v.style.right="0",v.style.width="100%",v.style.overflow="hidden",j.style.overflow="hidden",j.style.overscrollBehavior="none",()=>{v.style.position=w,v.style.top=ll,v.style.left=sl,v.style.right=xl,v.style.width=Bl,v.style.overflow=vl,j.style.overflow=bl,j.style.overscrollBehavior=ql,window.scrollTo(0,o)}},[Dl]),H.useEffect(()=>{if(!r)return;const o=window.location.protocol==="https:"?"wss":"ws",v=new WebSocket(`${o}://${window.location.host}${su("/ws",r)}`);return ee.current=v,v.addEventListener("open",()=>{L("connected"),v.send(JSON.stringify({type:"hello"}))}),v.addEventListener("message",j=>{try{const w=JSON.parse(String(j.data));Hi(w)}catch{}}),v.addEventListener("close",()=>{L("closed")}),v.addEventListener("error",()=>{L("closed")}),()=>{ee.current=null,v.close()}},[r]);function Hi(o){switch(o.type){case"ready":A(o.payload.sessions),o.payload.sessions.length>0&&!B&&!em({viewportWidth:window.innerWidth,coarsePointer:window.matchMedia?.("(pointer: coarse)").matches??!1,touchPoints:navigator.maxTouchPoints??0})&&R(o.payload.sessions[0].clientSessionId);break;case"session_registered":A(v=>v.some(w=>w.clientSessionId===o.payload.clientSessionId)?v.map(w=>w.clientSessionId===o.payload.clientSessionId?{...w,...o.payload}:w):[...v,o.payload]),R(o.payload.clientSessionId);break;case"session_closed":A(v=>v.filter(j=>j.clientSessionId!==o.payload.clientSessionId)),R(v=>v===o.payload.clientSessionId?null:v);break;case"cli_output":{const v=Ae.current.get(o.payload.clientSessionId);v&&v.terminal.write(o.payload.data),A(j=>j.map(w=>w.clientSessionId===o.payload.clientSessionId&&w.connectionState!=="connected"?{...w,connectionState:"connected",updatedAt:new Date().toISOString()}:w));break}case"cli_exited":A(v=>v.map(j=>j.clientSessionId===o.payload.clientSessionId?{...j,connectionState:"error",updatedAt:new Date().toISOString()}:j)),Sn("warning","CLI 已退出",`退出码: ${o.payload.exitCode}`,o.payload.clientSessionId);break;case"session_activity":A(v=>v.map(j=>j.clientSessionId===o.payload.clientSessionId?{...j,activityState:o.payload.activityState}:j));break;case"session_id_updated":A(v=>v.map(j=>j.clientSessionId===o.payload.clientSessionId?{...j,sessionId:o.payload.newSessionId}:j));break;case"shell_output":{const v=Qt.current.get(o.payload.clientSessionId);v&&v.terminal.write(o.payload.data);break}case"shell_exited":{const v=Qt.current.get(o.payload.clientSessionId);v&&(v.alive=!1,v.terminal.write(`\r
10
- [Shell exited with code ${o.payload.exitCode}]\r
11
- `));break}case"error":o.payload.clientSessionId&&A(v=>v.map(j=>j.clientSessionId===o.payload.clientSessionId?{...j,connectionState:"error",updatedAt:new Date().toISOString()}:j)),Sn("error","错误",o.payload.message,o.payload.clientSessionId);break}}function Il(o){const v=ee.current;return!v||v.readyState!==WebSocket.OPEN?!1:(v.send(JSON.stringify(o)),!0)}function Sn(o,v,j,w){const ll=Xy();W(sl=>[...sl.slice(-9),{id:ll,kind:o,title:v,body:j,sessionId:w}]),setTimeout(()=>{W(sl=>sl.filter(xl=>xl.id!==ll))},8e3)}function gn(o){return!B||!o?!1:Il({type:"cli_input",payload:{clientSessionId:B,data:o}})}function xa(o){return!B||!o?!1:Il({type:"shell_input",payload:{clientSessionId:B,data:o}})}function ja(o){if(Fl)return;const v=Jy(Ol,o);if(!v)return;(jl==="shell"?xa(v):gn(v))&&Rl("")}function Su(){ja(!0)}function gu(){ja(!1)}function Wt(o){if(Fl)return;const v=wy(o);if(jl==="shell"){xa(v);return}gn(v)}function Jl(){ml&&Gl(o=>!o)}function ut(){X?.enableShell&&yn(o=>!o)}function Me(){X?.enableShell&&Et(o=>o==="cli"?"shell":"cli")}function ia(o){const v=Qt.current.get(o);v&&(v.resizeObserver.disconnect(),v.touchCleanup(),v.wrapper.removeEventListener("focusin",v.blurReadonlyHandler,!0),v.wrapper.removeEventListener("touchend",v.blurReadonlyHandler,!0),Il({type:"shell_stop",payload:{clientSessionId:o}}),v.terminal.dispose(),Qt.current.delete(o))}function Bi(){for(const o of Array.from(Qt.current.keys()))ia(o)}function qi(o){W(v=>v.filter(j=>j.id!==o))}function ca(o){o.dataset.mobileReadonly=ml?"true":"false";const v=o.querySelector(".xterm-helper-textarea");v instanceof HTMLTextAreaElement&&(v.readOnly=ml,v.tabIndex=ml?-1:0,v.inputMode=ml?"none":"text",ml&&requestAnimationFrame(()=>{v.blur()}))}function Ne(o){const v=o.querySelector(".xterm-viewport");if(!(v instanceof HTMLElement))return()=>{};const j={active:!1,startY:0,startScrollTop:0},w=xl=>{if(o.dataset.mobileReadonly!=="true"||xl.touches.length!==1){j.active=!1;return}const Bl=xl.touches[0];j.active=!0,j.startY=Bl.clientY,j.startScrollTop=v.scrollTop},ll=xl=>{if(!j.active||o.dataset.mobileReadonly!=="true"||xl.touches.length!==1)return;const vl=xl.touches[0].clientY-j.startY;v.scrollTop=j.startScrollTop-vl,xl.preventDefault()},sl=()=>{j.active=!1};return o.addEventListener("touchstart",w,{passive:!0,capture:!0}),o.addEventListener("touchmove",ll,{passive:!1,capture:!0}),o.addEventListener("touchend",sl,{capture:!0}),o.addEventListener("touchcancel",sl,{capture:!0}),()=>{o.removeEventListener("touchstart",w,{capture:!0}),o.removeEventListener("touchmove",ll,{capture:!0}),o.removeEventListener("touchend",sl,{capture:!0}),o.removeEventListener("touchcancel",sl,{capture:!0})}}function bn(o=!1){if(!B)return;const v=Ae.current.get(B);if(!v)return;const j=v.fitAddon,w=v.terminal,ll=v.element.querySelector(".xterm-viewport"),sl=ll instanceof HTMLElement?ll.scrollHeight-ll.clientHeight-ll.scrollTop<32:!1;o&&ll instanceof HTMLElement&&(ll.scrollTop=ll.scrollHeight),j.fit(),w.refresh(0,Math.max(0,w.rows-1)),o&&ll instanceof HTMLElement&&(ll.scrollTop=ll.scrollHeight),(o||sl)&&typeof w.scrollToBottom=="function"&&w.scrollToBottom(),Il({type:"cli_resize",payload:{clientSessionId:B,cols:w.cols,rows:w.rows}})}H.useEffect(()=>{if(!B||x!=="connected")return;const o=vn.current;if(!o)return;const v=Ae.current.get(B);if(v){const ll=v.fitAddon,sl=v.terminal;sl.options&&(sl.options.fontSize=Pf(ml)),ca(v.element),o.innerHTML="",o.appendChild(v.element),requestAnimationFrame(()=>{ll.fit(),sl.refresh(0,sl.rows-1),ml||sl.focus()}),Il({type:"cli_resize",payload:{clientSessionId:B,cols:sl.cols,rows:sl.rows}});return}let j=!1;const w=B;return(async()=>{const[ll,sl]=await Promise.all([Di(()=>import("./xterm-B-qIQCd3.js"),[]),Di(()=>import("./addon-fit-DX4qG4td.js"),[])]);if(j)return;const xl=ll.Terminal,Bl=sl.FitAddon,vl=new Bl,bl=new xl({scrollback:5e3,cursorBlink:!1,cursorInactiveStyle:"none",fontFamily:'"IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',fontSize:Pf(ml),theme:{background:"#1a1a1a",foreground:"#e8e8e8",cursor:"#1a1a1a",cursorAccent:"#1a1a1a",selectionBackground:"rgba(216, 91, 52, 0.3)"}});bl.loadAddon(vl);const ql=document.createElement("div");ql.style.width="100%",ql.style.height="100%",o.innerHTML="",o.appendChild(ql),bl.open(ql),vl.fit(),ca(ql);const ie=Ne(ql);let $t=!1;ql.addEventListener("keydown",it=>{it.key==="Escape"?($t=!0,it.preventDefault()):$t=!1},!0),ql.addEventListener("focusout",()=>{$t&&($t=!1,requestAnimationFrame(()=>{!j&&!ml&&bl.focus()}))},!0),ql.addEventListener("focusin",()=>{ql.dataset.mobileReadonly==="true"&&requestAnimationFrame(()=>{const it=ql.querySelector(".xterm-helper-textarea");it instanceof HTMLTextAreaElement&&it.blur()})},!0),ql.addEventListener("touchend",()=>{ql.dataset.mobileReadonly==="true"&&requestAnimationFrame(()=>{const it=ql.querySelector(".xterm-helper-textarea");it instanceof HTMLTextAreaElement&&it.blur()})},!0),Ae.current.set(w,{terminal:bl,fitAddon:vl,element:ql}),Il({type:"cli_start",payload:{clientSessionId:w,cols:bl.cols,rows:bl.rows}}),bl.onData(it=>{Il({type:"cli_input",payload:{clientSessionId:w,data:it}})}),bl.onResize(({cols:it,rows:yt})=>{Il({type:"cli_resize",payload:{clientSessionId:w,cols:it,rows:yt}})});const ht=new ResizeObserver(()=>{j||vl.fit()});ht.observe(o),bl.__resizeObserver=ht,bl.__touchScrollCleanup=ie})(),()=>{j=!0,o&&(o.innerHTML="")}},[B,x,ml,jl]),H.useLayoutEffect(()=>{!B||x!=="connected"||bn(Dl)},[B,x,Dl,aa,$l,wl,jl]),H.useEffect(()=>{const o=new Set(O.map(v=>v.clientSessionId));for(const[v,j]of Ae.current.entries())if(!o.has(v)){const w=j.terminal,ll=j.terminal.__resizeObserver,sl=j.terminal.__touchScrollCleanup;ll?.disconnect(),sl?.(),w.dispose(),Ae.current.delete(v)}},[O]),H.useEffect(()=>{if(!yu||!K||!X?.enableShell)return;const o=Dl?hu.current:ea.current;if(!o)return;const v=Qt.current.get(K.clientSessionId);if(v?.alive)return ca(v.wrapper),o.innerHTML="",o.appendChild(v.wrapper),requestAnimationFrame(()=>{const w=v.fitAddon,ll=v.terminal;w.fit(),ll.refresh?.(0,Math.max(0,ll.rows-1)),Il({type:"shell_resize",payload:{clientSessionId:v.clientSessionId,cols:ll.cols,rows:ll.rows}})}),()=>{o&&(o.innerHTML="")};v&&!v.alive&&ia(K.clientSessionId);let j=!1;return(async()=>{const[w,ll]=await Promise.all([Di(()=>import("./xterm-B-qIQCd3.js"),[]),Di(()=>import("./addon-fit-DX4qG4td.js"),[])]);if(j)return;const sl=w.Terminal,xl=ll.FitAddon,Bl=new xl,vl=new sl({scrollback:1e3,cursorBlink:!0,fontFamily:'"IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',fontSize:Pf(ml),theme:{background:"#1a1a1a",foreground:"#e8e8e8",cursor:"#d85b34",selectionBackground:"rgba(216, 91, 52, 0.3)"}});vl.loadAddon(Bl);const bl=document.createElement("div");bl.style.width="100%",bl.style.height="100%",o.innerHTML="",o.appendChild(bl),vl.open(bl),Bl.fit(),ca(bl);const ql=Ne(bl),ie=()=>{bl.dataset.mobileReadonly==="true"&&requestAnimationFrame(()=>{const ht=bl.querySelector(".xterm-helper-textarea");ht instanceof HTMLTextAreaElement&&ht.blur()})};bl.addEventListener("focusin",ie,!0),bl.addEventListener("touchend",ie,!0);const $t=new ResizeObserver(()=>{j||Bl.fit()});$t.observe(bl),Qt.current.set(K.clientSessionId,{clientSessionId:K.clientSessionId,terminal:vl,fitAddon:Bl,wrapper:bl,resizeObserver:$t,touchCleanup:ql,blurReadonlyHandler:ie,alive:!0}),Il({type:"shell_start",payload:{clientSessionId:K.clientSessionId,cols:vl.cols,rows:vl.rows}}),vl.onData(ht=>{Il({type:"shell_input",payload:{clientSessionId:K.clientSessionId,data:ht}})}),vl.onResize(({cols:ht,rows:it})=>{Il({type:"shell_resize",payload:{clientSessionId:K.clientSessionId,cols:ht,rows:it}})})})(),()=>{j=!0,o&&(o.innerHTML="")}},[yu,K?.clientSessionId,X?.enableShell,ml,Dl]),H.useEffect(()=>()=>{Bi()},[]),H.useEffect(()=>{const o=new Set(O.map(v=>v.clientSessionId));for(const v of Array.from(Qt.current.keys()))o.has(v)||ia(v)},[O]);function Oe(){At.trim()&&(Il({type:"create_session",payload:{workspacePath:At.trim(),title:E.trim()||void 0,allowSkipPermissions:Z}}),zt(!1),C(""),fl(X?.allowSkipPermissions??!1))}function De(o){Il({type:"close_session",payload:{clientSessionId:o}})}function fa(o,v){const j=v.replace(/\\/g,"/").replace(/\/+$/,"");if(!j)return null;if(o.mode==="local")return`vscode://file${j}`;const w=o.sshHost.trim();return w?`vscode://vscode-remote/${`ssh-remote+${encodeURIComponent(w)}`}${j}`:null}function ne(o){const v=fa(Hl,o);if(!v){ou("请先配置 VSCode 打开参数。"),te(!0);return}window.open(v,"_self")}function Xl(){localStorage.setItem(nm,JSON.stringify(Hl)),ta("已保存。")}async function Ca(){if(K){ru(!0),Ma(!0),Na("");try{const o=await fetch(su(`/api/session-diff/files?clientSessionId=${K.clientSessionId}`,r));if(!o.ok){const j=await o.json().catch(()=>null);throw new Error(j?.message??`请求失败 (${o.status})`)}const v=await o.json();Ci(v),mu({})}catch(o){Na(o instanceof Error?o.message:String(o))}finally{Ma(!1)}}}async function bu(o,v){const j=`${o}:${v}`,w=nt[j];if(w)return w;const ll=await fetch(su(`/api/session-diff/file?clientSessionId=${K?.clientSessionId}&category=${o}&filePath=${encodeURIComponent(v)}`,r));if(!ll.ok){const xl=await ll.json().catch(()=>null);throw new Error(xl?.message??`请求失败 (${ll.status})`)}const sl=await ll.json();return mu(xl=>({...xl,[j]:sl})),sl}function ue(o){o.preventDefault();const v=D.trim();v&&(jy(v),N(v),h(v),L("connecting"))}return r?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:Oa,children:[f.jsxs("aside",{className:"panel masthead",children:[f.jsxs("div",{className:"brand-stack",children:[f.jsxs("div",{className:"brand-lockup",children:[f.jsx("img",{className:"brand-icon",src:"/assets/brand-icon.png",alt:"","aria-hidden":"true"}),f.jsxs("div",{className:"brand-copy",children:[f.jsx("p",{className:"eyebrow",children:"leduo-patrol"}),f.jsx("h1",{children:X?.appName??"乐多汪汪队"})]})]}),f.jsx("p",{className:"lede masthead-lede",children:"在一个控制台里并行查看多会话进展、差异和执行结果。"})]}),f.jsxs("div",{className:"status-grid",children:[f.jsx(Pd,{label:"连接",value:x==="connected"?"已连接":x==="closed"?"断开":"连接中",tone:Zy(x)}),f.jsx(Pd,{label:"会话数",value:String(O.length)})]}),f.jsxs("div",{className:"masthead-actions",children:[f.jsx("button",{className:"primary masthead-action-btn",onClick:()=>zt(!0),children:"+ 新建会话"}),f.jsx("button",{className:"secondary masthead-action-btn",onClick:()=>te(!0),children:"VSCode 配置"})]}),O.length===0?f.jsx("div",{className:"empty",children:"暂无会话。点击上方按钮新建。"}):f.jsx("ul",{className:"session-list",children:O.map(o=>f.jsx("li",{children:f.jsxs("button",{className:`session-chip ${o.clientSessionId===B?"active":""}`,onClick:()=>R(o.clientSessionId),children:[f.jsx("span",{className:"session-chip-title",title:o.title,children:xi(o.title)}),f.jsxs("span",{className:"session-chip-meta",children:[o.connectionState==="connected"?f.jsx(Hy,{activityState:o.activityState}):o.connectionState==="connecting"?f.jsx("span",{className:"session-chip-tag session-chip-tag-connecting",children:"连接中"}):f.jsx("span",{className:"session-chip-tag session-chip-tag-error",children:"异常"}),f.jsx("span",{className:"session-chip-updated",children:Qy(o.updatedAt)})]}),f.jsx("span",{className:"session-chip-workspace",title:o.workspacePath,children:X?Vy(o.workspacePath,X.allowedRoots):o.workspacePath})]})},o.clientSessionId))}),ml&&O.length>0&&!K?f.jsx("div",{className:"session-mobile-hint",children:"请选择会话开始交互。"}):null]}),Ui?f.jsx("main",{className:"panel main-content",children:K&&!Dl?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"cli-toolbar",children:[f.jsxs("div",{className:"cli-toolbar-info",children:[f.jsxs("div",{className:"cli-toolbar-title-group",children:[f.jsx("h3",{className:"cli-toolbar-title",title:K.title,children:xi(K.title)}),f.jsxs("code",{className:"cli-toolbar-session-id",title:K.sessionId,children:["session: ",K.sessionId]})]}),f.jsx("code",{className:"cli-toolbar-path",title:K.workspacePath,children:K.workspacePath})]}),f.jsxs("div",{className:"cli-toolbar-actions",children:[f.jsx("button",{className:"secondary session-open-vscode",onClick:()=>ne(K.workspacePath),children:"VSCode"}),X?.enableShell?f.jsxs("button",{className:`secondary toolbar-icon-button session-terminal-trigger ${mt?"active":""}`,type:"button",onClick:ut,"aria-pressed":mt,title:mt?"收起终端":"展开终端",children:[f.jsx("span",{"aria-hidden":"true",children:">_"}),f.jsx("span",{className:"sr-only",children:mt?"收起终端":"展开终端"})]}):null,f.jsx("button",{className:"secondary session-diff-trigger",onClick:Ca,children:"查看 Diff"}),f.jsx("button",{className:"secondary session-close",onClick:()=>De(K.clientSessionId),children:"关闭会话"})]})]}),f.jsx("div",{className:"cli-stage",children:f.jsx("div",{className:"cli-terminal-container",ref:vn})})]}):f.jsx("div",{className:"empty main-empty",children:O.length>0?"选择左侧的会话开始交互。":"暂无会话。请先新建一个会话。"})}):null,la?f.jsx("div",{className:"modal-backdrop",onClick:()=>te(!1),children:f.jsxs("div",{className:"modal-card",onClick:o=>o.stopPropagation(),children:[f.jsxs("div",{className:"modal-header",children:[f.jsxs("div",{children:[f.jsx("h3",{children:"VSCode 打开配置"}),f.jsxs("p",{className:"modal-meta",children:["远程模式需要 SSH 用户与主机(如 ",f.jsx("code",{children:"dev@10.0.0.8"}),");本地模式会直接打开当前目录。"]})]}),f.jsx("button",{className:"secondary",onClick:()=>te(!1),children:"关闭"})]}),f.jsx("div",{className:"modal-scroll-body",children:f.jsxs("div",{className:"details",children:[f.jsx("label",{htmlFor:"vscode-open-mode",children:"打开模式"}),f.jsxs("select",{id:"vscode-open-mode",value:Hl.mode,onChange:o=>{const v=o.target.value==="remote"?"remote":"local";Al(j=>({...j,mode:v})),ta("")},children:[f.jsx("option",{value:"remote",children:"远程 SSH"}),f.jsx("option",{value:"local",children:"本地目录"})]}),Hl.mode==="remote"?f.jsxs(f.Fragment,{children:[f.jsx("label",{htmlFor:"vscode-open-ssh-host",children:"SSH 主机"}),f.jsx("input",{id:"vscode-open-ssh-host",placeholder:"如 user@server",value:Hl.sshHost,onChange:o=>{Al(v=>({...v,sshHost:o.target.value})),ta("")}})]}):null,f.jsxs("div",{className:"session-meta-item session-meta-item-wide",children:[f.jsx("span",{children:"当前一键打开目标"}),f.jsx("code",{children:na||"(未选择目录)"})]}),_a?f.jsx("p",{className:"modal-meta",children:_a}):null,kt?f.jsx("p",{className:"modal-meta",children:kt}):null,f.jsxs("div",{className:"session-meta-actions vscode-settings-actions",children:[f.jsx("button",{className:"secondary",onClick:()=>ne(na),disabled:!ua,children:"立即打开当前目录"}),f.jsx("button",{className:"secondary",onClick:Xl,children:"保存配置"})]})]})})]})}):null,at?f.jsx("div",{className:"modal-backdrop",onClick:()=>{zt(!1),el(!1),fl(X?.allowSkipPermissions??!1)},children:f.jsxs("div",{className:"modal-card",onClick:o=>o.stopPropagation(),children:[f.jsxs("div",{className:"modal-header",children:[f.jsx("div",{children:f.jsx("h3",{children:"新建会话"})}),f.jsx("button",{className:"secondary",onClick:()=>{zt(!1),el(!1),fl(X?.allowSkipPermissions??!1)},children:"关闭"})]}),f.jsx("div",{className:"modal-scroll-body",children:f.jsxs("div",{className:"details",children:[f.jsx("label",{htmlFor:"create-workspace-suffix",children:"会话目录"}),f.jsxs("div",{className:"workspace-path-inline",children:[f.jsx("code",{className:"workspace-path-root",children:_t||"(未配置允许根目录)"}),f.jsx("span",{className:"workspace-path-sep","aria-hidden":"true",children:"/"}),f.jsx("input",{id:"create-workspace-suffix",list:"create-workspace-suffix-suggestions",value:ae,placeholder:"例如 demo/new-session-showcase",onChange:o=>{const v=as(o.target.value);_e(v);const j=ls(_t,v),w=lm(_t,v,_);st(j),m(w),el(!1)}})]}),f.jsx("datalist",{id:"create-workspace-suffix-suggestions",children:Ut.map(o=>f.jsx("option",{value:o},o))}),Ut.length>0?f.jsxs("div",{className:"workspace-suggestion-list",role:"list","aria-label":"目录候选",children:[Ri.map(o=>f.jsx("button",{type:"button",className:"workspace-suggestion-item",onClick:()=>{_e(o);const v=ls(_t,o),j=lm(_t,o,_);st(v),m(j),el(!1)},children:o},o)),vu?f.jsx("button",{type:"button",className:"workspace-suggestion-item",onClick:()=>el(o=>!o),children:I?"收起候选":`展开更多(+${Ut.length-Ff})`}):null]}):null,f.jsx("label",{htmlFor:"create-session-title",children:"会话名"}),f.jsx("input",{id:"create-session-title",value:E,placeholder:"可选,例如 leduo-api",onChange:o=>C(o.target.value)}),f.jsxs("div",{className:"checkbox-field",children:[f.jsxs("label",{className:"checkbox-label warning",children:[f.jsx("input",{type:"checkbox",checked:Z,onChange:o=>fl(o.target.checked)}),f.jsx("span",{children:"允许YOLO模式"})]}),f.jsx("p",{className:"checkbox-hint warning",children:"启用后,可在会话中切换至YOLO模式,自动执行操作而无需确认。"})]}),q?f.jsx("p",{children:q}):null]})}),f.jsxs("div",{className:"modal-footer",children:[f.jsx("button",{className:"primary",onClick:Oe,disabled:!At.trim(),children:"新建目录会话"}),f.jsx("button",{className:"secondary",type:"button",onClick:()=>{zt(!1),el(!1)},children:"取消"})]})]})}):null,mn?f.jsx(qy,{sessionTitle:K?xi(K.title):"当前会话",loading:du,error:hn,snapshot:ji,fileDiffCache:nt,onLoadFileDiff:bu,onClose:()=>ru(!1),onRefresh:Ca}):null,X?.enableShell&&mt&&!Dl?f.jsxs("div",{className:"terminal-drawer terminal-drawer-open",children:[f.jsxs("div",{className:"terminal-drawer-header",children:[f.jsxs("button",{className:"terminal-drawer-toggle",type:"button",onClick:()=>yn(o=>!o),"aria-expanded":mt,title:mt?"收起终端":"展开终端",children:[f.jsx("span",{className:"terminal-drawer-icon","aria-hidden":"true",children:mt?"▼":"▲"}),f.jsx("span",{children:"终端"})]}),f.jsxs("span",{className:"terminal-drawer-note",children:["工作目录:",K?.workspacePath??X.workspacePath]})]}),mt?f.jsx("div",{className:"terminal-viewport",ref:ea}):null]}):null]}),Dl&&K?f.jsxs("div",{className:"mobile-terminal-fullscreen",style:Da,children:[f.jsxs("div",{className:"mobile-terminal-fullscreen-header",children:[f.jsx("button",{className:"secondary mobile-terminal-back",type:"button",onClick:()=>R(null),children:"返回"}),f.jsxs("div",{className:"mobile-terminal-fullscreen-copy",children:[f.jsx("strong",{title:K.title,children:xi(K.title)}),f.jsx("span",{title:K.workspacePath,children:K.workspacePath})]}),f.jsxs("div",{className:"mobile-terminal-fullscreen-actions",children:[f.jsx("button",{className:"secondary session-diff-trigger mobile-terminal-diff-trigger",type:"button",onClick:Ca,children:"Diff"}),X?.enableShell?f.jsxs("button",{className:"secondary toolbar-icon-button mobile-terminal-mode-button",type:"button",onClick:Me,title:jl==="cli"?"切换到终端":"切换到 Claude Code",children:[f.jsx("span",{"aria-hidden":"true",children:jl==="cli"?">_":"CC"}),f.jsx("span",{className:"sr-only",children:jl==="cli"?"切换到终端":"切换到 Claude Code"})]}):null,f.jsxs("button",{className:`secondary mobile-terminal-toggle ${aa?"active":""}`,type:"button",onClick:Jl,"aria-pressed":aa,children:[f.jsxs("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f.jsx("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",stroke:"currentColor",strokeWidth:"2"}),f.jsx("path",{d:"M6 9H7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M10 9H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M14 9H15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M18 9H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M6 12H7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M10 12H11",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M14 12H15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M18 12H19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),f.jsx("path",{d:"M9 15H15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),f.jsx("span",{className:"sr-only",children:aa?"收起输入":"移动输入"})]})]})]}),f.jsx("div",{className:"mobile-terminal-fullscreen-body",children:f.jsxs("div",{className:"cli-stage cli-stage-fullscreen",children:[f.jsxs("div",{className:"mobile-terminal-stage-viewport",children:[f.jsx("div",{className:`cli-terminal-container cli-terminal-container-fullscreen mobile-terminal-surface ${jl==="shell"?"mobile-terminal-surface-hidden":""}`,ref:vn}),X?.enableShell?f.jsxs("div",{className:`mobile-shell-stage mobile-terminal-surface ${jl==="cli"?"mobile-terminal-surface-hidden":""}`,children:[f.jsxs("div",{className:"mobile-shell-panel-header",children:[f.jsxs("span",{className:"mobile-shell-panel-title",children:[f.jsx("span",{"aria-hidden":"true",children:">_"}),f.jsx("span",{children:"终端"})]}),f.jsx("code",{className:"mobile-shell-panel-path",title:K.workspacePath,children:K.workspacePath})]}),f.jsx("div",{className:"terminal-viewport terminal-viewport-mobile terminal-viewport-mobile-fullscreen",ref:hu})]}):null]}),aa?f.jsx(Ry,{draft:Ol,disabled:Fl,keyboardInset:$l,fullscreen:!0,onChangeDraft:Rl,onTypeDraft:gu,onSendDraft:Su,onAction:Wt}):null]})})]}):null,f.jsx(By,{toasts:tl,onDismiss:qi,onNavigate:o=>R(o)})]}):f.jsx("div",{className:"access-gate",children:f.jsxs("div",{className:"panel access-gate-card",children:[f.jsx("h2",{children:X?.appName??"乐多汪汪队"}),f.jsx("p",{children:"请输入访问 key。提交后会自动写回当前 URL,后续刷新页面也能继续使用。"}),f.jsxs("form",{className:"access-gate-form",onSubmit:ue,children:[f.jsx("label",{className:"access-gate-label",htmlFor:"access-key-input",children:"访问 key"}),f.jsx("input",{id:"access-key-input",type:"password",autoFocus:!0,autoComplete:"off",spellCheck:!1,value:D,onChange:o=>h(o.target.value),placeholder:"请输入访问 key"}),f.jsx("button",{className:"primary",type:"submit",disabled:!D.trim(),children:"进入控制台"})]}),f.jsxs("p",{className:"access-gate-hint",children:["也可以继续使用 URL 参数方式,例如 ",f.jsx("code",{children:"?key=YOUR_KEY"}),"。"]})]})})}function Ry(r){const N={"--mobile-terminal-input-offset":`${r.keyboardInset}px`},D=r.draft.length>0;function h(x){x.key==="Enter"&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),r.onSendDraft())}return f.jsxs("div",{className:`mobile-terminal-input-shell ${r.fullscreen?"mobile-terminal-input-shell-fullscreen":""}`,style:N,children:[f.jsxs("div",{className:"mobile-terminal-input-compose",children:[f.jsx("label",{className:"sr-only",htmlFor:"mobile-terminal-input",children:"终端输入"}),f.jsx("textarea",{id:"mobile-terminal-input",value:r.draft,onChange:x=>r.onChangeDraft(x.target.value),onKeyDown:h,placeholder:"在这里粘贴命令、确认文字或多行文本",spellCheck:!1,autoCapitalize:"off",autoCorrect:"off",rows:2,disabled:r.disabled}),D?f.jsxs("div",{className:"mobile-terminal-send-stack",children:[f.jsx("button",{className:"secondary mobile-terminal-send mobile-terminal-send-type",type:"button",onClick:r.onTypeDraft,disabled:r.disabled,children:"键入文本"}),f.jsx("button",{className:"primary mobile-terminal-send",type:"button",onClick:r.onSendDraft,disabled:r.disabled,children:"发送文本"})]}):f.jsx("button",{className:"primary mobile-terminal-send",type:"button",onClick:r.onSendDraft,disabled:r.disabled,children:"Enter"})]}),f.jsx("div",{className:"mobile-terminal-action-grid",role:"group","aria-label":"终端快捷按键",children:Oy.map(x=>f.jsx("button",{className:`secondary mobile-terminal-action ${x.accent?"mobile-terminal-action-accent":""}`,type:"button",onClick:()=>r.onAction(x.key),disabled:r.disabled,children:x.label},x.key))})]})}function Hy(r){switch(r.activityState){case"running":return f.jsx("span",{className:"session-chip-tag session-chip-tag-running",children:"运行中"});case"completed":return f.jsx("span",{className:"session-chip-tag session-chip-tag-completed",children:"已完成"});case"pending":return f.jsx("span",{className:"session-chip-tag session-chip-tag-pending",children:"待处理"});default:return f.jsx("span",{className:"session-chip-tag session-chip-tag-completed",children:"已连接"})}}function Pd(r){return f.jsxs("div",{className:`status-card ${r.tone?`status-card-${r.tone}`:""}`,children:[f.jsx("span",{children:r.label}),f.jsx("strong",{children:r.value})]})}function By(r){return r.toasts.length===0?null:f.jsx("div",{className:"toast-container","aria-live":"polite","aria-atomic":"false",children:r.toasts.map(N=>f.jsxs("div",{className:`toast-item toast-${N.kind}`,role:"alert",children:[N.sessionId?f.jsxs("button",{className:"toast-content toast-content-clickable",type:"button",onClick:()=>r.onNavigate(N.sessionId),"aria-label":`跳转到会话:${N.body}`,children:[f.jsx("strong",{className:"toast-title",children:N.title}),f.jsx("span",{className:"toast-body",children:N.body})]}):f.jsxs("div",{className:"toast-content",children:[f.jsx("strong",{className:"toast-title",children:N.title}),f.jsx("span",{className:"toast-body",children:N.body})]}),f.jsx("button",{className:"toast-dismiss",onClick:()=>r.onDismiss(N.id),"aria-label":"关闭通知",type:"button",children:"×"})]},N.id))})}function qy(r){const[N,D]=H.useState("flat"),[h,x]=H.useState("workingTree"),[L,X]=H.useState(""),[dl,O]=H.useState(!1),[A,B]=H.useState(""),R=H.useMemo(()=>r.snapshot?r.snapshot[h]:[],[h,r.snapshot]);H.useEffect(()=>{if(R.length===0){X("");return}R.some(W=>W.filePath===L)||X(R[0].filePath)},[R,L]),H.useEffect(()=>{if(N!=="byFile"||!L)return;const W=`${h}:${L}`;r.fileDiffCache[W]||(O(!0),B(""),r.onLoadFileDiff(h,L).catch(Ol=>{B(Ol instanceof Error?Ol.message:String(Ol))}).finally(()=>{O(!1)}))},[h,r,L,N]);const tl=L?r.fileDiffCache[`${h}:${L}`]:null;return f.jsx("div",{className:"modal-backdrop",onClick:r.onClose,children:f.jsxs("div",{className:"modal-card",onClick:W=>W.stopPropagation(),children:[f.jsxs("div",{className:"modal-header",children:[f.jsxs("div",{className:"diff-title-wrap",children:[f.jsx("p",{className:"eyebrow",children:r.sessionTitle}),f.jsxs("h3",{children:["当前目录累计代码 Diff",r.snapshot?.workspaceReadonly?f.jsx("span",{className:"readonly-badge",children:"只读目录"}):null]}),r.snapshot?f.jsx("code",{className:"diff-title-path",children:r.snapshot.workspacePath}):null,r.snapshot&&r.snapshot.repositoryRoot!==r.snapshot.workspacePath?f.jsxs("p",{className:"modal-meta",children:["仓库根目录: ",r.snapshot.repositoryRoot]}):null]}),f.jsxs("div",{className:"modal-actions-inline",children:[f.jsx("button",{className:"secondary modal-btn-refresh",onClick:r.onRefresh,disabled:r.loading,children:"刷新"}),f.jsx("button",{className:"secondary modal-btn-close",onClick:r.onClose,children:"关闭"})]})]}),r.loading?f.jsx("p",{className:"modal-meta modal-meta-padded",children:"正在读取 Git Diff..."}):null,r.error?f.jsx("p",{className:"modal-meta modal-meta-padded",children:r.error}):null,r.snapshot?f.jsx("div",{className:"modal-scroll-body",children:f.jsxs("div",{className:"modal-body markdown-body",children:[f.jsxs("div",{className:"diff-toolbar-tabs",role:"tablist","aria-label":"Diff 查看模式",children:[f.jsx("button",{className:`diff-tab ${N==="flat"?"active":""}`,onClick:()=>D("flat"),role:"tab","aria-selected":N==="flat",type:"button",children:"平铺查看"}),f.jsx("button",{className:`diff-tab ${N==="byFile"?"active":""}`,onClick:()=>D("byFile"),role:"tab","aria-selected":N==="byFile",type:"button",children:"按文件查看"}),N==="byFile"?f.jsxs("select",{value:L,onChange:W=>X(W.target.value),children:[R.length===0?f.jsx("option",{value:"",children:"当前没有文件变更"}):null,R.map(W=>f.jsxs("option",{value:W.filePath,children:["[",W.changeType,"] ",W.filePath]},W.filePath))]}):null]}),f.jsxs("div",{className:"diff-toolbar-tabs",role:"tablist","aria-label":"Diff 分类",children:[f.jsxs("button",{className:`diff-tab ${h==="workingTree"?"active":""}`,onClick:()=>x("workingTree"),role:"tab","aria-selected":h==="workingTree",type:"button",children:["未暂存修改 (",r.snapshot.workingTree.length,")"]}),f.jsxs("button",{className:`diff-tab ${h==="staged"?"active":""}`,onClick:()=>x("staged"),role:"tab","aria-selected":h==="staged",type:"button",children:["已暂存修改 (",r.snapshot.staged.length,")"]}),f.jsxs("button",{className:`diff-tab ${h==="untracked"?"active":""}`,onClick:()=>x("untracked"),role:"tab","aria-selected":h==="untracked",type:"button",children:["未跟踪文件 (",r.snapshot.untracked.length,")"]})]}),N==="flat"?f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:Yy(h)}),R.length===0?f.jsx("p",{children:"(空)"}):R.map(W=>f.jsx("p",{children:f.jsxs("code",{children:["[",W.changeType,"] ",W.filePath]})},`${h}:${W.filePath}`)),f.jsx("p",{className:"modal-meta",children:"按文件查看模式会按需加载单个文件 Diff,避免一次性读取整个仓库差异。"})]}):f.jsxs(f.Fragment,{children:[f.jsx("h4",{children:"文件 Diff"}),L?null:f.jsx("p",{children:"(空)"}),dl?f.jsx("p",{children:"正在加载文件 Diff..."}):null,A?f.jsx("p",{className:"modal-meta",children:A}):null,tl?.omitted?f.jsx("p",{className:"modal-meta",children:tl.reason??"该文件 Diff 过大,已省略显示。"}):null,tl&&!tl.omitted?f.jsx(Ly,{diff:tl.diff}):null]})]})}):null]})})}function Yy(r){return r==="workingTree"?"未暂存修改 (working tree)":r==="staged"?"已暂存修改 (staged)":"未跟踪文件"}function Ly(r){if(!r.diff.trim())return f.jsx("p",{children:"(空)"});const D=r.diff.replace(/\r\n/g,`
12
- `).split(`
13
- `);return f.jsx("pre",{className:"diff-block",children:f.jsx("code",{children:D.map((h,x)=>f.jsx("span",{className:`diff-line ${Gy(h)}`,children:h||" "},`${x}-${h}`))})})}function Gy(r){return r.startsWith("+++ ")||r.startsWith("--- ")?"diff-line-file":r.startsWith("@@ ")?"diff-line-hunk":r.startsWith("diff --git")||r.startsWith("index ")||r.startsWith("new file mode")||r.startsWith("deleted file mode")?"diff-line-header":r.startsWith("+")?"diff-line-add":r.startsWith("-")?"diff-line-remove":""}function Xy(){const r=globalThis.crypto;return typeof r?.randomUUID=="function"?r.randomUUID():`lp-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}function xi(r){return r.replace(/_/g,"_​")}function Qy(r,N=Date.now()){const D=Date.parse(r);if(!Number.isFinite(D))return"刚刚";const h=Math.max(0,N-D),x=Math.floor(h/6e4);if(x<1)return"刚刚";if(x<60)return`${x} 分钟前`;const L=Math.floor(x/60);return L<24?`${L} 小时前`:`${Math.floor(L/24)} 天前`}function Zy(r){return r==="connected"?"positive":r==="closed"||r==="error"?"negative":"neutral"}function Vy(r,N){const D=r.trim();if(!D)return r;const h=N.map(L=>L.trim()).filter(Boolean).sort((L,X)=>X.length-L.length).find(L=>es(L,D));if(!h)return D;if(D===h)return"…/";const x=D.slice(h.length).replace(/^\/+/,"");return x?`…/${x}`:"…/"}function Pe(r){return r.replace(/\\/g,"/").replace(/\/+$/,"")||"/"}function es(r,N){return N===r||N.startsWith(`${r}/`)}function um(r,N){const D=Pe(r),h=Pe(N);return!es(D,h)||h===D?"":h.slice(D.length).replace(/^\/+/,"")}function as(r){return r.replace(/\\/g,"/").replace(/^\/+/,"").replace(/\/+$/,"")}function ls(r,N){const D=Pe(r),h=as(N);return h?Pe(`${D}/${h}`):D}function lm(r,N,D){const h=as(N),x=ls(r,h);if(!h)return x;const L=Pe(x);return D.some(dl=>Pe(dl.path)===L)?x:Ky(x)}function Ky(r){const N=r.replace(/[\\/]+$/,""),D=Math.max(N.lastIndexOf("/"),N.lastIndexOf("\\"));return D<=0?N.slice(0,1)||N:N.slice(0,D)}function tm(r,N){const D=Pe(r.trim()||"/"),h=N.map(O=>Pe(O.trim())).filter(Boolean).sort((O,A)=>A.length-O.length),x=h.find(O=>es(O,D)),L=h[0]??"/",X=x??L,dl=um(X,D);return{root:X,suffix:dl}}function Pf(r){return r?My:Ny}function em(r){return r.viewportWidth<=_y&&(r.coarsePointer||r.touchPoints>0)}function wy(r){switch(r){case"backspace":return"";case"tab":return" ";case"shiftTab":return"\x1B[Z";case"escape":return"\x1B";case"arrowUp":return"\x1B[A";case"arrowDown":return"\x1B[B";case"arrowRight":return"\x1B[C";case"arrowLeft":return"\x1B[D";case"ctrlC":return"";default:return""}}function Jy(r,N){return r.length===0?N?"\r":"":`${r}${N?"\r":""}`}function ky(r,N,D){return!r||N!=="connected"||D!=null&&D!=="connected"}Ey.createRoot(document.getElementById("root")).render(f.jsx(hy.StrictMode,{children:f.jsx(Uy,{})}));