loki-mode 6.71.1 → 6.72.0

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 (91) hide show
  1. package/README.md +9 -1
  2. package/SKILL.md +2 -2
  3. package/VERSION +1 -1
  4. package/autonomy/hooks/migration-hooks.sh +26 -0
  5. package/autonomy/loki +429 -92
  6. package/autonomy/run.sh +219 -38
  7. package/dashboard/__init__.py +1 -1
  8. package/dashboard/server.py +101 -19
  9. package/docs/INSTALLATION.md +20 -11
  10. package/docs/bug-fixes/agent-01-cli-fixes.md +101 -0
  11. package/docs/bug-fixes/agent-02-purplelab-fixes.md +88 -0
  12. package/docs/bug-fixes/agent-03-dashboard-fixes.md +119 -0
  13. package/docs/bug-fixes/agent-04-memory-fixes.md +105 -0
  14. package/docs/bug-fixes/agent-05-provider-fixes.md +86 -0
  15. package/docs/bug-fixes/agent-06-integration-fixes.md +101 -0
  16. package/docs/bug-fixes/agent-07-dash-run-fixes.md +101 -0
  17. package/docs/bug-fixes/agent-08-docker-fixes.md +164 -0
  18. package/docs/bug-fixes/agent-09-e2e-build-fixes.md +69 -0
  19. package/docs/bug-fixes/agent-10-e2e-fullstack-fixes.md +102 -0
  20. package/docs/bug-fixes/agent-11-e2e-session-fixes.md +70 -0
  21. package/docs/bug-fixes/agent-12-scenario-fixes.md +120 -0
  22. package/docs/bug-fixes/agent-13-enterprise-fixes.md +143 -0
  23. package/docs/bug-fixes/agent-14-uat-newuser-fixes.md +88 -0
  24. package/docs/bug-fixes/agent-15-uat-poweruser-fixes.md +132 -0
  25. package/docs/bug-fixes/agent-19-code-review.md +316 -0
  26. package/docs/bug-fixes/agent-20-architecture-review.md +331 -0
  27. package/docs/competitive/bolt-new-analysis.md +579 -0
  28. package/docs/competitive/emergence-others-analysis.md +605 -0
  29. package/docs/competitive/replit-lovable-analysis.md +622 -0
  30. package/docs/test-scenarios/edge-cases.md +813 -0
  31. package/docs/test-scenarios/enterprise-scenarios.md +732 -0
  32. package/mcp/__init__.py +1 -1
  33. package/mcp/server.py +49 -5
  34. package/memory/consolidation.py +33 -0
  35. package/memory/embeddings.py +10 -1
  36. package/memory/engine.py +83 -38
  37. package/memory/retrieval.py +36 -0
  38. package/memory/storage.py +56 -4
  39. package/memory/token_economics.py +14 -2
  40. package/memory/vector_index.py +36 -7
  41. package/package.json +1 -1
  42. package/providers/gemini.sh +89 -2
  43. package/templates/README.md +1 -1
  44. package/templates/cli-tool.md +30 -0
  45. package/templates/dashboard.md +4 -0
  46. package/templates/data-pipeline.md +4 -0
  47. package/templates/discord-bot.md +47 -0
  48. package/templates/game.md +4 -0
  49. package/templates/microservice.md +4 -0
  50. package/templates/npm-library.md +4 -0
  51. package/templates/rest-api-auth.md +50 -20
  52. package/templates/rest-api.md +15 -0
  53. package/templates/saas-starter.md +1 -1
  54. package/templates/slack-bot.md +36 -0
  55. package/templates/static-landing-page.md +9 -1
  56. package/templates/web-scraper.md +4 -0
  57. package/web-app/dist/assets/Badge-CeBkFjo6.js +1 -0
  58. package/web-app/dist/assets/Button-yuhqo8Fq.js +1 -0
  59. package/web-app/dist/assets/{Card-B1bV4syB.js → Card-BG17vsX0.js} +1 -1
  60. package/web-app/dist/assets/{HomePage-CZTV6Nea.js → HomePage-BMSQ7Apj.js} +3 -3
  61. package/web-app/dist/assets/{LoginPage-D4UdURJc.js → LoginPage-aH_6iolg.js} +1 -1
  62. package/web-app/dist/assets/{NotFoundPage-CCLSeL6j.js → NotFoundPage-Di8cNtB1.js} +1 -1
  63. package/web-app/dist/assets/ProjectPage-BtRssmw9.js +285 -0
  64. package/web-app/dist/assets/ProjectsPage-B-FTFagc.js +6 -0
  65. package/web-app/dist/assets/{SettingsPage-Xuv8EfAg.js → SettingsPage-DIJPBla4.js} +1 -1
  66. package/web-app/dist/assets/TeamsPage--19fNX7w.js +36 -0
  67. package/web-app/dist/assets/TemplatesPage-ChUQNOOv.js +11 -0
  68. package/web-app/dist/assets/TerminalOutput-Dwrzecyl.js +31 -0
  69. package/web-app/dist/assets/activity-BNRWeu9N.js +6 -0
  70. package/web-app/dist/assets/{arrow-left-CaGtolHc.js → arrow-left-Ce6g1_YE.js} +1 -1
  71. package/web-app/dist/assets/circle-alert-LIndawHL.js +11 -0
  72. package/web-app/dist/assets/clock-Bpj4VPlP.js +6 -0
  73. package/web-app/dist/assets/{external-link-CazyUyav.js → external-link-BhhdF0iQ.js} +1 -1
  74. package/web-app/dist/assets/folder-open-CM2LgfxI.js +11 -0
  75. package/web-app/dist/assets/index-8-KpWWq7.css +1 -0
  76. package/web-app/dist/assets/index-kPDW4e_b.js +236 -0
  77. package/web-app/dist/assets/lock-sAk3Xe54.js +16 -0
  78. package/web-app/dist/assets/search-CR-2i9by.js +6 -0
  79. package/web-app/dist/assets/server-DuFh4ymA.js +26 -0
  80. package/web-app/dist/assets/trash-2-BmkkT8V_.js +11 -0
  81. package/web-app/dist/index.html +2 -2
  82. package/web-app/server.py +1321 -53
  83. package/web-app/dist/assets/Badge-CBUx2PjL.js +0 -6
  84. package/web-app/dist/assets/Button-DsRiznlh.js +0 -21
  85. package/web-app/dist/assets/ProjectPage-D0w_X9tG.js +0 -237
  86. package/web-app/dist/assets/ProjectsPage-ByYxDlKC.js +0 -16
  87. package/web-app/dist/assets/TemplatesPage-BKWN07mc.js +0 -1
  88. package/web-app/dist/assets/TerminalOutput-Dj98V8Z-.js +0 -51
  89. package/web-app/dist/assets/clock-C_CDmobx.js +0 -11
  90. package/web-app/dist/assets/index-D452pFGl.css +0 -1
  91. package/web-app/dist/assets/index-Df4_kgLY.js +0 -196
@@ -0,0 +1,236 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomePage-BMSQ7Apj.js","assets/Badge-CeBkFjo6.js","assets/clock-Bpj4VPlP.js","assets/circle-alert-LIndawHL.js","assets/TerminalOutput-Dwrzecyl.js","assets/lock-sAk3Xe54.js","assets/ProjectPage-BtRssmw9.js","assets/Button-yuhqo8Fq.js","assets/server-DuFh4ymA.js","assets/activity-BNRWeu9N.js","assets/folder-open-CM2LgfxI.js","assets/external-link-BhhdF0iQ.js","assets/search-CR-2i9by.js","assets/trash-2-BmkkT8V_.js","assets/arrow-left-Ce6g1_YE.js","assets/ProjectPage-9CEnUXvW.css","assets/ProjectsPage-B-FTFagc.js","assets/Card-BG17vsX0.js","assets/TemplatesPage-ChUQNOOv.js","assets/SettingsPage-DIJPBla4.js","assets/TeamsPage--19fNX7w.js","assets/NotFoundPage-Di8cNtB1.js"])))=>i.map(i=>d[i]);
2
+ var b0=Object.defineProperty;var E0=(i,f,s)=>f in i?b0(i,f,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[f]=s;var Bn=(i,f,s)=>E0(i,typeof f!="symbol"?f+"":f,s);(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))o(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&o(v)}).observe(document,{childList:!0,subtree:!0});function s(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(d){if(d.ep)return;d.ep=!0;const h=s(d);fetch(d.href,h)}})();function x0(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Bf={exports:{}},Ln={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var ih;function T0(){if(ih)return Ln;ih=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function s(o,d,h){var v=null;if(h!==void 0&&(v=""+h),d.key!==void 0&&(v=""+d.key),"key"in d){h={};for(var x in d)x!=="key"&&(h[x]=d[x])}else h=d;return d=h.ref,{$$typeof:i,type:o,key:v,ref:d!==void 0?d:null,props:h}}return Ln.Fragment=f,Ln.jsx=s,Ln.jsxs=s,Ln}var ch;function _0(){return ch||(ch=1,Bf.exports=T0()),Bf.exports}var A=_0(),Lf={exports:{}},P={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var fh;function z0(){if(fh)return P;fh=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),v=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),H=Symbol.iterator;function X(p){return p===null||typeof p!="object"?null:(p=H&&p[H]||p["@@iterator"],typeof p=="function"?p:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,Q={};function q(p,j,Y){this.props=p,this.context=j,this.refs=Q,this.updater=Y||B}q.prototype.isReactComponent={},q.prototype.setState=function(p,j){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,j,"setState")},q.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function F(){}F.prototype=q.prototype;function K(p,j,Y){this.props=p,this.context=j,this.refs=Q,this.updater=Y||B}var vt=K.prototype=new F;vt.constructor=K,L(vt,q.prototype),vt.isPureReactComponent=!0;var ht=Array.isArray;function Tt(){}var I={H:null,A:null,T:null,S:null},Nt=Object.prototype.hasOwnProperty;function kt(p,j,Y){var V=Y.ref;return{$$typeof:i,type:p,key:j,ref:V!==void 0?V:null,props:Y}}function He(p,j){return kt(p.type,j,p.props)}function ge(p){return typeof p=="object"&&p!==null&&p.$$typeof===i}function $t(p){var j={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(Y){return j[Y]})}var Be=/\/+/g;function pe(p,j){return typeof p=="object"&&p!==null&&p.key!=null?$t(""+p.key):j.toString(36)}function Ht(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(Tt,Tt):(p.status="pending",p.then(function(j){p.status==="pending"&&(p.status="fulfilled",p.value=j)},function(j){p.status==="pending"&&(p.status="rejected",p.reason=j)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function N(p,j,Y,V,tt){var at=typeof p;(at==="undefined"||at==="boolean")&&(p=null);var dt=!1;if(p===null)dt=!0;else switch(at){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(p.$$typeof){case i:case f:dt=!0;break;case O:return dt=p._init,N(dt(p._payload),j,Y,V,tt)}}if(dt)return tt=tt(p),dt=V===""?"."+pe(p,0):V,ht(tt)?(Y="",dt!=null&&(Y=dt.replace(Be,"$&/")+"/"),N(tt,j,Y,"",function(Xa){return Xa})):tt!=null&&(ge(tt)&&(tt=He(tt,Y+(tt.key==null||p&&p.key===tt.key?"":(""+tt.key).replace(Be,"$&/")+"/")+dt)),j.push(tt)),1;dt=0;var Ft=V===""?".":V+":";if(ht(p))for(var Ut=0;Ut<p.length;Ut++)V=p[Ut],at=Ft+pe(V,Ut),dt+=N(V,j,Y,at,tt);else if(Ut=X(p),typeof Ut=="function")for(p=Ut.call(p),Ut=0;!(V=p.next()).done;)V=V.value,at=Ft+pe(V,Ut++),dt+=N(V,j,Y,at,tt);else if(at==="object"){if(typeof p.then=="function")return N(Ht(p),j,Y,V,tt);throw j=String(p),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return dt}function w(p,j,Y){if(p==null)return p;var V=[],tt=0;return N(p,V,"","",function(at){return j.call(Y,at,tt++)}),V}function W(p){if(p._status===-1){var j=p._result;j=j(),j.then(function(Y){(p._status===0||p._status===-1)&&(p._status=1,p._result=Y)},function(Y){(p._status===0||p._status===-1)&&(p._status=2,p._result=Y)}),p._status===-1&&(p._status=0,p._result=j)}if(p._status===1)return p._result.default;throw p._result}var gt=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},Et={map:w,forEach:function(p,j,Y){w(p,function(){j.apply(this,arguments)},Y)},count:function(p){var j=0;return w(p,function(){j++}),j},toArray:function(p){return w(p,function(j){return j})||[]},only:function(p){if(!ge(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return P.Activity=z,P.Children=Et,P.Component=q,P.Fragment=s,P.Profiler=d,P.PureComponent=K,P.StrictMode=o,P.Suspense=S,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,P.__COMPILER_RUNTIME={__proto__:null,c:function(p){return I.H.useMemoCache(p)}},P.cache=function(p){return function(){return p.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(p,j,Y){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var V=L({},p.props),tt=p.key;if(j!=null)for(at in j.key!==void 0&&(tt=""+j.key),j)!Nt.call(j,at)||at==="key"||at==="__self"||at==="__source"||at==="ref"&&j.ref===void 0||(V[at]=j[at]);var at=arguments.length-2;if(at===1)V.children=Y;else if(1<at){for(var dt=Array(at),Ft=0;Ft<at;Ft++)dt[Ft]=arguments[Ft+2];V.children=dt}return kt(p.type,tt,V)},P.createContext=function(p){return p={$$typeof:v,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:h,_context:p},p},P.createElement=function(p,j,Y){var V,tt={},at=null;if(j!=null)for(V in j.key!==void 0&&(at=""+j.key),j)Nt.call(j,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(tt[V]=j[V]);var dt=arguments.length-2;if(dt===1)tt.children=Y;else if(1<dt){for(var Ft=Array(dt),Ut=0;Ut<dt;Ut++)Ft[Ut]=arguments[Ut+2];tt.children=Ft}if(p&&p.defaultProps)for(V in dt=p.defaultProps,dt)tt[V]===void 0&&(tt[V]=dt[V]);return kt(p,at,tt)},P.createRef=function(){return{current:null}},P.forwardRef=function(p){return{$$typeof:x,render:p}},P.isValidElement=ge,P.lazy=function(p){return{$$typeof:O,_payload:{_status:-1,_result:p},_init:W}},P.memo=function(p,j){return{$$typeof:y,type:p,compare:j===void 0?null:j}},P.startTransition=function(p){var j=I.T,Y={};I.T=Y;try{var V=p(),tt=I.S;tt!==null&&tt(Y,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(Tt,gt)}catch(at){gt(at)}finally{j!==null&&Y.types!==null&&(j.types=Y.types),I.T=j}},P.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},P.use=function(p){return I.H.use(p)},P.useActionState=function(p,j,Y){return I.H.useActionState(p,j,Y)},P.useCallback=function(p,j){return I.H.useCallback(p,j)},P.useContext=function(p){return I.H.useContext(p)},P.useDebugValue=function(){},P.useDeferredValue=function(p,j){return I.H.useDeferredValue(p,j)},P.useEffect=function(p,j){return I.H.useEffect(p,j)},P.useEffectEvent=function(p){return I.H.useEffectEvent(p)},P.useId=function(){return I.H.useId()},P.useImperativeHandle=function(p,j,Y){return I.H.useImperativeHandle(p,j,Y)},P.useInsertionEffect=function(p,j){return I.H.useInsertionEffect(p,j)},P.useLayoutEffect=function(p,j){return I.H.useLayoutEffect(p,j)},P.useMemo=function(p,j){return I.H.useMemo(p,j)},P.useOptimistic=function(p,j){return I.H.useOptimistic(p,j)},P.useReducer=function(p,j,Y){return I.H.useReducer(p,j,Y)},P.useRef=function(p){return I.H.useRef(p)},P.useState=function(p){return I.H.useState(p)},P.useSyncExternalStore=function(p,j,Y){return I.H.useSyncExternalStore(p,j,Y)},P.useTransition=function(){return I.H.useTransition()},P.version="19.2.4",P}var oh;function $f(){return oh||(oh=1,Lf.exports=z0()),Lf.exports}var b=$f();const Yg=x0(b);var qf={exports:{}},qn={},wf={exports:{}},Yf={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var sh;function A0(){return sh||(sh=1,(function(i){function f(N,w){var W=N.length;N.push(w);t:for(;0<W;){var gt=W-1>>>1,Et=N[gt];if(0<d(Et,w))N[gt]=w,N[W]=Et,W=gt;else break t}}function s(N){return N.length===0?null:N[0]}function o(N){if(N.length===0)return null;var w=N[0],W=N.pop();if(W!==w){N[0]=W;t:for(var gt=0,Et=N.length,p=Et>>>1;gt<p;){var j=2*(gt+1)-1,Y=N[j],V=j+1,tt=N[V];if(0>d(Y,W))V<Et&&0>d(tt,Y)?(N[gt]=tt,N[V]=W,gt=V):(N[gt]=Y,N[j]=W,gt=j);else if(V<Et&&0>d(tt,W))N[gt]=tt,N[V]=W,gt=V;else break t}}return w}function d(N,w){var W=N.sortIndex-w.sortIndex;return W!==0?W:N.id-w.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var v=Date,x=v.now();i.unstable_now=function(){return v.now()-x}}var S=[],y=[],O=1,z=null,H=3,X=!1,B=!1,L=!1,Q=!1,q=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function vt(N){for(var w=s(y);w!==null;){if(w.callback===null)o(y);else if(w.startTime<=N)o(y),w.sortIndex=w.expirationTime,f(S,w);else break;w=s(y)}}function ht(N){if(L=!1,vt(N),!B)if(s(S)!==null)B=!0,Tt||(Tt=!0,$t());else{var w=s(y);w!==null&&Ht(ht,w.startTime-N)}}var Tt=!1,I=-1,Nt=5,kt=-1;function He(){return Q?!0:!(i.unstable_now()-kt<Nt)}function ge(){if(Q=!1,Tt){var N=i.unstable_now();kt=N;var w=!0;try{t:{B=!1,L&&(L=!1,F(I),I=-1),X=!0;var W=H;try{e:{for(vt(N),z=s(S);z!==null&&!(z.expirationTime>N&&He());){var gt=z.callback;if(typeof gt=="function"){z.callback=null,H=z.priorityLevel;var Et=gt(z.expirationTime<=N);if(N=i.unstable_now(),typeof Et=="function"){z.callback=Et,vt(N),w=!0;break e}z===s(S)&&o(S),vt(N)}else o(S);z=s(S)}if(z!==null)w=!0;else{var p=s(y);p!==null&&Ht(ht,p.startTime-N),w=!1}}break t}finally{z=null,H=W,X=!1}w=void 0}}finally{w?$t():Tt=!1}}}var $t;if(typeof K=="function")$t=function(){K(ge)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,pe=Be.port2;Be.port1.onmessage=ge,$t=function(){pe.postMessage(null)}}else $t=function(){q(ge,0)};function Ht(N,w){I=q(function(){N(i.unstable_now())},w)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(N){N.callback=null},i.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Nt=0<N?Math.floor(1e3/N):5},i.unstable_getCurrentPriorityLevel=function(){return H},i.unstable_next=function(N){switch(H){case 1:case 2:case 3:var w=3;break;default:w=H}var W=H;H=w;try{return N()}finally{H=W}},i.unstable_requestPaint=function(){Q=!0},i.unstable_runWithPriority=function(N,w){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var W=H;H=N;try{return w()}finally{H=W}},i.unstable_scheduleCallback=function(N,w,W){var gt=i.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?gt+W:gt):W=gt,N){case 1:var Et=-1;break;case 2:Et=250;break;case 5:Et=1073741823;break;case 4:Et=1e4;break;default:Et=5e3}return Et=W+Et,N={id:O++,callback:w,priorityLevel:N,startTime:W,expirationTime:Et,sortIndex:-1},W>gt?(N.sortIndex=W,f(y,N),s(S)===null&&N===s(y)&&(L?(F(I),I=-1):L=!0,Ht(ht,W-gt))):(N.sortIndex=Et,f(S,N),B||X||(B=!0,Tt||(Tt=!0,$t()))),N},i.unstable_shouldYield=He,i.unstable_wrapCallback=function(N){var w=H;return function(){var W=H;H=w;try{return N.apply(this,arguments)}finally{H=W}}}})(Yf)),Yf}var rh;function R0(){return rh||(rh=1,wf.exports=A0()),wf.exports}var Gf={exports:{}},Wt={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var dh;function O0(){if(dh)return Wt;dh=1;var i=$f();function f(S){var y="https://react.dev/errors/"+S;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var O=2;O<arguments.length;O++)y+="&args[]="+encodeURIComponent(arguments[O])}return"Minified React error #"+S+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(f(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(S,y,O){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:z==null?null:""+z,children:S,containerInfo:y,implementation:O}}var v=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(S,y){if(S==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Wt.createPortal=function(S,y){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(f(299));return h(S,y,null,O)},Wt.flushSync=function(S){var y=v.T,O=o.p;try{if(v.T=null,o.p=2,S)return S()}finally{v.T=y,o.p=O,o.d.f()}},Wt.preconnect=function(S,y){typeof S=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(S,y))},Wt.prefetchDNS=function(S){typeof S=="string"&&o.d.D(S)},Wt.preinit=function(S,y){if(typeof S=="string"&&y&&typeof y.as=="string"){var O=y.as,z=x(O,y.crossOrigin),H=typeof y.integrity=="string"?y.integrity:void 0,X=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;O==="style"?o.d.S(S,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:z,integrity:H,fetchPriority:X}):O==="script"&&o.d.X(S,{crossOrigin:z,integrity:H,fetchPriority:X,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Wt.preinitModule=function(S,y){if(typeof S=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var O=x(y.as,y.crossOrigin);o.d.M(S,{crossOrigin:O,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(S)},Wt.preload=function(S,y){if(typeof S=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var O=y.as,z=x(O,y.crossOrigin);o.d.L(S,O,{crossOrigin:z,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Wt.preloadModule=function(S,y){if(typeof S=="string")if(y){var O=x(y.as,y.crossOrigin);o.d.m(S,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:O,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(S)},Wt.requestFormReset=function(S){o.d.r(S)},Wt.unstable_batchedUpdates=function(S,y){return S(y)},Wt.useFormState=function(S,y,O){return v.H.useFormState(S,y,O)},Wt.useFormStatus=function(){return v.H.useHostTransitionStatus()},Wt.version="19.2.4",Wt}var hh;function C0(){if(hh)return Gf.exports;hh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Gf.exports=O0(),Gf.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var mh;function M0(){if(mh)return qn;mh=1;var i=R0(),f=$f(),s=C0();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function v(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function x(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function S(t){if(h(t)!==t)throw Error(o(188))}function y(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(o(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return S(n),t;if(u===a)return S(n),e;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,r=n.child;r;){if(r===l){c=!0,l=n,a=u;break}if(r===a){c=!0,a=n,l=u;break}r=r.sibling}if(!c){for(r=u.child;r;){if(r===l){c=!0,l=u,a=n;break}if(r===a){c=!0,a=u,l=n;break}r=r.sibling}if(!c)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?t:e}function O(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=O(t),e!==null)return e;t=t.sibling}return null}var z=Object.assign,H=Symbol.for("react.element"),X=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),K=Symbol.for("react.context"),vt=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),Tt=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),Nt=Symbol.for("react.lazy"),kt=Symbol.for("react.activity"),He=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function $t(t){return t===null||typeof t!="object"?null:(t=ge&&t[ge]||t["@@iterator"],typeof t=="function"?t:null)}var Be=Symbol.for("react.client.reference");function pe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Be?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case q:return"Profiler";case Q:return"StrictMode";case ht:return"Suspense";case Tt:return"SuspenseList";case kt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case B:return"Portal";case K:return t.displayName||"Context";case F:return(t._context.displayName||"Context")+".Consumer";case vt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case I:return e=t.displayName||null,e!==null?e:pe(t.type)||"Memo";case Nt:e=t._payload,t=t._init;try{return pe(t(e))}catch{}}return null}var Ht=Array.isArray,N=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},gt=[],Et=-1;function p(t){return{current:t}}function j(t){0>Et||(t.current=gt[Et],gt[Et]=null,Et--)}function Y(t,e){Et++,gt[Et]=t.current,t.current=e}var V=p(null),tt=p(null),at=p(null),dt=p(null);function Ft(t,e){switch(Y(at,e),Y(tt,t),Y(V,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Cd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Cd(e),t=Md(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(V),Y(V,t)}function Ut(){j(V),j(tt),j(at)}function Xa(t){t.memoizedState!==null&&Y(dt,t);var e=V.current,l=Md(e,t.type);e!==l&&(Y(tt,t),Y(V,l))}function Zn(t){tt.current===t&&(j(V),j(tt)),dt.current===t&&(j(dt),Un._currentValue=W)}var gi,no;function Hl(t){if(gi===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);gi=e&&e[1]||"",no=-1<l.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+gi+t+no}var pi=!1;function Si(t,e){if(!t||pi)return"";pi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(C){var R=C}Reflect.construct(t,[],D)}else{try{D.call()}catch(C){R=C}t.call(D.prototype)}}else{try{throw Error()}catch(C){R=C}(D=t())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(C){if(C&&R&&typeof C.stack=="string")return[C.stack,R.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(),c=u[0],r=u[1];if(c&&r){var m=c.split(`
45
+ `),_=r.split(`
46
+ `);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<_.length&&!_[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===_.length)for(a=m.length-1,n=_.length-1;1<=a&&0<=n&&m[a]!==_[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==_[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==_[n]){var M=`
47
+ `+m[a].replace(" at new "," at ");return t.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",t.displayName)),M}while(1<=a&&0<=n);break}}}finally{pi=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Hl(l):""}function Fh(t,e){switch(t.tag){case 26:case 27:case 5:return Hl(t.type);case 16:return Hl("Lazy");case 13:return t.child!==e&&e!==null?Hl("Suspense Fallback"):Hl("Suspense");case 19:return Hl("SuspenseList");case 0:case 15:return Si(t.type,!1);case 11:return Si(t.type.render,!1);case 1:return Si(t.type,!0);case 31:return Hl("Activity");default:return""}}function uo(t){try{var e="",l=null;do e+=Fh(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
48
+ Error generating stack: `+a.message+`
49
+ `+a.stack}}var bi=Object.prototype.hasOwnProperty,Ei=i.unstable_scheduleCallback,xi=i.unstable_cancelCallback,Ih=i.unstable_shouldYield,Ph=i.unstable_requestPaint,ie=i.unstable_now,tm=i.unstable_getCurrentPriorityLevel,io=i.unstable_ImmediatePriority,co=i.unstable_UserBlockingPriority,Vn=i.unstable_NormalPriority,em=i.unstable_LowPriority,fo=i.unstable_IdlePriority,lm=i.log,am=i.unstable_setDisableYieldValue,Qa=null,ce=null;function fl(t){if(typeof lm=="function"&&am(t),ce&&typeof ce.setStrictMode=="function")try{ce.setStrictMode(Qa,t)}catch{}}var fe=Math.clz32?Math.clz32:im,nm=Math.log,um=Math.LN2;function im(t){return t>>>=0,t===0?32:31-(nm(t)/um|0)|0}var Jn=256,Kn=262144,kn=4194304;function Bl(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function $n(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,c=t.pingedLanes;t=t.warmLanes;var r=a&134217727;return r!==0?(a=r&~u,a!==0?n=Bl(a):(c&=r,c!==0?n=Bl(c):l||(l=r&~t,l!==0&&(n=Bl(l))))):(r=a&~u,r!==0?n=Bl(r):c!==0?n=Bl(c):l||(l=a&~t,l!==0&&(n=Bl(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function Za(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function cm(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 oo(){var t=kn;return kn<<=1,(kn&62914560)===0&&(kn=4194304),t}function Ti(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Va(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function fm(t,e,l,a,n,u){var c=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var r=t.entanglements,m=t.expirationTimes,_=t.hiddenUpdates;for(l=c&~l;0<l;){var M=31-fe(l),D=1<<M;r[M]=0,m[M]=-1;var R=_[M];if(R!==null)for(_[M]=null,M=0;M<R.length;M++){var C=R[M];C!==null&&(C.lane&=-536870913)}l&=~D}a!==0&&so(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(c&~e))}function so(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-fe(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function ro(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-fe(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function ho(t,e){var l=e&-e;return l=(l&42)!==0?1:_i(l),(l&(t.suspendedLanes|e))!==0?0:l}function _i(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function zi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function mo(){var t=w.p;return t!==0?t:(t=window.event,t===void 0?32:Pd(t.type))}function yo(t,e){var l=w.p;try{return w.p=t,e()}finally{w.p=l}}var ol=Math.random().toString(36).slice(2),Qt="__reactFiber$"+ol,Pt="__reactProps$"+ol,ta="__reactContainer$"+ol,Ai="__reactEvents$"+ol,om="__reactListeners$"+ol,sm="__reactHandles$"+ol,vo="__reactResources$"+ol,Ja="__reactMarker$"+ol;function Ri(t){delete t[Qt],delete t[Pt],delete t[Ai],delete t[om],delete t[sm]}function ea(t){var e=t[Qt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[ta]||l[Qt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Ld(t);t!==null;){if(l=t[Qt])return l;t=Ld(t)}return e}t=l,l=t.parentNode}return null}function la(t){if(t=t[Qt]||t[ta]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ka(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function aa(t){var e=t[vo];return e||(e=t[vo]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Gt(t){t[Ja]=!0}var go=new Set,po={};function Ll(t,e){na(t,e),na(t+"Capture",e)}function na(t,e){for(po[t]=e,t=0;t<e.length;t++)go.add(e[t])}var rm=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]*$"),So={},bo={};function dm(t){return bi.call(bo,t)?!0:bi.call(So,t)?!1:rm.test(t)?bo[t]=!0:(So[t]=!0,!1)}function Wn(t,e,l){if(dm(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Fn(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Qe(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Se(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Eo(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function hm(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Oi(t){if(!t._valueTracker){var e=Eo(t)?"checked":"value";t._valueTracker=hm(t,e,""+t[e])}}function xo(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Eo(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function In(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var mm=/[\n"\\]/g;function be(t){return t.replace(mm,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ci(t,e,l,a,n,u,c,r){t.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.type=c:t.removeAttribute("type"),e!=null?c==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Se(e)):t.value!==""+Se(e)&&(t.value=""+Se(e)):c!=="submit"&&c!=="reset"||t.removeAttribute("value"),e!=null?Mi(t,c,Se(e)):l!=null?Mi(t,c,Se(l)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.name=""+Se(r):t.removeAttribute("name")}function To(t,e,l,a,n,u,c,r){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Oi(t);return}l=l!=null?""+Se(l):"",e=e!=null?""+Se(e):l,r||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=r?t.checked:!!a,t.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.name=c),Oi(t)}function Mi(t,e,l){e==="number"&&In(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function ua(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Se(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function _o(t,e,l){if(e!=null&&(e=""+Se(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Se(l):""}function zo(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ht(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Se(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Oi(t)}function ia(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var ym=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 Ao(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||ym.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Ro(t,e,l){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&Ao(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&Ao(t,u,e[u])}function Ni(t){if(t.indexOf("-")===-1)return!1;switch(t){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 vm=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"]]),gm=/^[\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 Pn(t){return gm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ze(){}var Ui=null;function Di(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ca=null,fa=null;function Oo(t){var e=la(t);if(e&&(t=e.stateNode)){var l=t[Pt]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ci(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+be(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[Pt]||null;if(!n)throw Error(o(90));Ci(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&xo(a)}break t;case"textarea":_o(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&ua(t,!!l.multiple,e,!1)}}}var ji=!1;function Co(t,e,l){if(ji)return t(e,l);ji=!0;try{var a=t(e);return a}finally{if(ji=!1,(ca!==null||fa!==null)&&(Yu(),ca&&(e=ca,t=fa,fa=ca=null,Oo(e),t)))for(e=0;e<t.length;e++)Oo(t[e])}}function ka(t,e){var l=t.stateNode;if(l===null)return null;var a=l[Pt]||null;if(a===null)return null;l=a[e];t:switch(e){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)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(o(231,e,typeof l));return l}var Ve=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hi=!1;if(Ve)try{var $a={};Object.defineProperty($a,"passive",{get:function(){Hi=!0}}),window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch{Hi=!1}var sl=null,Bi=null,tu=null;function Mo(){if(tu)return tu;var t,e=Bi,l=e.length,a,n="value"in sl?sl.value:sl.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var c=l-t;for(a=1;a<=c&&e[l-a]===n[u-a];a++);return tu=n.slice(t,1<a?1-a:void 0)}function eu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function lu(){return!0}function No(){return!1}function te(t){function e(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var r in t)t.hasOwnProperty(r)&&(l=t[r],this[r]=l?l(u):u[r]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?lu:No,this.isPropagationStopped=No,this}return z(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=lu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=lu)},persist:function(){},isPersistent:lu}),e}var ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},au=te(ql),Wa=z({},ql,{view:0,detail:0}),pm=te(Wa),Li,qi,Fa,nu=z({},Wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yi,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fa&&(Fa&&t.type==="mousemove"?(Li=t.screenX-Fa.screenX,qi=t.screenY-Fa.screenY):qi=Li=0,Fa=t),Li)},movementY:function(t){return"movementY"in t?t.movementY:qi}}),Uo=te(nu),Sm=z({},nu,{dataTransfer:0}),bm=te(Sm),Em=z({},Wa,{relatedTarget:0}),wi=te(Em),xm=z({},ql,{animationName:0,elapsedTime:0,pseudoElement:0}),Tm=te(xm),_m=z({},ql,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),zm=te(_m),Am=z({},ql,{data:0}),Do=te(Am),Rm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Om={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"},Cm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mm(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Cm[t])?!!e[t]:!1}function Yi(){return Mm}var Nm=z({},Wa,{key:function(t){if(t.key){var e=Rm[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=eu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Om[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yi,charCode:function(t){return t.type==="keypress"?eu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?eu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Um=te(Nm),Dm=z({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jo=te(Dm),jm=z({},Wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yi}),Hm=te(jm),Bm=z({},ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lm=te(Bm),qm=z({},nu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),wm=te(qm),Ym=z({},ql,{newState:0,oldState:0}),Gm=te(Ym),Xm=[9,13,27,32],Gi=Ve&&"CompositionEvent"in window,Ia=null;Ve&&"documentMode"in document&&(Ia=document.documentMode);var Qm=Ve&&"TextEvent"in window&&!Ia,Ho=Ve&&(!Gi||Ia&&8<Ia&&11>=Ia),Bo=" ",Lo=!1;function qo(t,e){switch(t){case"keyup":return Xm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var oa=!1;function Zm(t,e){switch(t){case"compositionend":return wo(e);case"keypress":return e.which!==32?null:(Lo=!0,Bo);case"textInput":return t=e.data,t===Bo&&Lo?null:t;default:return null}}function Vm(t,e){if(oa)return t==="compositionend"||!Gi&&qo(t,e)?(t=Mo(),tu=Bi=sl=null,oa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Ho&&e.locale!=="ko"?null:e.data;default:return null}}var Jm={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 Yo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Jm[t.type]:e==="textarea"}function Go(t,e,l,a){ca?fa?fa.push(a):fa=[a]:ca=a,e=Ku(e,"onChange"),0<e.length&&(l=new au("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var Pa=null,tn=null;function Km(t){Td(t,0)}function uu(t){var e=Ka(t);if(xo(e))return t}function Xo(t,e){if(t==="change")return e}var Qo=!1;if(Ve){var Xi;if(Ve){var Qi="oninput"in document;if(!Qi){var Zo=document.createElement("div");Zo.setAttribute("oninput","return;"),Qi=typeof Zo.oninput=="function"}Xi=Qi}else Xi=!1;Qo=Xi&&(!document.documentMode||9<document.documentMode)}function Vo(){Pa&&(Pa.detachEvent("onpropertychange",Jo),tn=Pa=null)}function Jo(t){if(t.propertyName==="value"&&uu(tn)){var e=[];Go(e,tn,t,Di(t)),Co(Km,e)}}function km(t,e,l){t==="focusin"?(Vo(),Pa=e,tn=l,Pa.attachEvent("onpropertychange",Jo)):t==="focusout"&&Vo()}function $m(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return uu(tn)}function Wm(t,e){if(t==="click")return uu(e)}function Fm(t,e){if(t==="input"||t==="change")return uu(e)}function Im(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var oe=typeof Object.is=="function"?Object.is:Im;function en(t,e){if(oe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!bi.call(e,n)||!oe(t[n],e[n]))return!1}return!0}function Ko(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ko(t,e){var l=Ko(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Ko(l)}}function $o(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?$o(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Wo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=In(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=In(t.document)}return e}function Zi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Pm=Ve&&"documentMode"in document&&11>=document.documentMode,sa=null,Vi=null,ln=null,Ji=!1;function Fo(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ji||sa==null||sa!==In(a)||(a=sa,"selectionStart"in a&&Zi(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}),ln&&en(ln,a)||(ln=a,a=Ku(Vi,"onSelect"),0<a.length&&(e=new au("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=sa)))}function wl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ra={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionrun:wl("Transition","TransitionRun"),transitionstart:wl("Transition","TransitionStart"),transitioncancel:wl("Transition","TransitionCancel"),transitionend:wl("Transition","TransitionEnd")},Ki={},Io={};Ve&&(Io=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function Yl(t){if(Ki[t])return Ki[t];if(!ra[t])return t;var e=ra[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Io)return Ki[t]=e[l];return t}var Po=Yl("animationend"),ts=Yl("animationiteration"),es=Yl("animationstart"),ty=Yl("transitionrun"),ey=Yl("transitionstart"),ly=Yl("transitioncancel"),ls=Yl("transitionend"),as=new Map,ki="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(" ");ki.push("scrollEnd");function Me(t,e){as.set(t,e),Ll(e,[t])}var iu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ee=[],da=0,$i=0;function cu(){for(var t=da,e=$i=da=0;e<t;){var l=Ee[e];Ee[e++]=null;var a=Ee[e];Ee[e++]=null;var n=Ee[e];Ee[e++]=null;var u=Ee[e];if(Ee[e++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&ns(l,n,u)}}function fu(t,e,l,a){Ee[da++]=t,Ee[da++]=e,Ee[da++]=l,Ee[da++]=a,$i|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Wi(t,e,l,a){return fu(t,e,l,a),ou(t)}function Gl(t,e){return fu(t,null,null,e),ou(t)}function ns(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&e!==null&&(n=31-fe(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function ou(t){if(50<zn)throw zn=0,uf=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ha={};function ay(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 se(t,e,l,a){return new ay(t,e,l,a)}function Fi(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Je(t,e){var l=t.alternate;return l===null?(l=se(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function us(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function su(t,e,l,a,n,u){var c=0;if(a=t,typeof t=="function")Fi(t)&&(c=1);else if(typeof t=="string")c=f0(t,l,V.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case kt:return t=se(31,l,e,n),t.elementType=kt,t.lanes=u,t;case L:return Xl(l.children,n,u,e);case Q:c=8,n|=24;break;case q:return t=se(12,l,e,n|2),t.elementType=q,t.lanes=u,t;case ht:return t=se(13,l,e,n),t.elementType=ht,t.lanes=u,t;case Tt:return t=se(19,l,e,n),t.elementType=Tt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:c=10;break t;case F:c=9;break t;case vt:c=11;break t;case I:c=14;break t;case Nt:c=16,a=null;break t}c=29,l=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=se(c,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function Xl(t,e,l,a){return t=se(7,t,a,e),t.lanes=l,t}function Ii(t,e,l){return t=se(6,t,null,e),t.lanes=l,t}function is(t){var e=se(18,null,null,0);return e.stateNode=t,e}function Pi(t,e,l){return e=se(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var cs=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var l=cs.get(t);return l!==void 0?l:(e={value:t,source:e,stack:uo(e)},cs.set(t,e),e)}return{value:t,source:e,stack:uo(e)}}var ma=[],ya=0,ru=null,an=0,Te=[],_e=0,rl=null,Le=1,qe="";function Ke(t,e){ma[ya++]=an,ma[ya++]=ru,ru=t,an=e}function fs(t,e,l){Te[_e++]=Le,Te[_e++]=qe,Te[_e++]=rl,rl=t;var a=Le;t=qe;var n=32-fe(a)-1;a&=~(1<<n),l+=1;var u=32-fe(e)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Le=1<<32-fe(e)+n|l<<n|a,qe=u+t}else Le=1<<u|l<<n|a,qe=t}function tc(t){t.return!==null&&(Ke(t,1),fs(t,1,0))}function ec(t){for(;t===ru;)ru=ma[--ya],ma[ya]=null,an=ma[--ya],ma[ya]=null;for(;t===rl;)rl=Te[--_e],Te[_e]=null,qe=Te[--_e],Te[_e]=null,Le=Te[--_e],Te[_e]=null}function os(t,e){Te[_e++]=Le,Te[_e++]=qe,Te[_e++]=rl,Le=e.id,qe=e.overflow,rl=t}var Zt=null,_t=null,ft=!1,dl=null,ze=!1,lc=Error(o(519));function hl(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nn(xe(e,t)),lc}function ss(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Qt]=t,e[Pt]=a,l){case"dialog":ut("cancel",e),ut("close",e);break;case"iframe":case"object":case"embed":ut("load",e);break;case"video":case"audio":for(l=0;l<Rn.length;l++)ut(Rn[l],e);break;case"source":ut("error",e);break;case"img":case"image":case"link":ut("error",e),ut("load",e);break;case"details":ut("toggle",e);break;case"input":ut("invalid",e),To(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ut("invalid",e);break;case"textarea":ut("invalid",e),zo(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Rd(e.textContent,l)?(a.popover!=null&&(ut("beforetoggle",e),ut("toggle",e)),a.onScroll!=null&&ut("scroll",e),a.onScrollEnd!=null&&ut("scrollend",e),a.onClick!=null&&(e.onclick=Ze),e=!0):e=!1,e||hl(t,!0)}function rs(t){for(Zt=t.return;Zt;)switch(Zt.tag){case 5:case 31:case 13:ze=!1;return;case 27:case 3:ze=!0;return;default:Zt=Zt.return}}function va(t){if(t!==Zt)return!1;if(!ft)return rs(t),ft=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Ef(t.type,t.memoizedProps)),l=!l),l&&_t&&hl(t),rs(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));_t=Bd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));_t=Bd(t)}else e===27?(e=_t,Rl(t.type)?(t=Af,Af=null,_t=t):_t=e):_t=Zt?Re(t.stateNode.nextSibling):null;return!0}function Ql(){_t=Zt=null,ft=!1}function ac(){var t=dl;return t!==null&&(ne===null?ne=t:ne.push.apply(ne,t),dl=null),t}function nn(t){dl===null?dl=[t]:dl.push(t)}var nc=p(null),Zl=null,ke=null;function ml(t,e,l){Y(nc,e._currentValue),e._currentValue=l}function $e(t){t._currentValue=nc.current,j(nc)}function uc(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function ic(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;t:for(;u!==null;){var r=u;u=n;for(var m=0;m<e.length;m++)if(r.context===e[m]){u.lanes|=l,r=u.alternate,r!==null&&(r.lanes|=l),uc(u.return,l,t),a||(c=null);break t}u=r.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(o(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),uc(c,l,t),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===t){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function ga(t,e,l,a){t=null;for(var n=e,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 c=n.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var r=n.type;oe(n.pendingProps.value,c.value)||(t!==null?t.push(r):t=[r])}}else if(n===dt.current){if(c=n.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Un):t=[Un])}n=n.return}t!==null&&ic(e,t,l,a),e.flags|=262144}function du(t){for(t=t.firstContext;t!==null;){if(!oe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Vl(t){Zl=t,ke=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Vt(t){return ds(Zl,t)}function hu(t,e){return Zl===null&&Vl(t),ds(t,e)}function ds(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},ke===null){if(t===null)throw Error(o(308));ke=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ke=ke.next=e;return l}var ny=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},uy=i.unstable_scheduleCallback,iy=i.unstable_NormalPriority,Bt={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cc(){return{controller:new ny,data:new Map,refCount:0}}function un(t){t.refCount--,t.refCount===0&&uy(iy,function(){t.controller.abort()})}var cn=null,fc=0,pa=0,Sa=null;function cy(t,e){if(cn===null){var l=cn=[];fc=0,pa=df(),Sa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return fc++,e.then(hs,hs),e}function hs(){if(--fc===0&&cn!==null){Sa!==null&&(Sa.status="fulfilled");var t=cn;cn=null,pa=0,Sa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function fy(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var ms=N.S;N.S=function(t,e){Fr=ie(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&cy(t,e),ms!==null&&ms(t,e)};var Jl=p(null);function oc(){var t=Jl.current;return t!==null?t:xt.pooledCache}function mu(t,e){e===null?Y(Jl,Jl.current):Y(Jl,e.pool)}function ys(){var t=oc();return t===null?null:{parent:Bt._currentValue,pool:t}}var ba=Error(o(460)),sc=Error(o(474)),yu=Error(o(542)),vu={then:function(){}};function vs(t){return t=t.status,t==="fulfilled"||t==="rejected"}function gs(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Ze,Ze),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ss(t),t;default:if(typeof e.status=="string")e.then(Ze,Ze);else{if(t=xt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ss(t),t}throw kl=e,ba}}function Kl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(kl=l,ba):l}}var kl=null;function ps(){if(kl===null)throw Error(o(459));var t=kl;return kl=null,t}function Ss(t){if(t===ba||t===yu)throw Error(o(483))}var Ea=null,fn=0;function gu(t){var e=fn;return fn+=1,Ea===null&&(Ea=[]),gs(Ea,t,e)}function on(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function pu(t,e){throw e.$$typeof===H?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function bs(t){function e(E,g){if(t){var T=E.deletions;T===null?(E.deletions=[g],E.flags|=16):T.push(g)}}function l(E,g){if(!t)return null;for(;g!==null;)e(E,g),g=g.sibling;return null}function a(E){for(var g=new Map;E!==null;)E.key!==null?g.set(E.key,E):g.set(E.index,E),E=E.sibling;return g}function n(E,g){return E=Je(E,g),E.index=0,E.sibling=null,E}function u(E,g,T){return E.index=T,t?(T=E.alternate,T!==null?(T=T.index,T<g?(E.flags|=67108866,g):T):(E.flags|=67108866,g)):(E.flags|=1048576,g)}function c(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function r(E,g,T,U){return g===null||g.tag!==6?(g=Ii(T,E.mode,U),g.return=E,g):(g=n(g,T),g.return=E,g)}function m(E,g,T,U){var k=T.type;return k===L?M(E,g,T.props.children,U,T.key):g!==null&&(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Nt&&Kl(k)===g.type)?(g=n(g,T.props),on(g,T),g.return=E,g):(g=su(T.type,T.key,T.props,null,E.mode,U),on(g,T),g.return=E,g)}function _(E,g,T,U){return g===null||g.tag!==4||g.stateNode.containerInfo!==T.containerInfo||g.stateNode.implementation!==T.implementation?(g=Pi(T,E.mode,U),g.return=E,g):(g=n(g,T.children||[]),g.return=E,g)}function M(E,g,T,U,k){return g===null||g.tag!==7?(g=Xl(T,E.mode,U,k),g.return=E,g):(g=n(g,T),g.return=E,g)}function D(E,g,T){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Ii(""+g,E.mode,T),g.return=E,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case X:return T=su(g.type,g.key,g.props,null,E.mode,T),on(T,g),T.return=E,T;case B:return g=Pi(g,E.mode,T),g.return=E,g;case Nt:return g=Kl(g),D(E,g,T)}if(Ht(g)||$t(g))return g=Xl(g,E.mode,T,null),g.return=E,g;if(typeof g.then=="function")return D(E,gu(g),T);if(g.$$typeof===K)return D(E,hu(E,g),T);pu(E,g)}return null}function R(E,g,T,U){var k=g!==null?g.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return k!==null?null:r(E,g,""+T,U);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case X:return T.key===k?m(E,g,T,U):null;case B:return T.key===k?_(E,g,T,U):null;case Nt:return T=Kl(T),R(E,g,T,U)}if(Ht(T)||$t(T))return k!==null?null:M(E,g,T,U,null);if(typeof T.then=="function")return R(E,g,gu(T),U);if(T.$$typeof===K)return R(E,g,hu(E,T),U);pu(E,T)}return null}function C(E,g,T,U,k){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return E=E.get(T)||null,r(g,E,""+U,k);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case X:return E=E.get(U.key===null?T:U.key)||null,m(g,E,U,k);case B:return E=E.get(U.key===null?T:U.key)||null,_(g,E,U,k);case Nt:return U=Kl(U),C(E,g,T,U,k)}if(Ht(U)||$t(U))return E=E.get(T)||null,M(g,E,U,k,null);if(typeof U.then=="function")return C(E,g,T,gu(U),k);if(U.$$typeof===K)return C(E,g,T,hu(g,U),k);pu(g,U)}return null}function Z(E,g,T,U){for(var k=null,ot=null,J=g,lt=g=0,ct=null;J!==null&&lt<T.length;lt++){J.index>lt?(ct=J,J=null):ct=J.sibling;var st=R(E,J,T[lt],U);if(st===null){J===null&&(J=ct);break}t&&J&&st.alternate===null&&e(E,J),g=u(st,g,lt),ot===null?k=st:ot.sibling=st,ot=st,J=ct}if(lt===T.length)return l(E,J),ft&&Ke(E,lt),k;if(J===null){for(;lt<T.length;lt++)J=D(E,T[lt],U),J!==null&&(g=u(J,g,lt),ot===null?k=J:ot.sibling=J,ot=J);return ft&&Ke(E,lt),k}for(J=a(J);lt<T.length;lt++)ct=C(J,E,lt,T[lt],U),ct!==null&&(t&&ct.alternate!==null&&J.delete(ct.key===null?lt:ct.key),g=u(ct,g,lt),ot===null?k=ct:ot.sibling=ct,ot=ct);return t&&J.forEach(function(Ul){return e(E,Ul)}),ft&&Ke(E,lt),k}function $(E,g,T,U){if(T==null)throw Error(o(151));for(var k=null,ot=null,J=g,lt=g=0,ct=null,st=T.next();J!==null&&!st.done;lt++,st=T.next()){J.index>lt?(ct=J,J=null):ct=J.sibling;var Ul=R(E,J,st.value,U);if(Ul===null){J===null&&(J=ct);break}t&&J&&Ul.alternate===null&&e(E,J),g=u(Ul,g,lt),ot===null?k=Ul:ot.sibling=Ul,ot=Ul,J=ct}if(st.done)return l(E,J),ft&&Ke(E,lt),k;if(J===null){for(;!st.done;lt++,st=T.next())st=D(E,st.value,U),st!==null&&(g=u(st,g,lt),ot===null?k=st:ot.sibling=st,ot=st);return ft&&Ke(E,lt),k}for(J=a(J);!st.done;lt++,st=T.next())st=C(J,E,lt,st.value,U),st!==null&&(t&&st.alternate!==null&&J.delete(st.key===null?lt:st.key),g=u(st,g,lt),ot===null?k=st:ot.sibling=st,ot=st);return t&&J.forEach(function(S0){return e(E,S0)}),ft&&Ke(E,lt),k}function bt(E,g,T,U){if(typeof T=="object"&&T!==null&&T.type===L&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case X:t:{for(var k=T.key;g!==null;){if(g.key===k){if(k=T.type,k===L){if(g.tag===7){l(E,g.sibling),U=n(g,T.props.children),U.return=E,E=U;break t}}else if(g.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Nt&&Kl(k)===g.type){l(E,g.sibling),U=n(g,T.props),on(U,T),U.return=E,E=U;break t}l(E,g);break}else e(E,g);g=g.sibling}T.type===L?(U=Xl(T.props.children,E.mode,U,T.key),U.return=E,E=U):(U=su(T.type,T.key,T.props,null,E.mode,U),on(U,T),U.return=E,E=U)}return c(E);case B:t:{for(k=T.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===T.containerInfo&&g.stateNode.implementation===T.implementation){l(E,g.sibling),U=n(g,T.children||[]),U.return=E,E=U;break t}else{l(E,g);break}else e(E,g);g=g.sibling}U=Pi(T,E.mode,U),U.return=E,E=U}return c(E);case Nt:return T=Kl(T),bt(E,g,T,U)}if(Ht(T))return Z(E,g,T,U);if($t(T)){if(k=$t(T),typeof k!="function")throw Error(o(150));return T=k.call(T),$(E,g,T,U)}if(typeof T.then=="function")return bt(E,g,gu(T),U);if(T.$$typeof===K)return bt(E,g,hu(E,T),U);pu(E,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,g!==null&&g.tag===6?(l(E,g.sibling),U=n(g,T),U.return=E,E=U):(l(E,g),U=Ii(T,E.mode,U),U.return=E,E=U),c(E)):l(E,g)}return function(E,g,T,U){try{fn=0;var k=bt(E,g,T,U);return Ea=null,k}catch(J){if(J===ba||J===yu)throw J;var ot=se(29,J,null,E.mode);return ot.lanes=U,ot.return=E,ot}finally{}}}var $l=bs(!0),Es=bs(!1),yl=!1;function rc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function vl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function gl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(rt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=ou(t),ns(t,null,l),e}return fu(t,a,e,l),ou(t)}function sn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,ro(t,l)}}function hc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var mc=!1;function rn(){if(mc){var t=Sa;if(t!==null)throw t}}function dn(t,e,l,a){mc=!1;var n=t.updateQueue;yl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,r=n.shared.pending;if(r!==null){n.shared.pending=null;var m=r,_=m.next;m.next=null,c===null?u=_:c.next=_,c=m;var M=t.alternate;M!==null&&(M=M.updateQueue,r=M.lastBaseUpdate,r!==c&&(r===null?M.firstBaseUpdate=_:r.next=_,M.lastBaseUpdate=m))}if(u!==null){var D=n.baseState;c=0,M=_=m=null,r=u;do{var R=r.lane&-536870913,C=R!==r.lane;if(C?(it&R)===R:(a&R)===R){R!==0&&R===pa&&(mc=!0),M!==null&&(M=M.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});t:{var Z=t,$=r;R=e;var bt=l;switch($.tag){case 1:if(Z=$.payload,typeof Z=="function"){D=Z.call(bt,D,R);break t}D=Z;break t;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=$.payload,R=typeof Z=="function"?Z.call(bt,D,R):Z,R==null)break t;D=z({},D,R);break t;case 2:yl=!0}}R=r.callback,R!==null&&(t.flags|=64,C&&(t.flags|=8192),C=n.callbacks,C===null?n.callbacks=[R]:C.push(R))}else C={lane:R,tag:r.tag,payload:r.payload,callback:r.callback,next:null},M===null?(_=M=C,m=D):M=M.next=C,c|=R;if(r=r.next,r===null){if(r=n.shared.pending,r===null)break;C=r,r=C.next,C.next=null,n.lastBaseUpdate=C,n.shared.pending=null}}while(!0);M===null&&(m=D),n.baseState=m,n.firstBaseUpdate=_,n.lastBaseUpdate=M,u===null&&(n.shared.lanes=0),xl|=c,t.lanes=c,t.memoizedState=D}}function xs(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Ts(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)xs(l[t],e)}var xa=p(null),Su=p(0);function _s(t,e){t=nl,Y(Su,t),Y(xa,e),nl=t|e.baseLanes}function yc(){Y(Su,nl),Y(xa,xa.current)}function vc(){nl=Su.current,j(xa),j(Su)}var re=p(null),Ae=null;function pl(t){var e=t.alternate;Y(Dt,Dt.current&1),Y(re,t),Ae===null&&(e===null||xa.current!==null||e.memoizedState!==null)&&(Ae=t)}function gc(t){Y(Dt,Dt.current),Y(re,t),Ae===null&&(Ae=t)}function zs(t){t.tag===22?(Y(Dt,Dt.current),Y(re,t),Ae===null&&(Ae=t)):Sl()}function Sl(){Y(Dt,Dt.current),Y(re,re.current)}function de(t){j(re),Ae===t&&(Ae=null),j(Dt)}var Dt=p(0);function bu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||_f(l)||zf(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var We=0,et=null,pt=null,Lt=null,Eu=!1,Ta=!1,Wl=!1,xu=0,hn=0,_a=null,oy=0;function Ct(){throw Error(o(321))}function pc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!oe(t[l],e[l]))return!1;return!0}function Sc(t,e,l,a,n,u){return We=u,et=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,N.H=t===null||t.memoizedState===null?fr:jc,Wl=!1,u=l(a,n),Wl=!1,Ta&&(u=Rs(e,l,a,n)),As(t),u}function As(t){N.H=vn;var e=pt!==null&&pt.next!==null;if(We=0,Lt=pt=et=null,Eu=!1,hn=0,_a=null,e)throw Error(o(300));t===null||qt||(t=t.dependencies,t!==null&&du(t)&&(qt=!0))}function Rs(t,e,l,a){et=t;var n=0;do{if(Ta&&(_a=null),hn=0,Ta=!1,25<=n)throw Error(o(301));if(n+=1,Lt=pt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}N.H=or,u=e(l,a)}while(Ta);return u}function sy(){var t=N.H,e=t.useState()[0];return e=typeof e.then=="function"?mn(e):e,t=t.useState()[0],(pt!==null?pt.memoizedState:null)!==t&&(et.flags|=1024),e}function bc(){var t=xu!==0;return xu=0,t}function Ec(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function xc(t){if(Eu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Eu=!1}We=0,Lt=pt=et=null,Ta=!1,hn=xu=0,_a=null}function It(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?et.memoizedState=Lt=t:Lt=Lt.next=t,Lt}function jt(){if(pt===null){var t=et.alternate;t=t!==null?t.memoizedState:null}else t=pt.next;var e=Lt===null?et.memoizedState:Lt.next;if(e!==null)Lt=e,pt=t;else{if(t===null)throw et.alternate===null?Error(o(467)):Error(o(310));pt=t,t={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},Lt===null?et.memoizedState=Lt=t:Lt=Lt.next=t}return Lt}function Tu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mn(t){var e=hn;return hn+=1,_a===null&&(_a=[]),t=gs(_a,t,e),e=et,(Lt===null?e.memoizedState:Lt.next)===null&&(e=e.alternate,N.H=e===null||e.memoizedState===null?fr:jc),t}function _u(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return mn(t);if(t.$$typeof===K)return Vt(t)}throw Error(o(438,String(t)))}function Tc(t){var e=null,l=et.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=et.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Tu(),et.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=He;return e.index++,l}function Fe(t,e){return typeof e=="function"?e(t):e}function zu(t){var e=jt();return _c(e,pt,t)}function _c(t,e,l){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var r=c=null,m=null,_=e,M=!1;do{var D=_.lane&-536870913;if(D!==_.lane?(it&D)===D:(We&D)===D){var R=_.revertLane;if(R===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),D===pa&&(M=!0);else if((We&R)===R){_=_.next,R===pa&&(M=!0);continue}else D={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(r=m=D,c=u):m=m.next=D,et.lanes|=R,xl|=R;D=_.action,Wl&&l(u,D),u=_.hasEagerState?_.eagerState:l(u,D)}else R={lane:D,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(r=m=R,c=u):m=m.next=R,et.lanes|=D,xl|=D;_=_.next}while(_!==null&&_!==e);if(m===null?c=u:m.next=r,!oe(u,t.memoizedState)&&(qt=!0,M&&(l=Sa,l!==null)))throw l;t.memoizedState=u,t.baseState=c,t.baseQueue=m,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function zc(t){var e=jt(),l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=t(u,c.action),c=c.next;while(c!==n);oe(u,e.memoizedState)||(qt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function Os(t,e,l){var a=et,n=jt(),u=ft;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=e();var c=!oe((pt||n).memoizedState,l);if(c&&(n.memoizedState=l,qt=!0),n=n.queue,Oc(Ns.bind(null,a,n,t),[t]),n.getSnapshot!==e||c||Lt!==null&&Lt.memoizedState.tag&1){if(a.flags|=2048,za(9,{destroy:void 0},Ms.bind(null,a,n,l,e),null),xt===null)throw Error(o(349));u||(We&127)!==0||Cs(a,e,l)}return l}function Cs(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=et.updateQueue,e===null?(e=Tu(),et.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Ms(t,e,l,a){e.value=l,e.getSnapshot=a,Us(e)&&Ds(t)}function Ns(t,e,l){return l(function(){Us(e)&&Ds(t)})}function Us(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!oe(t,l)}catch{return!0}}function Ds(t){var e=Gl(t,2);e!==null&&ue(e,t,2)}function Ac(t){var e=It();if(typeof t=="function"){var l=t;if(t=l(),Wl){fl(!0);try{l()}finally{fl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fe,lastRenderedState:t},e}function js(t,e,l,a){return t.baseState=l,_c(t,pt,typeof a=="function"?a:Fe)}function ry(t,e,l,a,n){if(Ou(t))throw Error(o(485));if(t=e.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};N.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,Hs(e,u)):(u.next=l.next,e.pending=l.next=u)}}function Hs(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=N.T,c={};N.T=c;try{var r=l(n,a),m=N.S;m!==null&&m(c,r),Bs(t,e,r)}catch(_){Rc(t,e,_)}finally{u!==null&&c.types!==null&&(u.types=c.types),N.T=u}}else try{u=l(n,a),Bs(t,e,u)}catch(_){Rc(t,e,_)}}function Bs(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Ls(t,e,a)},function(a){return Rc(t,e,a)}):Ls(t,e,l)}function Ls(t,e,l){e.status="fulfilled",e.value=l,qs(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Hs(t,l)))}function Rc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,qs(e),e=e.next;while(e!==a)}t.action=null}function qs(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ws(t,e){return e}function Ys(t,e){if(ft){var l=xt.formState;if(l!==null){t:{var a=et;if(ft){if(_t){e:{for(var n=_t,u=ze;n.nodeType!==8;){if(!u){n=null;break e}if(n=Re(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){_t=Re(n.nextSibling),a=n.data==="F!";break t}}hl(a)}a=!1}a&&(e=l[0])}}return l=It(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:e},l.queue=a,l=ur.bind(null,et,a),a.dispatch=l,a=Ac(!1),u=Dc.bind(null,et,!1,a.queue),a=It(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=ry.bind(null,et,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function Gs(t){var e=jt();return Xs(e,pt,t)}function Xs(t,e,l){if(e=_c(t,e,ws)[0],t=zu(Fe)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=mn(e)}catch(c){throw c===ba?yu:c}else a=e;e=jt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(et.flags|=2048,za(9,{destroy:void 0},dy.bind(null,n,l),null)),[a,u,t]}function dy(t,e){t.action=e}function Qs(t){var e=jt(),l=pt;if(l!==null)return Xs(e,l,t);jt(),e=e.memoizedState,l=jt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function za(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=et.updateQueue,e===null&&(e=Tu(),et.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Zs(){return jt().memoizedState}function Au(t,e,l,a){var n=It();et.flags|=t,n.memoizedState=za(1|e,{destroy:void 0},l,a===void 0?null:a)}function Ru(t,e,l,a){var n=jt();a=a===void 0?null:a;var u=n.memoizedState.inst;pt!==null&&a!==null&&pc(a,pt.memoizedState.deps)?n.memoizedState=za(e,u,l,a):(et.flags|=t,n.memoizedState=za(1|e,u,l,a))}function Vs(t,e){Au(8390656,8,t,e)}function Oc(t,e){Ru(2048,8,t,e)}function hy(t){et.flags|=4;var e=et.updateQueue;if(e===null)e=Tu(),et.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Js(t){var e=jt().memoizedState;return hy({ref:e,nextImpl:t}),function(){if((rt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Ks(t,e){return Ru(4,2,t,e)}function ks(t,e){return Ru(4,4,t,e)}function $s(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Ws(t,e,l){l=l!=null?l.concat([t]):null,Ru(4,4,$s.bind(null,e,t),l)}function Cc(){}function Fs(t,e){var l=jt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&pc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Is(t,e){var l=jt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&pc(e,a[1]))return a[0];if(a=t(),Wl){fl(!0);try{t()}finally{fl(!1)}}return l.memoizedState=[a,e],a}function Mc(t,e,l){return l===void 0||(We&1073741824)!==0&&(it&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Pr(),et.lanes|=t,xl|=t,l)}function Ps(t,e,l,a){return oe(l,e)?l:xa.current!==null?(t=Mc(t,l,a),oe(t,e)||(qt=!0),t):(We&42)===0||(We&1073741824)!==0&&(it&261930)===0?(qt=!0,t.memoizedState=l):(t=Pr(),et.lanes|=t,xl|=t,e)}function tr(t,e,l,a,n){var u=w.p;w.p=u!==0&&8>u?u:8;var c=N.T,r={};N.T=r,Dc(t,!1,e,l);try{var m=n(),_=N.S;if(_!==null&&_(r,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var M=fy(m,a);yn(t,e,M,ye(t))}else yn(t,e,a,ye(t))}catch(D){yn(t,e,{then:function(){},status:"rejected",reason:D},ye())}finally{w.p=u,c!==null&&r.types!==null&&(c.types=r.types),N.T=c}}function my(){}function Nc(t,e,l,a){if(t.tag!==5)throw Error(o(476));var n=er(t).queue;tr(t,n,e,W,l===null?my:function(){return lr(t),l(a)})}function er(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fe,lastRenderedState:W},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fe,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function lr(t){var e=er(t);e.next===null&&(e=t.alternate.memoizedState),yn(t,e.next.queue,{},ye())}function Uc(){return Vt(Un)}function ar(){return jt().memoizedState}function nr(){return jt().memoizedState}function yy(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=ye();t=vl(l);var a=gl(e,t,l);a!==null&&(ue(a,e,l),sn(a,e,l)),e={cache:cc()},t.payload=e;return}e=e.return}}function vy(t,e,l){var a=ye();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ou(t)?ir(e,l):(l=Wi(t,e,l,a),l!==null&&(ue(l,t,a),cr(l,e,a)))}function ur(t,e,l){var a=ye();yn(t,e,l,a)}function yn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ou(t))ir(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var c=e.lastRenderedState,r=u(c,l);if(n.hasEagerState=!0,n.eagerState=r,oe(r,c))return fu(t,e,n,0),xt===null&&cu(),!1}catch{}finally{}if(l=Wi(t,e,n,a),l!==null)return ue(l,t,a),cr(l,e,a),!0}return!1}function Dc(t,e,l,a){if(a={lane:2,revertLane:df(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ou(t)){if(e)throw Error(o(479))}else e=Wi(t,l,a,2),e!==null&&ue(e,t,2)}function Ou(t){var e=t.alternate;return t===et||e!==null&&e===et}function ir(t,e){Ta=Eu=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function cr(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,ro(t,l)}}var vn={readContext:Vt,use:_u,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};vn.useEffectEvent=Ct;var fr={readContext:Vt,use:_u,useCallback:function(t,e){return It().memoizedState=[t,e===void 0?null:e],t},useContext:Vt,useEffect:Vs,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Au(4194308,4,$s.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Au(4194308,4,t,e)},useInsertionEffect:function(t,e){Au(4,2,t,e)},useMemo:function(t,e){var l=It();e=e===void 0?null:e;var a=t();if(Wl){fl(!0);try{t()}finally{fl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=It();if(l!==void 0){var n=l(e);if(Wl){fl(!0);try{l(e)}finally{fl(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=vy.bind(null,et,t),[a.memoizedState,t]},useRef:function(t){var e=It();return t={current:t},e.memoizedState=t},useState:function(t){t=Ac(t);var e=t.queue,l=ur.bind(null,et,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Cc,useDeferredValue:function(t,e){var l=It();return Mc(l,t,e)},useTransition:function(){var t=Ac(!1);return t=tr.bind(null,et,t.queue,!0,!1),It().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=et,n=It();if(ft){if(l===void 0)throw Error(o(407));l=l()}else{if(l=e(),xt===null)throw Error(o(349));(it&127)!==0||Cs(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,Vs(Ns.bind(null,a,u,t),[t]),a.flags|=2048,za(9,{destroy:void 0},Ms.bind(null,a,u,l,e),null),l},useId:function(){var t=It(),e=xt.identifierPrefix;if(ft){var l=qe,a=Le;l=(a&~(1<<32-fe(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=xu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=oy++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Uc,useFormState:Ys,useActionState:Ys,useOptimistic:function(t){var e=It();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Dc.bind(null,et,!0,l),l.dispatch=e,[t,e]},useMemoCache:Tc,useCacheRefresh:function(){return It().memoizedState=yy.bind(null,et)},useEffectEvent:function(t){var e=It(),l={impl:t};return e.memoizedState=l,function(){if((rt&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},jc={readContext:Vt,use:_u,useCallback:Fs,useContext:Vt,useEffect:Oc,useImperativeHandle:Ws,useInsertionEffect:Ks,useLayoutEffect:ks,useMemo:Is,useReducer:zu,useRef:Zs,useState:function(){return zu(Fe)},useDebugValue:Cc,useDeferredValue:function(t,e){var l=jt();return Ps(l,pt.memoizedState,t,e)},useTransition:function(){var t=zu(Fe)[0],e=jt().memoizedState;return[typeof t=="boolean"?t:mn(t),e]},useSyncExternalStore:Os,useId:ar,useHostTransitionStatus:Uc,useFormState:Gs,useActionState:Gs,useOptimistic:function(t,e){var l=jt();return js(l,pt,t,e)},useMemoCache:Tc,useCacheRefresh:nr};jc.useEffectEvent=Js;var or={readContext:Vt,use:_u,useCallback:Fs,useContext:Vt,useEffect:Oc,useImperativeHandle:Ws,useInsertionEffect:Ks,useLayoutEffect:ks,useMemo:Is,useReducer:zc,useRef:Zs,useState:function(){return zc(Fe)},useDebugValue:Cc,useDeferredValue:function(t,e){var l=jt();return pt===null?Mc(l,t,e):Ps(l,pt.memoizedState,t,e)},useTransition:function(){var t=zc(Fe)[0],e=jt().memoizedState;return[typeof t=="boolean"?t:mn(t),e]},useSyncExternalStore:Os,useId:ar,useHostTransitionStatus:Uc,useFormState:Qs,useActionState:Qs,useOptimistic:function(t,e){var l=jt();return pt!==null?js(l,pt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Tc,useCacheRefresh:nr};or.useEffectEvent=Js;function Hc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:z({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Bc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=ye(),n=vl(a);n.payload=e,l!=null&&(n.callback=l),e=gl(t,n,a),e!==null&&(ue(e,t,a),sn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=ye(),n=vl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=gl(t,n,a),e!==null&&(ue(e,t,a),sn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=ye(),a=vl(l);a.tag=2,e!=null&&(a.callback=e),e=gl(t,a,l),e!==null&&(ue(e,t,l),sn(e,t,l))}};function sr(t,e,l,a,n,u,c){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,c):e.prototype&&e.prototype.isPureReactComponent?!en(l,a)||!en(n,u):!0}function rr(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Bc.enqueueReplaceState(e,e.state,null)}function Fl(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=z({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function dr(t){iu(t)}function hr(t){console.error(t)}function mr(t){iu(t)}function Cu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function yr(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Lc(t,e,l){return l=vl(l),l.tag=3,l.payload={element:null},l.callback=function(){Cu(t,e)},l}function vr(t){return t=vl(t),t.tag=3,t}function gr(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){yr(e,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(t.callback=function(){yr(e,l,a),typeof n!="function"&&(Tl===null?Tl=new Set([this]):Tl.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})})}function gy(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&ga(e,l,n,!0),l=re.current,l!==null){switch(l.tag){case 31:case 13:return Ae===null?Gu():l.alternate===null&&Mt===0&&(Mt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===vu?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),of(t,a,n)),!1;case 22:return l.flags|=65536,a===vu?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),of(t,a,n)),!1}throw Error(o(435,l.tag))}return of(t,a,n),Gu(),!1}if(ft)return e=re.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==lc&&(t=Error(o(422),{cause:a}),nn(xe(t,l)))):(a!==lc&&(e=Error(o(423),{cause:a}),nn(xe(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=xe(a,l),n=Lc(t.stateNode,a,n),hc(t,n),Mt!==4&&(Mt=2)),!1;var u=Error(o(520),{cause:a});if(u=xe(u,l),_n===null?_n=[u]:_n.push(u),Mt!==4&&(Mt=2),e===null)return!0;a=xe(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Lc(l.stateNode,a,t),hc(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Tl===null||!Tl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=vr(n),gr(n,t,l,a),hc(l,n),!1}l=l.return}while(l!==null);return!1}var qc=Error(o(461)),qt=!1;function Jt(t,e,l,a){e.child=t===null?Es(e,null,l,a):$l(e,t.child,l,a)}function pr(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var c={};for(var r in a)r!=="ref"&&(c[r]=a[r])}else c=a;return Vl(e),a=Sc(t,e,l,c,u,n),r=bc(),t!==null&&!qt?(Ec(t,e,n),Ie(t,e,n)):(ft&&r&&tc(e),e.flags|=1,Jt(t,e,a,n),e.child)}function Sr(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!Fi(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,br(t,e,u,a,n)):(t=su(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Jc(t,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:en,l(c,a)&&t.ref===e.ref)return Ie(t,e,n)}return e.flags|=1,t=Je(u,a),t.ref=e.ref,t.return=e,e.child=t}function br(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(en(u,a)&&t.ref===e.ref)if(qt=!1,e.pendingProps=a=u,Jc(t,n))(t.flags&131072)!==0&&(qt=!0);else return e.lanes=t.lanes,Ie(t,e,n)}return wc(t,e,l,a,n)}function Er(t,e,l,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return xr(t,e,u,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&mu(e,u!==null?u.cachePool:null),u!==null?_s(e,u):yc(),zs(e);else return a=e.lanes=536870912,xr(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(mu(e,u.cachePool),_s(e,u),Sl(),e.memoizedState=null):(t!==null&&mu(e,null),yc(),Sl());return Jt(t,e,n,l),e.child}function gn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function xr(t,e,l,a,n){var u=oc();return u=u===null?null:{parent:Bt._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&mu(e,null),yc(),zs(e),t!==null&&ga(t,e,a,!0),e.childLanes=n,null}function Mu(t,e){return e=Uu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Tr(t,e,l){return $l(e,t.child,null,l),t=Mu(e,e.pendingProps),t.flags|=2,de(e),e.memoizedState=null,t}function py(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(ft){if(a.mode==="hidden")return t=Mu(e,a),e.lanes=536870912,gn(null,t);if(gc(e),(t=_t)?(t=Hd(t,ze),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:rl!==null?{id:Le,overflow:qe}:null,retryLane:536870912,hydrationErrors:null},l=is(t),l.return=e,e.child=l,Zt=e,_t=null)):t=null,t===null)throw hl(e);return e.lanes=536870912,null}return Mu(e,a)}var u=t.memoizedState;if(u!==null){var c=u.dehydrated;if(gc(e),n)if(e.flags&256)e.flags&=-257,e=Tr(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(qt||ga(t,e,l,!1),n=(l&t.childLanes)!==0,qt||n){if(a=xt,a!==null&&(c=ho(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Gl(t,c),ue(a,t,c),qc;Gu(),e=Tr(t,e,l)}else t=u.treeContext,_t=Re(c.nextSibling),Zt=e,ft=!0,dl=null,ze=!1,t!==null&&os(e,t),e=Mu(e,a),e.flags|=4096;return e}return t=Je(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Nu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function wc(t,e,l,a,n){return Vl(e),l=Sc(t,e,l,a,void 0,n),a=bc(),t!==null&&!qt?(Ec(t,e,n),Ie(t,e,n)):(ft&&a&&tc(e),e.flags|=1,Jt(t,e,l,n),e.child)}function _r(t,e,l,a,n,u){return Vl(e),e.updateQueue=null,l=Rs(e,a,l,n),As(t),a=bc(),t!==null&&!qt?(Ec(t,e,u),Ie(t,e,u)):(ft&&a&&tc(e),e.flags|=1,Jt(t,e,l,u),e.child)}function zr(t,e,l,a,n){if(Vl(e),e.stateNode===null){var u=ha,c=l.contextType;typeof c=="object"&&c!==null&&(u=Vt(c)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Bc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},rc(e),c=l.contextType,u.context=typeof c=="object"&&c!==null?Vt(c):ha,u.state=e.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Hc(e,l,c,a),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Bc.enqueueReplaceState(u,u.state,null),dn(e,a,u,n),rn(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var r=e.memoizedProps,m=Fl(l,r);u.props=m;var _=u.context,M=l.contextType;c=ha,typeof M=="object"&&M!==null&&(c=Vt(M));var D=l.getDerivedStateFromProps;M=typeof D=="function"||typeof u.getSnapshotBeforeUpdate=="function",r=e.pendingProps!==r,M||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r||_!==c)&&rr(e,u,a,c),yl=!1;var R=e.memoizedState;u.state=R,dn(e,a,u,n),rn(),_=e.memoizedState,r||R!==_||yl?(typeof D=="function"&&(Hc(e,l,D,a),_=e.memoizedState),(m=yl||sr(e,l,m,a,R,_,c))?(M||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"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=_),u.props=a,u.state=_,u.context=c,a=m):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,dc(t,e),c=e.memoizedProps,M=Fl(l,c),u.props=M,D=e.pendingProps,R=u.context,_=l.contextType,m=ha,typeof _=="object"&&_!==null&&(m=Vt(_)),r=l.getDerivedStateFromProps,(_=typeof r=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==D||R!==m)&&rr(e,u,a,m),yl=!1,R=e.memoizedState,u.state=R,dn(e,a,u,n),rn();var C=e.memoizedState;c!==D||R!==C||yl||t!==null&&t.dependencies!==null&&du(t.dependencies)?(typeof r=="function"&&(Hc(e,l,r,a),C=e.memoizedState),(M=yl||sr(e,l,M,a,R,C,m)||t!==null&&t.dependencies!==null&&du(t.dependencies))?(_||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,C,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,C,m)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=C),u.props=a,u.state=C,u.context=m,a=M):(typeof u.componentDidUpdate!="function"||c===t.memoizedProps&&R===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===t.memoizedProps&&R===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,Nu(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=$l(e,t.child,null,n),e.child=$l(e,null,l,n)):Jt(t,e,l,n),e.memoizedState=u.state,t=e.child):t=Ie(t,e,n),t}function Ar(t,e,l,a){return Ql(),e.flags|=256,Jt(t,e,l,a),e.child}var Yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(t){return{baseLanes:t,cachePool:ys()}}function Xc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=me),t}function Rr(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,c;if((c=u)||(c=t!==null&&t.memoizedState===null?!1:(Dt.current&2)!==0),c&&(n=!0,e.flags&=-129),c=(e.flags&32)!==0,e.flags&=-33,t===null){if(ft){if(n?pl(e):Sl(),(t=_t)?(t=Hd(t,ze),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:rl!==null?{id:Le,overflow:qe}:null,retryLane:536870912,hydrationErrors:null},l=is(t),l.return=e,e.child=l,Zt=e,_t=null)):t=null,t===null)throw hl(e);return zf(t)?e.lanes=32:e.lanes=536870912,null}var r=a.children;return a=a.fallback,n?(Sl(),n=e.mode,r=Uu({mode:"hidden",children:r},n),a=Xl(a,n,l,null),r.return=e,a.return=e,r.sibling=a,e.child=r,a=e.child,a.memoizedState=Gc(l),a.childLanes=Xc(t,c,l),e.memoizedState=Yc,gn(null,a)):(pl(e),Qc(e,r))}var m=t.memoizedState;if(m!==null&&(r=m.dehydrated,r!==null)){if(u)e.flags&256?(pl(e),e.flags&=-257,e=Zc(t,e,l)):e.memoizedState!==null?(Sl(),e.child=t.child,e.flags|=128,e=null):(Sl(),r=a.fallback,n=e.mode,a=Uu({mode:"visible",children:a.children},n),r=Xl(r,n,l,null),r.flags|=2,a.return=e,r.return=e,a.sibling=r,e.child=a,$l(e,t.child,null,l),a=e.child,a.memoizedState=Gc(l),a.childLanes=Xc(t,c,l),e.memoizedState=Yc,e=gn(null,a));else if(pl(e),zf(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var _=c.dgst;c=_,a=Error(o(419)),a.stack="",a.digest=c,nn({value:a,source:null,stack:null}),e=Zc(t,e,l)}else if(qt||ga(t,e,l,!1),c=(l&t.childLanes)!==0,qt||c){if(c=xt,c!==null&&(a=ho(c,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,Gl(t,a),ue(c,t,a),qc;_f(r)||Gu(),e=Zc(t,e,l)}else _f(r)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,_t=Re(r.nextSibling),Zt=e,ft=!0,dl=null,ze=!1,t!==null&&os(e,t),e=Qc(e,a.children),e.flags|=4096);return e}return n?(Sl(),r=a.fallback,n=e.mode,m=t.child,_=m.sibling,a=Je(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,_!==null?r=Je(_,r):(r=Xl(r,n,l,null),r.flags|=2),r.return=e,a.return=e,a.sibling=r,e.child=a,gn(null,a),a=e.child,r=t.child.memoizedState,r===null?r=Gc(l):(n=r.cachePool,n!==null?(m=Bt._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=ys(),r={baseLanes:r.baseLanes|l,cachePool:n}),a.memoizedState=r,a.childLanes=Xc(t,c,l),e.memoizedState=Yc,gn(t.child,a)):(pl(e),l=t.child,t=l.sibling,l=Je(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(c=e.deletions,c===null?(e.deletions=[t],e.flags|=16):c.push(t)),e.child=l,e.memoizedState=null,l)}function Qc(t,e){return e=Uu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Uu(t,e){return t=se(22,t,null,e),t.lanes=0,t}function Zc(t,e,l){return $l(e,t.child,null,l),t=Qc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Or(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),uc(t.return,e,l)}function Vc(t,e,l,a,n,u){var c=t.memoizedState;c===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=e,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Cr(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=Dt.current,r=(c&2)!==0;if(r?(c=c&1|2,e.flags|=128):c&=1,Y(Dt,c),Jt(t,e,a,l),a=ft?an:0,!r&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Or(t,l,e);else if(t.tag===19)Or(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&bu(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Vc(e,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&bu(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Vc(e,!0,l,null,u,a);break;case"together":Vc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Ie(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),xl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(ga(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,l=Je(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Je(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Jc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&du(t)))}function Sy(t,e,l){switch(e.tag){case 3:Ft(e,e.stateNode.containerInfo),ml(e,Bt,t.memoizedState.cache),Ql();break;case 27:case 5:Xa(e);break;case 4:Ft(e,e.stateNode.containerInfo);break;case 10:ml(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,gc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(pl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Rr(t,e,l):(pl(e),t=Ie(t,e,l),t!==null?t.sibling:null);pl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(ga(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return Cr(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Y(Dt,Dt.current),a)break;return null;case 22:return e.lanes=0,Er(t,e,l,e.pendingProps);case 24:ml(e,Bt,t.memoizedState.cache)}return Ie(t,e,l)}function Mr(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)qt=!0;else{if(!Jc(t,l)&&(e.flags&128)===0)return qt=!1,Sy(t,e,l);qt=(t.flags&131072)!==0}else qt=!1,ft&&(e.flags&1048576)!==0&&fs(e,an,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Kl(e.elementType),e.type=t,typeof t=="function")Fi(t)?(a=Fl(t,a),e.tag=1,e=zr(null,e,t,a,l)):(e.tag=0,e=wc(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===vt){e.tag=11,e=pr(null,e,t,a,l);break t}else if(n===I){e.tag=14,e=Sr(null,e,t,a,l);break t}}throw e=pe(t)||t,Error(o(306,e,""))}}return e;case 0:return wc(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Fl(a,e.pendingProps),zr(t,e,a,n,l);case 3:t:{if(Ft(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,dc(t,e),dn(e,a,null,l);var c=e.memoizedState;if(a=c.cache,ml(e,Bt,a),a!==u.cache&&ic(e,[Bt],l,!0),rn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Ar(t,e,a,l);break t}else if(a!==n){n=xe(Error(o(424)),e),nn(n),e=Ar(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(_t=Re(t.firstChild),Zt=e,ft=!0,dl=null,ze=!0,l=Es(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ql(),a===n){e=Ie(t,e,l);break t}Jt(t,e,a,l)}e=e.child}return e;case 26:return Nu(t,e),t===null?(l=Gd(e.type,null,e.pendingProps,null))?e.memoizedState=l:ft||(l=e.type,t=e.pendingProps,a=ku(at.current).createElement(l),a[Qt]=e,a[Pt]=t,Kt(a,l,t),Gt(a),e.stateNode=a):e.memoizedState=Gd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Xa(e),t===null&&ft&&(a=e.stateNode=qd(e.type,e.pendingProps,at.current),Zt=e,ze=!0,n=_t,Rl(e.type)?(Af=n,_t=Re(a.firstChild)):_t=n),Jt(t,e,e.pendingProps.children,l),Nu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&ft&&((n=a=_t)&&(a=$y(a,e.type,e.pendingProps,ze),a!==null?(e.stateNode=a,Zt=e,_t=Re(a.firstChild),ze=!1,n=!0):n=!1),n||hl(e)),Xa(e),n=e.type,u=e.pendingProps,c=t!==null?t.memoizedProps:null,a=u.children,Ef(n,u)?a=null:c!==null&&Ef(n,c)&&(e.flags|=32),e.memoizedState!==null&&(n=Sc(t,e,sy,null,null,l),Un._currentValue=n),Nu(t,e),Jt(t,e,a,l),e.child;case 6:return t===null&&ft&&((t=l=_t)&&(l=Wy(l,e.pendingProps,ze),l!==null?(e.stateNode=l,Zt=e,_t=null,t=!0):t=!1),t||hl(e)),null;case 13:return Rr(t,e,l);case 4:return Ft(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=$l(e,null,a,l):Jt(t,e,a,l),e.child;case 11:return pr(t,e,e.type,e.pendingProps,l);case 7:return Jt(t,e,e.pendingProps,l),e.child;case 8:return Jt(t,e,e.pendingProps.children,l),e.child;case 12:return Jt(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,ml(e,e.type,a.value),Jt(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,Vl(e),n=Vt(n),a=a(n),e.flags|=1,Jt(t,e,a,l),e.child;case 14:return Sr(t,e,e.type,e.pendingProps,l);case 15:return br(t,e,e.type,e.pendingProps,l);case 19:return Cr(t,e,l);case 31:return py(t,e,l);case 22:return Er(t,e,l,e.pendingProps);case 24:return Vl(e),a=Vt(Bt),t===null?(n=oc(),n===null&&(n=xt,u=cc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},rc(e),ml(e,Bt,n)):((t.lanes&l)!==0&&(dc(t,e),dn(e,null,null,l),rn()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),ml(e,Bt,a)):(a=u.cache,ml(e,Bt,a),a!==n.cache&&ic(e,[Bt],l,!0))),Jt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function Pe(t){t.flags|=4}function Kc(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(ad())t.flags|=8192;else throw kl=vu,sc}else t.flags&=-16777217}function Nr(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Jd(e))if(ad())t.flags|=8192;else throw kl=vu,sc}function Du(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?oo():536870912,t.lanes|=e,Ca|=e)}function pn(t,e){if(!ft)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function zt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function by(t,e,l){var a=e.pendingProps;switch(ec(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(e),null;case 1:return zt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),$e(Bt),Ut(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(va(e)?Pe(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,ac())),zt(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(Pe(e),u!==null?(zt(e),Nr(e,u)):(zt(e),Kc(e,n,null,a,l))):u?u!==t.memoizedState?(Pe(e),zt(e),Nr(e,u)):(zt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Pe(e),zt(e),Kc(e,n,t,a,l)),null;case 27:if(Zn(e),l=at.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Pe(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return zt(e),null}t=V.current,va(e)?ss(e):(t=qd(n,a,l),e.stateNode=t,Pe(e))}return zt(e),null;case 5:if(Zn(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Pe(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return zt(e),null}if(u=V.current,va(e))ss(e);else{var c=ku(at.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Qt]=e,u[Pt]=a;t:for(c=e.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break t;for(;c.sibling===null;){if(c.return===null||c.return===e)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}e.stateNode=u;t:switch(Kt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Pe(e)}}return zt(e),Kc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Pe(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=at.current,va(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Zt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Qt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Rd(t.nodeValue,l)),t||hl(e,!0)}else t=ku(t).createTextNode(a),t[Qt]=e,e.stateNode=t}return zt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=va(e),l!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Qt]=e}else Ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),t=!1}else l=ac(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(de(e),e):(de(e),null);if((e.flags&128)!==0)throw Error(o(558))}return zt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=va(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(o(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Qt]=e}else Ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;zt(e),n=!1}else n=ac(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(de(e),e):(de(e),null)}return de(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.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)),l!==t&&l&&(e.child.flags|=8192),Du(e,e.updateQueue),zt(e),null);case 4:return Ut(),t===null&&vf(e.stateNode.containerInfo),zt(e),null;case 10:return $e(e.type),zt(e),null;case 19:if(j(Dt),a=e.memoizedState,a===null)return zt(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)pn(a,!1);else{if(Mt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=bu(t),u!==null){for(e.flags|=128,pn(a,!1),t=u.updateQueue,e.updateQueue=t,Du(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)us(l,t),l=l.sibling;return Y(Dt,Dt.current&1|2),ft&&Ke(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ie()>qu&&(e.flags|=128,n=!0,pn(a,!1),e.lanes=4194304)}else{if(!n)if(t=bu(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Du(e,t),pn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ft)return zt(e),null}else 2*ie()-a.renderingStartTime>qu&&l!==536870912&&(e.flags|=128,n=!0,pn(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ie(),t.sibling=null,l=Dt.current,Y(Dt,n?l&1|2:l&1),ft&&Ke(e,a.treeForkCount),t):(zt(e),null);case 22:case 23:return de(e),vc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(zt(e),e.subtreeFlags&6&&(e.flags|=8192)):zt(e),l=e.updateQueue,l!==null&&Du(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&j(Jl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),$e(Bt),zt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Ey(t,e){switch(ec(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return $e(Bt),Ut(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Zn(e),null;case 31:if(e.memoizedState!==null){if(de(e),e.alternate===null)throw Error(o(340));Ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(de(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Dt),null;case 4:return Ut(),null;case 10:return $e(e.type),null;case 22:case 23:return de(e),vc(),t!==null&&j(Jl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return $e(Bt),null;case 25:return null;default:return null}}function Ur(t,e){switch(ec(e),e.tag){case 3:$e(Bt),Ut();break;case 26:case 27:case 5:Zn(e);break;case 4:Ut();break;case 31:e.memoizedState!==null&&de(e);break;case 13:de(e);break;case 19:j(Dt);break;case 10:$e(e.type);break;case 22:case 23:de(e),vc(),t!==null&&j(Jl);break;case 24:$e(Bt)}}function Sn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(r){yt(e,e.return,r)}}function bl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var c=a.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,n=e;var m=l,_=r;try{_()}catch(M){yt(n,m,M)}}}a=a.next}while(a!==u)}}catch(M){yt(e,e.return,M)}}function Dr(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Ts(e,l)}catch(a){yt(t,t.return,a)}}}function jr(t,e,l){l.props=Fl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){yt(t,e,a)}}function bn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){yt(t,e,n)}}function we(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){yt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){yt(t,e,n)}else l.current=null}function Hr(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){yt(t,t.return,n)}}function kc(t,e,l){try{var a=t.stateNode;Qy(a,t.type,l,e),a[Pt]=e}catch(n){yt(t,t.return,n)}}function Br(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Rl(t.type)||t.tag===4}function $c(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Br(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Rl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Wc(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Ze));else if(a!==4&&(a===27&&Rl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Wc(t,e,l),t=t.sibling;t!==null;)Wc(t,e,l),t=t.sibling}function ju(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Rl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(ju(t,e,l),t=t.sibling;t!==null;)ju(t,e,l),t=t.sibling}function Lr(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Kt(e,a,l),e[Qt]=t,e[Pt]=l}catch(u){yt(t,t.return,u)}}var tl=!1,wt=!1,Fc=!1,qr=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function xy(t,e){if(t=t.containerInfo,Sf=ei,t=Wo(t),Zi(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var c=0,r=-1,m=-1,_=0,M=0,D=t,R=null;e:for(;;){for(var C;D!==l||n!==0&&D.nodeType!==3||(r=c+n),D!==u||a!==0&&D.nodeType!==3||(m=c+a),D.nodeType===3&&(c+=D.nodeValue.length),(C=D.firstChild)!==null;)R=D,D=C;for(;;){if(D===t)break e;if(R===l&&++_===n&&(r=c),R===u&&++M===a&&(m=c),(C=D.nextSibling)!==null)break;D=R,R=D.parentNode}D=C}l=r===-1||m===-1?null:{start:r,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(bf={focusedElem:t,selectionRange:l},ei=!1,Xt=e;Xt!==null;)if(e=Xt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Xt=t;else for(;Xt!==null;){switch(e=Xt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var Z=Fl(l.type,n);t=a.getSnapshotBeforeUpdate(Z,u),a.__reactInternalSnapshotBeforeUpdate=t}catch($){yt(l,l.return,$)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Tf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Tf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Xt=t;break}Xt=e.return}}function wr(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ll(t,l),a&4&&Sn(5,l);break;case 1:if(ll(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(c){yt(l,l.return,c)}else{var n=Fl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(c){yt(l,l.return,c)}}a&64&&Dr(l),a&512&&bn(l,l.return);break;case 3:if(ll(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Ts(t,e)}catch(c){yt(l,l.return,c)}}break;case 27:e===null&&a&4&&Lr(l);case 26:case 5:ll(t,l),e===null&&a&4&&Hr(l),a&512&&bn(l,l.return);break;case 12:ll(t,l);break;case 31:ll(t,l),a&4&&Xr(t,l);break;case 13:ll(t,l),a&4&&Qr(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Ny.bind(null,l),Fy(t,l))));break;case 22:if(a=l.memoizedState!==null||tl,!a){e=e!==null&&e.memoizedState!==null||wt,n=tl;var u=wt;tl=a,(wt=e)&&!u?al(t,l,(l.subtreeFlags&8772)!==0):ll(t,l),tl=n,wt=u}break;case 30:break;default:ll(t,l)}}function Yr(t){var e=t.alternate;e!==null&&(t.alternate=null,Yr(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ri(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var At=null,ee=!1;function el(t,e,l){for(l=l.child;l!==null;)Gr(t,e,l),l=l.sibling}function Gr(t,e,l){if(ce&&typeof ce.onCommitFiberUnmount=="function")try{ce.onCommitFiberUnmount(Qa,l)}catch{}switch(l.tag){case 26:wt||we(l,e),el(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:wt||we(l,e);var a=At,n=ee;Rl(l.type)&&(At=l.stateNode,ee=!1),el(t,e,l),Cn(l.stateNode),At=a,ee=n;break;case 5:wt||we(l,e);case 6:if(a=At,n=ee,At=null,el(t,e,l),At=a,ee=n,At!==null)if(ee)try{(At.nodeType===9?At.body:At.nodeName==="HTML"?At.ownerDocument.body:At).removeChild(l.stateNode)}catch(u){yt(l,e,u)}else try{At.removeChild(l.stateNode)}catch(u){yt(l,e,u)}break;case 18:At!==null&&(ee?(t=At,Dd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),La(t)):Dd(At,l.stateNode));break;case 4:a=At,n=ee,At=l.stateNode.containerInfo,ee=!0,el(t,e,l),At=a,ee=n;break;case 0:case 11:case 14:case 15:bl(2,l,e),wt||bl(4,l,e),el(t,e,l);break;case 1:wt||(we(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&jr(l,e,a)),el(t,e,l);break;case 21:el(t,e,l);break;case 22:wt=(a=wt)||l.memoizedState!==null,el(t,e,l),wt=a;break;default:el(t,e,l)}}function Xr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{La(t)}catch(l){yt(e,e.return,l)}}}function Qr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{La(t)}catch(l){yt(e,e.return,l)}}function Ty(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new qr),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new qr),e;default:throw Error(o(435,t.tag))}}function Hu(t,e){var l=Ty(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=Uy.bind(null,t,a);a.then(n,n)}})}function le(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,c=e,r=c;t:for(;r!==null;){switch(r.tag){case 27:if(Rl(r.type)){At=r.stateNode,ee=!1;break t}break;case 5:At=r.stateNode,ee=!1;break t;case 3:case 4:At=r.stateNode.containerInfo,ee=!0;break t}r=r.return}if(At===null)throw Error(o(160));Gr(u,c,n),At=null,ee=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Zr(e,t),e=e.sibling}var Ne=null;function Zr(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:le(e,t),ae(t),a&4&&(bl(3,t,t.return),Sn(3,t),bl(5,t,t.return));break;case 1:le(e,t),ae(t),a&512&&(wt||l===null||we(l,l.return)),a&64&&tl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ne;if(le(e,t),ae(t),a&512&&(wt||l===null||we(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ja]||u[Qt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Kt(u,a,l),u[Qt]=t,Gt(u),a=u;break t;case"link":var c=Zd("link","href",n).get(a+(l.href||""));if(c){for(var r=0;r<c.length;r++)if(u=c[r],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(r,1);break e}}u=n.createElement(a),Kt(u,a,l),n.head.appendChild(u);break;case"meta":if(c=Zd("meta","content",n).get(a+(l.content||""))){for(r=0;r<c.length;r++)if(u=c[r],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(r,1);break e}}u=n.createElement(a),Kt(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Qt]=t,Gt(u),a=u}t.stateNode=a}else Vd(n,t.type,t.stateNode);else t.stateNode=Qd(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Vd(n,t.type,t.stateNode):Qd(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&kc(t,t.memoizedProps,l.memoizedProps)}break;case 27:le(e,t),ae(t),a&512&&(wt||l===null||we(l,l.return)),l!==null&&a&4&&kc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(le(e,t),ae(t),a&512&&(wt||l===null||we(l,l.return)),t.flags&32){n=t.stateNode;try{ia(n,"")}catch(Z){yt(t,t.return,Z)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,kc(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Fc=!0);break;case 6:if(le(e,t),ae(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(Z){yt(t,t.return,Z)}}break;case 3:if(Fu=null,n=Ne,Ne=$u(e.containerInfo),le(e,t),Ne=n,ae(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{La(e.containerInfo)}catch(Z){yt(t,t.return,Z)}Fc&&(Fc=!1,Vr(t));break;case 4:a=Ne,Ne=$u(t.stateNode.containerInfo),le(e,t),ae(t),Ne=a;break;case 12:le(e,t),ae(t);break;case 31:le(e,t),ae(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Hu(t,a)));break;case 13:le(e,t),ae(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Lu=ie()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Hu(t,a)));break;case 22:n=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,_=tl,M=wt;if(tl=_||n,wt=M||m,le(e,t),wt=M,tl=_,ae(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||m||tl||wt||Il(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(u=m.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=m.stateNode;var D=m.memoizedProps.style,R=D!=null&&D.hasOwnProperty("display")?D.display:null;r.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(Z){yt(m,m.return,Z)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(Z){yt(m,m.return,Z)}}}else if(e.tag===18){if(l===null){m=e;try{var C=m.stateNode;n?jd(C,!0):jd(m.stateNode,!1)}catch(Z){yt(m,m.return,Z)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Hu(t,l))));break;case 19:le(e,t),ae(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Hu(t,a)));break;case 30:break;case 21:break;default:le(e,t),ae(t)}}function ae(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Br(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=$c(t);ju(t,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ia(c,""),l.flags&=-33);var r=$c(t);ju(t,r,c);break;case 3:case 4:var m=l.stateNode.containerInfo,_=$c(t);Wc(t,_,m);break;default:throw Error(o(161))}}catch(M){yt(t,t.return,M)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Vr(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Vr(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ll(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)wr(t,e.alternate,e),e=e.sibling}function Il(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:bl(4,e,e.return),Il(e);break;case 1:we(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&jr(e,e.return,l),Il(e);break;case 27:Cn(e.stateNode);case 26:case 5:we(e,e.return),Il(e);break;case 22:e.memoizedState===null&&Il(e);break;case 30:Il(e);break;default:Il(e)}t=t.sibling}}function al(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,c=u.flags;switch(u.tag){case 0:case 11:case 15:al(n,u,l),Sn(4,u);break;case 1:if(al(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(_){yt(a,a.return,_)}if(a=u,n=a.updateQueue,n!==null){var r=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)xs(m[n],r)}catch(_){yt(a,a.return,_)}}l&&c&64&&Dr(u),bn(u,u.return);break;case 27:Lr(u);case 26:case 5:al(n,u,l),l&&a===null&&c&4&&Hr(u),bn(u,u.return);break;case 12:al(n,u,l);break;case 31:al(n,u,l),l&&c&4&&Xr(n,u);break;case 13:al(n,u,l),l&&c&4&&Qr(n,u);break;case 22:u.memoizedState===null&&al(n,u,l),bn(u,u.return);break;case 30:break;default:al(n,u,l)}e=e.sibling}}function Ic(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&un(l))}function Pc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&un(t))}function Ue(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jr(t,e,l,a),e=e.sibling}function Jr(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ue(t,e,l,a),n&2048&&Sn(9,e);break;case 1:Ue(t,e,l,a);break;case 3:Ue(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&un(t)));break;case 12:if(n&2048){Ue(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,c=u.id,r=u.onPostCommit;typeof r=="function"&&r(c,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){yt(e,e.return,m)}}else Ue(t,e,l,a);break;case 31:Ue(t,e,l,a);break;case 13:Ue(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,c=e.alternate,e.memoizedState!==null?u._visibility&2?Ue(t,e,l,a):En(t,e):u._visibility&2?Ue(t,e,l,a):(u._visibility|=2,Aa(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Ic(c,e);break;case 24:Ue(t,e,l,a),n&2048&&Pc(e.alternate,e);break;default:Ue(t,e,l,a)}}function Aa(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,c=e,r=l,m=a,_=c.flags;switch(c.tag){case 0:case 11:case 15:Aa(u,c,r,m,n),Sn(8,c);break;case 23:break;case 22:var M=c.stateNode;c.memoizedState!==null?M._visibility&2?Aa(u,c,r,m,n):En(u,c):(M._visibility|=2,Aa(u,c,r,m,n)),n&&_&2048&&Ic(c.alternate,c);break;case 24:Aa(u,c,r,m,n),n&&_&2048&&Pc(c.alternate,c);break;default:Aa(u,c,r,m,n)}e=e.sibling}}function En(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:En(l,a),n&2048&&Ic(a.alternate,a);break;case 24:En(l,a),n&2048&&Pc(a.alternate,a);break;default:En(l,a)}e=e.sibling}}var xn=8192;function Ra(t,e,l){if(t.subtreeFlags&xn)for(t=t.child;t!==null;)Kr(t,e,l),t=t.sibling}function Kr(t,e,l){switch(t.tag){case 26:Ra(t,e,l),t.flags&xn&&t.memoizedState!==null&&o0(l,Ne,t.memoizedState,t.memoizedProps);break;case 5:Ra(t,e,l);break;case 3:case 4:var a=Ne;Ne=$u(t.stateNode.containerInfo),Ra(t,e,l),Ne=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=xn,xn=16777216,Ra(t,e,l),xn=a):Ra(t,e,l));break;default:Ra(t,e,l)}}function kr(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Tn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Xt=a,Wr(a,t)}kr(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$r(t),t=t.sibling}function $r(t){switch(t.tag){case 0:case 11:case 15:Tn(t),t.flags&2048&&bl(9,t,t.return);break;case 3:Tn(t);break;case 12:Tn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Bu(t)):Tn(t);break;default:Tn(t)}}function Bu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Xt=a,Wr(a,t)}kr(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:bl(8,e,e.return),Bu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Bu(e));break;default:Bu(e)}t=t.sibling}}function Wr(t,e){for(;Xt!==null;){var l=Xt;switch(l.tag){case 0:case 11:case 15:bl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:un(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Xt=a;else t:for(l=t;Xt!==null;){a=Xt;var n=a.sibling,u=a.return;if(Yr(a),a===l){Xt=null;break t}if(n!==null){n.return=u,Xt=n;break t}Xt=u}}}var _y={getCacheForType:function(t){var e=Vt(Bt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Vt(Bt).controller.signal}},zy=typeof WeakMap=="function"?WeakMap:Map,rt=0,xt=null,nt=null,it=0,mt=0,he=null,El=!1,Oa=!1,tf=!1,nl=0,Mt=0,xl=0,Pl=0,ef=0,me=0,Ca=0,_n=null,ne=null,lf=!1,Lu=0,Fr=0,qu=1/0,wu=null,Tl=null,Yt=0,_l=null,Ma=null,ul=0,af=0,nf=null,Ir=null,zn=0,uf=null;function ye(){return(rt&2)!==0&&it!==0?it&-it:N.T!==null?df():mo()}function Pr(){if(me===0)if((it&536870912)===0||ft){var t=Kn;Kn<<=1,(Kn&3932160)===0&&(Kn=262144),me=t}else me=536870912;return t=re.current,t!==null&&(t.flags|=32),me}function ue(t,e,l){(t===xt&&(mt===2||mt===9)||t.cancelPendingCommit!==null)&&(Na(t,0),zl(t,it,me,!1)),Va(t,l),((rt&2)===0||t!==xt)&&(t===xt&&((rt&2)===0&&(Pl|=l),Mt===4&&zl(t,it,me,!1)),Ye(t))}function td(t,e,l){if((rt&6)!==0)throw Error(o(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Za(t,e),n=a?Oy(t,e):ff(t,e,!0),u=a;do{if(n===0){Oa&&!a&&zl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!Ay(l)){n=ff(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var c=0;else c=t.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){e=c;t:{var r=t;n=_n;var m=r.current.memoizedState.isDehydrated;if(m&&(Na(r,c).flags|=256),c=ff(r,c,!1),c!==2){if(tf&&!m){r.errorRecoveryDisabledLanes|=u,Pl|=u,n=4;break t}u=ne,ne=n,u!==null&&(ne===null?ne=u:ne.push.apply(ne,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Na(t,0),zl(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:zl(a,e,me,!El);break t;case 2:ne=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(n=Lu+300-ie(),10<n)){if(zl(a,e,me,!El),$n(a,0,!0)!==0)break t;ul=e,a.timeoutHandle=Nd(ed.bind(null,a,l,ne,wu,lf,e,me,Pl,Ca,El,u,"Throttled",-0,0),n);break t}ed(a,l,ne,wu,lf,e,me,Pl,Ca,El,u,null,-0,0)}}break}while(!0);Ye(t)}function ed(t,e,l,a,n,u,c,r,m,_,M,D,R,C){if(t.timeoutHandle=-1,D=e.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ze},Kr(e,u,D);var Z=(u&62914560)===u?Lu-ie():(u&4194048)===u?Fr-ie():0;if(Z=s0(D,Z),Z!==null){ul=u,t.cancelPendingCommit=Z(od.bind(null,t,e,u,l,a,n,c,r,m,M,D,null,R,C)),zl(t,u,c,!_);return}}od(t,e,u,l,a,n,c,r,m)}function Ay(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!oe(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function zl(t,e,l,a){e&=~ef,e&=~Pl,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-fe(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&so(t,l,e)}function Yu(){return(rt&6)===0?(An(0),!1):!0}function cf(){if(nt!==null){if(mt===0)var t=nt.return;else t=nt,ke=Zl=null,xc(t),Ea=null,fn=0,t=nt;for(;t!==null;)Ur(t.alternate,t),t=t.return;nt=null}}function Na(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Jy(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),ul=0,cf(),xt=t,nt=l=Je(t.current,null),it=e,mt=0,he=null,El=!1,Oa=Za(t,e),tf=!1,Ca=me=ef=Pl=xl=Mt=0,ne=_n=null,lf=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-fe(a),u=1<<n;e|=t[n],a&=~u}return nl=e,cu(),l}function ld(t,e){et=null,N.H=vn,e===ba||e===yu?(e=ps(),mt=3):e===sc?(e=ps(),mt=4):mt=e===qc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,he=e,nt===null&&(Mt=1,Cu(t,xe(e,t.current)))}function ad(){var t=re.current;return t===null?!0:(it&4194048)===it?Ae===null:(it&62914560)===it||(it&536870912)!==0?t===Ae:!1}function nd(){var t=N.H;return N.H=vn,t===null?vn:t}function ud(){var t=N.A;return N.A=_y,t}function Gu(){Mt=4,El||(it&4194048)!==it&&re.current!==null||(Oa=!0),(xl&134217727)===0&&(Pl&134217727)===0||xt===null||zl(xt,it,me,!1)}function ff(t,e,l){var a=rt;rt|=2;var n=nd(),u=ud();(xt!==t||it!==e)&&(wu=null,Na(t,e)),e=!1;var c=Mt;t:do try{if(mt!==0&&nt!==null){var r=nt,m=he;switch(mt){case 8:cf(),c=6;break t;case 3:case 2:case 9:case 6:re.current===null&&(e=!0);var _=mt;if(mt=0,he=null,Ua(t,r,m,_),l&&Oa){c=0;break t}break;default:_=mt,mt=0,he=null,Ua(t,r,m,_)}}Ry(),c=Mt;break}catch(M){ld(t,M)}while(!0);return e&&t.shellSuspendCounter++,ke=Zl=null,rt=a,N.H=n,N.A=u,nt===null&&(xt=null,it=0,cu()),c}function Ry(){for(;nt!==null;)id(nt)}function Oy(t,e){var l=rt;rt|=2;var a=nd(),n=ud();xt!==t||it!==e?(wu=null,qu=ie()+500,Na(t,e)):Oa=Za(t,e);t:do try{if(mt!==0&&nt!==null){e=nt;var u=he;e:switch(mt){case 1:mt=0,he=null,Ua(t,e,u,1);break;case 2:case 9:if(vs(u)){mt=0,he=null,cd(e);break}e=function(){mt!==2&&mt!==9||xt!==t||(mt=7),Ye(t)},u.then(e,e);break t;case 3:mt=7;break t;case 4:mt=5;break t;case 7:vs(u)?(mt=0,he=null,cd(e)):(mt=0,he=null,Ua(t,e,u,7));break;case 5:var c=null;switch(nt.tag){case 26:c=nt.memoizedState;case 5:case 27:var r=nt;if(c?Jd(c):r.stateNode.complete){mt=0,he=null;var m=r.sibling;if(m!==null)nt=m;else{var _=r.return;_!==null?(nt=_,Xu(_)):nt=null}break e}}mt=0,he=null,Ua(t,e,u,5);break;case 6:mt=0,he=null,Ua(t,e,u,6);break;case 8:cf(),Mt=6;break t;default:throw Error(o(462))}}Cy();break}catch(M){ld(t,M)}while(!0);return ke=Zl=null,N.H=a,N.A=n,rt=l,nt!==null?0:(xt=null,it=0,cu(),Mt)}function Cy(){for(;nt!==null&&!Ih();)id(nt)}function id(t){var e=Mr(t.alternate,t,nl);t.memoizedProps=t.pendingProps,e===null?Xu(t):nt=e}function cd(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=_r(l,e,e.pendingProps,e.type,void 0,it);break;case 11:e=_r(l,e,e.pendingProps,e.type.render,e.ref,it);break;case 5:xc(e);default:Ur(l,e),e=nt=us(e,nl),e=Mr(l,e,nl)}t.memoizedProps=t.pendingProps,e===null?Xu(t):nt=e}function Ua(t,e,l,a){ke=Zl=null,xc(e),Ea=null,fn=0;var n=e.return;try{if(gy(t,n,e,l,it)){Mt=1,Cu(t,xe(l,t.current)),nt=null;return}}catch(u){if(n!==null)throw nt=n,u;Mt=1,Cu(t,xe(l,t.current)),nt=null;return}e.flags&32768?(ft||a===1?t=!0:Oa||(it&536870912)!==0?t=!1:(El=t=!0,(a===2||a===9||a===3||a===6)&&(a=re.current,a!==null&&a.tag===13&&(a.flags|=16384))),fd(e,t)):Xu(e)}function Xu(t){var e=t;do{if((e.flags&32768)!==0){fd(e,El);return}t=e.return;var l=by(e.alternate,e,nl);if(l!==null){nt=l;return}if(e=e.sibling,e!==null){nt=e;return}nt=e=t}while(e!==null);Mt===0&&(Mt=5)}function fd(t,e){do{var l=Ey(t.alternate,t);if(l!==null){l.flags&=32767,nt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){nt=t;return}nt=t=l}while(t!==null);Mt=6,nt=null}function od(t,e,l,a,n,u,c,r,m){t.cancelPendingCommit=null;do Qu();while(Yt!==0);if((rt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(u=e.lanes|e.childLanes,u|=$i,fm(t,l,u,c,r,m),t===xt&&(nt=xt=null,it=0),Ma=e,_l=t,ul=l,af=u,nf=n,Ir=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Dy(Vn,function(){return md(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=N.T,N.T=null,n=w.p,w.p=2,c=rt,rt|=4;try{xy(t,e,l)}finally{rt=c,w.p=n,N.T=a}}Yt=1,sd(),rd(),dd()}}function sd(){if(Yt===1){Yt=0;var t=_l,e=Ma,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=N.T,N.T=null;var a=w.p;w.p=2;var n=rt;rt|=4;try{Zr(e,t);var u=bf,c=Wo(t.containerInfo),r=u.focusedElem,m=u.selectionRange;if(c!==r&&r&&r.ownerDocument&&$o(r.ownerDocument.documentElement,r)){if(m!==null&&Zi(r)){var _=m.start,M=m.end;if(M===void 0&&(M=_),"selectionStart"in r)r.selectionStart=_,r.selectionEnd=Math.min(M,r.value.length);else{var D=r.ownerDocument||document,R=D&&D.defaultView||window;if(R.getSelection){var C=R.getSelection(),Z=r.textContent.length,$=Math.min(m.start,Z),bt=m.end===void 0?$:Math.min(m.end,Z);!C.extend&&$>bt&&(c=bt,bt=$,$=c);var E=ko(r,$),g=ko(r,bt);if(E&&g&&(C.rangeCount!==1||C.anchorNode!==E.node||C.anchorOffset!==E.offset||C.focusNode!==g.node||C.focusOffset!==g.offset)){var T=D.createRange();T.setStart(E.node,E.offset),C.removeAllRanges(),$>bt?(C.addRange(T),C.extend(g.node,g.offset)):(T.setEnd(g.node,g.offset),C.addRange(T))}}}}for(D=[],C=r;C=C.parentNode;)C.nodeType===1&&D.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<D.length;r++){var U=D[r];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}ei=!!Sf,bf=Sf=null}finally{rt=n,w.p=a,N.T=l}}t.current=e,Yt=2}}function rd(){if(Yt===2){Yt=0;var t=_l,e=Ma,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=N.T,N.T=null;var a=w.p;w.p=2;var n=rt;rt|=4;try{wr(t,e.alternate,e)}finally{rt=n,w.p=a,N.T=l}}Yt=3}}function dd(){if(Yt===4||Yt===3){Yt=0,Ph();var t=_l,e=Ma,l=ul,a=Ir;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Yt=5:(Yt=0,Ma=_l=null,hd(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Tl=null),zi(l),e=e.stateNode,ce&&typeof ce.onCommitFiberRoot=="function")try{ce.onCommitFiberRoot(Qa,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=N.T,n=w.p,w.p=2,N.T=null;try{for(var u=t.onRecoverableError,c=0;c<a.length;c++){var r=a[c];u(r.value,{componentStack:r.stack})}}finally{N.T=e,w.p=n}}(ul&3)!==0&&Qu(),Ye(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===uf?zn++:(zn=0,uf=t):zn=0,An(0)}}function hd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,un(e)))}function Qu(){return sd(),rd(),dd(),md()}function md(){if(Yt!==5)return!1;var t=_l,e=af;af=0;var l=zi(ul),a=N.T,n=w.p;try{w.p=32>l?32:l,N.T=null,l=nf,nf=null;var u=_l,c=ul;if(Yt=0,Ma=_l=null,ul=0,(rt&6)!==0)throw Error(o(331));var r=rt;if(rt|=4,$r(u.current),Jr(u,u.current,c,l),rt=r,An(0,!1),ce&&typeof ce.onPostCommitFiberRoot=="function")try{ce.onPostCommitFiberRoot(Qa,u)}catch{}return!0}finally{w.p=n,N.T=a,hd(t,e)}}function yd(t,e,l){e=xe(l,e),e=Lc(t.stateNode,e,2),t=gl(t,e,2),t!==null&&(Va(t,2),Ye(t))}function yt(t,e,l){if(t.tag===3)yd(t,t,l);else for(;e!==null;){if(e.tag===3){yd(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Tl===null||!Tl.has(a))){t=xe(l,t),l=vr(2),a=gl(e,l,2),a!==null&&(gr(l,a,e,t),Va(a,2),Ye(a));break}}e=e.return}}function of(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new zy;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(tf=!0,n.add(l),t=My.bind(null,t,e,l),e.then(t,t))}function My(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,xt===t&&(it&l)===l&&(Mt===4||Mt===3&&(it&62914560)===it&&300>ie()-Lu?(rt&2)===0&&Na(t,0):ef|=l,Ca===it&&(Ca=0)),Ye(t)}function vd(t,e){e===0&&(e=oo()),t=Gl(t,e),t!==null&&(Va(t,e),Ye(t))}function Ny(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),vd(t,l)}function Uy(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),vd(t,l)}function Dy(t,e){return Ei(t,e)}var Zu=null,Da=null,sf=!1,Vu=!1,rf=!1,Al=0;function Ye(t){t!==Da&&t.next===null&&(Da===null?Zu=Da=t:Da=Da.next=t),Vu=!0,sf||(sf=!0,Hy())}function An(t,e){if(!rf&&Vu){rf=!0;do for(var l=!1,a=Zu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,r=a.pingedLanes;u=(1<<31-fe(42|t)+1)-1,u&=n&~(c&~r),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,bd(a,u))}else u=it,u=$n(a,a===xt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Za(a,u)||(l=!0,bd(a,u));a=a.next}while(l);rf=!1}}function jy(){gd()}function gd(){Vu=sf=!1;var t=0;Al!==0&&Vy()&&(t=Al);for(var e=ie(),l=null,a=Zu;a!==null;){var n=a.next,u=pd(a,e);u===0?(a.next=null,l===null?Zu=n:l.next=n,n===null&&(Da=l)):(l=a,(t!==0||(u&3)!==0)&&(Vu=!0)),a=n}Yt!==0&&Yt!==5||An(t),Al!==0&&(Al=0)}function pd(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var c=31-fe(u),r=1<<c,m=n[c];m===-1?((r&l)===0||(r&a)!==0)&&(n[c]=cm(r,e)):m<=e&&(t.expiredLanes|=r),u&=~r}if(e=xt,l=it,l=$n(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(mt===2||mt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&xi(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Za(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&xi(a),zi(l)){case 2:case 8:l=co;break;case 32:l=Vn;break;case 268435456:l=fo;break;default:l=Vn}return a=Sd.bind(null,t),l=Ei(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&xi(a),t.callbackPriority=2,t.callbackNode=null,2}function Sd(t,e){if(Yt!==0&&Yt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Qu()&&t.callbackNode!==l)return null;var a=it;return a=$n(t,t===xt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(td(t,a,e),pd(t,ie()),t.callbackNode!=null&&t.callbackNode===l?Sd.bind(null,t):null)}function bd(t,e){if(Qu())return null;td(t,e,!0)}function Hy(){Ky(function(){(rt&6)!==0?Ei(io,jy):gd()})}function df(){if(Al===0){var t=pa;t===0&&(t=Jn,Jn<<=1,(Jn&261888)===0&&(Jn=256)),Al=t}return Al}function Ed(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Pn(""+t)}function xd(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function By(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=Ed((n[Pt]||null).action),c=a.submitter;c&&(e=(e=c[Pt]||null)?Ed(e.formAction):c.getAttribute("formAction"),e!==null&&(u=e,c=null));var r=new au("action","action",null,a,n);t.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Al!==0){var m=c?xd(n,c):new FormData(n);Nc(l,{pending:!0,data:m,method:n.method,action:u},null,m)}}else typeof u=="function"&&(r.preventDefault(),m=c?xd(n,c):new FormData(n),Nc(l,{pending:!0,data:m,method:n.method,action:u},u,m))},currentTarget:n}]})}}for(var hf=0;hf<ki.length;hf++){var mf=ki[hf],Ly=mf.toLowerCase(),qy=mf[0].toUpperCase()+mf.slice(1);Me(Ly,"on"+qy)}Me(Po,"onAnimationEnd"),Me(ts,"onAnimationIteration"),Me(es,"onAnimationStart"),Me("dblclick","onDoubleClick"),Me("focusin","onFocus"),Me("focusout","onBlur"),Me(ty,"onTransitionRun"),Me(ey,"onTransitionStart"),Me(ly,"onTransitionCancel"),Me(ls,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rn="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(" "),wy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rn));function Td(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var c=a.length-1;0<=c;c--){var r=a[c],m=r.instance,_=r.currentTarget;if(r=r.listener,m!==u&&n.isPropagationStopped())break t;u=r,n.currentTarget=_;try{u(n)}catch(M){iu(M)}n.currentTarget=null,u=m}else for(c=0;c<a.length;c++){if(r=a[c],m=r.instance,_=r.currentTarget,r=r.listener,m!==u&&n.isPropagationStopped())break t;u=r,n.currentTarget=_;try{u(n)}catch(M){iu(M)}n.currentTarget=null,u=m}}}}function ut(t,e){var l=e[Ai];l===void 0&&(l=e[Ai]=new Set);var a=t+"__bubble";l.has(a)||(_d(e,t,2,!1),l.add(a))}function yf(t,e,l){var a=0;e&&(a|=4),_d(l,t,a,e)}var Ju="_reactListening"+Math.random().toString(36).slice(2);function vf(t){if(!t[Ju]){t[Ju]=!0,go.forEach(function(l){l!=="selectionchange"&&(wy.has(l)||yf(l,!1,t),yf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ju]||(e[Ju]=!0,yf("selectionchange",!1,e))}}function _d(t,e,l,a){switch(Pd(e)){case 2:var n=h0;break;case 8:n=m0;break;default:n=Nf}l=n.bind(null,e,l,t),n=void 0,!Hi||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function gf(t,e,l,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var r=a.stateNode.containerInfo;if(r===n)break;if(c===4)for(c=a.return;c!==null;){var m=c.tag;if((m===3||m===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;r!==null;){if(c=ea(r),c===null)return;if(m=c.tag,m===5||m===6||m===26||m===27){a=u=c;continue t}r=r.parentNode}}a=a.return}Co(function(){var _=u,M=Di(l),D=[];t:{var R=as.get(t);if(R!==void 0){var C=au,Z=t;switch(t){case"keypress":if(eu(l)===0)break t;case"keydown":case"keyup":C=Um;break;case"focusin":Z="focus",C=wi;break;case"focusout":Z="blur",C=wi;break;case"beforeblur":case"afterblur":C=wi;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=Uo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=bm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=Hm;break;case Po:case ts:case es:C=Tm;break;case ls:C=Lm;break;case"scroll":case"scrollend":C=pm;break;case"wheel":C=wm;break;case"copy":case"cut":case"paste":C=zm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=jo;break;case"toggle":case"beforetoggle":C=Gm}var $=(e&4)!==0,bt=!$&&(t==="scroll"||t==="scrollend"),E=$?R!==null?R+"Capture":null:R;$=[];for(var g=_,T;g!==null;){var U=g;if(T=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||T===null||E===null||(U=ka(g,E),U!=null&&$.push(On(g,U,T))),bt)break;g=g.return}0<$.length&&(R=new C(R,Z,null,l,M),D.push({event:R,listeners:$}))}}if((e&7)===0){t:{if(R=t==="mouseover"||t==="pointerover",C=t==="mouseout"||t==="pointerout",R&&l!==Ui&&(Z=l.relatedTarget||l.fromElement)&&(ea(Z)||Z[ta]))break t;if((C||R)&&(R=M.window===M?M:(R=M.ownerDocument)?R.defaultView||R.parentWindow:window,C?(Z=l.relatedTarget||l.toElement,C=_,Z=Z?ea(Z):null,Z!==null&&(bt=h(Z),$=Z.tag,Z!==bt||$!==5&&$!==27&&$!==6)&&(Z=null)):(C=null,Z=_),C!==Z)){if($=Uo,U="onMouseLeave",E="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&($=jo,U="onPointerLeave",E="onPointerEnter",g="pointer"),bt=C==null?R:Ka(C),T=Z==null?R:Ka(Z),R=new $(U,g+"leave",C,l,M),R.target=bt,R.relatedTarget=T,U=null,ea(M)===_&&($=new $(E,g+"enter",Z,l,M),$.target=T,$.relatedTarget=bt,U=$),bt=U,C&&Z)e:{for($=Yy,E=C,g=Z,T=0,U=E;U;U=$(U))T++;U=0;for(var k=g;k;k=$(k))U++;for(;0<T-U;)E=$(E),T--;for(;0<U-T;)g=$(g),U--;for(;T--;){if(E===g||g!==null&&E===g.alternate){$=E;break e}E=$(E),g=$(g)}$=null}else $=null;C!==null&&zd(D,R,C,$,!1),Z!==null&&bt!==null&&zd(D,bt,Z,$,!0)}}t:{if(R=_?Ka(_):window,C=R.nodeName&&R.nodeName.toLowerCase(),C==="select"||C==="input"&&R.type==="file")var ot=Xo;else if(Yo(R))if(Qo)ot=Fm;else{ot=$m;var J=km}else C=R.nodeName,!C||C.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?_&&Ni(_.elementType)&&(ot=Xo):ot=Wm;if(ot&&(ot=ot(t,_))){Go(D,ot,l,M);break t}J&&J(t,R,_),t==="focusout"&&_&&R.type==="number"&&_.memoizedProps.value!=null&&Mi(R,"number",R.value)}switch(J=_?Ka(_):window,t){case"focusin":(Yo(J)||J.contentEditable==="true")&&(sa=J,Vi=_,ln=null);break;case"focusout":ln=Vi=sa=null;break;case"mousedown":Ji=!0;break;case"contextmenu":case"mouseup":case"dragend":Ji=!1,Fo(D,l,M);break;case"selectionchange":if(Pm)break;case"keydown":case"keyup":Fo(D,l,M)}var lt;if(Gi)t:{switch(t){case"compositionstart":var ct="onCompositionStart";break t;case"compositionend":ct="onCompositionEnd";break t;case"compositionupdate":ct="onCompositionUpdate";break t}ct=void 0}else oa?qo(t,l)&&(ct="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ct="onCompositionStart");ct&&(Ho&&l.locale!=="ko"&&(oa||ct!=="onCompositionStart"?ct==="onCompositionEnd"&&oa&&(lt=Mo()):(sl=M,Bi="value"in sl?sl.value:sl.textContent,oa=!0)),J=Ku(_,ct),0<J.length&&(ct=new Do(ct,t,null,l,M),D.push({event:ct,listeners:J}),lt?ct.data=lt:(lt=wo(l),lt!==null&&(ct.data=lt)))),(lt=Qm?Zm(t,l):Vm(t,l))&&(ct=Ku(_,"onBeforeInput"),0<ct.length&&(J=new Do("onBeforeInput","beforeinput",null,l,M),D.push({event:J,listeners:ct}),J.data=lt)),By(D,t,_,l,M)}Td(D,e)})}function On(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Ku(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=ka(t,l),n!=null&&a.unshift(On(t,n,u)),n=ka(t,e),n!=null&&a.push(On(t,n,u))),t.tag===3)return a;t=t.return}return[]}function Yy(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function zd(t,e,l,a,n){for(var u=e._reactName,c=[];l!==null&&l!==a;){var r=l,m=r.alternate,_=r.stateNode;if(r=r.tag,m!==null&&m===a)break;r!==5&&r!==26&&r!==27||_===null||(m=_,n?(_=ka(l,u),_!=null&&c.unshift(On(l,_,m))):n||(_=ka(l,u),_!=null&&c.push(On(l,_,m)))),l=l.return}c.length!==0&&t.push({event:e,listeners:c})}var Gy=/\r\n?/g,Xy=/\u0000|\uFFFD/g;function Ad(t){return(typeof t=="string"?t:""+t).replace(Gy,`
50
+ `).replace(Xy,"")}function Rd(t,e){return e=Ad(e),Ad(t)===e}function St(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||ia(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&ia(t,""+a);break;case"className":Fn(t,"class",a);break;case"tabIndex":Fn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Fn(t,l,a);break;case"style":Ro(t,a,u);break;case"data":if(e!=="object"){Fn(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Pn(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"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"&&(l==="formAction"?(e!=="input"&&St(t,e,"name",n.name,n,null),St(t,e,"formEncType",n.formEncType,n,null),St(t,e,"formMethod",n.formMethod,n,null),St(t,e,"formTarget",n.formTarget,n,null)):(St(t,e,"encType",n.encType,n,null),St(t,e,"method",n.method,n,null),St(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Pn(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Ze);break;case"onScroll":a!=null&&ut("scroll",t);break;case"onScrollEnd":a!=null&&ut("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}l=Pn(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);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"?t.setAttribute(l,""+a):t.removeAttribute(l);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"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":ut("beforetoggle",t),ut("toggle",t),Wn(t,"popover",a);break;case"xlinkActuate":Qe(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Qe(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Qe(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Qe(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Qe(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Qe(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Qe(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Qe(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Qe(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Wn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=vm.get(l)||l,Wn(t,l,a))}}function pf(t,e,l,a,n,u){switch(l){case"style":Ro(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"children":typeof a=="string"?ia(t,a):(typeof a=="number"||typeof a=="bigint")&&ia(t,""+a);break;case"onScroll":a!=null&&ut("scroll",t);break;case"onScrollEnd":a!=null&&ut("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Ze);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!po.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[Pt]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Wn(t,l,a)}}}function Kt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ut("error",t),ut("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:St(t,e,u,c,l,null)}}n&&St(t,e,"srcSet",l.srcSet,l,null),a&&St(t,e,"src",l.src,l,null);return;case"input":ut("invalid",t);var r=u=c=n=null,m=null,_=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":c=M;break;case"checked":m=M;break;case"defaultChecked":_=M;break;case"value":u=M;break;case"defaultValue":r=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,e));break;default:St(t,e,a,M,l,null)}}To(t,u,r,m,_,c,n,!1);return;case"select":ut("invalid",t),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(r=l[n],r!=null))switch(n){case"value":u=r;break;case"defaultValue":c=r;break;case"multiple":a=r;default:St(t,e,n,r,l,null)}e=u,l=c,t.multiple=!!a,e!=null?ua(t,!!a,e,!1):l!=null&&ua(t,!!a,l,!0);return;case"textarea":ut("invalid",t),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(r=l[c],r!=null))switch(c){case"value":a=r;break;case"defaultValue":n=r;break;case"children":u=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:St(t,e,c,r,l,null)}zo(t,a,n,u);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:St(t,e,m,a,l,null)}return;case"dialog":ut("beforetoggle",t),ut("toggle",t),ut("cancel",t),ut("close",t);break;case"iframe":case"object":ut("load",t);break;case"video":case"audio":for(a=0;a<Rn.length;a++)ut(Rn[a],t);break;case"image":ut("error",t),ut("load",t);break;case"details":ut("toggle",t);break;case"embed":case"source":case"link":ut("error",t),ut("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in l)if(l.hasOwnProperty(_)&&(a=l[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:St(t,e,_,a,l,null)}return;default:if(Ni(e)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&pf(t,e,M,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&St(t,e,r,a,l,null))}function Qy(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,r=null,m=null,_=null,M=null;for(C in l){var D=l[C];if(l.hasOwnProperty(C)&&D!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":m=D;default:a.hasOwnProperty(C)||St(t,e,C,null,a,D)}}for(var R in a){var C=a[R];if(D=l[R],a.hasOwnProperty(R)&&(C!=null||D!=null))switch(R){case"type":u=C;break;case"name":n=C;break;case"checked":_=C;break;case"defaultChecked":M=C;break;case"value":c=C;break;case"defaultValue":r=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,e));break;default:C!==D&&St(t,e,R,C,a,D)}}Ci(t,c,r,m,_,M,u,n);return;case"select":C=c=r=R=null;for(u in l)if(m=l[u],l.hasOwnProperty(u)&&m!=null)switch(u){case"value":break;case"multiple":C=m;default:a.hasOwnProperty(u)||St(t,e,u,null,a,m)}for(n in a)if(u=a[n],m=l[n],a.hasOwnProperty(n)&&(u!=null||m!=null))switch(n){case"value":R=u;break;case"defaultValue":r=u;break;case"multiple":c=u;default:u!==m&&St(t,e,n,u,a,m)}e=r,l=c,a=C,R!=null?ua(t,!!l,R,!1):!!a!=!!l&&(e!=null?ua(t,!!l,e,!0):ua(t,!!l,l?[]:"",!1));return;case"textarea":C=R=null;for(r in l)if(n=l[r],l.hasOwnProperty(r)&&n!=null&&!a.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:St(t,e,r,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":R=n;break;case"defaultValue":C=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&St(t,e,c,n,a,u)}_o(t,R,C);return;case"option":for(var Z in l)if(R=l[Z],l.hasOwnProperty(Z)&&R!=null&&!a.hasOwnProperty(Z))switch(Z){case"selected":t.selected=!1;break;default:St(t,e,Z,null,a,R)}for(m in a)if(R=a[m],C=l[m],a.hasOwnProperty(m)&&R!==C&&(R!=null||C!=null))switch(m){case"selected":t.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:St(t,e,m,R,a,C)}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 $ in l)R=l[$],l.hasOwnProperty($)&&R!=null&&!a.hasOwnProperty($)&&St(t,e,$,null,a,R);for(_ in a)if(R=a[_],C=l[_],a.hasOwnProperty(_)&&R!==C&&(R!=null||C!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,e));break;default:St(t,e,_,R,a,C)}return;default:if(Ni(e)){for(var bt in l)R=l[bt],l.hasOwnProperty(bt)&&R!==void 0&&!a.hasOwnProperty(bt)&&pf(t,e,bt,void 0,a,R);for(M in a)R=a[M],C=l[M],!a.hasOwnProperty(M)||R===C||R===void 0&&C===void 0||pf(t,e,M,R,a,C);return}}for(var E in l)R=l[E],l.hasOwnProperty(E)&&R!=null&&!a.hasOwnProperty(E)&&St(t,e,E,null,a,R);for(D in a)R=a[D],C=l[D],!a.hasOwnProperty(D)||R===C||R==null&&C==null||St(t,e,D,R,a,C)}function Od(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Zy(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,r=n.duration;if(u&&r&&Od(c)){for(c=0,r=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],_=m.startTime;if(_>r)break;var M=m.transferSize,D=m.initiatorType;M&&Od(D)&&(m=m.responseEnd,c+=M*(m<r?1:(r-_)/(m-_)))}if(--a,e+=8*(u+c)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Sf=null,bf=null;function ku(t){return t.nodeType===9?t:t.ownerDocument}function Cd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Md(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ef(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var xf=null;function Vy(){var t=window.event;return t&&t.type==="popstate"?t===xf?!1:(xf=t,!0):(xf=null,!1)}var Nd=typeof setTimeout=="function"?setTimeout:void 0,Jy=typeof clearTimeout=="function"?clearTimeout:void 0,Ud=typeof Promise=="function"?Promise:void 0,Ky=typeof queueMicrotask=="function"?queueMicrotask:typeof Ud<"u"?function(t){return Ud.resolve(null).then(t).catch(ky)}:Nd;function ky(t){setTimeout(function(){throw t})}function Rl(t){return t==="head"}function Dd(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),La(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Cn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Cn(l);for(var u=l.firstChild;u;){var c=u.nextSibling,r=u.nodeName;u[Ja]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&Cn(t.ownerDocument.body);l=n}while(l);La(e)}function jd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function Tf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Tf(l),Ri(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function $y(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ja])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Re(t.nextSibling),t===null)break}return null}function Wy(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Re(t.nextSibling),t===null))return null;return t}function Hd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Re(t.nextSibling),t===null))return null;return t}function _f(t){return t.data==="$?"||t.data==="$~"}function zf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Fy(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Re(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Af=null;function Bd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Re(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Ld(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function qd(t,e,l){switch(e=ku(l),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function Cn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ri(t)}var Oe=new Map,wd=new Set;function $u(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var il=w.d;w.d={f:Iy,r:Py,D:t0,C:e0,L:l0,m:a0,X:u0,S:n0,M:i0};function Iy(){var t=il.f(),e=Yu();return t||e}function Py(t){var e=la(t);e!==null&&e.tag===5&&e.type==="form"?lr(e):il.r(t)}var ja=typeof document>"u"?null:document;function Yd(t,e,l){var a=ja;if(a&&typeof e=="string"&&e){var n=be(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),wd.has(n)||(wd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Kt(e,"link",t),Gt(e),a.head.appendChild(e)))}}function t0(t){il.D(t),Yd("dns-prefetch",t,null)}function e0(t,e){il.C(t,e),Yd("preconnect",t,e)}function l0(t,e,l){il.L(t,e,l);var a=ja;if(a&&t&&e){var n='link[rel="preload"][as="'+be(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+be(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+be(l.imageSizes)+'"]')):n+='[href="'+be(t)+'"]';var u=n;switch(e){case"style":u=Ha(t);break;case"script":u=Ba(t)}Oe.has(u)||(t=z({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Oe.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Mn(u))||e==="script"&&a.querySelector(Nn(u))||(e=a.createElement("link"),Kt(e,"link",t),Gt(e),a.head.appendChild(e)))}}function a0(t,e){il.m(t,e);var l=ja;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+be(a)+'"][href="'+be(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ba(t)}if(!Oe.has(u)&&(t=z({rel:"modulepreload",href:t},e),Oe.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Nn(u)))return}a=l.createElement("link"),Kt(a,"link",t),Gt(a),l.head.appendChild(a)}}}function n0(t,e,l){il.S(t,e,l);var a=ja;if(a&&t){var n=aa(a).hoistableStyles,u=Ha(t);e=e||"default";var c=n.get(u);if(!c){var r={loading:0,preload:null};if(c=a.querySelector(Mn(u)))r.loading=5;else{t=z({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Oe.get(u))&&Rf(t,l);var m=c=a.createElement("link");Gt(m),Kt(m,"link",t),m._p=new Promise(function(_,M){m.onload=_,m.onerror=M}),m.addEventListener("load",function(){r.loading|=1}),m.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Wu(c,e,a)}c={type:"stylesheet",instance:c,count:1,state:r},n.set(u,c)}}}function u0(t,e){il.X(t,e);var l=ja;if(l&&t){var a=aa(l).hoistableScripts,n=Ba(t),u=a.get(n);u||(u=l.querySelector(Nn(n)),u||(t=z({src:t,async:!0},e),(e=Oe.get(n))&&Of(t,e),u=l.createElement("script"),Gt(u),Kt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function i0(t,e){il.M(t,e);var l=ja;if(l&&t){var a=aa(l).hoistableScripts,n=Ba(t),u=a.get(n);u||(u=l.querySelector(Nn(n)),u||(t=z({src:t,async:!0,type:"module"},e),(e=Oe.get(n))&&Of(t,e),u=l.createElement("script"),Gt(u),Kt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Gd(t,e,l,a){var n=(n=at.current)?$u(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ha(l.href),l=aa(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ha(l.href);var u=aa(n).hoistableStyles,c=u.get(t);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,c),(u=n.querySelector(Mn(t)))&&!u._p&&(c.instance=u,c.state.loading=5),Oe.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Oe.set(t,l),u||c0(n,t,l,c.state))),e&&a===null)throw Error(o(528,""));return c}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ba(l),l=aa(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Ha(t){return'href="'+be(t)+'"'}function Mn(t){return'link[rel="stylesheet"]['+t+"]"}function Xd(t){return z({},t,{"data-precedence":t.precedence,precedence:null})}function c0(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Kt(e,"link",l),Gt(e),t.head.appendChild(e))}function Ba(t){return'[src="'+be(t)+'"]'}function Nn(t){return"script[async]"+t}function Qd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+be(l.href)+'"]');if(a)return e.instance=a,Gt(a),a;var n=z({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Gt(a),Kt(a,"style",n),Wu(a,l.precedence,t),e.instance=a;case"stylesheet":n=Ha(l.href);var u=t.querySelector(Mn(n));if(u)return e.state.loading|=4,e.instance=u,Gt(u),u;a=Xd(l),(n=Oe.get(n))&&Rf(a,n),u=(t.ownerDocument||t).createElement("link"),Gt(u);var c=u;return c._p=new Promise(function(r,m){c.onload=r,c.onerror=m}),Kt(u,"link",a),e.state.loading|=4,Wu(u,l.precedence,t),e.instance=u;case"script":return u=Ba(l.src),(n=t.querySelector(Nn(u)))?(e.instance=n,Gt(n),n):(a=l,(n=Oe.get(u))&&(a=z({},l),Of(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Gt(n),Kt(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Wu(a,l.precedence,t));return e.instance}function Wu(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var r=a[c];if(r.dataset.precedence===e)u=r;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Rf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Of(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Fu=null;function Zd(t,e,l){if(Fu===null){var a=new Map,n=Fu=new Map;n.set(l,a)}else n=Fu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[Ja]||u[Qt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(e)||"";c=t+c;var r=a.get(c);r?r.push(u):a.set(c,[u])}}return a}function Vd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function f0(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Jd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function o0(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ha(a.href),u=e.querySelector(Mn(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Iu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Gt(u);return}u=e.ownerDocument||e,a=Xd(a),(n=Oe.get(n))&&Rf(a,n),u=u.createElement("link"),Gt(u);var c=u;c._p=new Promise(function(r,m){c.onload=r,c.onerror=m}),Kt(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Iu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Cf=0;function s0(t,e){return t.stylesheets&&t.count===0&&ti(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&ti(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Cf===0&&(Cf=62500*Zy());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ti(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Cf?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ti(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Pu=null;function ti(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Pu=new Map,e.forEach(r0,t),Pu=null,Iu.call(t))}function r0(t,e){if(!(e.state.loading&4)){var l=Pu.get(t);if(l)var a=l.get(null);else{l=new Map,Pu.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=e.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=Iu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Un={$$typeof:K,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function d0(t,e,l,a,n,u,c,r,m){this.tag=1,this.containerInfo=t,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=Ti(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ti(0),this.hiddenUpdates=Ti(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Kd(t,e,l,a,n,u,c,r,m,_,M,D){return t=new d0(t,e,l,c,m,_,M,D,r),e=1,u===!0&&(e|=24),u=se(3,null,null,e),t.current=u,u.stateNode=t,e=cc(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},rc(u),t}function kd(t){return t?(t=ha,t):ha}function $d(t,e,l,a,n,u){n=kd(n),a.context===null?a.context=n:a.pendingContext=n,a=vl(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=gl(t,a,e),l!==null&&(ue(l,t,e),sn(l,t,e))}function Wd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Mf(t,e){Wd(t,e),(t=t.alternate)&&Wd(t,e)}function Fd(t){if(t.tag===13||t.tag===31){var e=Gl(t,67108864);e!==null&&ue(e,t,67108864),Mf(t,67108864)}}function Id(t){if(t.tag===13||t.tag===31){var e=ye();e=_i(e);var l=Gl(t,e);l!==null&&ue(l,t,e),Mf(t,e)}}var ei=!0;function h0(t,e,l,a){var n=N.T;N.T=null;var u=w.p;try{w.p=2,Nf(t,e,l,a)}finally{w.p=u,N.T=n}}function m0(t,e,l,a){var n=N.T;N.T=null;var u=w.p;try{w.p=8,Nf(t,e,l,a)}finally{w.p=u,N.T=n}}function Nf(t,e,l,a){if(ei){var n=Uf(a);if(n===null)gf(t,e,a,li,l),th(t,a);else if(v0(n,t,e,l,a))a.stopPropagation();else if(th(t,a),e&4&&-1<y0.indexOf(t)){for(;n!==null;){var u=la(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Bl(u.pendingLanes);if(c!==0){var r=u;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var m=1<<31-fe(c);r.entanglements[1]|=m,c&=~m}Ye(u),(rt&6)===0&&(qu=ie()+500,An(0))}}break;case 31:case 13:r=Gl(u,2),r!==null&&ue(r,u,2),Yu(),Mf(u,2)}if(u=Uf(a),u===null&&gf(t,e,a,li,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else gf(t,e,a,null,l)}}function Uf(t){return t=Di(t),Df(t)}var li=null;function Df(t){if(li=null,t=ea(t),t!==null){var e=h(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=v(e),t!==null)return t;t=null}else if(l===31){if(t=x(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return li=t,null}function Pd(t){switch(t){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(tm()){case io:return 2;case co:return 8;case Vn:case em:return 32;case fo:return 268435456;default:return 32}default:return 32}}var jf=!1,Ol=null,Cl=null,Ml=null,Dn=new Map,jn=new Map,Nl=[],y0="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 th(t,e){switch(t){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Cl=null;break;case"mouseover":case"mouseout":Ml=null;break;case"pointerover":case"pointerout":Dn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":jn.delete(e.pointerId)}}function Hn(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=la(e),e!==null&&Fd(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function v0(t,e,l,a,n){switch(e){case"focusin":return Ol=Hn(Ol,t,e,l,a,n),!0;case"dragenter":return Cl=Hn(Cl,t,e,l,a,n),!0;case"mouseover":return Ml=Hn(Ml,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return Dn.set(u,Hn(Dn.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,jn.set(u,Hn(jn.get(u)||null,t,e,l,a,n)),!0}return!1}function eh(t){var e=ea(t.target);if(e!==null){var l=h(e);if(l!==null){if(e=l.tag,e===13){if(e=v(l),e!==null){t.blockedOn=e,yo(t.priority,function(){Id(l)});return}}else if(e===31){if(e=x(l),e!==null){t.blockedOn=e,yo(t.priority,function(){Id(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ai(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Uf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Ui=a,l.target.dispatchEvent(a),Ui=null}else return e=la(l),e!==null&&Fd(e),t.blockedOn=l,!1;e.shift()}return!0}function lh(t,e,l){ai(t)&&l.delete(e)}function g0(){jf=!1,Ol!==null&&ai(Ol)&&(Ol=null),Cl!==null&&ai(Cl)&&(Cl=null),Ml!==null&&ai(Ml)&&(Ml=null),Dn.forEach(lh),jn.forEach(lh)}function ni(t,e){t.blockedOn===e&&(t.blockedOn=null,jf||(jf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,g0)))}var ui=null;function ah(t){ui!==t&&(ui=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ui===t&&(ui=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Df(a||l)===null)continue;break}var u=la(l);u!==null&&(t.splice(e,3),e-=3,Nc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function La(t){function e(m){return ni(m,t)}Ol!==null&&ni(Ol,t),Cl!==null&&ni(Cl,t),Ml!==null&&ni(Ml,t),Dn.forEach(e),jn.forEach(e);for(var l=0;l<Nl.length;l++){var a=Nl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Nl.length&&(l=Nl[0],l.blockedOn===null);)eh(l),l.blockedOn===null&&Nl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[Pt]||null;if(typeof u=="function")c||ah(l);else if(c){var r=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Pt]||null)r=c.formAction;else if(Df(n)!==null)continue}else r=c.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),ah(l)}}}function nh(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){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",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Hf(t){this._internalRoot=t}ii.prototype.render=Hf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var l=e.current,a=ye();$d(l,a,t,e,null,null)},ii.prototype.unmount=Hf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;$d(t.current,2,null,t,null,null),Yu(),e[ta]=null}};function ii(t){this._internalRoot=t}ii.prototype.unstable_scheduleHydration=function(t){if(t){var e=mo();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Nl.length&&e!==0&&e<Nl[l].priority;l++);Nl.splice(l,0,t),l===0&&eh(t)}};var uh=f.version;if(uh!=="19.2.4")throw Error(o(527,uh,"19.2.4"));w.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=y(e),t=t!==null?O(t):null,t=t===null?null:t.stateNode,t};var p0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ci=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ci.isDisabled&&ci.supportsFiber)try{Qa=ci.inject(p0),ce=ci}catch{}}return qn.createRoot=function(t,e){if(!d(t))throw Error(o(299));var l=!1,a="",n=dr,u=hr,c=mr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError)),e=Kd(t,1,!1,null,null,l,a,null,n,u,c,nh),t[ta]=e.current,vf(t),new Hf(e)},qn.hydrateRoot=function(t,e,l){if(!d(t))throw Error(o(299));var a=!1,n="",u=dr,c=hr,r=mr,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=Kd(t,1,!0,e,l??null,a,n,m,u,c,r,nh),e.context=kd(null),l=e.current,a=ye(),a=_i(a),n=vl(a),n.callback=null,gl(l,n,a),l=a,e.current.lanes=l,Va(e,l),Ye(e),t[ta]=e.current,vf(t),new ii(e)},qn.version="19.2.4",qn}var yh;function N0(){if(yh)return qf.exports;yh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),qf.exports=M0(),qf.exports}var U0=N0();/**
51
+ * react-router v7.13.1
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */var vh="popstate";function gh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function D0(i={}){function f(o,d){var y;let h=(y=d.state)==null?void 0:y.masked,{pathname:v,search:x,hash:S}=h||o.location;return Jf("",{pathname:v,search:x,hash:S},d.state&&d.state.usr||null,d.state&&d.state.key||"default",h?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function s(o,d){return typeof d=="string"?d:Gn(d)}return H0(f,s,null,i)}function Rt(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function De(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function j0(){return Math.random().toString(36).substring(2,10)}function ph(i,f){return{usr:i.state,key:i.key,idx:f,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Jf(i,f,s=null,o,d){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?wa(f):f,state:s,key:f&&f.key||o||j0(),unstable_mask:d}}function Gn({pathname:i="/",search:f="",hash:s=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function wa(i){let f={};if(i){let s=i.indexOf("#");s>=0&&(f.hash=i.substring(s),i=i.substring(0,s));let o=i.indexOf("?");o>=0&&(f.search=i.substring(o),i=i.substring(0,o)),i&&(f.pathname=i)}return f}function H0(i,f,s,o={}){let{window:d=document.defaultView,v5Compat:h=!1}=o,v=d.history,x="POP",S=null,y=O();y==null&&(y=0,v.replaceState({...v.state,idx:y},""));function O(){return(v.state||{idx:null}).idx}function z(){x="POP";let Q=O(),q=Q==null?null:Q-y;y=Q,S&&S({action:x,location:L.location,delta:q})}function H(Q,q){x="PUSH";let F=gh(Q)?Q:Jf(L.location,Q,q);y=O()+1;let K=ph(F,y),vt=L.createHref(F.unstable_mask||F);try{v.pushState(K,"",vt)}catch(ht){if(ht instanceof DOMException&&ht.name==="DataCloneError")throw ht;d.location.assign(vt)}h&&S&&S({action:x,location:L.location,delta:1})}function X(Q,q){x="REPLACE";let F=gh(Q)?Q:Jf(L.location,Q,q);y=O();let K=ph(F,y),vt=L.createHref(F.unstable_mask||F);v.replaceState(K,"",vt),h&&S&&S({action:x,location:L.location,delta:0})}function B(Q){return B0(Q)}let L={get action(){return x},get location(){return i(d,v)},listen(Q){if(S)throw new Error("A history only accepts one active listener");return d.addEventListener(vh,z),S=Q,()=>{d.removeEventListener(vh,z),S=null}},createHref(Q){return f(d,Q)},createURL:B,encodeLocation(Q){let q=B(Q);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:H,replace:X,go(Q){return v.go(Q)}};return L}function B0(i,f=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Rt(s,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Gn(i);return o=o.replace(/ $/,"%20"),!f&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function Oh(i,f,s="/"){return L0(i,f,s,!1)}function L0(i,f,s,o){let d=typeof f=="string"?wa(f):f,h=cl(d.pathname||"/",s);if(h==null)return null;let v=Ch(i);q0(v);let x=null;for(let S=0;x==null&&S<v.length;++S){let y=$0(h);x=K0(v[S],y,o)}return x}function Ch(i,f=[],s=[],o="",d=!1){let h=(v,x,S=d,y)=>{let O={relativePath:y===void 0?v.path||"":y,caseSensitive:v.caseSensitive===!0,childrenIndex:x,route:v};if(O.relativePath.startsWith("/")){if(!O.relativePath.startsWith(o)&&S)return;Rt(O.relativePath.startsWith(o),`Absolute route path "${O.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),O.relativePath=O.relativePath.slice(o.length)}let z=Xe([o,O.relativePath]),H=s.concat(O);v.children&&v.children.length>0&&(Rt(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${z}".`),Ch(v.children,f,H,z,S)),!(v.path==null&&!v.index)&&f.push({path:z,score:V0(z,v.index),routesMeta:H})};return i.forEach((v,x)=>{var S;if(v.path===""||!((S=v.path)!=null&&S.includes("?")))h(v,x);else for(let y of Mh(v.path))h(v,x,!0,y)}),f}function Mh(i){let f=i.split("/");if(f.length===0)return[];let[s,...o]=f,d=s.endsWith("?"),h=s.replace(/\?$/,"");if(o.length===0)return d?[h,""]:[h];let v=Mh(o.join("/")),x=[];return x.push(...v.map(S=>S===""?h:[h,S].join("/"))),d&&x.push(...v),x.map(S=>i.startsWith("/")&&S===""?"/":S)}function q0(i){i.sort((f,s)=>f.score!==s.score?s.score-f.score:J0(f.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var w0=/^:[\w-]+$/,Y0=3,G0=2,X0=1,Q0=10,Z0=-2,Sh=i=>i==="*";function V0(i,f){let s=i.split("/"),o=s.length;return s.some(Sh)&&(o+=Z0),f&&(o+=G0),s.filter(d=>!Sh(d)).reduce((d,h)=>d+(w0.test(h)?Y0:h===""?X0:Q0),o)}function J0(i,f){return i.length===f.length&&i.slice(0,-1).every((o,d)=>o===f[d])?i[i.length-1]-f[f.length-1]:0}function K0(i,f,s=!1){let{routesMeta:o}=i,d={},h="/",v=[];for(let x=0;x<o.length;++x){let S=o[x],y=x===o.length-1,O=h==="/"?f:f.slice(h.length)||"/",z=ri({path:S.relativePath,caseSensitive:S.caseSensitive,end:y},O),H=S.route;if(!z&&y&&s&&!o[o.length-1].route.index&&(z=ri({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},O)),!z)return null;Object.assign(d,z.params),v.push({params:d,pathname:Xe([h,z.pathname]),pathnameBase:P0(Xe([h,z.pathnameBase])),route:H}),z.pathnameBase!=="/"&&(h=Xe([h,z.pathnameBase]))}return v}function ri(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[s,o]=k0(i.path,i.caseSensitive,i.end),d=f.match(s);if(!d)return null;let h=d[0],v=h.replace(/(.)\/+$/,"$1"),x=d.slice(1);return{params:o.reduce((y,{paramName:O,isOptional:z},H)=>{if(O==="*"){let B=x[H]||"";v=h.slice(0,h.length-B.length).replace(/(.)\/+$/,"$1")}const X=x[H];return z&&!X?y[O]=void 0:y[O]=(X||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:v,pattern:i}}function k0(i,f=!1,s=!0){De(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,x,S,y,O)=>{if(o.push({paramName:x,isOptional:S!=null}),S){let z=O.charAt(y+v.length);return z&&z!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,f?void 0:"i"),o]}function $0(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return De(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),i}}function cl(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let s=f.endsWith("/")?f.length-1:f.length,o=i.charAt(s);return o&&o!=="/"?null:i.slice(s)||"/"}var W0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function F0(i,f="/"){let{pathname:s,search:o="",hash:d=""}=typeof i=="string"?wa(i):i,h;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?h=bh(s.substring(1),"/"):h=bh(s,f)):h=f,{pathname:h,search:tv(o),hash:ev(d)}}function bh(i,f){let s=f.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?s.length>1&&s.pop():d!=="."&&s.push(d)}),s.length>1?s.join("/"):"/"}function Xf(i,f,s,o){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function I0(i){return i.filter((f,s)=>s===0||f.route.path&&f.route.path.length>0)}function Wf(i){let f=I0(i);return f.map((s,o)=>o===f.length-1?s.pathname:s.pathnameBase)}function mi(i,f,s,o=!1){let d;typeof i=="string"?d=wa(i):(d={...i},Rt(!d.pathname||!d.pathname.includes("?"),Xf("?","pathname","search",d)),Rt(!d.pathname||!d.pathname.includes("#"),Xf("#","pathname","hash",d)),Rt(!d.search||!d.search.includes("#"),Xf("#","search","hash",d)));let h=i===""||d.pathname==="",v=h?"/":d.pathname,x;if(v==null)x=s;else{let z=f.length-1;if(!o&&v.startsWith("..")){let H=v.split("/");for(;H[0]==="..";)H.shift(),z-=1;d.pathname=H.join("/")}x=z>=0?f[z]:"/"}let S=F0(d,x),y=v&&v!=="/"&&v.endsWith("/"),O=(h||v===".")&&s.endsWith("/");return!S.pathname.endsWith("/")&&(y||O)&&(S.pathname+="/"),S}var Xe=i=>i.join("/").replace(/\/\/+/g,"/"),P0=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),tv=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,ev=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,lv=class{constructor(i,f,s,o=!1){this.status=i,this.statusText=f||"",this.internal=o,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function av(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function nv(i){return i.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Nh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Uh(i,f){let s=i;if(typeof s!="string"||!W0.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let o=s,d=!1;if(Nh)try{let h=new URL(window.location.href),v=s.startsWith("//")?new URL(h.protocol+s):new URL(s),x=cl(v.pathname,f);v.origin===h.origin&&x!=null?s=x+v.search+v.hash:d=!0}catch{De(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:d,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Dh=["POST","PUT","PATCH","DELETE"];new Set(Dh);var uv=["GET",...Dh];new Set(uv);var Ya=b.createContext(null);Ya.displayName="DataRouter";var yi=b.createContext(null);yi.displayName="DataRouterState";var iv=b.createContext(!1),jh=b.createContext({isTransitioning:!1});jh.displayName="ViewTransition";var cv=b.createContext(new Map);cv.displayName="Fetchers";var fv=b.createContext(null);fv.displayName="Await";var ve=b.createContext(null);ve.displayName="Navigation";var Xn=b.createContext(null);Xn.displayName="Location";var Ce=b.createContext({outlet:null,matches:[],isDataRoute:!1});Ce.displayName="Route";var Ff=b.createContext(null);Ff.displayName="RouteError";var Hh="REACT_ROUTER_ERROR",ov="REDIRECT",sv="ROUTE_ERROR_RESPONSE";function rv(i){if(i.startsWith(`${Hh}:${ov}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function dv(i){if(i.startsWith(`${Hh}:${sv}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new lv(f.status,f.statusText,f.data)}catch{}}function hv(i,{relative:f}={}){Rt(Ga(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=b.useContext(ve),{hash:d,pathname:h,search:v}=Qn(i,{relative:f}),x=h;return s!=="/"&&(x=h==="/"?s:Xe([s,h])),o.createHref({pathname:x,search:v,hash:d})}function Ga(){return b.useContext(Xn)!=null}function je(){return Rt(Ga(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Xn).location}var Bh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Lh(i){b.useContext(ve).static||b.useLayoutEffect(i)}function If(){let{isDataRoute:i}=b.useContext(Ce);return i?Ov():mv()}function mv(){Rt(Ga(),"useNavigate() may be used only in the context of a <Router> component.");let i=b.useContext(Ya),{basename:f,navigator:s}=b.useContext(ve),{matches:o}=b.useContext(Ce),{pathname:d}=je(),h=JSON.stringify(Wf(o)),v=b.useRef(!1);return Lh(()=>{v.current=!0}),b.useCallback((S,y={})=>{if(De(v.current,Bh),!v.current)return;if(typeof S=="number"){s.go(S);return}let O=mi(S,JSON.parse(h),d,y.relative==="path");i==null&&f!=="/"&&(O.pathname=O.pathname==="/"?f:Xe([f,O.pathname])),(y.replace?s.replace:s.push)(O,y.state,y)},[f,s,h,d,i])}var yv=b.createContext(null);function vv(i){let f=b.useContext(Ce).outlet;return b.useMemo(()=>f&&b.createElement(yv.Provider,{value:i},f),[f,i])}function Gg(){let{matches:i}=b.useContext(Ce),f=i[i.length-1];return f?f.params:{}}function Qn(i,{relative:f}={}){let{matches:s}=b.useContext(Ce),{pathname:o}=je(),d=JSON.stringify(Wf(s));return b.useMemo(()=>mi(i,JSON.parse(d),o,f==="path"),[i,d,o,f])}function gv(i,f){return qh(i,f)}function qh(i,f,s){var Q;Rt(Ga(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=b.useContext(ve),{matches:d}=b.useContext(Ce),h=d[d.length-1],v=h?h.params:{},x=h?h.pathname:"/",S=h?h.pathnameBase:"/",y=h&&h.route;{let q=y&&y.path||"";Yh(x,!y||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
+
61
+ Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let O=je(),z;if(f){let q=typeof f=="string"?wa(f):f;Rt(S==="/"||((Q=q.pathname)==null?void 0:Q.startsWith(S)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${S}" but pathname "${q.pathname}" was given in the \`location\` prop.`),z=q}else z=O;let H=z.pathname||"/",X=H;if(S!=="/"){let q=S.replace(/^\//,"").split("/");X="/"+H.replace(/^\//,"").split("/").slice(q.length).join("/")}let B=Oh(i,{pathname:X});De(y||B!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),De(B==null||B[B.length-1].route.element!==void 0||B[B.length-1].route.Component!==void 0||B[B.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let L=xv(B&&B.map(q=>Object.assign({},q,{params:Object.assign({},v,q.params),pathname:Xe([S,o.encodeLocation?o.encodeLocation(q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?S:Xe([S,o.encodeLocation?o.encodeLocation(q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),d,s);return f&&L?b.createElement(Xn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...z},navigationType:"POP"}},L):L}function pv(){let i=Rv(),f=av(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:o},h={padding:"2px 4px",backgroundColor:o},v=null;return console.error("Error handled by React Router default ErrorBoundary:",i),v=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:h},"ErrorBoundary")," or"," ",b.createElement("code",{style:h},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},f),s?b.createElement("pre",{style:d},s):null,v)}var Sv=b.createElement(pv,null),wh=class extends b.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const s=dv(i.digest);s&&(i=s)}let f=i!==void 0?b.createElement(Ce.Provider,{value:this.props.routeContext},b.createElement(Ff.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?b.createElement(bv,{error:i},f):f}};wh.contextType=iv;var Qf=new WeakMap;function bv({children:i,error:f}){let{basename:s}=b.useContext(ve);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let o=rv(f.digest);if(o){let d=Qf.get(f);if(d)throw d;let h=Uh(o.location,s);if(Nh&&!Qf.get(f))if(h.isExternal||o.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:o.replace}));throw Qf.set(f,v),v}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function Ev({routeContext:i,match:f,children:s}){let o=b.useContext(Ya);return o&&o.static&&o.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=f.route.id),b.createElement(Ce.Provider,{value:i},s)}function xv(i,f=[],s){let o=s==null?void 0:s.state;if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(f.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let d=i,h=o==null?void 0:o.errors;if(h!=null){let O=d.findIndex(z=>z.route.id&&(h==null?void 0:h[z.route.id])!==void 0);Rt(O>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,O+1))}let v=!1,x=-1;if(s&&o){v=o.renderFallback;for(let O=0;O<d.length;O++){let z=d[O];if((z.route.HydrateFallback||z.route.hydrateFallbackElement)&&(x=O),z.route.id){let{loaderData:H,errors:X}=o,B=z.route.loader&&!H.hasOwnProperty(z.route.id)&&(!X||X[z.route.id]===void 0);if(z.route.lazy||B){s.isStatic&&(v=!0),x>=0?d=d.slice(0,x+1):d=[d[0]];break}}}}let S=s==null?void 0:s.onError,y=o&&S?(O,z)=>{var H,X;S(O,{location:o.location,params:((X=(H=o.matches)==null?void 0:H[0])==null?void 0:X.params)??{},unstable_pattern:nv(o.matches),errorInfo:z})}:void 0;return d.reduceRight((O,z,H)=>{let X,B=!1,L=null,Q=null;o&&(X=h&&z.route.id?h[z.route.id]:void 0,L=z.route.errorElement||Sv,v&&(x<0&&H===0?(Yh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),B=!0,Q=null):x===H&&(B=!0,Q=z.route.hydrateFallbackElement||null)));let q=f.concat(d.slice(0,H+1)),F=()=>{let K;return X?K=L:B?K=Q:z.route.Component?K=b.createElement(z.route.Component,null):z.route.element?K=z.route.element:K=O,b.createElement(Ev,{match:z,routeContext:{outlet:O,matches:q,isDataRoute:o!=null},children:K})};return o&&(z.route.ErrorBoundary||z.route.errorElement||H===0)?b.createElement(wh,{location:o.location,revalidation:o.revalidation,component:L,error:X,children:F(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:y}):F()},null)}function Pf(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tv(i){let f=b.useContext(Ya);return Rt(f,Pf(i)),f}function _v(i){let f=b.useContext(yi);return Rt(f,Pf(i)),f}function zv(i){let f=b.useContext(Ce);return Rt(f,Pf(i)),f}function to(i){let f=zv(i),s=f.matches[f.matches.length-1];return Rt(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function Av(){return to("useRouteId")}function Rv(){var o;let i=b.useContext(Ff),f=_v("useRouteError"),s=to("useRouteError");return i!==void 0?i:(o=f.errors)==null?void 0:o[s]}function Ov(){let{router:i}=Tv("useNavigate"),f=to("useNavigate"),s=b.useRef(!1);return Lh(()=>{s.current=!0}),b.useCallback(async(d,h={})=>{De(s.current,Bh),s.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:f,...h}))},[i,f])}var Eh={};function Yh(i,f,s){!f&&!Eh[i]&&(Eh[i]=!0,De(!1,s))}b.memo(Cv);function Cv({routes:i,future:f,state:s,isStatic:o,onError:d}){return qh(i,void 0,{state:s,isStatic:o,onError:d})}function Mv({to:i,replace:f,state:s,relative:o}){Rt(Ga(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=b.useContext(ve);De(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=b.useContext(Ce),{pathname:v}=je(),x=If(),S=mi(i,Wf(h),v,o==="path"),y=JSON.stringify(S);return b.useEffect(()=>{x(JSON.parse(y),{replace:f,state:s,relative:o})},[x,y,o,f,s]),null}function Nv(i){return vv(i.context)}function Ge(i){Rt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Uv({basename:i="/",children:f=null,location:s,navigationType:o="POP",navigator:d,static:h=!1,unstable_useTransitions:v}){Rt(!Ga(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=i.replace(/^\/*/,"/"),S=b.useMemo(()=>({basename:x,navigator:d,static:h,unstable_useTransitions:v,future:{}}),[x,d,h,v]);typeof s=="string"&&(s=wa(s));let{pathname:y="/",search:O="",hash:z="",state:H=null,key:X="default",unstable_mask:B}=s,L=b.useMemo(()=>{let Q=cl(y,x);return Q==null?null:{location:{pathname:Q,search:O,hash:z,state:H,key:X,unstable_mask:B},navigationType:o}},[x,y,O,z,H,X,o,B]);return De(L!=null,`<Router basename="${x}"> is not able to match the URL "${y}${O}${z}" because it does not start with the basename, so the <Router> won't render anything.`),L==null?null:b.createElement(ve.Provider,{value:S},b.createElement(Xn.Provider,{children:f,value:L}))}function Dv({children:i,location:f}){return gv(Kf(i),f)}function Kf(i,f=[]){let s=[];return b.Children.forEach(i,(o,d)=>{if(!b.isValidElement(o))return;let h=[...f,d];if(o.type===b.Fragment){s.push.apply(s,Kf(o.props.children,h));return}Rt(o.type===Ge,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Rt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let v={id:o.props.id||h.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(v.children=Kf(o.props.children,h)),s.push(v)}),s}var oi="get",si="application/x-www-form-urlencoded";function vi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function jv(i){return vi(i)&&i.tagName.toLowerCase()==="button"}function Hv(i){return vi(i)&&i.tagName.toLowerCase()==="form"}function Bv(i){return vi(i)&&i.tagName.toLowerCase()==="input"}function Lv(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function qv(i,f){return i.button===0&&(!f||f==="_self")&&!Lv(i)}var fi=null;function wv(){if(fi===null)try{new FormData(document.createElement("form"),0),fi=!1}catch{fi=!0}return fi}var Yv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zf(i){return i!=null&&!Yv.has(i)?(De(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${si}"`),null):i}function Gv(i,f){let s,o,d,h,v;if(Hv(i)){let x=i.getAttribute("action");o=x?cl(x,f):null,s=i.getAttribute("method")||oi,d=Zf(i.getAttribute("enctype"))||si,h=new FormData(i)}else if(jv(i)||Bv(i)&&(i.type==="submit"||i.type==="image")){let x=i.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||x.getAttribute("action");if(o=S?cl(S,f):null,s=i.getAttribute("formmethod")||x.getAttribute("method")||oi,d=Zf(i.getAttribute("formenctype"))||Zf(x.getAttribute("enctype"))||si,h=new FormData(x,i),!wv()){let{name:y,type:O,value:z}=i;if(O==="image"){let H=y?`${y}.`:"";h.append(`${H}x`,"0"),h.append(`${H}y`,"0")}else y&&h.append(y,z)}}else{if(vi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=oi,o=null,d=si,v=i}return h&&d==="text/plain"&&(v=h,h=void 0),{action:o,method:s.toLowerCase(),encType:d,formData:h,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function eo(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Xv(i,f,s,o){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${o}`:d.pathname=`${d.pathname}.${o}`:d.pathname==="/"?d.pathname=`_root.${o}`:f&&cl(d.pathname,f)==="/"?d.pathname=`${f.replace(/\/$/,"")}/_root.${o}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${o}`,d}async function Qv(i,f){if(i.id in f)return f[i.id];try{let s=await import(i.module);return f[i.id]=s,s}catch(s){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zv(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Vv(i,f,s){let o=await Promise.all(i.map(async d=>{let h=f.routes[d.route.id];if(h){let v=await Qv(h,s);return v.links?v.links():[]}return[]}));return $v(o.flat(1).filter(Zv).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function xh(i,f,s,o,d,h){let v=(S,y)=>s[y]?S.route.id!==s[y].route.id:!0,x=(S,y)=>{var O;return s[y].pathname!==S.pathname||((O=s[y].route.path)==null?void 0:O.endsWith("*"))&&s[y].params["*"]!==S.params["*"]};return h==="assets"?f.filter((S,y)=>v(S,y)||x(S,y)):h==="data"?f.filter((S,y)=>{var z;let O=o.routes[S.route.id];if(!O||!O.hasLoader)return!1;if(v(S,y)||x(S,y))return!0;if(S.route.shouldRevalidate){let H=S.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((z=s[0])==null?void 0:z.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof H=="boolean")return H}return!0}):[]}function Jv(i,f,{includeHydrateFallback:s}={}){return Kv(i.map(o=>{let d=f.routes[o.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),s&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function Kv(i){return[...new Set(i)]}function kv(i){let f={},s=Object.keys(i).sort();for(let o of s)f[o]=i[o];return f}function $v(i,f){let s=new Set;return new Set(f),i.reduce((o,d)=>{let h=JSON.stringify(kv(d));return s.has(h)||(s.add(h),o.push({key:h,link:d})),o},[])}function Gh(){let i=b.useContext(Ya);return eo(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Wv(){let i=b.useContext(yi);return eo(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var lo=b.createContext(void 0);lo.displayName="FrameworkContext";function Xh(){let i=b.useContext(lo);return eo(i,"You must render this element inside a <HydratedRouter> element"),i}function Fv(i,f){let s=b.useContext(lo),[o,d]=b.useState(!1),[h,v]=b.useState(!1),{onFocus:x,onBlur:S,onMouseEnter:y,onMouseLeave:O,onTouchStart:z}=f,H=b.useRef(null);b.useEffect(()=>{if(i==="render"&&v(!0),i==="viewport"){let L=q=>{q.forEach(F=>{v(F.isIntersecting)})},Q=new IntersectionObserver(L,{threshold:.5});return H.current&&Q.observe(H.current),()=>{Q.disconnect()}}},[i]),b.useEffect(()=>{if(o){let L=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(L)}}},[o]);let X=()=>{d(!0)},B=()=>{d(!1),v(!1)};return s?i!=="intent"?[h,H,{}]:[h,H,{onFocus:wn(x,X),onBlur:wn(S,B),onMouseEnter:wn(y,X),onMouseLeave:wn(O,B),onTouchStart:wn(z,X)}]:[!1,H,{}]}function wn(i,f){return s=>{i&&i(s),s.defaultPrevented||f(s)}}function Iv({page:i,...f}){let{router:s}=Gh(),o=b.useMemo(()=>Oh(s.routes,i,s.basename),[s.routes,i,s.basename]);return o?b.createElement(t1,{page:i,matches:o,...f}):null}function Pv(i){let{manifest:f,routeModules:s}=Xh(),[o,d]=b.useState([]);return b.useEffect(()=>{let h=!1;return Vv(i,f,s).then(v=>{h||d(v)}),()=>{h=!0}},[i,f,s]),o}function t1({page:i,matches:f,...s}){let o=je(),{future:d,manifest:h,routeModules:v}=Xh(),{basename:x}=Gh(),{loaderData:S,matches:y}=Wv(),O=b.useMemo(()=>xh(i,f,y,h,o,"data"),[i,f,y,h,o]),z=b.useMemo(()=>xh(i,f,y,h,o,"assets"),[i,f,y,h,o]),H=b.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let L=new Set,Q=!1;if(f.forEach(F=>{var vt;let K=h.routes[F.route.id];!K||!K.hasLoader||(!O.some(ht=>ht.route.id===F.route.id)&&F.route.id in S&&((vt=v[F.route.id])!=null&&vt.shouldRevalidate)||K.hasClientLoader?Q=!0:L.add(F.route.id))}),L.size===0)return[];let q=Xv(i,x,d.unstable_trailingSlashAwareDataRequests,"data");return Q&&L.size>0&&q.searchParams.set("_routes",f.filter(F=>L.has(F.route.id)).map(F=>F.route.id).join(",")),[q.pathname+q.search]},[x,d.unstable_trailingSlashAwareDataRequests,S,o,h,O,f,i,v]),X=b.useMemo(()=>Jv(z,h),[z,h]),B=Pv(z);return b.createElement(b.Fragment,null,H.map(L=>b.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...s})),X.map(L=>b.createElement("link",{key:L,rel:"modulepreload",href:L,...s})),B.map(({key:L,link:Q})=>b.createElement("link",{key:L,nonce:s.nonce,...Q,crossOrigin:Q.crossOrigin??s.crossOrigin})))}function e1(...i){return f=>{i.forEach(s=>{typeof s=="function"?s(f):s!=null&&(s.current=f)})}}var l1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{l1&&(window.__reactRouterVersion="7.13.1")}catch{}function a1({basename:i,children:f,unstable_useTransitions:s,window:o}){let d=b.useRef();d.current==null&&(d.current=D0({window:o,v5Compat:!0}));let h=d.current,[v,x]=b.useState({action:h.action,location:h.location}),S=b.useCallback(y=>{s===!1?x(y):b.startTransition(()=>x(y))},[s]);return b.useLayoutEffect(()=>h.listen(S),[h,S]),b.createElement(Uv,{basename:i,children:f,location:v.location,navigationType:v.action,navigator:h,unstable_useTransitions:s})}var Qh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zh=b.forwardRef(function({onClick:f,discover:s="render",prefetch:o="none",relative:d,reloadDocument:h,replace:v,unstable_mask:x,state:S,target:y,to:O,preventScrollReset:z,viewTransition:H,unstable_defaultShouldRevalidate:X,...B},L){let{basename:Q,navigator:q,unstable_useTransitions:F}=b.useContext(ve),K=typeof O=="string"&&Qh.test(O),vt=Uh(O,Q);O=vt.to;let ht=hv(O,{relative:d}),Tt=je(),I=null;if(x){let Ht=mi(x,[],Tt.unstable_mask?Tt.unstable_mask.pathname:"/",!0);Q!=="/"&&(Ht.pathname=Ht.pathname==="/"?Q:Xe([Q,Ht.pathname])),I=q.createHref(Ht)}let[Nt,kt,He]=Fv(o,B),ge=i1(O,{replace:v,unstable_mask:x,state:S,target:y,preventScrollReset:z,relative:d,viewTransition:H,unstable_defaultShouldRevalidate:X,unstable_useTransitions:F});function $t(Ht){f&&f(Ht),Ht.defaultPrevented||ge(Ht)}let Be=!(vt.isExternal||h),pe=b.createElement("a",{...B,...He,href:(Be?I:void 0)||vt.absoluteURL||ht,onClick:Be?$t:f,ref:e1(L,kt),target:y,"data-discover":!K&&s==="render"?"true":void 0});return Nt&&!K?b.createElement(b.Fragment,null,pe,b.createElement(Iv,{page:ht})):pe});Zh.displayName="Link";var di=b.forwardRef(function({"aria-current":f="page",caseSensitive:s=!1,className:o="",end:d=!1,style:h,to:v,viewTransition:x,children:S,...y},O){let z=Qn(v,{relative:y.relative}),H=je(),X=b.useContext(yi),{navigator:B,basename:L}=b.useContext(ve),Q=X!=null&&r1(z)&&x===!0,q=B.encodeLocation?B.encodeLocation(z).pathname:z.pathname,F=H.pathname,K=X&&X.navigation&&X.navigation.location?X.navigation.location.pathname:null;s||(F=F.toLowerCase(),K=K?K.toLowerCase():null,q=q.toLowerCase()),K&&L&&(K=cl(K,L)||K);const vt=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let ht=F===q||!d&&F.startsWith(q)&&F.charAt(vt)==="/",Tt=K!=null&&(K===q||!d&&K.startsWith(q)&&K.charAt(q.length)==="/"),I={isActive:ht,isPending:Tt,isTransitioning:Q},Nt=ht?f:void 0,kt;typeof o=="function"?kt=o(I):kt=[o,ht?"active":null,Tt?"pending":null,Q?"transitioning":null].filter(Boolean).join(" ");let He=typeof h=="function"?h(I):h;return b.createElement(Zh,{...y,"aria-current":Nt,className:kt,ref:O,style:He,to:v,viewTransition:x},typeof S=="function"?S(I):S)});di.displayName="NavLink";var n1=b.forwardRef(({discover:i="render",fetcherKey:f,navigate:s,reloadDocument:o,replace:d,state:h,method:v=oi,action:x,onSubmit:S,relative:y,preventScrollReset:O,viewTransition:z,unstable_defaultShouldRevalidate:H,...X},B)=>{let{unstable_useTransitions:L}=b.useContext(ve),Q=o1(),q=s1(x,{relative:y}),F=v.toLowerCase()==="get"?"get":"post",K=typeof x=="string"&&Qh.test(x),vt=ht=>{if(S&&S(ht),ht.defaultPrevented)return;ht.preventDefault();let Tt=ht.nativeEvent.submitter,I=(Tt==null?void 0:Tt.getAttribute("formmethod"))||v,Nt=()=>Q(Tt||ht.currentTarget,{fetcherKey:f,method:I,navigate:s,replace:d,state:h,relative:y,preventScrollReset:O,viewTransition:z,unstable_defaultShouldRevalidate:H});L&&s!==!1?b.startTransition(()=>Nt()):Nt()};return b.createElement("form",{ref:B,method:F,action:q,onSubmit:o?S:vt,...X,"data-discover":!K&&i==="render"?"true":void 0})});n1.displayName="Form";function u1(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vh(i){let f=b.useContext(Ya);return Rt(f,u1(i)),f}function i1(i,{target:f,replace:s,unstable_mask:o,state:d,preventScrollReset:h,relative:v,viewTransition:x,unstable_defaultShouldRevalidate:S,unstable_useTransitions:y}={}){let O=If(),z=je(),H=Qn(i,{relative:v});return b.useCallback(X=>{if(qv(X,f)){X.preventDefault();let B=s!==void 0?s:Gn(z)===Gn(H),L=()=>O(i,{replace:B,unstable_mask:o,state:d,preventScrollReset:h,relative:v,viewTransition:x,unstable_defaultShouldRevalidate:S});y?b.startTransition(()=>L()):L()}},[z,O,H,s,o,d,f,i,h,v,x,S,y])}var c1=0,f1=()=>`__${String(++c1)}__`;function o1(){let{router:i}=Vh("useSubmit"),{basename:f}=b.useContext(ve),s=Av(),o=i.fetch,d=i.navigate;return b.useCallback(async(h,v={})=>{let{action:x,method:S,encType:y,formData:O,body:z}=Gv(h,f);if(v.navigate===!1){let H=v.fetcherKey||f1();await o(H,s,v.action||x,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:O,body:z,formMethod:v.method||S,formEncType:v.encType||y,flushSync:v.flushSync})}else await d(v.action||x,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:O,body:z,formMethod:v.method||S,formEncType:v.encType||y,replace:v.replace,state:v.state,fromRouteId:s,flushSync:v.flushSync,viewTransition:v.viewTransition})},[o,d,f,s])}function s1(i,{relative:f}={}){let{basename:s}=b.useContext(ve),o=b.useContext(Ce);Rt(o,"useFormAction must be used inside a RouteContext");let[d]=o.matches.slice(-1),h={...Qn(i||".",{relative:f})},v=je();if(i==null){h.search=v.search;let x=new URLSearchParams(h.search),S=x.getAll("index");if(S.some(O=>O==="")){x.delete("index"),S.filter(z=>z).forEach(z=>x.append("index",z));let O=x.toString();h.search=O?`?${O}`:""}}return(!i||i===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(h.pathname=h.pathname==="/"?s:Xe([s,h.pathname])),Gn(h)}function r1(i,{relative:f}={}){let s=b.useContext(jh);Rt(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Vh("useViewTransitionState"),d=Qn(i,{relative:f});if(!s.isTransitioning)return!1;let h=cl(s.currentLocation.pathname,o)||s.currentLocation.pathname,v=cl(s.nextLocation.pathname,o)||s.nextLocation.pathname;return ri(d.pathname,v)!=null||ri(d.pathname,h)!=null}const d1="modulepreload",h1=function(i){return"/"+i},Th={},jl=function(f,s,o){let d=Promise.resolve();if(s&&s.length>0){let v=function(y){return Promise.all(y.map(O=>Promise.resolve(O).then(z=>({status:"fulfilled",value:z}),z=>({status:"rejected",reason:z}))))};document.getElementsByTagName("link");const x=document.querySelector("meta[property=csp-nonce]"),S=(x==null?void 0:x.nonce)||(x==null?void 0:x.getAttribute("nonce"));d=v(s.map(y=>{if(y=h1(y),y in Th)return;Th[y]=!0;const O=y.endsWith(".css"),z=O?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${z}`))return;const H=document.createElement("link");if(H.rel=O?"stylesheet":d1,O||(H.as="script"),H.crossOrigin="",H.href=y,S&&H.setAttribute("nonce",S),document.head.appendChild(H),O)return new Promise((X,B)=>{H.addEventListener("load",X),H.addEventListener("error",()=>B(new Error(`Unable to preload CSS for ${y}`)))})}))}function h(v){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=v,window.dispatchEvent(x),!x.defaultPrevented)throw v}return d.then(v=>{for(const x of v||[])x.status==="rejected"&&h(x.reason);return f().catch(h)})};/**
62
+ * @license lucide-react v0.577.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const Jh=(...i)=>i.filter((f,s,o)=>!!f&&f.trim()!==""&&o.indexOf(f)===s).join(" ").trim();/**
67
+ * @license lucide-react v0.577.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const m1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
72
+ * @license lucide-react v0.577.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const y1=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(f,s,o)=>o?o.toUpperCase():s.toLowerCase());/**
77
+ * @license lucide-react v0.577.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const _h=i=>{const f=y1(i);return f.charAt(0).toUpperCase()+f.slice(1)};/**
82
+ * @license lucide-react v0.577.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */var v1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
87
+ * @license lucide-react v0.577.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const g1=i=>{for(const f in i)if(f.startsWith("aria-")||f==="role"||f==="title")return!0;return!1};/**
92
+ * @license lucide-react v0.577.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const p1=b.forwardRef(({color:i="currentColor",size:f=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:d="",children:h,iconNode:v,...x},S)=>b.createElement("svg",{ref:S,...v1,width:f,height:f,stroke:i,strokeWidth:o?Number(s)*24/Number(f):s,className:Jh("lucide",d),...!h&&!g1(x)&&{"aria-hidden":"true"},...x},[...v.map(([y,O])=>b.createElement(y,O)),...Array.isArray(h)?h:[h]]));/**
97
+ * @license lucide-react v0.577.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const Ot=(i,f)=>{const s=b.forwardRef(({className:o,...d},h)=>b.createElement(p1,{ref:h,iconNode:f,className:Jh(`lucide-${m1(_h(i))}`,`lucide-${i}`,o),...d}));return s.displayName=_h(i),s};/**
102
+ * @license lucide-react v0.577.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const S1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],b1=Ot("arrow-right",S1);/**
107
+ * @license lucide-react v0.577.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const E1=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],x1=Ot("book-open",E1);/**
112
+ * @license lucide-react v0.577.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const T1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],_1=Ot("chevron-up",T1);/**
117
+ * @license lucide-react v0.577.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const z1=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],A1=Ot("circle-check-big",z1);/**
122
+ * @license lucide-react v0.577.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const R1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],O1=Ot("circle-x",R1);/**
127
+ * @license lucide-react v0.577.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const C1=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],M1=Ot("eye",C1);/**
132
+ * @license lucide-react v0.577.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const N1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],U1=Ot("file-text",N1);/**
137
+ * @license lucide-react v0.577.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const D1=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],j1=Ot("folder-kanban",D1);/**
142
+ * @license lucide-react v0.577.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const H1=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],B1=Ot("house",H1);/**
147
+ * @license lucide-react v0.577.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const L1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],q1=Ot("info",L1);/**
152
+ * @license lucide-react v0.577.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const w1=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],Y1=Ot("layout-template",w1);/**
157
+ * @license lucide-react v0.577.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const G1=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],X1=Ot("log-out",G1);/**
162
+ * @license lucide-react v0.577.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const Q1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Z1=Ot("menu",Q1);/**
167
+ * @license lucide-react v0.577.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const V1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],J1=Ot("message-square",V1);/**
172
+ * @license lucide-react v0.577.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const K1=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],k1=Ot("monitor",K1);/**
177
+ * @license lucide-react v0.577.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const $1=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],W1=Ot("moon",$1);/**
182
+ * @license lucide-react v0.577.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const F1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],I1=Ot("panel-left-close",F1);/**
187
+ * @license lucide-react v0.577.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const P1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],tg=Ot("panel-left",P1);/**
192
+ * @license lucide-react v0.577.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const eg=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Kh=Ot("settings-2",eg);/**
197
+ * @license lucide-react v0.577.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const lg=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],ag=Ot("sun",lg);/**
202
+ * @license lucide-react v0.577.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const ng=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ug=Ot("terminal",ng);/**
207
+ * @license lucide-react v0.577.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const ig=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],cg=Ot("triangle-alert",ig);/**
212
+ * @license lucide-react v0.577.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const fg=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],og=Ot("users",fg);/**
217
+ * @license lucide-react v0.577.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const sg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ao=Ot("x",sg),kf=`${window.location.origin}/api`,rg=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;function dg(){const i={"Content-Type":"application/json"};try{const f=localStorage.getItem("pl_auth_token");f&&(i.Authorization=`Bearer ${f}`)}catch{}return i}async function G(i,f){const s=await fetch(`${kf}${i}`,{...f,headers:{...dg(),...f==null?void 0:f.headers}});if(!s.ok){const o=await s.text().catch(()=>"");throw new Error(`API error ${s.status}: ${s.statusText}${o?` - ${o}`:""}`)}return s.json()}const qa={startSession:i=>G("/session/start",{method:"POST",body:JSON.stringify(i)}),quickStart:(i,f="claude")=>G("/session/quick-start",{method:"POST",body:JSON.stringify({prompt:i,provider:f})}),stopSession:()=>G("/session/stop",{method:"POST"}),pauseSession:()=>G("/session/pause",{method:"POST"}),resumeSession:()=>G("/session/resume",{method:"POST"}),getPrdPrefill:()=>G("/session/prd-prefill"),getStatus:()=>G("/session/status"),getAgents:()=>G("/session/agents"),getLogs:(i=200)=>G(`/session/logs?lines=${i}`),getMemorySummary:()=>G("/session/memory"),getChecklist:()=>G("/session/checklist"),getFiles:()=>G("/session/files"),getFileContent:i=>G(`/session/files/content?path=${encodeURIComponent(i)}`),getSessionFileContent:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/file?path=${encodeURIComponent(f)}`),getTemplates:()=>G("/templates"),getTemplateContent:i=>G(`/templates/${encodeURIComponent(i)}`),planSession:(i,f)=>G("/session/plan",{method:"POST",body:JSON.stringify({prd:i,provider:f})}),generateReport:(i="markdown")=>G("/session/report",{method:"POST",body:JSON.stringify({format:i})}),shareSession:()=>G("/session/share",{method:"POST"}),getCurrentProvider:()=>G("/provider/current"),setProvider:i=>G("/provider/set",{method:"POST",body:JSON.stringify({provider:i})}),getMetrics:()=>G("/session/metrics"),getSessionsHistory:()=>G("/sessions/history"),getSessionDetail:i=>G(`/sessions/${encodeURIComponent(i)}`),deleteSession:i=>G(`/sessions/${encodeURIComponent(i)}`,{method:"DELETE"}),onboardRepo:i=>G("/session/onboard",{method:"POST",body:JSON.stringify({path:i})}),saveSessionFile:(i,f,s)=>G(`/sessions/${encodeURIComponent(i)}/file`,{method:"PUT",body:JSON.stringify({path:f,content:s})}),createSessionFile:(i,f,s="")=>G(`/sessions/${encodeURIComponent(i)}/file`,{method:"POST",body:JSON.stringify({path:f,content:s})}),deleteSessionFile:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/file`,{method:"DELETE",body:JSON.stringify({path:f})}),createSessionDirectory:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/directory`,{method:"POST",body:JSON.stringify({path:f})}),reviewProject:i=>G(`/sessions/${encodeURIComponent(i)}/review`,{method:"POST"}),testProject:i=>G(`/sessions/${encodeURIComponent(i)}/test`,{method:"POST"}),explainProject:i=>G(`/sessions/${encodeURIComponent(i)}/explain`,{method:"POST"}),exportProject:i=>G(`/sessions/${encodeURIComponent(i)}/export`,{method:"POST"}),fixProject:i=>G(`/sessions/${encodeURIComponent(i)}/fix`,{method:"POST"}),chatMessage:(i,f,s="quick")=>G(`/sessions/${encodeURIComponent(i)}/chat`,{method:"POST",body:JSON.stringify({message:f,mode:s})}),chatStart:(i,f,s="quick",o)=>G(`/sessions/${encodeURIComponent(i)}/chat`,{method:"POST",body:JSON.stringify({message:f,mode:s,history:o})}),chatPoll:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/chat/${encodeURIComponent(f)}`),chatStreamUrl:(i,f)=>`${kf}/sessions/${encodeURIComponent(i)}/chat/${encodeURIComponent(f)}/stream`,chatCancel:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/chat/${encodeURIComponent(f)}/cancel`,{method:"POST"}),getPreviewInfo:i=>G(`/sessions/${encodeURIComponent(i)}/preview-info`),devserver:{start:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/devserver/start`,{method:"POST",body:JSON.stringify({command:f||null})}),stop:i=>G(`/sessions/${encodeURIComponent(i)}/devserver/stop`,{method:"POST"}),status:i=>G(`/sessions/${encodeURIComponent(i)}/devserver/status`)},getSecrets:()=>G("/secrets"),setSecret:(i,f)=>G("/secrets",{method:"POST",body:JSON.stringify({key:i,value:f})}),deleteSecret:i=>G(`/secrets/${encodeURIComponent(i)}`,{method:"DELETE"}),getServices:i=>G(`/sessions/${encodeURIComponent(i)}/services`),getTeams:()=>G("/teams"),createTeam:i=>G("/teams",{method:"POST",body:JSON.stringify({name:i})}),getTeamMembers:i=>G(`/teams/${encodeURIComponent(i)}/members`),addTeamMember:(i,f,s)=>G(`/teams/${encodeURIComponent(i)}/members`,{method:"POST",body:JSON.stringify({email:f,role:s})}),getAuditLog:()=>G("/audit-log"),getServiceLogs:(i,f,s=50)=>G(`/sessions/${encodeURIComponent(i)}/devserver/logs${f?`?service=${encodeURIComponent(f)}&tail=${s}`:`?tail=${s}`}`),getCheckpoints:i=>G(`/sessions/${encodeURIComponent(i)}/checkpoints`),restoreCheckpoint:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/checkpoints/${encodeURIComponent(f)}/restore`,{method:"POST"}),previewChanges:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/chat/preview`,{method:"POST",body:JSON.stringify({message:f})}),searchFiles:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/files/search?q=${encodeURIComponent(f)}`),restartService:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/devserver/restart-service`,{method:"POST",body:JSON.stringify({service:f})}),deployProject:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/deploy`,{method:"POST",body:JSON.stringify({platform:f})}),githubPush:i=>G(`/sessions/${encodeURIComponent(i)}/github/push`,{method:"POST"}),getMe:()=>G("/auth/me"),getGitHubAuthUrl:()=>G("/auth/github/url"),getGoogleAuthUrl:()=>G("/auth/google/url"),githubCallback:(i,f)=>G("/auth/github/callback",{method:"POST",body:JSON.stringify({code:i,state:f})}),googleCallback:(i,f,s)=>G("/auth/google/callback",{method:"POST",body:JSON.stringify({code:i,state:f,redirect_uri:s||`${window.location.origin}${window.location.pathname}`})}),git:{status:i=>G(`/sessions/${encodeURIComponent(i)}/git/status`),log:(i,f=20)=>G(`/sessions/${encodeURIComponent(i)}/git/log?limit=${f}`),branches:i=>G(`/sessions/${encodeURIComponent(i)}/git/branches`),commit:(i,f,s)=>G(`/sessions/${encodeURIComponent(i)}/git/commit`,{method:"POST",body:JSON.stringify({message:f,files:s})}),createBranch:(i,f,s=!0)=>G(`/sessions/${encodeURIComponent(i)}/git/branch`,{method:"POST",body:JSON.stringify({name:f,checkout:s})}),checkoutBranch:(i,f)=>G(`/sessions/${encodeURIComponent(i)}/git/checkout`,{method:"POST",body:JSON.stringify({name:f})}),push:i=>G(`/sessions/${encodeURIComponent(i)}/git/push`,{method:"POST"}),pr:(i,f,s)=>G(`/sessions/${encodeURIComponent(i)}/git/pr`,{method:"POST",body:JSON.stringify({title:f,body:s})})},chatImageUpload:async(i,f)=>{const s=new FormData;s.append("image",f);const o=await fetch(`${kf}/sessions/${encodeURIComponent(i)}/chat/image`,{method:"POST",headers:{...(()=>{const d={};try{const h=localStorage.getItem("pl_auth_token");h&&(d.Authorization=`Bearer ${h}`)}catch{}return d})()},body:s});if(!o.ok){const d=await o.text().catch(()=>"");throw new Error(`API error ${o.status}: ${o.statusText}${d?` - ${d}`:""}`)}return o.json()}};class hg{constructor(f){Bn(this,"ws",null);Bn(this,"listeners",new Map);Bn(this,"reconnectTimer",null);Bn(this,"url");this.url=f||rg}connect(){var f;((f=this.ws)==null?void 0:f.readyState)!==WebSocket.OPEN&&(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{this.emit("connected",{message:"WebSocket connected"})},this.ws.onmessage=s=>{try{const o=JSON.parse(s.data);if(o.type==="ping"){this.send({type:"pong"});return}this.emit(o.type,o.data||o)}catch{}},this.ws.onclose=()=>{this.emit("disconnected",{}),this.scheduleReconnect()},this.ws.onerror=()=>{var s;(s=this.ws)==null||s.close()})}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},3e3))}on(f,s){return this.listeners.has(f)||this.listeners.set(f,new Set),this.listeners.get(f).add(s),()=>{var o;return(o=this.listeners.get(f))==null?void 0:o.delete(s)}}emit(f,s){var o,d;(o=this.listeners.get(f))==null||o.forEach(h=>h(s)),(d=this.listeners.get("*"))==null||d.forEach(h=>h({type:f,data:s}))}send(f){var s;((s=this.ws)==null?void 0:s.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(f))}disconnect(){var f;this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(f=this.ws)==null||f.close(),this.ws=null}}const Vf="pl_auth_token",kh=b.createContext({user:null,loading:!0,login:()=>{},logout:()=>{},isLocalMode:!0});function mg(i,f,s){f(!1),s({email:i.sub||i.email||"",name:i.name||"",avatar_url:i.avatar||"",authenticated:!0})}function yg({children:i}){const[f,s]=b.useState(null),[o,d]=b.useState(!0),[h,v]=b.useState(!0),x=If(),S=je();b.useEffect(()=>{let H=!1;async function X(){const B=new URLSearchParams(window.location.search),L=B.get("token"),Q=B.get("code");if(L)localStorage.setItem(Vf,L),window.history.replaceState({},"",window.location.pathname);else if(Q)try{const q=sessionStorage.getItem("pl_oauth_provider")||"github",F=sessionStorage.getItem("pl_oauth_state")||"";sessionStorage.removeItem("pl_oauth_state"),sessionStorage.removeItem("pl_oauth_provider");let K;if(q==="google"?K=await qa.googleCallback(Q,F):K=await qa.githubCallback(Q,F),!H){localStorage.setItem(Vf,K.token),window.history.replaceState({},"",window.location.pathname),v(!1),s({email:K.user.email,name:K.user.name,avatar_url:K.user.avatar_url,authenticated:!0}),d(!1);return}}catch{window.history.replaceState({},"",window.location.pathname)}try{const q=await qa.getMe();if(H)return;q.local_mode?(v(!0),s(null)):q.authenticated?mg(q,v,s):(v(!1),s(null))}catch{if(H)return;v(!0),s(null)}finally{H||d(!1)}}return X(),()=>{H=!0}},[]);const y=b.useCallback(H=>{H==="github"?qa.getGitHubAuthUrl().then(X=>{try{const L=new URL(X.url).searchParams.get("state");L&&(sessionStorage.setItem("pl_oauth_state",L),sessionStorage.setItem("pl_oauth_provider","github"))}catch{}window.location.href=X.url}).catch(()=>{}):H==="google"&&qa.getGoogleAuthUrl().then(X=>{try{const L=new URL(X.url).searchParams.get("state");L&&(sessionStorage.setItem("pl_oauth_state",L),sessionStorage.setItem("pl_oauth_provider","google"))}catch{}window.location.href=X.url}).catch(()=>{})},[]),O=b.useCallback(()=>{localStorage.removeItem(Vf),s(null),S.pathname!=="/login"&&x("/login",{replace:!0})},[x,S.pathname]),z=b.useMemo(()=>({user:f,loading:o,login:y,logout:O,isLocalMode:h}),[f,o,y,O,h]);return A.jsx(kh.Provider,{value:z,children:i})}function $h(){return b.useContext(kh)}function vg(){const[i,f]=b.useState(()=>typeof window>"u"?"light":localStorage.getItem("pl_theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"));b.useEffect(()=>{document.documentElement.classList.toggle("dark",i==="dark"),localStorage.setItem("pl_theme",i)},[i]);const s=b.useCallback(()=>{f(o=>o==="light"?"dark":"light")},[]);return{theme:i,toggleTheme:s,isDark:i==="dark"}}const zh="pl_sidebar_collapsed",gg=[{to:"/",label:"Home",icon:B1},{to:"/projects",label:"Projects",icon:j1},{to:"/templates",label:"Templates",icon:Y1},{to:"/teams",label:"Teams",icon:og}],pg=[{to:"/settings",label:"Settings",icon:Kh}];function Sg(){const[i,f]=b.useState(typeof window<"u"?window.innerWidth<768:!1);return b.useEffect(()=>{const s=()=>f(window.innerWidth<768);return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),i}function bg({wsConnected:i,version:f}){const s=Sg(),o=je(),{theme:d,toggleTheme:h}=vg(),[v,x]=b.useState(!1),[S,y]=b.useState(()=>{try{return localStorage.getItem(zh)==="1"}catch{return!1}});b.useEffect(()=>{try{localStorage.setItem(zh,S?"1":"0")}catch{}},[S]),b.useEffect(()=>{s&&x(!1)},[o.pathname,s]);const O=s?v:!S,z=O?240:64,H=B=>["flex items-center gap-3 px-3 py-2 text-sm transition-colors rounded-[5px]",!O&&"justify-center",B?"bg-[#553DE9]/8 text-[#553DE9] font-medium border-l-2 border-[#553DE9]":"text-[#36342E] hover:bg-[#F8F4F0]"].filter(Boolean).join(" "),X=A.jsxs("aside",{className:"flex flex-col h-full border-r border-[#ECEAE3] bg-white transition-[width] duration-200",style:{width:z,minWidth:z},children:[A.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-[#ECEAE3]",children:[O&&A.jsxs("div",{className:"flex flex-col",children:[A.jsx("span",{className:"font-heading text-lg font-bold leading-tight text-[#36342E]",children:"Purple Lab"}),A.jsx("span",{className:"text-xs text-[#6B6960]",children:"Powered by Loki"})]}),s?A.jsx("button",{type:"button","aria-label":v?"Close menu":"Open menu",title:v?"Close menu":"Open menu",onClick:()=>x(!v),className:"inline-flex items-center justify-center w-7 h-7 rounded-[3px] text-[#939084] hover:bg-[#F8F4F0] transition-colors",children:v?A.jsx(ao,{size:16}):A.jsx(Z1,{size:16})}):A.jsx("button",{type:"button","aria-label":S?"Expand sidebar":"Collapse sidebar",title:S?"Expand sidebar":"Collapse sidebar",onClick:()=>y(!S),className:"inline-flex items-center justify-center w-7 h-7 rounded-[3px] text-[#939084] hover:bg-[#F8F4F0] transition-colors",children:S?A.jsx(tg,{size:16}):A.jsx(I1,{size:16})})]}),A.jsxs("nav",{className:"flex-1 px-2 py-3 flex flex-col gap-1","aria-label":"Main navigation",children:[gg.map(B=>A.jsxs(di,{to:B.to,end:B.to==="/",className:({isActive:L})=>H(L),title:O?void 0:B.label,children:[A.jsx(B.icon,{size:18}),O&&A.jsx("span",{children:B.label})]},B.to)),A.jsx("div",{className:"my-2 border-t border-[#ECEAE3]"}),pg.map(B=>A.jsxs(di,{to:B.to,className:({isActive:L})=>H(L),title:O?void 0:B.label,children:[A.jsx(B.icon,{size:18}),O&&A.jsx("span",{children:B.label})]},B.to))]}),A.jsxs("div",{className:"px-3 py-3 border-t border-[#ECEAE3] flex flex-col gap-2",children:[A.jsx(Eg,{collapsed:!O}),A.jsxs("div",{className:["flex items-center gap-2 text-xs",!O&&"justify-center"].filter(Boolean).join(" "),children:[A.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${i?"bg-[#1FC5A8]":"bg-[#C45B5B]"}`}),O&&A.jsx("span",{className:"text-[#6B6960]",children:i?"Connected":"Disconnected"})]}),O&&f&&A.jsxs("span",{className:"text-xs text-[#6B6960]",children:["v",f]}),A.jsxs("button",{onClick:h,title:d==="dark"?"Light mode":"Dark mode",className:["flex items-center gap-2 text-xs text-[#6B6960] hover:text-[#36342E] transition-colors",!O&&"justify-center"].filter(Boolean).join(" "),children:[d==="dark"?A.jsx(ag,{size:14}):A.jsx(W1,{size:14}),O&&A.jsx("span",{children:d==="dark"?"Light Mode":"Dark Mode"})]}),A.jsxs("a",{href:"https://www.autonomi.dev/docs",target:"_blank",rel:"noopener noreferrer",className:["flex items-center gap-2 text-xs text-[#6B6960] hover:text-[#36342E] transition-colors",!O&&"justify-center"].filter(Boolean).join(" "),title:O?void 0:"Documentation",children:[A.jsx(x1,{size:14}),O&&A.jsx("span",{children:"Docs"})]})]})]});return s&&v?A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"fixed inset-0 z-40 bg-ink/20",onClick:()=>x(!1)}),A.jsx("div",{className:"fixed inset-y-0 left-0 z-50",children:X})]}):X}function Eg({collapsed:i}){const{user:f,logout:s,isLocalMode:o}=$h(),[d,h]=b.useState(!1),v=b.useRef(null);return b.useEffect(()=>{function x(S){v.current&&!v.current.contains(S.target)&&h(!1)}if(d)return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[d]),o||!f?A.jsxs("div",{className:["flex items-center gap-2 text-xs",i&&"justify-center"].filter(Boolean).join(" "),title:i?"Local Mode":void 0,children:[A.jsx(k1,{size:14,className:"text-[#939084] flex-shrink-0"}),!i&&A.jsx("span",{className:"text-[#939084]",children:"Local Mode"})]}):A.jsxs("div",{className:"relative",ref:v,"data-testid":"user-section",children:[A.jsxs("button",{type:"button",onClick:()=>h(!d),className:["flex items-center gap-2 w-full text-left text-xs rounded-[3px] py-1 px-1 hover:bg-[#F8F4F0] transition-colors",i&&"justify-center"].filter(Boolean).join(" "),title:i?f.name||f.email:void 0,children:[f.avatar_url?A.jsx("img",{src:f.avatar_url,alt:"",className:"w-5 h-5 rounded-full flex-shrink-0"}):A.jsx("div",{className:"w-5 h-5 rounded-full bg-[#553DE9] flex items-center justify-center text-white text-[10px] font-bold flex-shrink-0",children:(f.name||f.email||"?")[0].toUpperCase()}),!i&&A.jsxs(A.Fragment,{children:[A.jsx("span",{className:"text-[#36342E] truncate flex-1",children:f.name||f.email}),A.jsx(_1,{size:12,className:`text-[#939084] transition-transform ${d?"":"rotate-180"}`})]})]}),d&&A.jsxs("div",{className:"absolute bottom-full left-0 mb-1 w-48 bg-white border border-[#ECEAE3] rounded-lg shadow-lg py-1 z-50",children:[A.jsxs("div",{className:"px-3 py-2 border-b border-[#ECEAE3]",children:[A.jsx("p",{className:"text-xs font-medium text-[#36342E] truncate",children:f.name}),A.jsx("p",{className:"text-xs text-[#939084] truncate",children:f.email})]}),A.jsxs(di,{to:"/settings",onClick:()=>h(!1),className:"flex items-center gap-2 px-3 py-2 text-xs text-[#36342E] hover:bg-[#F8F4F0] transition-colors",children:[A.jsx(Kh,{size:14}),"Settings"]}),A.jsxs("button",{type:"button",onClick:()=>{h(!1),s()},className:"flex items-center gap-2 px-3 py-2 text-xs text-[#C45B5B] hover:bg-[#F8F4F0] transition-colors w-full text-left",children:[A.jsx(X1,{size:14}),"Sign out"]})]})]})}const Ah="pl_onboarding_complete",Yn=[{icon:U1,title:"Write your PRD",description:"Describe what you want to build, or choose a template to get started quickly."},{icon:ug,title:"Use the terminal",description:"Run commands directly in the integrated terminal to install dependencies or debug."},{icon:M1,title:"Preview in real-time",description:"Switch to the Preview tab to see your app running with live reload."},{icon:J1,title:"Iterate with AI Chat",description:"Ask the AI to modify, fix, or explain your code in the chat panel."}];function xg(){const[i,f]=b.useState(!1),[s,o]=b.useState(0);b.useEffect(()=>{try{localStorage.getItem(Ah)!=="1"&&f(!0)}catch{}},[]);const d=()=>{f(!1);try{localStorage.setItem(Ah,"1")}catch{}},h=()=>{s<Yn.length-1?o(s+1):d()};if(!i)return null;const v=Yn[s],x=v.icon;return A.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-ink/30",children:A.jsxs("div",{className:"bg-card rounded-card shadow-card-hover border border-border w-full max-w-sm mx-4",children:[A.jsxs("div",{className:"flex items-center justify-between px-5 pt-5 pb-2",children:[A.jsxs("span",{className:"text-[11px] font-mono text-muted-accessible",children:[s+1," / ",Yn.length]}),A.jsx("button",{onClick:d,className:"text-muted hover:text-ink transition-colors p-1 rounded-btn hover:bg-hover",title:"Skip onboarding",children:A.jsx(ao,{size:14})})]}),A.jsxs("div",{className:"px-5 pb-4 text-center",children:[A.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:A.jsx(x,{size:24,className:"text-primary"})}),A.jsx("h3",{className:"text-sm font-heading font-bold text-ink mb-1",children:v.title}),A.jsx("p",{className:"text-xs text-muted-accessible leading-relaxed",children:v.description})]}),A.jsx("div",{className:"flex items-center justify-center gap-1.5 pb-4",children:Yn.map((S,y)=>A.jsx("div",{className:`w-1.5 h-1.5 rounded-full transition-colors ${y===s?"bg-primary":"bg-border"}`},y))}),A.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-t border-border",children:[A.jsx("button",{onClick:d,className:"text-xs text-muted hover:text-ink transition-colors",children:"Skip"}),A.jsx("button",{onClick:h,className:"inline-flex items-center gap-1.5 px-4 py-1.5 text-xs font-medium rounded-btn bg-primary text-white hover:bg-primary-hover transition-colors",children:s<Yn.length-1?A.jsxs(A.Fragment,{children:["Next",A.jsx(b1,{size:12})]}):"Get Started"})]})]})})}function Tg(i){const[f,s]=b.useState(!1),o=b.useRef(null),d=b.useRef(i);b.useEffect(()=>{d.current=i},[i]),b.useEffect(()=>{const v=new hg;return o.current=v,v.on("connected",()=>s(!0)),v.on("disconnected",()=>{s(!1),d.current&&d.current(null)}),v.on("state_update",x=>{d.current&&x&&typeof x=="object"&&d.current(x)}),v.connect(),()=>{v.disconnect(),o.current=null}},[]);const h=b.useCallback((v,x)=>{var S;return((S=o.current)==null?void 0:S.on(v,x))||(()=>{})},[]);return{connected:f,subscribe:h}}function _g(){const[i,f]=b.useState(""),{connected:s}=Tg(()=>{});return b.useEffect(()=>{qa.getStatus().then(o=>{f(o.version||"")}).catch(()=>{})},[]),A.jsxs("div",{className:"flex h-screen bg-[#FAF9F6]",children:[A.jsx(xg,{}),A.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:top-2 focus:left-2 focus:px-4 focus:py-2 focus:bg-white focus:text-[#553DE9] focus:rounded-[3px] focus:shadow-card",children:"Skip to main content"}),A.jsx(bg,{wsConnected:s,version:i}),A.jsx("main",{id:"main-content",className:"flex-1 overflow-auto",children:A.jsx(Nv,{})})]})}const zg={success:{bg:"bg-green-50 dark:bg-green-900/20",border:"border-green-200 dark:border-green-800",icon:"text-green-600 dark:text-green-400",IconComponent:A1},error:{bg:"bg-red-50 dark:bg-red-900/20",border:"border-red-200 dark:border-red-800",icon:"text-red-600 dark:text-red-400",IconComponent:O1},warning:{bg:"bg-yellow-50 dark:bg-yellow-900/20",border:"border-yellow-200 dark:border-yellow-800",icon:"text-yellow-600 dark:text-yellow-400",IconComponent:cg},info:{bg:"bg-blue-50 dark:bg-blue-900/20",border:"border-blue-200 dark:border-blue-800",icon:"text-blue-600 dark:text-blue-400",IconComponent:q1}};function Ag({notification:i,onDismiss:f}){const{type:s,title:o,message:d,duration:h=5e3}=i,v=zg[s],x=b.useRef(null),S=b.useCallback(()=>{f(i.id)},[f,i.id]);return b.useEffect(()=>{if(h>0)return x.current=setTimeout(S,h),()=>{x.current&&clearTimeout(x.current)}},[h,S]),A.jsxs("div",{className:`
222
+ flex items-start gap-3 p-4 rounded-lg border shadow-lg
223
+ max-w-sm w-full pointer-events-auto
224
+ animate-[slideIn_0.3s_ease-out]
225
+ ${v.bg} ${v.border}
226
+ `,role:"alert",children:[A.jsx("style",{children:`
227
+ @keyframes slideIn {
228
+ from { opacity: 0; transform: translateX(100%); }
229
+ to { opacity: 1; transform: translateX(0); }
230
+ }
231
+ `}),A.jsx("style",{children:`
232
+ @keyframes slideIn {
233
+ from { opacity: 0; transform: translateX(100%); }
234
+ to { opacity: 1; transform: translateX(0); }
235
+ }
236
+ `}),A.jsx("span",{className:`flex-shrink-0 mt-0.5 ${v.icon}`,children:A.jsx(v.IconComponent,{size:18})}),A.jsxs("div",{className:"flex-1 min-w-0",children:[A.jsx("p",{className:"text-sm font-medium text-[#201515] dark:text-[#E8E6E3]",children:o}),d&&A.jsx("p",{className:"text-xs text-[#6B6960] dark:text-[#8A8880] mt-0.5",children:d})]}),A.jsx("button",{onClick:S,className:"flex-shrink-0 text-[#939084] hover:text-[#36342E] dark:hover:text-[#E8E6E3] transition-colors","aria-label":"Dismiss notification",children:A.jsx(ao,{size:14})})]})}function Rg({notifications:i,onDismiss:f}){return i.length===0?null:A.jsx("div",{className:"fixed top-4 right-4 z-[9999] flex flex-col gap-2 pointer-events-none","aria-live":"polite",children:i.map(s=>A.jsx(Ag,{notification:s,onDismiss:f},s.id))})}const Wh=b.createContext({notify:()=>"",dismiss:()=>{},dismissAll:()=>{}});let Og=0;function Cg({children:i}){const[f,s]=b.useState([]),o=b.useCallback(x=>{const S=`notif-${++Og}-${Date.now()}`,y={...x,id:S};if(s(O=>[...O,y]),document.hidden&&"Notification"in window)if(Notification.permission==="granted")try{new Notification(x.title,{body:x.message||""})}catch{}else Notification.permission!=="denied"&&Notification.requestPermission().then(O=>{if(O==="granted")try{new Notification(x.title,{body:x.message||""})}catch{}});return S},[]),d=b.useCallback(x=>{s(S=>S.filter(y=>y.id!==x))},[]),h=b.useCallback(()=>{s([])},[]),v=b.useMemo(()=>({notify:o,dismiss:d,dismissAll:h}),[o,d,h]);return A.jsxs(Wh.Provider,{value:v,children:[i,A.jsx(Rg,{notifications:f,onDismiss:d})]})}function Xg(){return b.useContext(Wh)}function Rh({children:i}){const{user:f,loading:s,isLocalMode:o}=$h();return s?A.jsx("div",{className:"h-screen bg-[#FAF9F6] flex items-center justify-center text-[#6B6960] text-sm",children:"Loading..."}):o?A.jsx(A.Fragment,{children:i}):f?A.jsx(A.Fragment,{children:i}):A.jsx(Mv,{to:"/login",replace:!0})}function hi({variant:i="text",width:f,height:s,className:o=""}){const d="animate-pulse bg-[#ECEAE3]/60 rounded";if(i==="circle"){const h=f||"2rem";return A.jsx("div",{className:`${d} rounded-full flex-shrink-0 ${o}`,style:{width:h,height:h}})}return i==="block"?A.jsx("div",{className:`${d} rounded-btn ${o}`,style:{width:f||"100%",height:s||"4rem"}}):A.jsx("div",{className:`${d} rounded-btn ${o}`,style:{width:f||"100%",height:s||"0.75rem"}})}function Qg(){return A.jsx("div",{className:"p-4 space-y-3",children:[...Array(12)].map((i,f)=>A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx(hi,{variant:"text",width:"1.5rem",height:"10px",className:"flex-shrink-0 opacity-40"}),A.jsx(hi,{variant:"text",width:`${20+Math.random()*60}%`,height:"10px"})]},f))})}typeof window<"u"&&window.addEventListener("beforeunload",i=>{delete i.returnValue});const Mg=b.lazy(()=>jl(()=>import("./HomePage-BMSQ7Apj.js"),__vite__mapDeps([0,1,2,3,4,5]))),Ng=b.lazy(()=>jl(()=>import("./ProjectPage-BtRssmw9.js"),__vite__mapDeps([6,4,5,7,8,2,9,3,10,11,12,13,14,15]))),Ug=b.lazy(()=>jl(()=>import("./ProjectsPage-B-FTFagc.js"),__vite__mapDeps([16,7,17,1,2,3,13,12,10,11]))),Dg=b.lazy(()=>jl(()=>import("./TemplatesPage-ChUQNOOv.js"),__vite__mapDeps([18,1,2,3,7,12,8]))),jg=b.lazy(()=>jl(()=>import("./SettingsPage-DIJPBla4.js"),__vite__mapDeps([19,17,11]))),Hg=b.lazy(()=>jl(()=>import("./LoginPage-aH_6iolg.js"),[])),Bg=b.lazy(()=>jl(()=>import("./TeamsPage--19fNX7w.js"),__vite__mapDeps([20,7,5,9,13,2]))),Lg=b.lazy(()=>jl(()=>import("./NotFoundPage-Di8cNtB1.js"),__vite__mapDeps([21,14])));function Dl(){return A.jsxs("div",{className:"h-screen bg-[#FAF9F6] flex flex-col items-center justify-center gap-3",children:[A.jsx(hi,{variant:"block",width:"200px",height:"24px"}),A.jsx(hi,{variant:"text",width:"140px",height:"12px",className:"opacity-50"})]})}function qg(){return A.jsx(yg,{children:A.jsx(Cg,{children:A.jsxs(Dv,{children:[A.jsx(Ge,{path:"/login",element:A.jsx(b.Suspense,{fallback:A.jsx(Dl,{}),children:A.jsx(Hg,{})})}),A.jsx(Ge,{path:"/project/:sessionId",element:A.jsx(Rh,{children:A.jsx(b.Suspense,{fallback:A.jsx(Dl,{}),children:A.jsx(Ng,{})})})}),A.jsxs(Ge,{element:A.jsx(Rh,{children:A.jsx(_g,{})}),children:[A.jsx(Ge,{path:"/",element:A.jsx(b.Suspense,{fallback:A.jsx(Dl,{}),children:A.jsx(Mg,{})})}),A.jsx(Ge,{path:"/projects",element:A.jsx(b.Suspense,{fallback:A.jsx(Dl,{}),children:A.jsx(Ug,{})})}),A.jsx(Ge,{path:"/templates",element:A.jsx(b.Suspense,{fallback:A.jsx(Dl,{}),children:A.jsx(Dg,{})})}),A.jsx(Ge,{path:"/settings",element:A.jsx(b.Suspense,{fallback:A.jsx(Dl,{}),children:A.jsx(jg,{})})}),A.jsx(Ge,{path:"/teams",element:A.jsx(b.Suspense,{fallback:A.jsx(Dl,{}),children:A.jsx(Bg,{})})}),A.jsx(Ge,{path:"*",element:A.jsx(b.Suspense,{fallback:A.jsx(Dl,{}),children:A.jsx(Lg,{})})})]})]})})})}U0.createRoot(document.getElementById("root")).render(A.jsx(b.StrictMode,{children:A.jsx(a1,{children:A.jsx(qg,{})})}));export{b1 as A,x1 as B,_1 as C,M1 as E,U1 as F,B1 as H,q1 as I,Zh as L,J1 as M,I1 as P,Kh as S,ug as T,og as U,Yg as W,ao as X,qa as a,Tg as b,Ot as c,cg as d,O1 as e,A1 as f,Qg as g,hi as h,Gg as i,A as j,$h as k,Xg as l,j1 as m,b as r,If as u};