agent-tower 0.5.3-beta.0 → 0.5.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/web/agent-icons/claude-code.svg +1 -0
  2. package/dist/web/agent-icons/codex.svg +1 -0
  3. package/dist/web/agent-icons/cursor-agent.svg +1 -0
  4. package/dist/web/agent-icons/gemini-cli.svg +1 -0
  5. package/dist/web/assets/AgentDemoPage-Cc1sKLmE.js +1 -0
  6. package/dist/web/assets/AgentLogo-DQId6FqS.js +1 -0
  7. package/dist/web/assets/{ConversationPage-Cyiw8Hra.js → ConversationPage-BXDIbwTR.js} +2 -2
  8. package/dist/web/assets/CreateTaskInput-CDynnXvO.js +2 -0
  9. package/dist/web/assets/{DemoPage-SywVXjL0.js → DemoPage-BeL28u5_.js} +2 -2
  10. package/dist/web/assets/{GeneralSettingsPage-CTymytF6.js → GeneralSettingsPage-CFc1CWWl.js} +1 -1
  11. package/dist/web/assets/{Icons-DmLVnVdg.js → Icons-EVcY239B.js} +1 -1
  12. package/dist/web/assets/LoadingPreviewPage-CRwEvHz_.js +1 -0
  13. package/dist/web/assets/{McpSettingsPage-DyolUN8C.js → McpSettingsPage-BujDKp8T.js} +1 -1
  14. package/dist/web/assets/{MemberAvatar-u6jTOiDY.js → MemberAvatar-Bvlu6rk3.js} +1 -1
  15. package/dist/web/assets/{NotificationSettingsPage-BBop2Bu4.js → NotificationSettingsPage-Dsn-5Uft.js} +1 -1
  16. package/dist/web/assets/{ProfileSettingsPage-Bw-eI0cF.js → ProfileSettingsPage-CuhQBP_t.js} +1 -1
  17. package/dist/web/assets/{ProjectKanbanPage-BFf2FZVz.js → ProjectKanbanPage-DiEo6BK_.js} +34 -34
  18. package/dist/web/assets/{ProjectSettingsPage-BJ4sOhMl.js → ProjectSettingsPage-Cj46vZYF.js} +1 -1
  19. package/dist/web/assets/ProviderSettingsPage-G7pPagR6.js +54 -0
  20. package/dist/web/assets/{SettingsMasterDetail-CdimTj5n.js → SettingsMasterDetail-_vE8P7ke.js} +1 -1
  21. package/dist/web/assets/{TeamSettingsPage-CqQTc5AI.js → TeamSettingsPage-CC_QgVbE.js} +1 -1
  22. package/dist/web/assets/arc-DWusz5nt.js +1 -0
  23. package/dist/web/assets/architectureDiagram-3BPJPVTR-BzUiKOFe.js +36 -0
  24. package/dist/web/assets/{arrow-left-B6KMicbE.js → arrow-left-C_pxdzZL.js} +1 -1
  25. package/dist/web/assets/{blockDiagram-GPEHLZMM-6_0hov2h.js → blockDiagram-GPEHLZMM-BGx2sLYW.js} +1 -1
  26. package/dist/web/assets/{c4Diagram-AAUBKEIU-Br6Tzu3R.js → c4Diagram-AAUBKEIU-BCihVD7R.js} +1 -1
  27. package/dist/web/assets/channel-BBvaRDfe.js +1 -0
  28. package/dist/web/assets/check-C7Na6M49.js +1 -0
  29. package/dist/web/assets/{chevron-down-Cur5jANy.js → chevron-down-DuZqUX3d.js} +1 -1
  30. package/dist/web/assets/{chevron-right-R3KVa8oQ.js → chevron-right-BTjA7BSq.js} +1 -1
  31. package/dist/web/assets/{chevron-up-DcLdFanO.js → chevron-up-BeZXjQ4W.js} +1 -1
  32. package/dist/web/assets/{chunk-2J33WTMH-D8zyttB-.js → chunk-2J33WTMH-BVhYZ0vK.js} +1 -1
  33. package/dist/web/assets/{chunk-4BX2VUAB-Cqi9xJ8M.js → chunk-4BX2VUAB-amtolJb4.js} +1 -1
  34. package/dist/web/assets/{chunk-55IACEB6-Dxjaitf1.js → chunk-55IACEB6-Bi5q9Evi.js} +1 -1
  35. package/dist/web/assets/{chunk-727SXJPM-CAn8Y9XB.js → chunk-727SXJPM-Bb_qV3PR.js} +1 -1
  36. package/dist/web/assets/{chunk-AQP2D5EJ-B4sECH9U.js → chunk-AQP2D5EJ-BhFBU2pH.js} +1 -1
  37. package/dist/web/assets/{chunk-FMBD7UC4-Ckd3e1dg.js → chunk-FMBD7UC4-CbBz10YF.js} +1 -1
  38. package/dist/web/assets/{chunk-ND2GUHAM-h5WBT7BK.js → chunk-ND2GUHAM-B930BNNl.js} +1 -1
  39. package/dist/web/assets/{chunk-QZHKN3VN-Cdzk46MK.js → chunk-QZHKN3VN-YlRfC0oD.js} +1 -1
  40. package/dist/web/assets/{circle-alert-OKyZ9U2p.js → circle-alert-DCm2E91k.js} +1 -1
  41. package/dist/web/assets/classDiagram-4FO5ZUOK-XuAtffBc.js +1 -0
  42. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-XuAtffBc.js +1 -0
  43. package/dist/web/assets/code-block-OCS4YCEC-ImXQka3_.js +2 -0
  44. package/dist/web/assets/{confirm-dialog-BAnxa2C9.js → confirm-dialog-Cc27tq8j.js} +1 -1
  45. package/dist/web/assets/{cose-bilkent-S5V4N54A-CbFey2pd.js → cose-bilkent-S5V4N54A-Di3PzbLp.js} +1 -1
  46. package/dist/web/assets/{dagre-BM42HDAG-Bd2eIyf3.js → dagre-BM42HDAG-DD7qiU9m.js} +1 -1
  47. package/dist/web/assets/{diagram-2AECGRRQ-CXONvVnW.js → diagram-2AECGRRQ-Bgr-CjRi.js} +1 -1
  48. package/dist/web/assets/{diagram-5GNKFQAL-B2E90mVs.js → diagram-5GNKFQAL-CvRORhH2.js} +1 -1
  49. package/dist/web/assets/{diagram-KO2AKTUF-ByaC99pb.js → diagram-KO2AKTUF-CkVyLyvM.js} +1 -1
  50. package/dist/web/assets/{diagram-LMA3HP47-DwVBF2fn.js → diagram-LMA3HP47-B-CPQQuU.js} +1 -1
  51. package/dist/web/assets/{diagram-OG6HWLK6-FWRddceo.js → diagram-OG6HWLK6-DXow9CgH.js} +1 -1
  52. package/dist/web/assets/{erDiagram-TEJ5UH35-ye6i3SGj.js → erDiagram-TEJ5UH35-BPLJJwjL.js} +1 -1
  53. package/dist/web/assets/{flowDiagram-I6XJVG4X-B6l7qTcg.js → flowDiagram-I6XJVG4X-ggyugmK6.js} +1 -1
  54. package/dist/web/assets/{folder-B0m3OL2U.js → folder-B35uD7uF.js} +1 -1
  55. package/dist/web/assets/{folder-picker-D5XrSfLA.js → folder-picker-DFxfUtH5.js} +1 -1
  56. package/dist/web/assets/{ganttDiagram-6RSMTGT7-BCCqDrep.js → ganttDiagram-6RSMTGT7-317n6mcW.js} +1 -1
  57. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-Ca4ANaSw.js → gitGraphDiagram-PVQCEYII-DTUyiJew.js} +1 -1
  58. package/dist/web/assets/{index-C9hQg1KT.js → index-BwKL3rKp.js} +5 -5
  59. package/dist/web/assets/index-DgO-2xBV.css +1 -0
  60. package/dist/web/assets/{index-DbO4YyUv.js → index-OY1TIdAK.js} +116 -9
  61. package/dist/web/assets/{infoDiagram-5YYISTIA-D1V1Tezr.js → infoDiagram-5YYISTIA-1GXYdkvW.js} +1 -1
  62. package/dist/web/assets/{input-Dqnd4oTj.js → input-6lLP89Y3.js} +1 -1
  63. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-DnGiJn9p.js → ishikawaDiagram-YF4QCWOH-DSGxwLxL.js} +1 -1
  64. package/dist/web/assets/{journeyDiagram-JHISSGLW-QFxbLfhN.js → journeyDiagram-JHISSGLW-Bk9wMzSo.js} +1 -1
  65. package/dist/web/assets/{kanban-definition-UN3LZRKU-BA2nBc7B.js → kanban-definition-UN3LZRKU-BW3QAONh.js} +4 -4
  66. package/dist/web/assets/{layers-CfFYGUtI.js → layers-CDcLPjE5.js} +1 -1
  67. package/dist/web/assets/{linear-DpASQZmA.js → linear-DTyT0tZy.js} +1 -1
  68. package/dist/web/assets/{loader-circle-B5Lfi46Y.js → loader-circle-DDrZegLO.js} +1 -1
  69. package/dist/web/assets/mermaid-NOHMQCX5-CeIvIbfU.js +122 -0
  70. package/dist/web/assets/{message-square-CEefL0sf.js → message-square-CunpcgQi.js} +1 -1
  71. package/dist/web/assets/{mindmap-definition-RKZ34NQL-C7QuD-ms.js → mindmap-definition-RKZ34NQL-CMuh1LCP.js} +2 -2
  72. package/dist/web/assets/{modal-CAB_bs-c.js → modal-D8uSzIAd.js} +1 -1
  73. package/dist/web/assets/{pencil-B__GQn9r.js → pencil-BTaYfjKo.js} +1 -1
  74. package/dist/web/assets/{pieDiagram-4H26LBE5-Bf5diCKb.js → pieDiagram-4H26LBE5-8PB3-bCK.js} +1 -1
  75. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-BMbcPnH3.js → quadrantDiagram-W4KKPZXB-Dpf14KEr.js} +1 -1
  76. package/dist/web/assets/{requirementDiagram-4Y6WPE33-CUPvJXMk.js → requirementDiagram-4Y6WPE33-ClTLx63o.js} +1 -1
  77. package/dist/web/assets/{rotate-ccw-5d-eMwsw.js → rotate-ccw-bVmcWqcA.js} +1 -1
  78. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-C77g6vmK.js → sankeyDiagram-5OEKKPKP-ChlGi0jn.js} +1 -1
  79. package/dist/web/assets/select-tNVeGe-v.js +1 -0
  80. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-xGOV8CdQ.js → sequenceDiagram-3UESZ5HK-6tJ810tk.js} +1 -1
  81. package/dist/web/assets/{stateDiagram-AJRCARHV-Bc0piegy.js → stateDiagram-AJRCARHV-Cc5dwA5r.js} +1 -1
  82. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-EVHRu9u3.js +1 -0
  83. package/dist/web/assets/{switch-bLlDOWNp.js → switch-7jE2n-KP.js} +1 -1
  84. package/dist/web/assets/{terminal-Bh2qSv0U.js → terminal-D5iU4zAj.js} +1 -1
  85. package/dist/web/assets/{textarea-BcVRpxhF.js → textarea-DVa2Yvj4.js} +1 -1
  86. package/dist/web/assets/{timeline-definition-PNZ67QCA-CcACRt_V.js → timeline-definition-PNZ67QCA-q32Hcn4m.js} +3 -3
  87. package/dist/web/assets/{trash-2-8Pu6lwnW.js → trash-2-z7TLHqpU.js} +1 -1
  88. package/dist/web/assets/{upload-DNwyW_bv.js → upload-DeI535ZH.js} +1 -1
  89. package/dist/web/assets/{use-profiles-BIqkQu69.js → use-profiles-BS_Mkp5d.js} +1 -1
  90. package/dist/web/assets/{use-providers-BOyY0DcV.js → use-providers-CWfLQ--R.js} +1 -1
  91. package/dist/web/assets/useNormalizedLogs-DW37m6Ji.js +1 -0
  92. package/dist/web/assets/{vennDiagram-CIIHVFJN-BC9RHBQ5.js → vennDiagram-CIIHVFJN-VxBXMI4P.js} +5 -5
  93. package/dist/web/assets/{wardley-L42UT6IY-BgPj73Dc.js → wardley-L42UT6IY-BvNOQGfh.js} +1 -1
  94. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-PbfDUndy.js → wardleyDiagram-YWT4CUSO-DMTZkLB4.js} +1 -1
  95. package/dist/web/assets/{xychartDiagram-2RQKCTM6-D87KYJUM.js → xychartDiagram-2RQKCTM6-BaJ2kymJ.js} +1 -1
  96. package/dist/web/index.html +2 -2
  97. package/package.json +1 -1
  98. package/dist/web/assets/AgentDemoPage-CUgqAjq9.js +0 -1
  99. package/dist/web/assets/CreateTaskInput-BILlpv9b.js +0 -2
  100. package/dist/web/assets/ProviderSettingsPage-BlLaN0i2.js +0 -54
  101. package/dist/web/assets/arc-Ddp5hhH6.js +0 -1
  102. package/dist/web/assets/architectureDiagram-3BPJPVTR-CpK7WDLU.js +0 -36
  103. package/dist/web/assets/channel-Bg_GO2e9.js +0 -1
  104. package/dist/web/assets/check-D9lM__p8.js +0 -1
  105. package/dist/web/assets/classDiagram-4FO5ZUOK-BeJctdRx.js +0 -1
  106. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-BeJctdRx.js +0 -1
  107. package/dist/web/assets/code-block-OCS4YCEC-VMJOsrkF.js +0 -2
  108. package/dist/web/assets/index-C4twOgZR.css +0 -1
  109. package/dist/web/assets/log-adapter-CjgRCCYG.js +0 -1
  110. package/dist/web/assets/mermaid-NOHMQCX5-7FmPQynq.js +0 -122
  111. package/dist/web/assets/select-BJfNuuIV.js +0 -1
  112. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-CiRT9t6d.js +0 -1
@@ -1,13 +1,120 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GeneralSettingsPage-CTymytF6.js","assets/select-BJfNuuIV.js","assets/chevron-down-Cur5jANy.js","assets/check-D9lM__p8.js","assets/textarea-BcVRpxhF.js","assets/use-providers-BOyY0DcV.js","assets/ProviderSettingsPage-BlLaN0i2.js","assets/confirm-dialog-BAnxa2C9.js","assets/modal-CAB_bs-c.js","assets/input-Dqnd4oTj.js","assets/switch-bLlDOWNp.js","assets/log-adapter-CjgRCCYG.js","assets/SettingsMasterDetail-CdimTj5n.js","assets/arrow-left-B6KMicbE.js","assets/upload-DNwyW_bv.js","assets/trash-2-8Pu6lwnW.js","assets/pencil-B__GQn9r.js","assets/rotate-ccw-5d-eMwsw.js","assets/TeamSettingsPage-CqQTc5AI.js","assets/MemberAvatar-u6jTOiDY.js","assets/chevron-up-DcLdFanO.js","assets/ProjectSettingsPage-BJ4sOhMl.js","assets/folder-picker-D5XrSfLA.js","assets/folder-B0m3OL2U.js","assets/chevron-right-R3KVa8oQ.js","assets/loader-circle-B5Lfi46Y.js","assets/circle-alert-OKyZ9U2p.js","assets/NotificationSettingsPage-BBop2Bu4.js","assets/message-square-CEefL0sf.js","assets/McpSettingsPage-DyolUN8C.js","assets/terminal-Bh2qSv0U.js","assets/ProfileSettingsPage-Bw-eI0cF.js","assets/use-profiles-BIqkQu69.js","assets/layers-CfFYGUtI.js","assets/ProjectKanbanPage-BFf2FZVz.js","assets/Icons-DmLVnVdg.js","assets/CreateTaskInput-BILlpv9b.js","assets/mermaid-NOHMQCX5-7FmPQynq.js","assets/mermaid-NOHMQCX5-lI9o3AWT.css","assets/ProjectKanbanPage-G5OQeJvU.css","assets/ConversationPage-Cyiw8Hra.js","assets/AgentDemoPage-CUgqAjq9.js"])))=>i.map(i=>d[i]);
2
- function jb(n,i){for(var l=0;l<i.length;l++){const s=i[l];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in n)){const f=Object.getOwnPropertyDescriptor(s,c);f&&Object.defineProperty(n,c,f.get?f:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();function iy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Yc={exports:{}},Ol={};var Bp;function Bb(){if(Bp)return Ol;Bp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:n,type:s,key:d,ref:c!==void 0?c:null,props:f}}return Ol.Fragment=i,Ol.jsx=l,Ol.jsxs=l,Ol}var qp;function qb(){return qp||(qp=1,Yc.exports=Bb()),Yc.exports}var q=qb(),Gc={exports:{}},Oe={};var Hp;function Hb(){if(Hp)return Oe;Hp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),E=Symbol.iterator;function M(x){return x===null||typeof x!="object"?null:(x=E&&x[E]||x["@@iterator"],typeof x=="function"?x:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,K={};function G(x,Q,B){this.props=x,this.context=Q,this.refs=K,this.updater=B||U}G.prototype.isReactComponent={},G.prototype.setState=function(x,Q){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,Q,"setState")},G.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function J(){}J.prototype=G.prototype;function $(x,Q,B){this.props=x,this.context=Q,this.refs=K,this.updater=B||U}var ye=$.prototype=new J;ye.constructor=$,j(ye,G.prototype),ye.isPureReactComponent=!0;var he=Array.isArray;function me(){}var C={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function oe(x,Q,B){var Z=B.ref;return{$$typeof:n,type:x,key:Q,ref:Z!==void 0?Z:null,props:B}}function Ae(x,Q){return oe(x.type,Q,x.props)}function Ce(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function Te(x){var Q={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(B){return Q[B]})}var Ue=/\/+/g;function Le(x,Q){return typeof x=="object"&&x!==null&&x.key!=null?Te(""+x.key):Q.toString(36)}function we(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(me,me):(x.status="pending",x.then(function(Q){x.status==="pending"&&(x.status="fulfilled",x.value=Q)},function(Q){x.status==="pending"&&(x.status="rejected",x.reason=Q)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function A(x,Q,B,Z,te){var ue=typeof x;(ue==="undefined"||ue==="boolean")&&(x=null);var ce=!1;if(x===null)ce=!0;else switch(ue){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(x.$$typeof){case n:case i:ce=!0;break;case b:return ce=x._init,A(ce(x._payload),Q,B,Z,te)}}if(ce)return te=te(x),ce=Z===""?"."+Le(x,0):Z,he(te)?(B="",ce!=null&&(B=ce.replace(Ue,"$&/")+"/"),A(te,Q,B,"",function(Ht){return Ht})):te!=null&&(Ce(te)&&(te=Ae(te,B+(te.key==null||x&&x.key===te.key?"":(""+te.key).replace(Ue,"$&/")+"/")+ce)),Q.push(te)),1;ce=0;var Re=Z===""?".":Z+":";if(he(x))for(var Ve=0;Ve<x.length;Ve++)Z=x[Ve],ue=Re+Le(Z,Ve),ce+=A(Z,Q,B,ue,te);else if(Ve=M(x),typeof Ve=="function")for(x=Ve.call(x),Ve=0;!(Z=x.next()).done;)Z=Z.value,ue=Re+Le(Z,Ve++),ce+=A(Z,Q,B,ue,te);else if(ue==="object"){if(typeof x.then=="function")return A(we(x),Q,B,Z,te);throw Q=String(x),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ce}function F(x,Q,B){if(x==null)return x;var Z=[],te=0;return A(x,Z,"","",function(ue){return Q.call(B,ue,te++)}),Z}function H(x){if(x._status===-1){var Q=x._result;Q=Q(),Q.then(function(B){(x._status===0||x._status===-1)&&(x._status=1,x._result=B)},function(B){(x._status===0||x._status===-1)&&(x._status=2,x._result=B)}),x._status===-1&&(x._status=0,x._result=Q)}if(x._status===1)return x._result.default;throw x._result}var ge=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},ve={map:F,forEach:function(x,Q,B){F(x,function(){Q.apply(this,arguments)},B)},count:function(x){var Q=0;return F(x,function(){Q++}),Q},toArray:function(x){return F(x,function(Q){return Q})||[]},only:function(x){if(!Ce(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return Oe.Activity=y,Oe.Children=ve,Oe.Component=G,Oe.Fragment=l,Oe.Profiler=c,Oe.PureComponent=$,Oe.StrictMode=s,Oe.Suspense=g,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(x){return C.H.useMemoCache(x)}},Oe.cache=function(x){return function(){return x.apply(null,arguments)}},Oe.cacheSignal=function(){return null},Oe.cloneElement=function(x,Q,B){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Z=j({},x.props),te=x.key;if(Q!=null)for(ue in Q.key!==void 0&&(te=""+Q.key),Q)!Y.call(Q,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Q.ref===void 0||(Z[ue]=Q[ue]);var ue=arguments.length-2;if(ue===1)Z.children=B;else if(1<ue){for(var ce=Array(ue),Re=0;Re<ue;Re++)ce[Re]=arguments[Re+2];Z.children=ce}return oe(x.type,te,Z)},Oe.createContext=function(x){return x={$$typeof:d,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},Oe.createElement=function(x,Q,B){var Z,te={},ue=null;if(Q!=null)for(Z in Q.key!==void 0&&(ue=""+Q.key),Q)Y.call(Q,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(te[Z]=Q[Z]);var ce=arguments.length-2;if(ce===1)te.children=B;else if(1<ce){for(var Re=Array(ce),Ve=0;Ve<ce;Ve++)Re[Ve]=arguments[Ve+2];te.children=Re}if(x&&x.defaultProps)for(Z in ce=x.defaultProps,ce)te[Z]===void 0&&(te[Z]=ce[Z]);return oe(x,ue,te)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(x){return{$$typeof:p,render:x}},Oe.isValidElement=Ce,Oe.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:H}},Oe.memo=function(x,Q){return{$$typeof:m,type:x,compare:Q===void 0?null:Q}},Oe.startTransition=function(x){var Q=C.T,B={};C.T=B;try{var Z=x(),te=C.S;te!==null&&te(B,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(me,ge)}catch(ue){ge(ue)}finally{Q!==null&&B.types!==null&&(Q.types=B.types),C.T=Q}},Oe.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Oe.use=function(x){return C.H.use(x)},Oe.useActionState=function(x,Q,B){return C.H.useActionState(x,Q,B)},Oe.useCallback=function(x,Q){return C.H.useCallback(x,Q)},Oe.useContext=function(x){return C.H.useContext(x)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(x,Q){return C.H.useDeferredValue(x,Q)},Oe.useEffect=function(x,Q){return C.H.useEffect(x,Q)},Oe.useEffectEvent=function(x){return C.H.useEffectEvent(x)},Oe.useId=function(){return C.H.useId()},Oe.useImperativeHandle=function(x,Q,B){return C.H.useImperativeHandle(x,Q,B)},Oe.useInsertionEffect=function(x,Q){return C.H.useInsertionEffect(x,Q)},Oe.useLayoutEffect=function(x,Q){return C.H.useLayoutEffect(x,Q)},Oe.useMemo=function(x,Q){return C.H.useMemo(x,Q)},Oe.useOptimistic=function(x,Q){return C.H.useOptimistic(x,Q)},Oe.useReducer=function(x,Q,B){return C.H.useReducer(x,Q,B)},Oe.useRef=function(x){return C.H.useRef(x)},Oe.useState=function(x){return C.H.useState(x)},Oe.useSyncExternalStore=function(x,Q,B){return C.H.useSyncExternalStore(x,Q,B)},Oe.useTransition=function(){return C.H.useTransition()},Oe.version="19.2.4",Oe}var Qp;function Af(){return Qp||(Qp=1,Gc.exports=Hb()),Gc.exports}var T=Af();const ee=iy(T),Qb=jb({__proto__:null,default:ee},[T]);var Kc={exports:{}},Ml={},Xc={exports:{}},Pc={};var Vp;function Vb(){return Vp||(Vp=1,(function(n){function i(A,F){var H=A.length;A.push(F);e:for(;0<H;){var ge=H-1>>>1,ve=A[ge];if(0<c(ve,F))A[ge]=F,A[H]=ve,H=ge;else break e}}function l(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var F=A[0],H=A.pop();if(H!==F){A[0]=H;e:for(var ge=0,ve=A.length,x=ve>>>1;ge<x;){var Q=2*(ge+1)-1,B=A[Q],Z=Q+1,te=A[Z];if(0>c(B,H))Z<ve&&0>c(te,B)?(A[ge]=te,A[Z]=H,ge=Z):(A[ge]=B,A[Q]=H,ge=Q);else if(Z<ve&&0>c(te,H))A[ge]=te,A[Z]=H,ge=Z;else break e}}return F}function c(A,F){var H=A.sortIndex-F.sortIndex;return H!==0?H:A.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var g=[],m=[],b=1,y=null,E=3,M=!1,U=!1,j=!1,K=!1,G=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function ye(A){for(var F=l(m);F!==null;){if(F.callback===null)s(m);else if(F.startTime<=A)s(m),F.sortIndex=F.expirationTime,i(g,F);else break;F=l(m)}}function he(A){if(j=!1,ye(A),!U)if(l(g)!==null)U=!0,me||(me=!0,Te());else{var F=l(m);F!==null&&we(he,F.startTime-A)}}var me=!1,C=-1,Y=5,oe=-1;function Ae(){return K?!0:!(n.unstable_now()-oe<Y)}function Ce(){if(K=!1,me){var A=n.unstable_now();oe=A;var F=!0;try{e:{U=!1,j&&(j=!1,J(C),C=-1),M=!0;var H=E;try{t:{for(ye(A),y=l(g);y!==null&&!(y.expirationTime>A&&Ae());){var ge=y.callback;if(typeof ge=="function"){y.callback=null,E=y.priorityLevel;var ve=ge(y.expirationTime<=A);if(A=n.unstable_now(),typeof ve=="function"){y.callback=ve,ye(A),F=!0;break t}y===l(g)&&s(g),ye(A)}else s(g);y=l(g)}if(y!==null)F=!0;else{var x=l(m);x!==null&&we(he,x.startTime-A),F=!1}}break e}finally{y=null,E=H,M=!1}F=void 0}}finally{F?Te():me=!1}}}var Te;if(typeof $=="function")Te=function(){$(Ce)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Le=Ue.port2;Ue.port1.onmessage=Ce,Te=function(){Le.postMessage(null)}}else Te=function(){G(Ce,0)};function we(A,F){C=G(function(){A(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(A){A.callback=null},n.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<A?Math.floor(1e3/A):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(A){switch(E){case 1:case 2:case 3:var F=3;break;default:F=E}var H=E;E=F;try{return A()}finally{E=H}},n.unstable_requestPaint=function(){K=!0},n.unstable_runWithPriority=function(A,F){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var H=E;E=A;try{return F()}finally{E=H}},n.unstable_scheduleCallback=function(A,F,H){var ge=n.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?ge+H:ge):H=ge,A){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=H+ve,A={id:b++,callback:F,priorityLevel:A,startTime:H,expirationTime:ve,sortIndex:-1},H>ge?(A.sortIndex=H,i(m,A),l(g)===null&&A===l(m)&&(j?(J(C),C=-1):j=!0,we(he,H-ge))):(A.sortIndex=ve,i(g,A),U||M||(U=!0,me||(me=!0,Te()))),A},n.unstable_shouldYield=Ae,n.unstable_wrapCallback=function(A){var F=E;return function(){var H=E;E=F;try{return A.apply(this,arguments)}finally{E=H}}}})(Pc)),Pc}var Yp;function Yb(){return Yp||(Yp=1,Xc.exports=Vb()),Xc.exports}var Fc={exports:{}},Jt={};var Gp;function Gb(){if(Gp)return Jt;Gp=1;var n=Af();function i(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,m,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:g,containerInfo:m,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Jt.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(g,m,null,b)},Jt.flushSync=function(g){var m=d.T,b=s.p;try{if(d.T=null,s.p=2,g)return g()}finally{d.T=m,s.p=b,s.d.f()}},Jt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},Jt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Jt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,y=p(b,m.crossOrigin),E=typeof m.integrity=="string"?m.integrity:void 0,M=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:E,fetchPriority:M}):b==="script"&&s.d.X(g,{crossOrigin:y,integrity:E,fetchPriority:M,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Jt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=p(m.as,m.crossOrigin);s.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(g)},Jt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,y=p(b,m.crossOrigin);s.d.L(g,b,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Jt.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=p(m.as,m.crossOrigin);s.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(g)},Jt.requestFormReset=function(g){s.d.r(g)},Jt.unstable_batchedUpdates=function(g,m){return g(m)},Jt.useFormState=function(g,m,b){return d.H.useFormState(g,m,b)},Jt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Jt.version="19.2.4",Jt}var Kp;function ry(){if(Kp)return Fc.exports;Kp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Fc.exports=Gb(),Fc.exports}var Xp;function Kb(){if(Xp)return Ml;Xp=1;var n=Yb(),i=Af(),l=ry();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var u=o.alternate;if(u===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===a)return g(o),e;if(u===r)return g(o),t;u=u.sibling}throw Error(s(188))}if(a.return!==r.return)a=o,r=u;else{for(var h=!1,v=o.child;v;){if(v===a){h=!0,a=o,r=u;break}if(v===r){h=!0,r=o,a=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===a){h=!0,a=u,r=o;break}if(v===r){h=!0,r=u,a=o;break}v=v.sibling}if(!h)throw Error(s(189))}}if(a.alternate!==r)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,E=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),$=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),Ae=Symbol.for("react.memo_cache_sentinel"),Ce=Symbol.iterator;function Te(e){return e===null||typeof e!="object"?null:(e=Ce&&e[Ce]||e["@@iterator"],typeof e=="function"?e:null)}var Ue=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case G:return"Profiler";case K:return"StrictMode";case he:return"Suspense";case me:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case $:return e.displayName||"Context";case J:return(e._context.displayName||"Context")+".Consumer";case ye:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case C:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var we=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},ge=[],ve=-1;function x(e){return{current:e}}function Q(e){0>ve||(e.current=ge[ve],ge[ve]=null,ve--)}function B(e,t){ve++,ge[ve]=e.current,e.current=t}var Z=x(null),te=x(null),ue=x(null),ce=x(null);function Re(e,t){switch(B(ue,t),B(te,e),B(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sp(t),e=op(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(Z),B(Z,e)}function Ve(){Q(Z),Q(te),Q(ue)}function Ht(e){e.memoizedState!==null&&B(ce,e);var t=Z.current,a=op(t,e.type);t!==a&&(B(te,e),B(Z,a))}function $t(e){te.current===e&&(Q(Z),Q(te)),ce.current===e&&(Q(ce),Rl._currentValue=H)}var Je,Gn;function nn(e){if(Je===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Je=t&&t[1]||"",Gn=-1<a.stack.indexOf(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GeneralSettingsPage-CFc1CWWl.js","assets/select-tNVeGe-v.js","assets/chevron-down-DuZqUX3d.js","assets/check-C7Na6M49.js","assets/textarea-DVa2Yvj4.js","assets/use-providers-CWfLQ--R.js","assets/ProviderSettingsPage-G7pPagR6.js","assets/confirm-dialog-Cc27tq8j.js","assets/modal-D8uSzIAd.js","assets/input-6lLP89Y3.js","assets/switch-7jE2n-KP.js","assets/mermaid-NOHMQCX5-CeIvIbfU.js","assets/chevron-right-BTjA7BSq.js","assets/mermaid-NOHMQCX5-lI9o3AWT.css","assets/AgentLogo-DQId6FqS.js","assets/SettingsMasterDetail-_vE8P7ke.js","assets/arrow-left-C_pxdzZL.js","assets/upload-DeI535ZH.js","assets/trash-2-z7TLHqpU.js","assets/pencil-BTaYfjKo.js","assets/rotate-ccw-bVmcWqcA.js","assets/TeamSettingsPage-CC_QgVbE.js","assets/MemberAvatar-Bvlu6rk3.js","assets/chevron-up-BeZXjQ4W.js","assets/ProjectSettingsPage-Cj46vZYF.js","assets/folder-picker-DFxfUtH5.js","assets/folder-B35uD7uF.js","assets/loader-circle-DDrZegLO.js","assets/circle-alert-DCm2E91k.js","assets/NotificationSettingsPage-Dsn-5Uft.js","assets/message-square-CunpcgQi.js","assets/McpSettingsPage-BujDKp8T.js","assets/terminal-D5iU4zAj.js","assets/ProfileSettingsPage-CuhQBP_t.js","assets/use-profiles-BS_Mkp5d.js","assets/layers-CDcLPjE5.js","assets/ProjectKanbanPage-DiEo6BK_.js","assets/Icons-EVcY239B.js","assets/CreateTaskInput-CDynnXvO.js","assets/useNormalizedLogs-DW37m6Ji.js","assets/ProjectKanbanPage-G5OQeJvU.css","assets/ConversationPage-BXDIbwTR.js","assets/AgentDemoPage-Cc1sKLmE.js"])))=>i.map(i=>d[i]);
2
+ function Bb(n,i){for(var l=0;l<i.length;l++){const s=i[l];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in n)){const f=Object.getOwnPropertyDescriptor(s,c);f&&Object.defineProperty(n,c,f.get?f:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();function ay(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Yc={exports:{}},Ml={};var Up;function qb(){if(Up)return Ml;Up=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:n,type:s,key:d,ref:c!==void 0?c:null,props:f}}return Ml.Fragment=i,Ml.jsx=l,Ml.jsxs=l,Ml}var Bp;function Hb(){return Bp||(Bp=1,Yc.exports=qb()),Yc.exports}var _=Hb(),Gc={exports:{}},Oe={};var qp;function Qb(){if(qp)return Oe;qp=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function N(E){return E===null||typeof E!="object"?null:(E=x&&E[x]||E["@@iterator"],typeof E=="function"?E:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,K={};function G(E,Q,q){this.props=E,this.context=Q,this.refs=K,this.updater=q||L}G.prototype.isReactComponent={},G.prototype.setState=function(E,Q){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,Q,"setState")},G.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function J(){}J.prototype=G.prototype;function $(E,Q,q){this.props=E,this.context=Q,this.refs=K,this.updater=q||L}var ye=$.prototype=new J;ye.constructor=$,B(ye,G.prototype),ye.isPureReactComponent=!0;var he=Array.isArray;function me(){}var A={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function oe(E,Q,q){var Z=q.ref;return{$$typeof:n,type:E,key:Q,ref:Z!==void 0?Z:null,props:q}}function Ae(E,Q){return oe(E.type,Q,E.props)}function Ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function Te(E){var Q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(q){return Q[q]})}var je=/\/+/g;function Le(E,Q){return typeof E=="object"&&E!==null&&E.key!=null?Te(""+E.key):Q.toString(36)}function we(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(me,me):(E.status="pending",E.then(function(Q){E.status==="pending"&&(E.status="fulfilled",E.value=Q)},function(Q){E.status==="pending"&&(E.status="rejected",E.reason=Q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,Q,q,Z,te){var ue=typeof E;(ue==="undefined"||ue==="boolean")&&(E=null);var ce=!1;if(E===null)ce=!0;else switch(ue){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(E.$$typeof){case n:case i:ce=!0;break;case b:return ce=E._init,O(ce(E._payload),Q,q,Z,te)}}if(ce)return te=te(E),ce=Z===""?"."+Le(E,0):Z,he(te)?(q="",ce!=null&&(q=ce.replace(je,"$&/")+"/"),O(te,Q,q,"",function(Ht){return Ht})):te!=null&&(Ce(te)&&(te=Ae(te,q+(te.key==null||E&&E.key===te.key?"":(""+te.key).replace(je,"$&/")+"/")+ce)),Q.push(te)),1;ce=0;var Re=Z===""?".":Z+":";if(he(E))for(var Ve=0;Ve<E.length;Ve++)Z=E[Ve],ue=Re+Le(Z,Ve),ce+=O(Z,Q,q,ue,te);else if(Ve=N(E),typeof Ve=="function")for(E=Ve.call(E),Ve=0;!(Z=E.next()).done;)Z=Z.value,ue=Re+Le(Z,Ve++),ce+=O(Z,Q,q,ue,te);else if(ue==="object"){if(typeof E.then=="function")return O(we(E),Q,q,Z,te);throw Q=String(E),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ce}function F(E,Q,q){if(E==null)return E;var Z=[],te=0;return O(E,Z,"","",function(ue){return Q.call(q,ue,te++)}),Z}function H(E){if(E._status===-1){var Q=E._result;Q=Q(),Q.then(function(q){(E._status===0||E._status===-1)&&(E._status=1,E._result=q)},function(q){(E._status===0||E._status===-1)&&(E._status=2,E._result=q)}),E._status===-1&&(E._status=0,E._result=Q)}if(E._status===1)return E._result.default;throw E._result}var ge=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ve={map:F,forEach:function(E,Q,q){F(E,function(){Q.apply(this,arguments)},q)},count:function(E){var Q=0;return F(E,function(){Q++}),Q},toArray:function(E){return F(E,function(Q){return Q})||[]},only:function(E){if(!Ce(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return Oe.Activity=y,Oe.Children=ve,Oe.Component=G,Oe.Fragment=l,Oe.Profiler=c,Oe.PureComponent=$,Oe.StrictMode=s,Oe.Suspense=g,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(E){return A.H.useMemoCache(E)}},Oe.cache=function(E){return function(){return E.apply(null,arguments)}},Oe.cacheSignal=function(){return null},Oe.cloneElement=function(E,Q,q){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var Z=B({},E.props),te=E.key;if(Q!=null)for(ue in Q.key!==void 0&&(te=""+Q.key),Q)!Y.call(Q,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Q.ref===void 0||(Z[ue]=Q[ue]);var ue=arguments.length-2;if(ue===1)Z.children=q;else if(1<ue){for(var ce=Array(ue),Re=0;Re<ue;Re++)ce[Re]=arguments[Re+2];Z.children=ce}return oe(E.type,te,Z)},Oe.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},Oe.createElement=function(E,Q,q){var Z,te={},ue=null;if(Q!=null)for(Z in Q.key!==void 0&&(ue=""+Q.key),Q)Y.call(Q,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(te[Z]=Q[Z]);var ce=arguments.length-2;if(ce===1)te.children=q;else if(1<ce){for(var Re=Array(ce),Ve=0;Ve<ce;Ve++)Re[Ve]=arguments[Ve+2];te.children=Re}if(E&&E.defaultProps)for(Z in ce=E.defaultProps,ce)te[Z]===void 0&&(te[Z]=ce[Z]);return oe(E,ue,te)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(E){return{$$typeof:p,render:E}},Oe.isValidElement=Ce,Oe.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:H}},Oe.memo=function(E,Q){return{$$typeof:m,type:E,compare:Q===void 0?null:Q}},Oe.startTransition=function(E){var Q=A.T,q={};A.T=q;try{var Z=E(),te=A.S;te!==null&&te(q,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(me,ge)}catch(ue){ge(ue)}finally{Q!==null&&q.types!==null&&(Q.types=q.types),A.T=Q}},Oe.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},Oe.use=function(E){return A.H.use(E)},Oe.useActionState=function(E,Q,q){return A.H.useActionState(E,Q,q)},Oe.useCallback=function(E,Q){return A.H.useCallback(E,Q)},Oe.useContext=function(E){return A.H.useContext(E)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(E,Q){return A.H.useDeferredValue(E,Q)},Oe.useEffect=function(E,Q){return A.H.useEffect(E,Q)},Oe.useEffectEvent=function(E){return A.H.useEffectEvent(E)},Oe.useId=function(){return A.H.useId()},Oe.useImperativeHandle=function(E,Q,q){return A.H.useImperativeHandle(E,Q,q)},Oe.useInsertionEffect=function(E,Q){return A.H.useInsertionEffect(E,Q)},Oe.useLayoutEffect=function(E,Q){return A.H.useLayoutEffect(E,Q)},Oe.useMemo=function(E,Q){return A.H.useMemo(E,Q)},Oe.useOptimistic=function(E,Q){return A.H.useOptimistic(E,Q)},Oe.useReducer=function(E,Q,q){return A.H.useReducer(E,Q,q)},Oe.useRef=function(E){return A.H.useRef(E)},Oe.useState=function(E){return A.H.useState(E)},Oe.useSyncExternalStore=function(E,Q,q){return A.H.useSyncExternalStore(E,Q,q)},Oe.useTransition=function(){return A.H.useTransition()},Oe.version="19.2.4",Oe}var Hp;function Af(){return Hp||(Hp=1,Gc.exports=Qb()),Gc.exports}var T=Af();const ee=ay(T),Vb=Bb({__proto__:null,default:ee},[T]);var Kc={exports:{}},Nl={},Pc={exports:{}},Xc={};var Qp;function Yb(){return Qp||(Qp=1,(function(n){function i(O,F){var H=O.length;O.push(F);e:for(;0<H;){var ge=H-1>>>1,ve=O[ge];if(0<c(ve,F))O[ge]=F,O[H]=ve,H=ge;else break e}}function l(O){return O.length===0?null:O[0]}function s(O){if(O.length===0)return null;var F=O[0],H=O.pop();if(H!==F){O[0]=H;e:for(var ge=0,ve=O.length,E=ve>>>1;ge<E;){var Q=2*(ge+1)-1,q=O[Q],Z=Q+1,te=O[Z];if(0>c(q,H))Z<ve&&0>c(te,q)?(O[ge]=te,O[Z]=H,ge=Z):(O[ge]=q,O[Q]=H,ge=Q);else if(Z<ve&&0>c(te,H))O[ge]=te,O[Z]=H,ge=Z;else break e}}return F}function c(O,F){var H=O.sortIndex-F.sortIndex;return H!==0?H:O.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var g=[],m=[],b=1,y=null,x=3,N=!1,L=!1,B=!1,K=!1,G=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function ye(O){for(var F=l(m);F!==null;){if(F.callback===null)s(m);else if(F.startTime<=O)s(m),F.sortIndex=F.expirationTime,i(g,F);else break;F=l(m)}}function he(O){if(B=!1,ye(O),!L)if(l(g)!==null)L=!0,me||(me=!0,Te());else{var F=l(m);F!==null&&we(he,F.startTime-O)}}var me=!1,A=-1,Y=5,oe=-1;function Ae(){return K?!0:!(n.unstable_now()-oe<Y)}function Ce(){if(K=!1,me){var O=n.unstable_now();oe=O;var F=!0;try{e:{L=!1,B&&(B=!1,J(A),A=-1),N=!0;var H=x;try{t:{for(ye(O),y=l(g);y!==null&&!(y.expirationTime>O&&Ae());){var ge=y.callback;if(typeof ge=="function"){y.callback=null,x=y.priorityLevel;var ve=ge(y.expirationTime<=O);if(O=n.unstable_now(),typeof ve=="function"){y.callback=ve,ye(O),F=!0;break t}y===l(g)&&s(g),ye(O)}else s(g);y=l(g)}if(y!==null)F=!0;else{var E=l(m);E!==null&&we(he,E.startTime-O),F=!1}}break e}finally{y=null,x=H,N=!1}F=void 0}}finally{F?Te():me=!1}}}var Te;if(typeof $=="function")Te=function(){$(Ce)};else if(typeof MessageChannel<"u"){var je=new MessageChannel,Le=je.port2;je.port1.onmessage=Ce,Te=function(){Le.postMessage(null)}}else Te=function(){G(Ce,0)};function we(O,F){A=G(function(){O(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(O){switch(x){case 1:case 2:case 3:var F=3;break;default:F=x}var H=x;x=F;try{return O()}finally{x=H}},n.unstable_requestPaint=function(){K=!0},n.unstable_runWithPriority=function(O,F){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var H=x;x=O;try{return F()}finally{x=H}},n.unstable_scheduleCallback=function(O,F,H){var ge=n.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?ge+H:ge):H=ge,O){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=H+ve,O={id:b++,callback:F,priorityLevel:O,startTime:H,expirationTime:ve,sortIndex:-1},H>ge?(O.sortIndex=H,i(m,O),l(g)===null&&O===l(m)&&(B?(J(A),A=-1):B=!0,we(he,H-ge))):(O.sortIndex=ve,i(g,O),L||N||(L=!0,me||(me=!0,Te()))),O},n.unstable_shouldYield=Ae,n.unstable_wrapCallback=function(O){var F=x;return function(){var H=x;x=F;try{return O.apply(this,arguments)}finally{x=H}}}})(Xc)),Xc}var Vp;function Gb(){return Vp||(Vp=1,Pc.exports=Yb()),Pc.exports}var Fc={exports:{}},Jt={};var Yp;function Kb(){if(Yp)return Jt;Yp=1;var n=Af();function i(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(g,m,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:g,containerInfo:m,implementation:b}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Jt.createPortal=function(g,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(g,m,null,b)},Jt.flushSync=function(g){var m=d.T,b=s.p;try{if(d.T=null,s.p=2,g)return g()}finally{d.T=m,s.p=b,s.d.f()}},Jt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(g,m))},Jt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Jt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var b=m.as,y=p(b,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,N=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?s.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:N}):b==="script"&&s.d.X(g,{crossOrigin:y,integrity:x,fetchPriority:N,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Jt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=p(m.as,m.crossOrigin);s.d.M(g,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(g)},Jt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,y=p(b,m.crossOrigin);s.d.L(g,b,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Jt.preloadModule=function(g,m){if(typeof g=="string")if(m){var b=p(m.as,m.crossOrigin);s.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(g)},Jt.requestFormReset=function(g){s.d.r(g)},Jt.unstable_batchedUpdates=function(g,m){return g(m)},Jt.useFormState=function(g,m,b){return d.H.useFormState(g,m,b)},Jt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Jt.version="19.2.4",Jt}var Gp;function iy(){if(Gp)return Fc.exports;Gp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Fc.exports=Kb(),Fc.exports}var Kp;function Pb(){if(Kp)return Nl;Kp=1;var n=Gb(),i=Af(),l=iy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,r=t;;){var o=a.return;if(o===null)break;var u=o.alternate;if(u===null){if(r=o.return,r!==null){a=r;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===a)return g(o),e;if(u===r)return g(o),t;u=u.sibling}throw Error(s(188))}if(a.return!==r.return)a=o,r=u;else{for(var h=!1,v=o.child;v;){if(v===a){h=!0,a=o,r=u;break}if(v===r){h=!0,r=o,a=u;break}v=v.sibling}if(!h){for(v=u.child;v;){if(v===a){h=!0,a=u,r=o;break}if(v===r){h=!0,r=u,a=o;break}v=v.sibling}if(!h)throw Error(s(189))}}if(a.alternate!==r)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),$=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),Ae=Symbol.for("react.memo_cache_sentinel"),Ce=Symbol.iterator;function Te(e){return e===null||typeof e!="object"?null:(e=Ce&&e[Ce]||e["@@iterator"],typeof e=="function"?e:null)}var je=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===je?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case G:return"Profiler";case K:return"StrictMode";case he:return"Suspense";case me:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case L:return"Portal";case $:return e.displayName||"Context";case J:return(e._context.displayName||"Context")+".Consumer";case ye:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case A:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var we=Array.isArray,O=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},ge=[],ve=-1;function E(e){return{current:e}}function Q(e){0>ve||(e.current=ge[ve],ge[ve]=null,ve--)}function q(e,t){ve++,ge[ve]=e.current,e.current=t}var Z=E(null),te=E(null),ue=E(null),ce=E(null);function Re(e,t){switch(q(ue,t),q(te,e),q(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lp(t),e=sp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(Z),q(Z,e)}function Ve(){Q(Z),Q(te),Q(ue)}function Ht(e){e.memoizedState!==null&&q(ce,e);var t=Z.current,a=sp(t,e.type);t!==a&&(q(te,e),q(Z,a))}function $t(e){te.current===e&&(Q(Z),Q(te)),ce.current===e&&(Q(ce),_l._currentValue=H)}var Je,Kn;function nn(e){if(Je===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Je=t&&t[1]||"",Kn=-1<a.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
4
- `+Je+e+Gn}var vi=!1;function an(e,t){if(!e||vi)return"";vi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(L){var k=L}Reflect.construct(e,[],P)}else{try{P.call()}catch(L){k=L}e.call(P.prototype)}}else{try{throw Error()}catch(L){k=L}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(L){if(L&&k&&typeof L.stack=="string")return[L.stack,k.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),h=u[0],v=u[1];if(h&&v){var w=h.split(`
5
- `),N=v.split(`
6
- `);for(o=r=0;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;for(;o<N.length&&!N[o].includes("DetermineComponentFrameRoot");)o++;if(r===w.length||o===N.length)for(r=w.length-1,o=N.length-1;1<=r&&0<=o&&w[r]!==N[o];)o--;for(;1<=r&&0<=o;r--,o--)if(w[r]!==N[o]){if(r!==1||o!==1)do if(r--,o--,0>o||w[r]!==N[o]){var V=`
4
+ `+Je+e+Kn}var vi=!1;function an(e,t){if(!e||vi)return"";vi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(U){var z=U}Reflect.construct(e,[],X)}else{try{X.call()}catch(U){z=U}e.call(X.prototype)}}else{try{throw Error()}catch(U){z=U}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(U){if(U&&z&&typeof U.stack=="string")return[U.stack,z.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),h=u[0],v=u[1];if(h&&v){var w=h.split(`
5
+ `),k=v.split(`
6
+ `);for(o=r=0;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;for(;o<k.length&&!k[o].includes("DetermineComponentFrameRoot");)o++;if(r===w.length||o===k.length)for(r=w.length-1,o=k.length-1;1<=r&&0<=o&&w[r]!==k[o];)o--;for(;1<=r&&0<=o;r--,o--)if(w[r]!==k[o]){if(r!==1||o!==1)do if(r--,o--,0>o||w[r]!==k[o]){var V=`
7
7
  `+w[r].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=r&&0<=o);break}}}finally{vi=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?nn(a):""}function ha(e,t){switch(e.tag){case 26:case 27:case 5:return nn(e.type);case 16:return nn("Lazy");case 13:return e.child!==t&&t!==null?nn("Suspense Fallback"):nn("Suspense");case 19:return nn("SuspenseList");case 0:case 15:return an(e.type,!1);case 11:return an(e.type.render,!1);case 1:return an(e.type,!0);case 31:return nn("Activity");default:return""}}function bi(e){try{var t="",a=null;do t+=ha(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
8
8
  Error generating stack: `+r.message+`
9
- `+r.stack}}var Ft=Object.prototype.hasOwnProperty,Si=n.unstable_scheduleCallback,wi=n.unstable_cancelCallback,Qt=n.unstable_shouldYield,na=n.unstable_requestPaint,mt=n.unstable_now,ma=n.unstable_getCurrentPriorityLevel,aa=n.unstable_ImmediatePriority,qa=n.unstable_UserBlockingPriority,Vt=n.unstable_NormalPriority,Wt=n.unstable_LowPriority,_n=n.unstable_IdlePriority,Zi=n.log,Cn=n.unstable_setDisableYieldValue,pa=null,ut=null;function rn(e){if(typeof Zi=="function"&&Cn(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(pa,e)}catch{}}var kt=Math.clz32?Math.clz32:pn,Ji=Math.log,Ei=Math.LN2;function pn(e){return e>>>=0,e===0?32:31-(Ji(e)/Ei|0)|0}var Kn=256,ga=262144,Xn=4194304;function An(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _e(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var o=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=r&134217727;return v!==0?(r=v&~u,r!==0?o=An(r):(h&=v,h!==0?o=An(h):a||(a=v&~e,a!==0&&(o=An(a))))):(v=r&~u,v!==0?o=An(v):h!==0?o=An(h):a||(a=r&~e,a!==0&&(o=An(a)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:o}function st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Et(){var e=Xn;return Xn<<=1,(Xn&62914560)===0&&(Xn=4194304),e}function gn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zt(e,t,a,r,o,u){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,w=e.expirationTimes,N=e.hiddenUpdates;for(a=h&~a;0<a;){var V=31-kt(a),P=1<<V;v[V]=0,w[V]=-1;var k=N[V];if(k!==null)for(N[V]=null,V=0;V<k.length;V++){var L=k[V];L!==null&&(L.lane&=-536870913)}a&=~P}r!==0&&ya(e,r,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function ya(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-kt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function S(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-kt(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}function _(e,t){var a=t&-t;return a=(a&42)!==0?1:z(a),(a&(e.suspendedLanes|t))!==0?0:a}function z(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function I(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function W(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Dp(e.type))}function pe(e,t){var a=F.p;try{return F.p=e,t()}finally{F.p=a}}var ae=Math.random().toString(36).slice(2),ne="__reactFiber$"+ae,ie="__reactProps$"+ae,de="__reactContainer$"+ae,Ee="__reactEvents$"+ae,be="__reactListeners$"+ae,Ze="__reactHandles$"+ae,Ye="__reactResources$"+ae,pt="__reactMarker$"+ae;function yt(e){delete e[ne],delete e[ie],delete e[Ee],delete e[be],delete e[Ze]}function vt(e){var t=e[ne];if(t)return t;for(var a=e.parentNode;a;){if(t=a[de]||a[ne]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=pp(e);e!==null;){if(a=e[ne])return a;e=pp(e)}return t}e=a,a=e.parentNode}return null}function Ge(e){if(e=e[ne]||e[de]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ln(e){var t=e[Ye];return t||(t=e[Ye]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[pt]=!0}var Pn=new Set,yn={};function Fn(e,t){On(e,t),On(e+"Capture",t)}function On(e,t){for(yn[e]=t,e=0;e<t.length;e++)Pn.add(t[e])}var va=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]*$"),xi={},Ti={};function Ke(e){return Ft.call(Ti,e)?!0:Ft.call(xi,e)?!1:va.test(e)?Ti[e]=!0:(xi[e]=!0,!1)}function xt(e,t,a){if(Ke(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Zn(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Yt(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function Xe(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ri(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $l(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,u=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){a=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qr(e){if(!e._valueTracker){var t=Ri(e)?"checked":"value";e._valueTracker=$l(e,t,""+e[t])}}function ed(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Ri(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Wl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Dv=/[\n"\\]/g;function Mn(e){return e.replace(Dv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function jo(e,t,a,r,o,u,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xe(t)):e.value!==""+Xe(t)&&(e.value=""+Xe(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Bo(e,h,Xe(t)):a!=null?Bo(e,h,Xe(a)):r!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Xe(v):e.removeAttribute("name")}function td(e,t,a,r,o,u,h,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Qr(e);return}a=a!=null?""+Xe(a):"",t=t!=null?""+Xe(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=v?e.checked:!!r,e.defaultChecked=!!r,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Qr(e)}function Bo(e,t,a){t==="number"&&Wl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ii(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Xe(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function nd(e,t,a){if(t!=null&&(t=""+Xe(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Xe(a):""}function ad(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(s(92));if(we(r)){if(1<r.length)throw Error(s(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=Xe(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),Qr(e)}function $i(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Nv=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 id(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||Nv.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function rd(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&a[o]!==r&&id(e,o,r)}else for(var u in t)t.hasOwnProperty(u)&&id(e,u,t[u])}function qo(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kv=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"]]),zv=/^[\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 es(e){return zv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ba(){}var Ho=null;function Qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wi=null,er=null;function ld(e){var t=Ge(e);if(t&&(e=t.stateNode)){var a=e[ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(jo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Mn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=r[ie]||null;if(!o)throw Error(s(90));jo(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&ed(r)}break e;case"textarea":nd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ii(e,!!a.multiple,t,!1)}}}var Vo=!1;function sd(e,t,a){if(Vo)return e(t,a);Vo=!0;try{var r=e(t);return r}finally{if(Vo=!1,(Wi!==null||er!==null)&&(Qs(),Wi&&(t=Wi,e=er,er=Wi=null,ld(t),e)))for(t=0;t<e.length;t++)ld(e[t])}}function Vr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[ie]||null;if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yo=!1;if(Sa)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){Yo=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{Yo=!1}var Ha=null,Go=null,ts=null;function od(){if(ts)return ts;var e,t=Go,a=t.length,r,o="value"in Ha?Ha.value:Ha.textContent,u=o.length;for(e=0;e<a&&t[e]===o[e];e++);var h=a-e;for(r=1;r<=h&&t[a-r]===o[u-r];r++);return ts=o.slice(e,1<r?1-r:void 0)}function ns(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function as(){return!0}function ud(){return!1}function sn(e){function t(a,r,o,u,h){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?as:ud,this.isPropagationStopped=ud,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=as)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=as)},persist:function(){},isPersistent:as}),t}var _i={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},is=sn(_i),Gr=y({},_i,{view:0,detail:0}),Uv=sn(Gr),Ko,Xo,Kr,rs=y({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kr&&(Kr&&e.type==="mousemove"?(Ko=e.screenX-Kr.screenX,Xo=e.screenY-Kr.screenY):Xo=Ko=0,Kr=e),Ko)},movementY:function(e){return"movementY"in e?e.movementY:Xo}}),cd=sn(rs),Lv=y({},rs,{dataTransfer:0}),jv=sn(Lv),Bv=y({},Gr,{relatedTarget:0}),Po=sn(Bv),qv=y({},_i,{animationName:0,elapsedTime:0,pseudoElement:0}),Hv=sn(qv),Qv=y({},_i,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vv=sn(Qv),Yv=y({},_i,{data:0}),fd=sn(Yv),Gv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kv={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"},Xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xv[e])?!!t[e]:!1}function Fo(){return Pv}var Fv=y({},Gr,{key:function(e){if(e.key){var t=Gv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ns(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fo,charCode:function(e){return e.type==="keypress"?ns(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ns(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zv=sn(Fv),Jv=y({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dd=sn(Jv),Iv=y({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fo}),$v=sn(Iv),Wv=y({},_i,{propertyName:0,elapsedTime:0,pseudoElement:0}),e0=sn(Wv),t0=y({},rs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),n0=sn(t0),a0=y({},_i,{newState:0,oldState:0}),i0=sn(a0),r0=[9,13,27,32],Zo=Sa&&"CompositionEvent"in window,Xr=null;Sa&&"documentMode"in document&&(Xr=document.documentMode);var l0=Sa&&"TextEvent"in window&&!Xr,hd=Sa&&(!Zo||Xr&&8<Xr&&11>=Xr),md=" ",pd=!1;function gd(e,t){switch(e){case"keyup":return r0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function s0(e,t){switch(e){case"compositionend":return yd(t);case"keypress":return t.which!==32?null:(pd=!0,md);case"textInput":return e=t.data,e===md&&pd?null:e;default:return null}}function o0(e,t){if(tr)return e==="compositionend"||!Zo&&gd(e,t)?(e=od(),ts=Go=Ha=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return hd&&t.locale!=="ko"?null:t.data;default:return null}}var u0={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 vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!u0[e.type]:t==="textarea"}function bd(e,t,a,r){Wi?er?er.push(r):er=[r]:Wi=r,t=Fs(t,"onChange"),0<t.length&&(a=new is("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Pr=null,Fr=null;function c0(e){tp(e,0)}function ls(e){var t=jt(e);if(ed(t))return e}function Sd(e,t){if(e==="change")return t}var wd=!1;if(Sa){var Jo;if(Sa){var Io="oninput"in document;if(!Io){var Ed=document.createElement("div");Ed.setAttribute("oninput","return;"),Io=typeof Ed.oninput=="function"}Jo=Io}else Jo=!1;wd=Jo&&(!document.documentMode||9<document.documentMode)}function xd(){Pr&&(Pr.detachEvent("onpropertychange",Td),Fr=Pr=null)}function Td(e){if(e.propertyName==="value"&&ls(Fr)){var t=[];bd(t,Fr,e,Qo(e)),sd(c0,t)}}function f0(e,t,a){e==="focusin"?(xd(),Pr=t,Fr=a,Pr.attachEvent("onpropertychange",Td)):e==="focusout"&&xd()}function d0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ls(Fr)}function h0(e,t){if(e==="click")return ls(t)}function m0(e,t){if(e==="input"||e==="change")return ls(t)}function p0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vn=typeof Object.is=="function"?Object.is:p0;function Zr(e,t){if(vn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!Ft.call(t,o)||!vn(e[o],t[o]))return!1}return!0}function Rd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _d(e,t){var a=Rd(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Rd(a)}}function Cd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ad(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wl(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Wl(e.document)}return t}function $o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var g0=Sa&&"documentMode"in document&&11>=document.documentMode,nr=null,Wo=null,Jr=null,eu=!1;function Od(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;eu||nr==null||nr!==Wl(r)||(r=nr,"selectionStart"in r&&$o(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jr&&Zr(Jr,r)||(Jr=r,r=Fs(Wo,"onSelect"),0<r.length&&(t=new is("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=nr)))}function Ci(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ar={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionrun:Ci("Transition","TransitionRun"),transitionstart:Ci("Transition","TransitionStart"),transitioncancel:Ci("Transition","TransitionCancel"),transitionend:Ci("Transition","TransitionEnd")},tu={},Md={};Sa&&(Md=document.createElement("div").style,"AnimationEvent"in window||(delete ar.animationend.animation,delete ar.animationiteration.animation,delete ar.animationstart.animation),"TransitionEvent"in window||delete ar.transitionend.transition);function Ai(e){if(tu[e])return tu[e];if(!ar[e])return e;var t=ar[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Md)return tu[e]=t[a];return e}var Dd=Ai("animationend"),Nd=Ai("animationiteration"),kd=Ai("animationstart"),y0=Ai("transitionrun"),v0=Ai("transitionstart"),b0=Ai("transitioncancel"),zd=Ai("transitionend"),Ud=new Map,nu="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(" ");nu.push("scrollEnd");function Jn(e,t){Ud.set(e,t),Fn(t,[e])}var ss=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Dn=[],ir=0,au=0;function os(){for(var e=ir,t=au=ir=0;t<e;){var a=Dn[t];Dn[t++]=null;var r=Dn[t];Dn[t++]=null;var o=Dn[t];Dn[t++]=null;var u=Dn[t];if(Dn[t++]=null,r!==null&&o!==null){var h=r.pending;h===null?o.next=o:(o.next=h.next,h.next=o),r.pending=o}u!==0&&Ld(a,o,u)}}function us(e,t,a,r){Dn[ir++]=e,Dn[ir++]=t,Dn[ir++]=a,Dn[ir++]=r,au|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function iu(e,t,a,r){return us(e,t,a,r),cs(e)}function Oi(e,t){return us(e,null,null,t),cs(e)}function Ld(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var o=!1,u=e.return;u!==null;)u.childLanes|=a,r=u.alternate,r!==null&&(r.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-kt(a),e=u.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=a|536870912),u):null}function cs(e){if(50<vl)throw vl=0,hc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var rr={};function S0(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(e,t,a,r){return new S0(e,t,a,r)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wa(e,t){var a=e.alternate;return a===null?(a=bn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function jd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fs(e,t,a,r,o,u){var h=0;if(r=e,typeof e=="function")ru(e)&&(h=1);else if(typeof e=="string")h=Rb(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case oe:return e=bn(31,a,t,o),e.elementType=oe,e.lanes=u,e;case j:return Mi(a.children,o,u,t);case K:h=8,o|=24;break;case G:return e=bn(12,a,t,o|2),e.elementType=G,e.lanes=u,e;case he:return e=bn(13,a,t,o),e.elementType=he,e.lanes=u,e;case me:return e=bn(19,a,t,o),e.elementType=me,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:h=10;break e;case J:h=9;break e;case ye:h=11;break e;case C:h=14;break e;case Y:h=16,r=null;break e}h=29,a=Error(s(130,e===null?"null":typeof e,"")),r=null}return t=bn(h,a,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function Mi(e,t,a,r){return e=bn(7,e,r,t),e.lanes=a,e}function lu(e,t,a){return e=bn(6,e,null,t),e.lanes=a,e}function Bd(e){var t=bn(18,null,null,0);return t.stateNode=e,t}function su(e,t,a){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qd=new WeakMap;function Nn(e,t){if(typeof e=="object"&&e!==null){var a=qd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:bi(t)},qd.set(e,t),t)}return{value:e,source:t,stack:bi(t)}}var lr=[],sr=0,ds=null,Ir=0,kn=[],zn=0,Qa=null,ia=1,ra="";function Ea(e,t){lr[sr++]=Ir,lr[sr++]=ds,ds=e,Ir=t}function Hd(e,t,a){kn[zn++]=ia,kn[zn++]=ra,kn[zn++]=Qa,Qa=e;var r=ia;e=ra;var o=32-kt(r)-1;r&=~(1<<o),a+=1;var u=32-kt(t)+o;if(30<u){var h=o-o%5;u=(r&(1<<h)-1).toString(32),r>>=h,o-=h,ia=1<<32-kt(t)+o|a<<o|r,ra=u+e}else ia=1<<u|a<<o|r,ra=e}function ou(e){e.return!==null&&(Ea(e,1),Hd(e,1,0))}function uu(e){for(;e===ds;)ds=lr[--sr],lr[sr]=null,Ir=lr[--sr],lr[sr]=null;for(;e===Qa;)Qa=kn[--zn],kn[zn]=null,ra=kn[--zn],kn[zn]=null,ia=kn[--zn],kn[zn]=null}function Qd(e,t){kn[zn++]=ia,kn[zn++]=ra,kn[zn++]=Qa,ia=t.id,ra=t.overflow,Qa=e}var Gt=null,ct=null,Pe=!1,Va=null,Un=!1,cu=Error(s(519));function Ya(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $r(Nn(t,e)),cu}function Vd(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[ne]=e,t[ie]=r,a){case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":case"embed":qe("load",t);break;case"video":case"audio":for(a=0;a<Sl.length;a++)qe(Sl[a],t);break;case"source":qe("error",t);break;case"img":case"image":case"link":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"input":qe("invalid",t),td(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":qe("invalid",t);break;case"textarea":qe("invalid",t),ad(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||rp(t.textContent,a)?(r.popover!=null&&(qe("beforetoggle",t),qe("toggle",t)),r.onScroll!=null&&qe("scroll",t),r.onScrollEnd!=null&&qe("scrollend",t),r.onClick!=null&&(t.onclick=ba),t=!0):t=!1,t||Ya(e,!0)}function Yd(e){for(Gt=e.return;Gt;)switch(Gt.tag){case 5:case 31:case 13:Un=!1;return;case 27:case 3:Un=!0;return;default:Gt=Gt.return}}function or(e){if(e!==Gt)return!1;if(!Pe)return Yd(e),Pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ac(e.type,e.memoizedProps)),a=!a),a&&ct&&Ya(e),Yd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ct=mp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ct=mp(e)}else t===27?(t=ct,ai(e.type)?(e=kc,kc=null,ct=e):ct=t):ct=Gt?jn(e.stateNode.nextSibling):null;return!0}function Di(){ct=Gt=null,Pe=!1}function fu(){var e=Va;return e!==null&&(fn===null?fn=e:fn.push.apply(fn,e),Va=null),e}function $r(e){Va===null?Va=[e]:Va.push(e)}var du=x(null),Ni=null,xa=null;function Ga(e,t,a){B(du,t._currentValue),t._currentValue=a}function Ta(e){e._currentValue=du.current,Q(du)}function hu(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function mu(e,t,a,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var h=o.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=o;for(var w=0;w<t.length;w++)if(v.context===t[w]){u.lanes|=a,v=u.alternate,v!==null&&(v.lanes|=a),hu(u.return,a,e),r||(h=null);break e}u=v.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=a,u=h.alternate,u!==null&&(u.lanes|=a),hu(h,a,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function ur(e,t,a,r){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var v=o.type;vn(o.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(o===ce.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Rl):e=[Rl])}o=o.return}e!==null&&mu(t,e,a,r),t.flags|=262144}function hs(e){for(e=e.firstContext;e!==null;){if(!vn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ki(e){Ni=e,xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Kt(e){return Gd(Ni,e)}function ms(e,t){return Ni===null&&ki(e),Gd(e,t)}function Gd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},xa===null){if(e===null)throw Error(s(308));xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xa=xa.next=t;return a}var w0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},E0=n.unstable_scheduleCallback,x0=n.unstable_NormalPriority,Ct={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pu(){return{controller:new w0,data:new Map,refCount:0}}function Wr(e){e.refCount--,e.refCount===0&&E0(x0,function(){e.controller.abort()})}var el=null,gu=0,cr=0,fr=null;function T0(e,t){if(el===null){var a=el=[];gu=0,cr=bc(),fr={status:"pending",value:void 0,then:function(r){a.push(r)}}}return gu++,t.then(Kd,Kd),t}function Kd(){if(--gu===0&&el!==null){fr!==null&&(fr.status="fulfilled");var e=el;el=null,cr=0,fr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function R0(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),r}var Xd=A.S;A.S=function(e,t){Om=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&T0(e,t),Xd!==null&&Xd(e,t)};var zi=x(null);function yu(){var e=zi.current;return e!==null?e:rt.pooledCache}function ps(e,t){t===null?B(zi,zi.current):B(zi,t.pool)}function Pd(){var e=yu();return e===null?null:{parent:Ct._currentValue,pool:e}}var dr=Error(s(460)),vu=Error(s(474)),gs=Error(s(542)),ys={then:function(){}};function Fd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ba,ba),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Id(e),e;default:if(typeof t.status=="string")t.then(ba,ba);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Id(e),e}throw Li=t,dr}}function Ui(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Li=a,dr):a}}var Li=null;function Jd(){if(Li===null)throw Error(s(459));var e=Li;return Li=null,e}function Id(e){if(e===dr||e===gs)throw Error(s(483))}var hr=null,tl=0;function vs(e){var t=tl;return tl+=1,hr===null&&(hr=[]),Zd(hr,e,t)}function nl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bs(e,t){throw t.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $d(e){function t(O,R){if(e){var D=O.deletions;D===null?(O.deletions=[R],O.flags|=16):D.push(R)}}function a(O,R){if(!e)return null;for(;R!==null;)t(O,R),R=R.sibling;return null}function r(O){for(var R=new Map;O!==null;)O.key!==null?R.set(O.key,O):R.set(O.index,O),O=O.sibling;return R}function o(O,R){return O=wa(O,R),O.index=0,O.sibling=null,O}function u(O,R,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<R?(O.flags|=67108866,R):D):(O.flags|=67108866,R)):(O.flags|=1048576,R)}function h(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function v(O,R,D,X){return R===null||R.tag!==6?(R=lu(D,O.mode,X),R.return=O,R):(R=o(R,D),R.return=O,R)}function w(O,R,D,X){var Se=D.type;return Se===j?V(O,R,D.props.children,X,D.key):R!==null&&(R.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===Y&&Ui(Se)===R.type)?(R=o(R,D.props),nl(R,D),R.return=O,R):(R=fs(D.type,D.key,D.props,null,O.mode,X),nl(R,D),R.return=O,R)}function N(O,R,D,X){return R===null||R.tag!==4||R.stateNode.containerInfo!==D.containerInfo||R.stateNode.implementation!==D.implementation?(R=su(D,O.mode,X),R.return=O,R):(R=o(R,D.children||[]),R.return=O,R)}function V(O,R,D,X,Se){return R===null||R.tag!==7?(R=Mi(D,O.mode,X,Se),R.return=O,R):(R=o(R,D),R.return=O,R)}function P(O,R,D){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=lu(""+R,O.mode,D),R.return=O,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case M:return D=fs(R.type,R.key,R.props,null,O.mode,D),nl(D,R),D.return=O,D;case U:return R=su(R,O.mode,D),R.return=O,R;case Y:return R=Ui(R),P(O,R,D)}if(we(R)||Te(R))return R=Mi(R,O.mode,D,null),R.return=O,R;if(typeof R.then=="function")return P(O,vs(R),D);if(R.$$typeof===$)return P(O,ms(O,R),D);bs(O,R)}return null}function k(O,R,D,X){var Se=R!==null?R.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return Se!==null?null:v(O,R,""+D,X);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case M:return D.key===Se?w(O,R,D,X):null;case U:return D.key===Se?N(O,R,D,X):null;case Y:return D=Ui(D),k(O,R,D,X)}if(we(D)||Te(D))return Se!==null?null:V(O,R,D,X,null);if(typeof D.then=="function")return k(O,R,vs(D),X);if(D.$$typeof===$)return k(O,R,ms(O,D),X);bs(O,D)}return null}function L(O,R,D,X,Se){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return O=O.get(D)||null,v(R,O,""+X,Se);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case M:return O=O.get(X.key===null?D:X.key)||null,w(R,O,X,Se);case U:return O=O.get(X.key===null?D:X.key)||null,N(R,O,X,Se);case Y:return X=Ui(X),L(O,R,D,X,Se)}if(we(X)||Te(X))return O=O.get(D)||null,V(R,O,X,Se,null);if(typeof X.then=="function")return L(O,R,D,vs(X),Se);if(X.$$typeof===$)return L(O,R,D,ms(R,X),Se);bs(R,X)}return null}function re(O,R,D,X){for(var Se=null,Ie=null,fe=R,ke=R=0,Qe=null;fe!==null&&ke<D.length;ke++){fe.index>ke?(Qe=fe,fe=null):Qe=fe.sibling;var $e=k(O,fe,D[ke],X);if($e===null){fe===null&&(fe=Qe);break}e&&fe&&$e.alternate===null&&t(O,fe),R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e,fe=Qe}if(ke===D.length)return a(O,fe),Pe&&Ea(O,ke),Se;if(fe===null){for(;ke<D.length;ke++)fe=P(O,D[ke],X),fe!==null&&(R=u(fe,R,ke),Ie===null?Se=fe:Ie.sibling=fe,Ie=fe);return Pe&&Ea(O,ke),Se}for(fe=r(fe);ke<D.length;ke++)Qe=L(fe,O,ke,D[ke],X),Qe!==null&&(e&&Qe.alternate!==null&&fe.delete(Qe.key===null?ke:Qe.key),R=u(Qe,R,ke),Ie===null?Se=Qe:Ie.sibling=Qe,Ie=Qe);return e&&fe.forEach(function(oi){return t(O,oi)}),Pe&&Ea(O,ke),Se}function xe(O,R,D,X){if(D==null)throw Error(s(151));for(var Se=null,Ie=null,fe=R,ke=R=0,Qe=null,$e=D.next();fe!==null&&!$e.done;ke++,$e=D.next()){fe.index>ke?(Qe=fe,fe=null):Qe=fe.sibling;var oi=k(O,fe,$e.value,X);if(oi===null){fe===null&&(fe=Qe);break}e&&fe&&oi.alternate===null&&t(O,fe),R=u(oi,R,ke),Ie===null?Se=oi:Ie.sibling=oi,Ie=oi,fe=Qe}if($e.done)return a(O,fe),Pe&&Ea(O,ke),Se;if(fe===null){for(;!$e.done;ke++,$e=D.next())$e=P(O,$e.value,X),$e!==null&&(R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e);return Pe&&Ea(O,ke),Se}for(fe=r(fe);!$e.done;ke++,$e=D.next())$e=L(fe,O,ke,$e.value,X),$e!==null&&(e&&$e.alternate!==null&&fe.delete($e.key===null?ke:$e.key),R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e);return e&&fe.forEach(function(Lb){return t(O,Lb)}),Pe&&Ea(O,ke),Se}function it(O,R,D,X){if(typeof D=="object"&&D!==null&&D.type===j&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case M:e:{for(var Se=D.key;R!==null;){if(R.key===Se){if(Se=D.type,Se===j){if(R.tag===7){a(O,R.sibling),X=o(R,D.props.children),X.return=O,O=X;break e}}else if(R.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===Y&&Ui(Se)===R.type){a(O,R.sibling),X=o(R,D.props),nl(X,D),X.return=O,O=X;break e}a(O,R);break}else t(O,R);R=R.sibling}D.type===j?(X=Mi(D.props.children,O.mode,X,D.key),X.return=O,O=X):(X=fs(D.type,D.key,D.props,null,O.mode,X),nl(X,D),X.return=O,O=X)}return h(O);case U:e:{for(Se=D.key;R!==null;){if(R.key===Se)if(R.tag===4&&R.stateNode.containerInfo===D.containerInfo&&R.stateNode.implementation===D.implementation){a(O,R.sibling),X=o(R,D.children||[]),X.return=O,O=X;break e}else{a(O,R);break}else t(O,R);R=R.sibling}X=su(D,O.mode,X),X.return=O,O=X}return h(O);case Y:return D=Ui(D),it(O,R,D,X)}if(we(D))return re(O,R,D,X);if(Te(D)){if(Se=Te(D),typeof Se!="function")throw Error(s(150));return D=Se.call(D),xe(O,R,D,X)}if(typeof D.then=="function")return it(O,R,vs(D),X);if(D.$$typeof===$)return it(O,R,ms(O,D),X);bs(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,R!==null&&R.tag===6?(a(O,R.sibling),X=o(R,D),X.return=O,O=X):(a(O,R),X=lu(D,O.mode,X),X.return=O,O=X),h(O)):a(O,R)}return function(O,R,D,X){try{tl=0;var Se=it(O,R,D,X);return hr=null,Se}catch(fe){if(fe===dr||fe===gs)throw fe;var Ie=bn(29,fe,null,O.mode);return Ie.lanes=X,Ie.return=O,Ie}}}var ji=$d(!0),Wd=$d(!1),Ka=!1;function bu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Su(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(We&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=cs(e),Ld(e,null,a),t}return us(e,r,t,a),cs(e)}function al(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,S(e,a)}}function wu(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?o=u=h:u=u.next=h,a=a.next}while(a!==null);u===null?o=u=t:u=u.next=t}else o=u=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Eu=!1;function il(){if(Eu){var e=fr;if(e!==null)throw e}}function rl(e,t,a,r){Eu=!1;var o=e.updateQueue;Ka=!1;var u=o.firstBaseUpdate,h=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var w=v,N=w.next;w.next=null,h===null?u=N:h.next=N,h=w;var V=e.alternate;V!==null&&(V=V.updateQueue,v=V.lastBaseUpdate,v!==h&&(v===null?V.firstBaseUpdate=N:v.next=N,V.lastBaseUpdate=w))}if(u!==null){var P=o.baseState;h=0,V=N=w=null,v=u;do{var k=v.lane&-536870913,L=k!==v.lane;if(L?(He&k)===k:(r&k)===k){k!==0&&k===cr&&(Eu=!0),V!==null&&(V=V.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var re=e,xe=v;k=t;var it=a;switch(xe.tag){case 1:if(re=xe.payload,typeof re=="function"){P=re.call(it,P,k);break e}P=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=xe.payload,k=typeof re=="function"?re.call(it,P,k):re,k==null)break e;P=y({},P,k);break e;case 2:Ka=!0}}k=v.callback,k!==null&&(e.flags|=64,L&&(e.flags|=8192),L=o.callbacks,L===null?o.callbacks=[k]:L.push(k))}else L={lane:k,tag:v.tag,payload:v.payload,callback:v.callback,next:null},V===null?(N=V=L,w=P):V=V.next=L,h|=k;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;L=v,v=L.next,L.next=null,o.lastBaseUpdate=L,o.shared.pending=null}}while(!0);V===null&&(w=P),o.baseState=w,o.firstBaseUpdate=N,o.lastBaseUpdate=V,u===null&&(o.shared.lanes=0),$a|=h,e.lanes=h,e.memoizedState=P}}function eh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function th(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)eh(a[e],t)}var mr=x(null),Ss=x(0);function nh(e,t){e=ka,B(Ss,e),B(mr,t),ka=e|t.baseLanes}function xu(){B(Ss,ka),B(mr,mr.current)}function Tu(){ka=Ss.current,Q(mr),Q(Ss)}var Sn=x(null),Ln=null;function Fa(e){var t=e.alternate;B(Tt,Tt.current&1),B(Sn,e),Ln===null&&(t===null||mr.current!==null||t.memoizedState!==null)&&(Ln=e)}function Ru(e){B(Tt,Tt.current),B(Sn,e),Ln===null&&(Ln=e)}function ah(e){e.tag===22?(B(Tt,Tt.current),B(Sn,e),Ln===null&&(Ln=e)):Za()}function Za(){B(Tt,Tt.current),B(Sn,Sn.current)}function wn(e){Q(Sn),Ln===e&&(Ln=null),Q(Tt)}var Tt=x(0);function ws(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Dc(a)||Nc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ra=0,De=null,nt=null,At=null,Es=!1,pr=!1,Bi=!1,xs=0,ll=0,gr=null,_0=0;function bt(){throw Error(s(321))}function _u(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!vn(e[a],t[a]))return!1;return!0}function Cu(e,t,a,r,o,u){return Ra=u,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Hh:Vu,Bi=!1,u=a(r,o),Bi=!1,pr&&(u=rh(t,a,r,o)),ih(e),u}function ih(e){A.H=ul;var t=nt!==null&&nt.next!==null;if(Ra=0,At=nt=De=null,Es=!1,ll=0,gr=null,t)throw Error(s(300));e===null||Ot||(e=e.dependencies,e!==null&&hs(e)&&(Ot=!0))}function rh(e,t,a,r){De=e;var o=0;do{if(pr&&(gr=null),ll=0,pr=!1,25<=o)throw Error(s(301));if(o+=1,At=nt=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}A.H=Qh,u=t(a,r)}while(pr);return u}function C0(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?sl(t):t,e=e.useState()[0],(nt!==null?nt.memoizedState:null)!==e&&(De.flags|=1024),t}function Au(){var e=xs!==0;return xs=0,e}function Ou(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Mu(e){if(Es){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Es=!1}Ra=0,At=nt=De=null,pr=!1,ll=xs=0,gr=null}function en(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?De.memoizedState=At=e:At=At.next=e,At}function Rt(){if(nt===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=At===null?De.memoizedState:At.next;if(t!==null)At=t,nt=e;else{if(e===null)throw De.alternate===null?Error(s(467)):Error(s(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},At===null?De.memoizedState=At=e:At=At.next=e}return At}function Ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(e){var t=ll;return ll+=1,gr===null&&(gr=[]),e=Zd(gr,e,t),t=De,(At===null?t.memoizedState:At.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Hh:Vu),e}function Rs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return sl(e);if(e.$$typeof===$)return Kt(e)}throw Error(s(438,String(e)))}function Du(e){var t=null,a=De.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=De.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ts(),De.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=Ae;return t.index++,a}function _a(e,t){return typeof t=="function"?t(e):t}function _s(e){var t=Rt();return Nu(t,nt,e)}function Nu(e,t,a){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=a;var o=e.baseQueue,u=r.pending;if(u!==null){if(o!==null){var h=o.next;o.next=u.next,u.next=h}t.baseQueue=o=u,r.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var v=h=null,w=null,N=t,V=!1;do{var P=N.lane&-536870913;if(P!==N.lane?(He&P)===P:(Ra&P)===P){var k=N.revertLane;if(k===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),P===cr&&(V=!0);else if((Ra&k)===k){N=N.next,k===cr&&(V=!0);continue}else P={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(v=w=P,h=u):w=w.next=P,De.lanes|=k,$a|=k;P=N.action,Bi&&a(u,P),u=N.hasEagerState?N.eagerState:a(u,P)}else k={lane:P,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},w===null?(v=w=k,h=u):w=w.next=k,De.lanes|=P,$a|=P;N=N.next}while(N!==null&&N!==t);if(w===null?h=u:w.next=v,!vn(u,e.memoizedState)&&(Ot=!0,V&&(a=fr,a!==null)))throw a;e.memoizedState=u,e.baseState=h,e.baseQueue=w,r.lastRenderedState=u}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ku(e){var t=Rt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,u=t.memoizedState;if(o!==null){a.pending=null;var h=o=o.next;do u=e(u,h.action),h=h.next;while(h!==o);vn(u,t.memoizedState)||(Ot=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,r]}function lh(e,t,a){var r=De,o=Rt(),u=Pe;if(u){if(a===void 0)throw Error(s(407));a=a()}else a=t();var h=!vn((nt||o).memoizedState,a);if(h&&(o.memoizedState=a,Ot=!0),o=o.queue,Lu(uh.bind(null,r,o,e),[e]),o.getSnapshot!==t||h||At!==null&&At.memoizedState.tag&1){if(r.flags|=2048,yr(9,{destroy:void 0},oh.bind(null,r,o,a,t),null),rt===null)throw Error(s(349));u||(Ra&127)!==0||sh(r,t,a)}return a}function sh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=De.updateQueue,t===null?(t=Ts(),De.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function oh(e,t,a,r){t.value=a,t.getSnapshot=r,ch(t)&&fh(e)}function uh(e,t,a){return a(function(){ch(t)&&fh(e)})}function ch(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!vn(e,a)}catch{return!0}}function fh(e){var t=Oi(e,2);t!==null&&dn(t,e,2)}function zu(e){var t=en();if(typeof e=="function"){var a=e;if(e=a(),Bi){rn(!0);try{a()}finally{rn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t}function dh(e,t,a,r){return e.baseState=a,Nu(e,nt,typeof r=="function"?r:_a)}function A0(e,t,a,r,o){if(Os(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};A.T!==null?a(!0):u.isTransition=!1,r(u),a=t.pending,a===null?(u.next=t.pending=u,hh(t,u)):(u.next=a.next,t.pending=a.next=u)}}function hh(e,t){var a=t.action,r=t.payload,o=e.state;if(t.isTransition){var u=A.T,h={};A.T=h;try{var v=a(o,r),w=A.S;w!==null&&w(h,v),mh(e,t,v)}catch(N){Uu(e,t,N)}finally{u!==null&&h.types!==null&&(u.types=h.types),A.T=u}}else try{u=a(o,r),mh(e,t,u)}catch(N){Uu(e,t,N)}}function mh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){ph(e,t,r)},function(r){return Uu(e,t,r)}):ph(e,t,a)}function ph(e,t,a){t.status="fulfilled",t.value=a,gh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,hh(e,a)))}function Uu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,gh(t),t=t.next;while(t!==r)}e.action=null}function gh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yh(e,t){return t}function vh(e,t){if(Pe){var a=rt.formState;if(a!==null){e:{var r=De;if(Pe){if(ct){t:{for(var o=ct,u=Un;o.nodeType!==8;){if(!u){o=null;break t}if(o=jn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){ct=jn(o.nextSibling),r=o.data==="F!";break e}}Ya(r)}r=!1}r&&(t=a[0])}}return a=en(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yh,lastRenderedState:t},a.queue=r,a=jh.bind(null,De,r),r.dispatch=a,r=zu(!1),u=Qu.bind(null,De,!1,r.queue),r=en(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,a=A0.bind(null,De,o,u,a),o.dispatch=a,r.memoizedState=e,[t,a,!1]}function bh(e){var t=Rt();return Sh(t,nt,e)}function Sh(e,t,a){if(t=Nu(e,t,yh)[0],e=_s(_a)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=sl(t)}catch(h){throw h===dr?gs:h}else r=t;t=Rt();var o=t.queue,u=o.dispatch;return a!==t.memoizedState&&(De.flags|=2048,yr(9,{destroy:void 0},O0.bind(null,o,a),null)),[r,u,e]}function O0(e,t){e.action=t}function wh(e){var t=Rt(),a=nt;if(a!==null)return Sh(t,a,e);Rt(),t=t.memoizedState,a=Rt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function yr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=De.updateQueue,t===null&&(t=Ts(),De.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function Eh(){return Rt().memoizedState}function Cs(e,t,a,r){var o=en();De.flags|=e,o.memoizedState=yr(1|t,{destroy:void 0},a,r===void 0?null:r)}function As(e,t,a,r){var o=Rt();r=r===void 0?null:r;var u=o.memoizedState.inst;nt!==null&&r!==null&&_u(r,nt.memoizedState.deps)?o.memoizedState=yr(t,u,a,r):(De.flags|=e,o.memoizedState=yr(1|t,u,a,r))}function xh(e,t){Cs(8390656,8,e,t)}function Lu(e,t){As(2048,8,e,t)}function M0(e){De.flags|=4;var t=De.updateQueue;if(t===null)t=Ts(),De.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Th(e){var t=Rt().memoizedState;return M0({ref:t,nextImpl:e}),function(){if((We&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Rh(e,t){return As(4,2,e,t)}function _h(e,t){return As(4,4,e,t)}function Ch(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ah(e,t,a){a=a!=null?a.concat([e]):null,As(4,4,Ch.bind(null,t,e),a)}function ju(){}function Oh(e,t){var a=Rt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&_u(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Mh(e,t){var a=Rt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&_u(t,r[1]))return r[0];if(r=e(),Bi){rn(!0);try{e()}finally{rn(!1)}}return a.memoizedState=[r,t],r}function Bu(e,t,a){return a===void 0||(Ra&1073741824)!==0&&(He&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Dm(),De.lanes|=e,$a|=e,a)}function Dh(e,t,a,r){return vn(a,t)?a:mr.current!==null?(e=Bu(e,a,r),vn(e,t)||(Ot=!0),e):(Ra&42)===0||(Ra&1073741824)!==0&&(He&261930)===0?(Ot=!0,e.memoizedState=a):(e=Dm(),De.lanes|=e,$a|=e,t)}function Nh(e,t,a,r,o){var u=F.p;F.p=u!==0&&8>u?u:8;var h=A.T,v={};A.T=v,Qu(e,!1,t,a);try{var w=o(),N=A.S;if(N!==null&&N(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var V=R0(w,r);ol(e,t,V,Tn(e))}else ol(e,t,r,Tn(e))}catch(P){ol(e,t,{then:function(){},status:"rejected",reason:P},Tn())}finally{F.p=u,h!==null&&v.types!==null&&(h.types=v.types),A.T=h}}function D0(){}function qu(e,t,a,r){if(e.tag!==5)throw Error(s(476));var o=kh(e).queue;Nh(e,o,t,H,a===null?D0:function(){return zh(e),a(r)})}function kh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:H},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zh(e){var t=kh(e);t.next===null&&(t=e.alternate.memoizedState),ol(e,t.next.queue,{},Tn())}function Hu(){return Kt(Rl)}function Uh(){return Rt().memoizedState}function Lh(){return Rt().memoizedState}function N0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Tn();e=Xa(a);var r=Pa(t,e,a);r!==null&&(dn(r,t,a),al(r,t,a)),t={cache:pu()},e.payload=t;return}t=t.return}}function k0(e,t,a){var r=Tn();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Os(e)?Bh(t,a):(a=iu(e,t,a,r),a!==null&&(dn(a,e,r),qh(a,t,r)))}function jh(e,t,a){var r=Tn();ol(e,t,a,r)}function ol(e,t,a,r){var o={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Os(e))Bh(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,v=u(h,a);if(o.hasEagerState=!0,o.eagerState=v,vn(v,h))return us(e,t,o,0),rt===null&&os(),!1}catch{}if(a=iu(e,t,o,r),a!==null)return dn(a,e,r),qh(a,t,r),!0}return!1}function Qu(e,t,a,r){if(r={lane:2,revertLane:bc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(s(479))}else t=iu(e,a,r,2),t!==null&&dn(t,e,2)}function Os(e){var t=e.alternate;return e===De||t!==null&&t===De}function Bh(e,t){pr=Es=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function qh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,S(e,a)}}var ul={readContext:Kt,use:Rs,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt};ul.useEffectEvent=bt;var Hh={readContext:Kt,use:Rs,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:xh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Cs(4194308,4,Ch.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Cs(4194308,4,e,t)},useInsertionEffect:function(e,t){Cs(4,2,e,t)},useMemo:function(e,t){var a=en();t=t===void 0?null:t;var r=e();if(Bi){rn(!0);try{e()}finally{rn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=en();if(a!==void 0){var o=a(t);if(Bi){rn(!0);try{a(t)}finally{rn(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=k0.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:function(e){e=zu(e);var t=e.queue,a=jh.bind(null,De,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ju,useDeferredValue:function(e,t){var a=en();return Bu(a,e,t)},useTransition:function(){var e=zu(!1);return e=Nh.bind(null,De,e.queue,!0,!1),en().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=De,o=en();if(Pe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),rt===null)throw Error(s(349));(He&127)!==0||sh(r,t,a)}o.memoizedState=a;var u={value:a,getSnapshot:t};return o.queue=u,xh(uh.bind(null,r,u,e),[e]),r.flags|=2048,yr(9,{destroy:void 0},oh.bind(null,r,u,a,t),null),a},useId:function(){var e=en(),t=rt.identifierPrefix;if(Pe){var a=ra,r=ia;a=(r&~(1<<32-kt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=xs++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=_0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Hu,useFormState:vh,useActionState:vh,useOptimistic:function(e){var t=en();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Qu.bind(null,De,!0,a),a.dispatch=t,[e,t]},useMemoCache:Du,useCacheRefresh:function(){return en().memoizedState=N0.bind(null,De)},useEffectEvent:function(e){var t=en(),a={impl:e};return t.memoizedState=a,function(){if((We&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Vu={readContext:Kt,use:Rs,useCallback:Oh,useContext:Kt,useEffect:Lu,useImperativeHandle:Ah,useInsertionEffect:Rh,useLayoutEffect:_h,useMemo:Mh,useReducer:_s,useRef:Eh,useState:function(){return _s(_a)},useDebugValue:ju,useDeferredValue:function(e,t){var a=Rt();return Dh(a,nt.memoizedState,e,t)},useTransition:function(){var e=_s(_a)[0],t=Rt().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:lh,useId:Uh,useHostTransitionStatus:Hu,useFormState:bh,useActionState:bh,useOptimistic:function(e,t){var a=Rt();return dh(a,nt,e,t)},useMemoCache:Du,useCacheRefresh:Lh};Vu.useEffectEvent=Th;var Qh={readContext:Kt,use:Rs,useCallback:Oh,useContext:Kt,useEffect:Lu,useImperativeHandle:Ah,useInsertionEffect:Rh,useLayoutEffect:_h,useMemo:Mh,useReducer:ku,useRef:Eh,useState:function(){return ku(_a)},useDebugValue:ju,useDeferredValue:function(e,t){var a=Rt();return nt===null?Bu(a,e,t):Dh(a,nt.memoizedState,e,t)},useTransition:function(){var e=ku(_a)[0],t=Rt().memoizedState;return[typeof e=="boolean"?e:sl(e),t]},useSyncExternalStore:lh,useId:Uh,useHostTransitionStatus:Hu,useFormState:wh,useActionState:wh,useOptimistic:function(e,t){var a=Rt();return nt!==null?dh(a,nt,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Du,useCacheRefresh:Lh};Qh.useEffectEvent=Th;function Yu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Gu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Tn(),o=Xa(r);o.payload=t,a!=null&&(o.callback=a),t=Pa(e,o,r),t!==null&&(dn(t,e,r),al(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Tn(),o=Xa(r);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Pa(e,o,r),t!==null&&(dn(t,e,r),al(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Tn(),r=Xa(a);r.tag=2,t!=null&&(r.callback=t),t=Pa(e,r,a),t!==null&&(dn(t,e,a),al(t,e,a))}};function Vh(e,t,a,r,o,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,h):t.prototype&&t.prototype.isPureReactComponent?!Zr(a,r)||!Zr(o,u):!0}function Yh(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Gu.enqueueReplaceState(t,t.state,null)}function qi(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Gh(e){ss(e)}function Kh(e){console.error(e)}function Xh(e){ss(e)}function Ms(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Ph(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ku(e,t,a){return a=Xa(a),a.tag=3,a.payload={element:null},a.callback=function(){Ms(e,t)},a}function Fh(e){return e=Xa(e),e.tag=3,e}function Zh(e,t,a,r){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var u=r.value;e.payload=function(){return o(u)},e.callback=function(){Ph(t,a,r)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Ph(t,a,r),typeof o!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var v=r.stack;this.componentDidCatch(r.value,{componentStack:v!==null?v:""})})}function z0(e,t,a,r,o){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&ur(t,a,o,!0),a=Sn.current,a!==null){switch(a.tag){case 31:case 13:return Ln===null?Vs():a.alternate===null&&St===0&&(St=3),a.flags&=-257,a.flags|=65536,a.lanes=o,r===ys?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),gc(e,r,o)),!1;case 22:return a.flags|=65536,r===ys?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),gc(e,r,o)),!1}throw Error(s(435,a.tag))}return gc(e,r,o),Vs(),!1}if(Pe)return t=Sn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==cu&&(e=Error(s(422),{cause:r}),$r(Nn(e,a)))):(r!==cu&&(t=Error(s(423),{cause:r}),$r(Nn(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Nn(r,a),o=Ku(e.stateNode,r,o),wu(e,o),St!==4&&(St=2)),!1;var u=Error(s(520),{cause:r});if(u=Nn(u,a),yl===null?yl=[u]:yl.push(u),St!==4&&(St=2),t===null)return!0;r=Nn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Ku(a.stateNode,r,e),wu(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wa===null||!Wa.has(u))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Fh(o),Zh(o,e,a,r),wu(a,o),!1}a=a.return}while(a!==null);return!1}var Xu=Error(s(461)),Ot=!1;function Xt(e,t,a,r){t.child=e===null?Wd(t,null,a,r):ji(t,e.child,a,r)}function Jh(e,t,a,r,o){a=a.render;var u=t.ref;if("ref"in r){var h={};for(var v in r)v!=="ref"&&(h[v]=r[v])}else h=r;return ki(t),r=Cu(e,t,a,h,u,o),v=Au(),e!==null&&!Ot?(Ou(e,t,o),Ca(e,t,o)):(Pe&&v&&ou(t),t.flags|=1,Xt(e,t,r,o),t.child)}function Ih(e,t,a,r,o){if(e===null){var u=a.type;return typeof u=="function"&&!ru(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,$h(e,t,u,r,o)):(e=fs(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!ec(e,o)){var h=u.memoizedProps;if(a=a.compare,a=a!==null?a:Zr,a(h,r)&&e.ref===t.ref)return Ca(e,t,o)}return t.flags|=1,e=wa(u,r),e.ref=t.ref,e.return=t,t.child=e}function $h(e,t,a,r,o){if(e!==null){var u=e.memoizedProps;if(Zr(u,r)&&e.ref===t.ref)if(Ot=!1,t.pendingProps=r=u,ec(e,o))(e.flags&131072)!==0&&(Ot=!0);else return t.lanes=e.lanes,Ca(e,t,o)}return Pu(e,t,a,r,o)}function Wh(e,t,a,r){var o=r.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~u}else r=0,t.child=null;return em(e,t,u,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ps(t,u!==null?u.cachePool:null),u!==null?nh(t,u):xu(),ah(t);else return r=t.lanes=536870912,em(e,t,u!==null?u.baseLanes|a:a,a,r)}else u!==null?(ps(t,u.cachePool),nh(t,u),Za(),t.memoizedState=null):(e!==null&&ps(t,null),xu(),Za());return Xt(e,t,o,a),t.child}function cl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function em(e,t,a,r,o){var u=yu();return u=u===null?null:{parent:Ct._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&ps(t,null),xu(),ah(t),e!==null&&ur(e,t,r,!0),t.childLanes=o,null}function Ds(e,t){return t=ks({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tm(e,t,a){return ji(t,e.child,null,a),e=Ds(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function U0(e,t,a){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Pe){if(r.mode==="hidden")return e=Ds(t,r),t.lanes=536870912,cl(null,e);if(Ru(t),(e=ct)?(e=hp(e,Un),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:ia,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Bd(e),a.return=t,t.child=a,Gt=t,ct=null)):e=null,e===null)throw Ya(t);return t.lanes=536870912,null}return Ds(t,r)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if(Ru(t),o)if(t.flags&256)t.flags&=-257,t=tm(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ot||ur(e,t,a,!1),o=(a&e.childLanes)!==0,Ot||o){if(r=rt,r!==null&&(h=_(r,a),h!==0&&h!==u.retryLane))throw u.retryLane=h,Oi(e,h),dn(r,e,h),Xu;Vs(),t=tm(e,t,a)}else e=u.treeContext,ct=jn(h.nextSibling),Gt=t,Pe=!0,Va=null,Un=!1,e!==null&&Qd(t,e),t=Ds(t,r),t.flags|=4096;return t}return e=wa(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ns(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Pu(e,t,a,r,o){return ki(t),a=Cu(e,t,a,r,void 0,o),r=Au(),e!==null&&!Ot?(Ou(e,t,o),Ca(e,t,o)):(Pe&&r&&ou(t),t.flags|=1,Xt(e,t,a,o),t.child)}function nm(e,t,a,r,o,u){return ki(t),t.updateQueue=null,a=rh(t,r,a,o),ih(e),r=Au(),e!==null&&!Ot?(Ou(e,t,u),Ca(e,t,u)):(Pe&&r&&ou(t),t.flags|=1,Xt(e,t,a,u),t.child)}function am(e,t,a,r,o){if(ki(t),t.stateNode===null){var u=rr,h=a.contextType;typeof h=="object"&&h!==null&&(u=Kt(h)),u=new a(r,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Gu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=r,u.state=t.memoizedState,u.refs={},bu(t),h=a.contextType,u.context=typeof h=="object"&&h!==null?Kt(h):rr,u.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(Yu(t,a,h,r),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&Gu.enqueueReplaceState(u,u.state,null),rl(t,r,u,o),il(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,w=qi(a,v);u.props=w;var N=u.context,V=a.contextType;h=rr,typeof V=="object"&&V!==null&&(h=Kt(V));var P=a.getDerivedStateFromProps;V=typeof P=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,V||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||N!==h)&&Yh(t,u,r,h),Ka=!1;var k=t.memoizedState;u.state=k,rl(t,r,u,o),il(),N=t.memoizedState,v||k!==N||Ka?(typeof P=="function"&&(Yu(t,a,P,r),N=t.memoizedState),(w=Ka||Vh(t,a,w,r,k,N,h))?(V||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=N),u.props=r,u.state=N,u.context=h,r=w):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,Su(e,t),h=t.memoizedProps,V=qi(a,h),u.props=V,P=t.pendingProps,k=u.context,N=a.contextType,w=rr,typeof N=="object"&&N!==null&&(w=Kt(N)),v=a.getDerivedStateFromProps,(N=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==P||k!==w)&&Yh(t,u,r,w),Ka=!1,k=t.memoizedState,u.state=k,rl(t,r,u,o),il();var L=t.memoizedState;h!==P||k!==L||Ka||e!==null&&e.dependencies!==null&&hs(e.dependencies)?(typeof v=="function"&&(Yu(t,a,v,r),L=t.memoizedState),(V=Ka||Vh(t,a,V,r,k,L,w)||e!==null&&e.dependencies!==null&&hs(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,L,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,L,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=L),u.props=r,u.state=L,u.context=w,r=V):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),r=!1)}return u=r,Ns(e,t),r=(t.flags&128)!==0,u||r?(u=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&r?(t.child=ji(t,e.child,null,o),t.child=ji(t,null,a,o)):Xt(e,t,a,o),t.memoizedState=u.state,e=t.child):e=Ca(e,t,o),e}function im(e,t,a,r){return Di(),t.flags|=256,Xt(e,t,a,r),t.child}var Fu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zu(e){return{baseLanes:e,cachePool:Pd()}}function Ju(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=xn),e}function rm(e,t,a){var r=t.pendingProps,o=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(Tt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Pe){if(o?Fa(t):Za(),(e=ct)?(e=hp(e,Un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:ia,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Bd(e),a.return=t,t.child=a,Gt=t,ct=null)):e=null,e===null)throw Ya(t);return Nc(e)?t.lanes=32:t.lanes=536870912,null}var v=r.children;return r=r.fallback,o?(Za(),o=t.mode,v=ks({mode:"hidden",children:v},o),r=Mi(r,o,a,null),v.return=t,r.return=t,v.sibling=r,t.child=v,r=t.child,r.memoizedState=Zu(a),r.childLanes=Ju(e,h,a),t.memoizedState=Fu,cl(null,r)):(Fa(t),Iu(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(u)t.flags&256?(Fa(t),t.flags&=-257,t=$u(e,t,a)):t.memoizedState!==null?(Za(),t.child=e.child,t.flags|=128,t=null):(Za(),v=r.fallback,o=t.mode,r=ks({mode:"visible",children:r.children},o),v=Mi(v,o,a,null),v.flags|=2,r.return=t,v.return=t,r.sibling=v,t.child=r,ji(t,e.child,null,a),r=t.child,r.memoizedState=Zu(a),r.childLanes=Ju(e,h,a),t.memoizedState=Fu,t=cl(null,r));else if(Fa(t),Nc(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var N=h.dgst;h=N,r=Error(s(419)),r.stack="",r.digest=h,$r({value:r,source:null,stack:null}),t=$u(e,t,a)}else if(Ot||ur(e,t,a,!1),h=(a&e.childLanes)!==0,Ot||h){if(h=rt,h!==null&&(r=_(h,a),r!==0&&r!==w.retryLane))throw w.retryLane=r,Oi(e,r),dn(h,e,r),Xu;Dc(v)||Vs(),t=$u(e,t,a)}else Dc(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,ct=jn(v.nextSibling),Gt=t,Pe=!0,Va=null,Un=!1,e!==null&&Qd(t,e),t=Iu(t,r.children),t.flags|=4096);return t}return o?(Za(),v=r.fallback,o=t.mode,w=e.child,N=w.sibling,r=wa(w,{mode:"hidden",children:r.children}),r.subtreeFlags=w.subtreeFlags&65011712,N!==null?v=wa(N,v):(v=Mi(v,o,a,null),v.flags|=2),v.return=t,r.return=t,r.sibling=v,t.child=r,cl(null,r),r=t.child,v=e.child.memoizedState,v===null?v=Zu(a):(o=v.cachePool,o!==null?(w=Ct._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Pd(),v={baseLanes:v.baseLanes|a,cachePool:o}),r.memoizedState=v,r.childLanes=Ju(e,h,a),t.memoizedState=Fu,cl(e.child,r)):(Fa(t),a=e.child,e=a.sibling,a=wa(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function Iu(e,t){return t=ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ks(e,t){return e=bn(22,e,null,t),e.lanes=0,e}function $u(e,t,a){return ji(t,e.child,null,a),e=Iu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lm(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),hu(e.return,t,a)}function Wu(e,t,a,r,o,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o,treeForkCount:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=r,h.tail=a,h.tailMode=o,h.treeForkCount=u)}function sm(e,t,a){var r=t.pendingProps,o=r.revealOrder,u=r.tail;r=r.children;var h=Tt.current,v=(h&2)!==0;if(v?(h=h&1|2,t.flags|=128):h&=1,B(Tt,h),Xt(e,t,r,a),r=Pe?Ir:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lm(e,a,t);else if(e.tag===19)lm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&ws(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Wu(t,!1,o,a,u,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ws(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Wu(t,!0,a,null,u,r);break;case"together":Wu(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ca(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),$a|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ur(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=wa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=wa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ec(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hs(e)))}function L0(e,t,a){switch(t.tag){case 3:Re(t,t.stateNode.containerInfo),Ga(t,Ct,e.memoizedState.cache),Di();break;case 27:case 5:Ht(t);break;case 4:Re(t,t.stateNode.containerInfo);break;case 10:Ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ru(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Fa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?rm(e,t,a):(Fa(t),e=Ca(e,t,a),e!==null?e.sibling:null);Fa(t);break;case 19:var o=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(ur(e,t,a,!1),r=(a&t.childLanes)!==0),o){if(r)return sm(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Tt,Tt.current),r)break;return null;case 22:return t.lanes=0,Wh(e,t,a,t.pendingProps);case 24:Ga(t,Ct,e.memoizedState.cache)}return Ca(e,t,a)}function om(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ot=!0;else{if(!ec(e,a)&&(t.flags&128)===0)return Ot=!1,L0(e,t,a);Ot=(e.flags&131072)!==0}else Ot=!1,Pe&&(t.flags&1048576)!==0&&Hd(t,Ir,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Ui(t.elementType),t.type=e,typeof e=="function")ru(e)?(r=qi(e,r),t.tag=1,t=am(null,t,e,r,a)):(t.tag=0,t=Pu(null,t,e,r,a));else{if(e!=null){var o=e.$$typeof;if(o===ye){t.tag=11,t=Jh(null,t,e,r,a);break e}else if(o===C){t.tag=14,t=Ih(null,t,e,r,a);break e}}throw t=Le(e)||e,Error(s(306,t,""))}}return t;case 0:return Pu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,o=qi(r,t.pendingProps),am(e,t,r,o,a);case 3:e:{if(Re(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var u=t.memoizedState;o=u.element,Su(e,t),rl(t,r,null,a);var h=t.memoizedState;if(r=h.cache,Ga(t,Ct,r),r!==u.cache&&mu(t,[Ct],a,!0),il(),r=h.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=im(e,t,r,a);break e}else if(r!==o){o=Nn(Error(s(424)),t),$r(o),t=im(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ct=jn(e.firstChild),Gt=t,Pe=!0,Va=null,Un=!0,a=Wd(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Di(),r===o){t=Ca(e,t,a);break e}Xt(e,t,r,a)}t=t.child}return t;case 26:return Ns(e,t),e===null?(a=bp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Pe||(a=t.type,e=t.pendingProps,r=Zs(ue.current).createElement(a),r[ne]=t,r[ie]=e,Pt(r,a,e),dt(r),t.stateNode=r):t.memoizedState=bp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ht(t),e===null&&Pe&&(r=t.stateNode=gp(t.type,t.pendingProps,ue.current),Gt=t,Un=!0,o=ct,ai(t.type)?(kc=o,ct=jn(r.firstChild)):ct=o),Xt(e,t,t.pendingProps.children,a),Ns(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pe&&((o=r=ct)&&(r=db(r,t.type,t.pendingProps,Un),r!==null?(t.stateNode=r,Gt=t,ct=jn(r.firstChild),Un=!1,o=!0):o=!1),o||Ya(t)),Ht(t),o=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,r=u.children,Ac(o,u)?r=null:h!==null&&Ac(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=Cu(e,t,C0,null,null,a),Rl._currentValue=o),Ns(e,t),Xt(e,t,r,a),t.child;case 6:return e===null&&Pe&&((e=a=ct)&&(a=hb(a,t.pendingProps,Un),a!==null?(t.stateNode=a,Gt=t,ct=null,e=!0):e=!1),e||Ya(t)),null;case 13:return rm(e,t,a);case 4:return Re(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ji(t,null,r,a):Xt(e,t,r,a),t.child;case 11:return Jh(e,t,t.type,t.pendingProps,a);case 7:return Xt(e,t,t.pendingProps,a),t.child;case 8:return Xt(e,t,t.pendingProps.children,a),t.child;case 12:return Xt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Ga(t,t.type,r.value),Xt(e,t,r.children,a),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,ki(t),o=Kt(o),r=r(o),t.flags|=1,Xt(e,t,r,a),t.child;case 14:return Ih(e,t,t.type,t.pendingProps,a);case 15:return $h(e,t,t.type,t.pendingProps,a);case 19:return sm(e,t,a);case 31:return U0(e,t,a);case 22:return Wh(e,t,a,t.pendingProps);case 24:return ki(t),r=Kt(Ct),e===null?(o=yu(),o===null&&(o=rt,u=pu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=a),o=u),t.memoizedState={parent:r,cache:o},bu(t),Ga(t,Ct,o)):((e.lanes&a)!==0&&(Su(e,t),rl(t,null,null,a),il()),o=e.memoizedState,u=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ga(t,Ct,r)):(r=u.cache,Ga(t,Ct,r),r!==o.cache&&mu(t,[Ct],a,!0))),Xt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Aa(e){e.flags|=4}function tc(e,t,a,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Um())e.flags|=8192;else throw Li=ys,vu}else e.flags&=-16777217}function um(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tp(t))if(Um())e.flags|=8192;else throw Li=ys,vu}function zs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Et():536870912,e.lanes|=t,wr|=t)}function fl(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function j0(e,t,a){var r=t.pendingProps;switch(uu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ta(Ct),Ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(or(t)?Aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fu())),ft(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Aa(t),u!==null?(ft(t),um(t,u)):(ft(t),tc(t,o,null,r,a))):u?u!==e.memoizedState?(Aa(t),ft(t),um(t,u)):(ft(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Aa(t),ft(t),tc(t,o,e,r,a)),null;case 27:if($t(t),a=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return ft(t),null}e=Z.current,or(t)?Vd(t):(e=gp(o,r,a),t.stateNode=e,Aa(t))}return ft(t),null;case 5:if($t(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return ft(t),null}if(u=Z.current,or(t))Vd(t);else{var h=Zs(ue.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof r.is=="string"?h.createElement("select",{is:r.is}):h.createElement("select"),r.multiple?u.multiple=!0:r.size&&(u.size=r.size);break;default:u=typeof r.is=="string"?h.createElement(o,{is:r.is}):h.createElement(o)}}u[ne]=t,u[ie]=r;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=u;e:switch(Pt(u,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Aa(t)}}return ft(t),tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,or(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,o=Gt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ne]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||rp(e.nodeValue,a)),e||Ya(t,!0)}else e=Zs(e).createTextNode(r),e[ne]=t,t.stateNode=e}return ft(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=or(t),a!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ne]=t}else Di(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),e=!1}else a=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return ft(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=or(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ne]=t}else Di(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),o=!1}else o=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==o&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),zs(t,t.updateQueue),ft(t),null);case 4:return Ve(),e===null&&xc(t.stateNode.containerInfo),ft(t),null;case 10:return Ta(t.type),ft(t),null;case 19:if(Q(Tt),r=t.memoizedState,r===null)return ft(t),null;if(o=(t.flags&128)!==0,u=r.rendering,u===null)if(o)fl(r,!1);else{if(St!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ws(e),u!==null){for(t.flags|=128,fl(r,!1),e=u.updateQueue,t.updateQueue=e,zs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)jd(a,e),a=a.sibling;return B(Tt,Tt.current&1|2),Pe&&Ea(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&mt()>qs&&(t.flags|=128,o=!0,fl(r,!1),t.lanes=4194304)}else{if(!o)if(e=ws(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,zs(t,e),fl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!u.alternate&&!Pe)return ft(t),null}else 2*mt()-r.renderingStartTime>qs&&a!==536870912&&(t.flags|=128,o=!0,fl(r,!1),t.lanes=4194304);r.isBackwards?(u.sibling=t.child,t.child=u):(e=r.last,e!==null?e.sibling=u:t.child=u,r.last=u)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=mt(),e.sibling=null,a=Tt.current,B(Tt,o?a&1|2:a&1),Pe&&Ea(t,r.treeForkCount),e):(ft(t),null);case 22:case 23:return wn(t),Tu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),a=t.updateQueue,a!==null&&zs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&Q(zi),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ta(Ct),ft(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function B0(e,t){switch(uu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ta(Ct),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $t(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(s(340));Di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Tt),null;case 4:return Ve(),null;case 10:return Ta(t.type),null;case 22:case 23:return wn(t),Tu(),e!==null&&Q(zi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ta(Ct),null;case 25:return null;default:return null}}function cm(e,t){switch(uu(t),t.tag){case 3:Ta(Ct),Ve();break;case 26:case 27:case 5:$t(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:Q(Tt);break;case 10:Ta(t.type);break;case 22:case 23:wn(t),Tu(),e!==null&&Q(zi);break;case 24:Ta(Ct)}}function dl(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){r=void 0;var u=a.create,h=a.inst;r=u(),h.destroy=r}a=a.next}while(a!==o)}}catch(v){tt(t,t.return,v)}}function Ja(e,t,a){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var u=o.next;r=u;do{if((r.tag&e)===e){var h=r.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,o=t;var w=a,N=v;try{N()}catch(V){tt(o,w,V)}}}r=r.next}while(r!==u)}}catch(V){tt(t,t.return,V)}}function fm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{th(t,a)}catch(r){tt(e,e.return,r)}}}function dm(e,t,a){a.props=qi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){tt(e,t,r)}}function hl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){tt(e,t,o)}}function la(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(o){tt(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){tt(e,t,o)}else a.current=null}function hm(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(o){tt(e,e.return,o)}}function nc(e,t,a){try{var r=e.stateNode;lb(r,e.type,a,t),r[ie]=t}catch(o){tt(e,e.return,o)}}function mm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ai(e.type)||e.tag===4}function ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ai(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ic(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ba));else if(r!==4&&(r===27&&ai(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ic(e,t,a),e=e.sibling;e!==null;)ic(e,t,a),e=e.sibling}function Us(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&ai(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Us(e,t,a),e=e.sibling;e!==null;)Us(e,t,a),e=e.sibling}function pm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Pt(t,r,a),t[ne]=e,t[ie]=a}catch(u){tt(e,e.return,u)}}var Oa=!1,Mt=!1,rc=!1,gm=typeof WeakSet=="function"?WeakSet:Set,Bt=null;function q0(e,t){if(e=e.containerInfo,_c=no,e=Ad(e),$o(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var h=0,v=-1,w=-1,N=0,V=0,P=e,k=null;t:for(;;){for(var L;P!==a||o!==0&&P.nodeType!==3||(v=h+o),P!==u||r!==0&&P.nodeType!==3||(w=h+r),P.nodeType===3&&(h+=P.nodeValue.length),(L=P.firstChild)!==null;)k=P,P=L;for(;;){if(P===e)break t;if(k===a&&++N===o&&(v=h),k===u&&++V===r&&(w=h),(L=P.nextSibling)!==null)break;P=k,k=P.parentNode}P=L}a=v===-1||w===-1?null:{start:v,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Cc={focusedElem:e,selectionRange:a},no=!1,Bt=t;Bt!==null;)if(t=Bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Bt=e;else for(;Bt!==null;){switch(t=Bt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,o=u.memoizedProps,u=u.memoizedState,r=a.stateNode;try{var re=qi(a.type,o);e=r.getSnapshotBeforeUpdate(re,u),r.__reactInternalSnapshotBeforeUpdate=e}catch(xe){tt(a,a.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Mc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Bt=e;break}Bt=t.return}}function ym(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Da(e,a),r&4&&dl(5,a);break;case 1:if(Da(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){tt(a,a.return,h)}else{var o=qi(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){tt(a,a.return,h)}}r&64&&fm(a),r&512&&hl(a,a.return);break;case 3:if(Da(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{th(e,t)}catch(h){tt(a,a.return,h)}}break;case 27:t===null&&r&4&&pm(a);case 26:case 5:Da(e,a),t===null&&r&4&&hm(a),r&512&&hl(a,a.return);break;case 12:Da(e,a);break;case 31:Da(e,a),r&4&&Sm(e,a);break;case 13:Da(e,a),r&4&&wm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=F0.bind(null,a),mb(e,a))));break;case 22:if(r=a.memoizedState!==null||Oa,!r){t=t!==null&&t.memoizedState!==null||Mt,o=Oa;var u=Mt;Oa=r,(Mt=t)&&!u?Na(e,a,(a.subtreeFlags&8772)!==0):Da(e,a),Oa=o,Mt=u}break;case 30:break;default:Da(e,a)}}function vm(e){var t=e.alternate;t!==null&&(e.alternate=null,vm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ht=null,on=!1;function Ma(e,t,a){for(a=a.child;a!==null;)bm(e,t,a),a=a.sibling}function bm(e,t,a){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(pa,a)}catch{}switch(a.tag){case 26:Mt||la(a,t),Ma(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Mt||la(a,t);var r=ht,o=on;ai(a.type)&&(ht=a.stateNode,on=!1),Ma(e,t,a),El(a.stateNode),ht=r,on=o;break;case 5:Mt||la(a,t);case 6:if(r=ht,o=on,ht=null,Ma(e,t,a),ht=r,on=o,ht!==null)if(on)try{(ht.nodeType===9?ht.body:ht.nodeName==="HTML"?ht.ownerDocument.body:ht).removeChild(a.stateNode)}catch(u){tt(a,t,u)}else try{ht.removeChild(a.stateNode)}catch(u){tt(a,t,u)}break;case 18:ht!==null&&(on?(e=ht,fp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Or(e)):fp(ht,a.stateNode));break;case 4:r=ht,o=on,ht=a.stateNode.containerInfo,on=!0,Ma(e,t,a),ht=r,on=o;break;case 0:case 11:case 14:case 15:Ja(2,a,t),Mt||Ja(4,a,t),Ma(e,t,a);break;case 1:Mt||(la(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&dm(a,t,r)),Ma(e,t,a);break;case 21:Ma(e,t,a);break;case 22:Mt=(r=Mt)||a.memoizedState!==null,Ma(e,t,a),Mt=r;break;default:Ma(e,t,a)}}function Sm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Or(e)}catch(a){tt(t,t.return,a)}}}function wm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Or(e)}catch(a){tt(t,t.return,a)}}function H0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gm),t;default:throw Error(s(435,e.tag))}}function Ls(e,t){var a=H0(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var o=Z0.bind(null,e,r);r.then(o,o)}})}function un(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r],u=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 27:if(ai(v.type)){ht=v.stateNode,on=!1;break e}break;case 5:ht=v.stateNode,on=!1;break e;case 3:case 4:ht=v.stateNode.containerInfo,on=!0;break e}v=v.return}if(ht===null)throw Error(s(160));bm(u,h,o),ht=null,on=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Em(t,e),t=t.sibling}var In=null;function Em(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:un(t,e),cn(e),r&4&&(Ja(3,e,e.return),dl(3,e),Ja(5,e,e.return));break;case 1:un(t,e),cn(e),r&512&&(Mt||a===null||la(a,a.return)),r&64&&Oa&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var o=In;if(un(t,e),cn(e),r&512&&(Mt||a===null||la(a,a.return)),r&4){var u=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":u=o.getElementsByTagName("title")[0],(!u||u[pt]||u[ne]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(r),o.head.insertBefore(u,o.querySelector("head > title"))),Pt(u,r,a),u[ne]=e,dt(u),r=u;break e;case"link":var h=Ep("link","href",o).get(r+(a.href||""));if(h){for(var v=0;v<h.length;v++)if(u=h[v],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(v,1);break t}}u=o.createElement(r),Pt(u,r,a),o.head.appendChild(u);break;case"meta":if(h=Ep("meta","content",o).get(r+(a.content||""))){for(v=0;v<h.length;v++)if(u=h[v],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(v,1);break t}}u=o.createElement(r),Pt(u,r,a),o.head.appendChild(u);break;default:throw Error(s(468,r))}u[ne]=e,dt(u),r=u}e.stateNode=r}else xp(o,e.type,e.stateNode);else e.stateNode=wp(o,r,e.memoizedProps);else u!==r?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,r===null?xp(o,e.type,e.stateNode):wp(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&nc(e,e.memoizedProps,a.memoizedProps)}break;case 27:un(t,e),cn(e),r&512&&(Mt||a===null||la(a,a.return)),a!==null&&r&4&&nc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(un(t,e),cn(e),r&512&&(Mt||a===null||la(a,a.return)),e.flags&32){o=e.stateNode;try{$i(o,"")}catch(re){tt(e,e.return,re)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,nc(e,o,a!==null?a.memoizedProps:o)),r&1024&&(rc=!0);break;case 6:if(un(t,e),cn(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(re){tt(e,e.return,re)}}break;case 3:if($s=null,o=In,In=Js(t.containerInfo),un(t,e),In=o,cn(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Or(t.containerInfo)}catch(re){tt(e,e.return,re)}rc&&(rc=!1,xm(e));break;case 4:r=In,In=Js(e.stateNode.containerInfo),un(t,e),cn(e),In=r;break;case 12:un(t,e),cn(e);break;case 31:un(t,e),cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ls(e,r)));break;case 13:un(t,e),cn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Bs=mt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ls(e,r)));break;case 22:o=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,N=Oa,V=Mt;if(Oa=N||o,Mt=V||w,un(t,e),Mt=V,Oa=N,cn(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||w||Oa||Mt||Hi(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(u=w.stateNode,o)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=w.stateNode;var P=w.memoizedProps.style,k=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(re){tt(w,w.return,re)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(re){tt(w,w.return,re)}}}else if(t.tag===18){if(a===null){w=t;try{var L=w.stateNode;o?dp(L,!0):dp(w.stateNode,!1)}catch(re){tt(w,w.return,re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Ls(e,a))));break;case 19:un(t,e),cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ls(e,r)));break;case 30:break;case 21:break;default:un(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(mm(r)){a=r;break}r=r.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,u=ac(e);Us(e,u,o);break;case 5:var h=a.stateNode;a.flags&32&&($i(h,""),a.flags&=-33);var v=ac(e);Us(e,v,h);break;case 3:case 4:var w=a.stateNode.containerInfo,N=ac(e);ic(e,N,w);break;default:throw Error(s(161))}}catch(V){tt(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ym(e,t.alternate,t),t=t.sibling}function Hi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ja(4,t,t.return),Hi(t);break;case 1:la(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&dm(t,t.return,a),Hi(t);break;case 27:El(t.stateNode);case 26:case 5:la(t,t.return),Hi(t);break;case 22:t.memoizedState===null&&Hi(t);break;case 30:Hi(t);break;default:Hi(t)}e=e.sibling}}function Na(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:Na(o,u,a),dl(4,u);break;case 1:if(Na(o,u,a),r=u,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(N){tt(r,r.return,N)}if(r=u,o=r.updateQueue,o!==null){var v=r.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)eh(w[o],v)}catch(N){tt(r,r.return,N)}}a&&h&64&&fm(u),hl(u,u.return);break;case 27:pm(u);case 26:case 5:Na(o,u,a),a&&r===null&&h&4&&hm(u),hl(u,u.return);break;case 12:Na(o,u,a);break;case 31:Na(o,u,a),a&&h&4&&Sm(o,u);break;case 13:Na(o,u,a),a&&h&4&&wm(o,u);break;case 22:u.memoizedState===null&&Na(o,u,a),hl(u,u.return);break;case 30:break;default:Na(o,u,a)}t=t.sibling}}function lc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Wr(a))}function sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wr(e))}function $n(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tm(e,t,a,r),t=t.sibling}function Tm(e,t,a,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:$n(e,t,a,r),o&2048&&dl(9,t);break;case 1:$n(e,t,a,r);break;case 3:$n(e,t,a,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wr(e)));break;case 12:if(o&2048){$n(e,t,a,r),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,v=u.onPostCommit;typeof v=="function"&&v(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){tt(t,t.return,w)}}else $n(e,t,a,r);break;case 31:$n(e,t,a,r);break;case 13:$n(e,t,a,r);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?$n(e,t,a,r):ml(e,t):u._visibility&2?$n(e,t,a,r):(u._visibility|=2,vr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&lc(h,t);break;case 24:$n(e,t,a,r),o&2048&&sc(t.alternate,t);break;default:$n(e,t,a,r)}}function vr(e,t,a,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,h=t,v=a,w=r,N=h.flags;switch(h.tag){case 0:case 11:case 15:vr(u,h,v,w,o),dl(8,h);break;case 23:break;case 22:var V=h.stateNode;h.memoizedState!==null?V._visibility&2?vr(u,h,v,w,o):ml(u,h):(V._visibility|=2,vr(u,h,v,w,o)),o&&N&2048&&lc(h.alternate,h);break;case 24:vr(u,h,v,w,o),o&&N&2048&&sc(h.alternate,h);break;default:vr(u,h,v,w,o)}t=t.sibling}}function ml(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,o=r.flags;switch(r.tag){case 22:ml(a,r),o&2048&&lc(r.alternate,r);break;case 24:ml(a,r),o&2048&&sc(r.alternate,r);break;default:ml(a,r)}t=t.sibling}}var pl=8192;function br(e,t,a){if(e.subtreeFlags&pl)for(e=e.child;e!==null;)Rm(e,t,a),e=e.sibling}function Rm(e,t,a){switch(e.tag){case 26:br(e,t,a),e.flags&pl&&e.memoizedState!==null&&_b(a,In,e.memoizedState,e.memoizedProps);break;case 5:br(e,t,a);break;case 3:case 4:var r=In;In=Js(e.stateNode.containerInfo),br(e,t,a),In=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=pl,pl=16777216,br(e,t,a),pl=r):br(e,t,a));break;default:br(e,t,a)}}function _m(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Bt=r,Am(r,e)}_m(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cm(e),e=e.sibling}function Cm(e){switch(e.tag){case 0:case 11:case 15:gl(e),e.flags&2048&&Ja(9,e,e.return);break;case 3:gl(e);break;case 12:gl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,js(e)):gl(e);break;default:gl(e)}}function js(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Bt=r,Am(r,e)}_m(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ja(8,t,t.return),js(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,js(t));break;default:js(t)}e=e.sibling}}function Am(e,t){for(;Bt!==null;){var a=Bt;switch(a.tag){case 0:case 11:case 15:Ja(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Wr(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,Bt=r;else e:for(a=e;Bt!==null;){r=Bt;var o=r.sibling,u=r.return;if(vm(r),r===a){Bt=null;break e}if(o!==null){o.return=u,Bt=o;break e}Bt=u}}}var Q0={getCacheForType:function(e){var t=Kt(Ct),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Kt(Ct).controller.signal}},V0=typeof WeakMap=="function"?WeakMap:Map,We=0,rt=null,Be=null,He=0,et=0,En=null,Ia=!1,Sr=!1,oc=!1,ka=0,St=0,$a=0,Qi=0,uc=0,xn=0,wr=0,yl=null,fn=null,cc=!1,Bs=0,Om=0,qs=1/0,Hs=null,Wa=null,zt=0,ei=null,Er=null,za=0,fc=0,dc=null,Mm=null,vl=0,hc=null;function Tn(){return(We&2)!==0&&He!==0?He&-He:A.T!==null?bc():W()}function Dm(){if(xn===0)if((He&536870912)===0||Pe){var e=ga;ga<<=1,(ga&3932160)===0&&(ga=262144),xn=e}else xn=536870912;return e=Sn.current,e!==null&&(e.flags|=32),xn}function dn(e,t,a){(e===rt&&(et===2||et===9)||e.cancelPendingCommit!==null)&&(xr(e,0),ti(e,He,xn,!1)),ot(e,a),((We&2)===0||e!==rt)&&(e===rt&&((We&2)===0&&(Qi|=a),St===4&&ti(e,He,xn,!1)),sa(e))}function Nm(e,t,a){if((We&6)!==0)throw Error(s(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||st(e,t),o=r?K0(e,t):pc(e,t,!0),u=r;do{if(o===0){Sr&&!r&&ti(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Y0(a)){o=pc(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var v=e;o=yl;var w=v.current.memoizedState.isDehydrated;if(w&&(xr(v,h).flags|=256),h=pc(v,h,!1),h!==2){if(oc&&!w){v.errorRecoveryDisabledLanes|=u,Qi|=u,o=4;break e}u=fn,fn=o,u!==null&&(fn===null?fn=u:fn.push.apply(fn,u))}o=h}if(u=!1,o!==2)continue}}if(o===1){xr(e,0),ti(e,t,0,!0);break}e:{switch(r=e,u=o,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:ti(r,t,xn,!Ia);break e;case 2:fn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Bs+300-mt(),10<o)){if(ti(r,t,xn,!Ia),_e(r,0,!0)!==0)break e;za=t,r.timeoutHandle=up(km.bind(null,r,a,fn,Hs,cc,t,xn,Qi,wr,Ia,u,"Throttled",-0,0),o);break e}km(r,a,fn,Hs,cc,t,xn,Qi,wr,Ia,u,null,-0,0)}}break}while(!0);sa(e)}function km(e,t,a,r,o,u,h,v,w,N,V,P,k,L){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ba},Rm(t,u,P);var re=(u&62914560)===u?Bs-mt():(u&4194048)===u?Om-mt():0;if(re=Cb(P,re),re!==null){za=u,e.cancelPendingCommit=re(Qm.bind(null,e,t,u,a,r,o,h,v,w,V,P,null,k,L)),ti(e,u,h,!N);return}}Qm(e,t,u,a,r,o,h,v,w)}function Y0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var o=a[r],u=o.getSnapshot;o=o.value;try{if(!vn(u(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ti(e,t,a,r){t&=~uc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var u=31-kt(o),h=1<<u;r[u]=-1,o&=~h}a!==0&&ya(e,a,t)}function Qs(){return(We&6)===0?(bl(0),!1):!0}function mc(){if(Be!==null){if(et===0)var e=Be.return;else e=Be,xa=Ni=null,Mu(e),hr=null,tl=0,e=Be;for(;e!==null;)cm(e.alternate,e),e=e.return;Be=null}}function xr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,ub(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),za=0,mc(),rt=e,Be=a=wa(e.current,null),He=t,et=0,En=null,Ia=!1,Sr=st(e,t),oc=!1,wr=xn=uc=Qi=$a=St=0,fn=yl=null,cc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-kt(r),u=1<<o;t|=e[o],r&=~u}return ka=t,os(),a}function zm(e,t){De=null,A.H=ul,t===dr||t===gs?(t=Jd(),et=3):t===vu?(t=Jd(),et=4):et=t===Xu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,En=t,Be===null&&(St=1,Ms(e,Nn(t,e.current)))}function Um(){var e=Sn.current;return e===null?!0:(He&4194048)===He?Ln===null:(He&62914560)===He||(He&536870912)!==0?e===Ln:!1}function Lm(){var e=A.H;return A.H=ul,e===null?ul:e}function jm(){var e=A.A;return A.A=Q0,e}function Vs(){St=4,Ia||(He&4194048)!==He&&Sn.current!==null||(Sr=!0),($a&134217727)===0&&(Qi&134217727)===0||rt===null||ti(rt,He,xn,!1)}function pc(e,t,a){var r=We;We|=2;var o=Lm(),u=jm();(rt!==e||He!==t)&&(Hs=null,xr(e,t)),t=!1;var h=St;e:do try{if(et!==0&&Be!==null){var v=Be,w=En;switch(et){case 8:mc(),h=6;break e;case 3:case 2:case 9:case 6:Sn.current===null&&(t=!0);var N=et;if(et=0,En=null,Tr(e,v,w,N),a&&Sr){h=0;break e}break;default:N=et,et=0,En=null,Tr(e,v,w,N)}}G0(),h=St;break}catch(V){zm(e,V)}while(!0);return t&&e.shellSuspendCounter++,xa=Ni=null,We=r,A.H=o,A.A=u,Be===null&&(rt=null,He=0,os()),h}function G0(){for(;Be!==null;)Bm(Be)}function K0(e,t){var a=We;We|=2;var r=Lm(),o=jm();rt!==e||He!==t?(Hs=null,qs=mt()+500,xr(e,t)):Sr=st(e,t);e:do try{if(et!==0&&Be!==null){t=Be;var u=En;t:switch(et){case 1:et=0,En=null,Tr(e,t,u,1);break;case 2:case 9:if(Fd(u)){et=0,En=null,qm(t);break}t=function(){et!==2&&et!==9||rt!==e||(et=7),sa(e)},u.then(t,t);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:Fd(u)?(et=0,En=null,qm(t)):(et=0,En=null,Tr(e,t,u,7));break;case 5:var h=null;switch(Be.tag){case 26:h=Be.memoizedState;case 5:case 27:var v=Be;if(h?Tp(h):v.stateNode.complete){et=0,En=null;var w=v.sibling;if(w!==null)Be=w;else{var N=v.return;N!==null?(Be=N,Ys(N)):Be=null}break t}}et=0,En=null,Tr(e,t,u,5);break;case 6:et=0,En=null,Tr(e,t,u,6);break;case 8:mc(),St=6;break e;default:throw Error(s(462))}}X0();break}catch(V){zm(e,V)}while(!0);return xa=Ni=null,A.H=r,A.A=o,We=a,Be!==null?0:(rt=null,He=0,os(),St)}function X0(){for(;Be!==null&&!Qt();)Bm(Be)}function Bm(e){var t=om(e.alternate,e,ka);e.memoizedProps=e.pendingProps,t===null?Ys(e):Be=t}function qm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=nm(a,t,t.pendingProps,t.type,void 0,He);break;case 11:t=nm(a,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:Mu(t);default:cm(a,t),t=Be=jd(t,ka),t=om(a,t,ka)}e.memoizedProps=e.pendingProps,t===null?Ys(e):Be=t}function Tr(e,t,a,r){xa=Ni=null,Mu(t),hr=null,tl=0;var o=t.return;try{if(z0(e,o,t,a,He)){St=1,Ms(e,Nn(a,e.current)),Be=null;return}}catch(u){if(o!==null)throw Be=o,u;St=1,Ms(e,Nn(a,e.current)),Be=null;return}t.flags&32768?(Pe||r===1?e=!0:Sr||(He&536870912)!==0?e=!1:(Ia=e=!0,(r===2||r===9||r===3||r===6)&&(r=Sn.current,r!==null&&r.tag===13&&(r.flags|=16384))),Hm(t,e)):Ys(t)}function Ys(e){var t=e;do{if((t.flags&32768)!==0){Hm(t,Ia);return}e=t.return;var a=j0(t.alternate,t,ka);if(a!==null){Be=a;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);St===0&&(St=5)}function Hm(e,t){do{var a=B0(e.alternate,e);if(a!==null){a.flags&=32767,Be=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Be=e;return}Be=e=a}while(e!==null);St=6,Be=null}function Qm(e,t,a,r,o,u,h,v,w){e.cancelPendingCommit=null;do Gs();while(zt!==0);if((We&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=au,Zt(e,a,u,h,v,w),e===rt&&(Be=rt=null,He=0),Er=t,ei=e,za=a,fc=u,dc=o,Mm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,J0(Vt,function(){return Xm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=A.T,A.T=null,o=F.p,F.p=2,h=We,We|=4;try{q0(e,t,a)}finally{We=h,F.p=o,A.T=r}}zt=1,Vm(),Ym(),Gm()}}function Vm(){if(zt===1){zt=0;var e=ei,t=Er,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=A.T,A.T=null;var r=F.p;F.p=2;var o=We;We|=4;try{Em(t,e);var u=Cc,h=Ad(e.containerInfo),v=u.focusedElem,w=u.selectionRange;if(h!==v&&v&&v.ownerDocument&&Cd(v.ownerDocument.documentElement,v)){if(w!==null&&$o(v)){var N=w.start,V=w.end;if(V===void 0&&(V=N),"selectionStart"in v)v.selectionStart=N,v.selectionEnd=Math.min(V,v.value.length);else{var P=v.ownerDocument||document,k=P&&P.defaultView||window;if(k.getSelection){var L=k.getSelection(),re=v.textContent.length,xe=Math.min(w.start,re),it=w.end===void 0?xe:Math.min(w.end,re);!L.extend&&xe>it&&(h=it,it=xe,xe=h);var O=_d(v,xe),R=_d(v,it);if(O&&R&&(L.rangeCount!==1||L.anchorNode!==O.node||L.anchorOffset!==O.offset||L.focusNode!==R.node||L.focusOffset!==R.offset)){var D=P.createRange();D.setStart(O.node,O.offset),L.removeAllRanges(),xe>it?(L.addRange(D),L.extend(R.node,R.offset)):(D.setEnd(R.node,R.offset),L.addRange(D))}}}}for(P=[],L=v;L=L.parentNode;)L.nodeType===1&&P.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var X=P[v];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}no=!!_c,Cc=_c=null}finally{We=o,F.p=r,A.T=a}}e.current=t,zt=2}}function Ym(){if(zt===2){zt=0;var e=ei,t=Er,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=A.T,A.T=null;var r=F.p;F.p=2;var o=We;We|=4;try{ym(e,t.alternate,t)}finally{We=o,F.p=r,A.T=a}}zt=3}}function Gm(){if(zt===4||zt===3){zt=0,na();var e=ei,t=Er,a=za,r=Mm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?zt=5:(zt=0,Er=ei=null,Km(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Wa=null),I(a),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(pa,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=A.T,o=F.p,F.p=2,A.T=null;try{for(var u=e.onRecoverableError,h=0;h<r.length;h++){var v=r[h];u(v.value,{componentStack:v.stack})}}finally{A.T=t,F.p=o}}(za&3)!==0&&Gs(),sa(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===hc?vl++:(vl=0,hc=e):vl=0,bl(0)}}function Km(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wr(t)))}function Gs(){return Vm(),Ym(),Gm(),Xm()}function Xm(){if(zt!==5)return!1;var e=ei,t=fc;fc=0;var a=I(za),r=A.T,o=F.p;try{F.p=32>a?32:a,A.T=null,a=dc,dc=null;var u=ei,h=za;if(zt=0,Er=ei=null,za=0,(We&6)!==0)throw Error(s(331));var v=We;if(We|=4,Cm(u.current),Tm(u,u.current,h,a),We=v,bl(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(pa,u)}catch{}return!0}finally{F.p=o,A.T=r,Km(e,t)}}function Pm(e,t,a){t=Nn(a,t),t=Ku(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(ot(e,2),sa(e))}function tt(e,t,a){if(e.tag===3)Pm(e,e,a);else for(;t!==null;){if(t.tag===3){Pm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wa===null||!Wa.has(r))){e=Nn(a,e),a=Fh(2),r=Pa(t,a,2),r!==null&&(Zh(a,r,t,e),ot(r,2),sa(r));break}}t=t.return}}function gc(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new V0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(oc=!0,o.add(a),e=P0.bind(null,e,t,a),t.then(e,e))}function P0(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,rt===e&&(He&a)===a&&(St===4||St===3&&(He&62914560)===He&&300>mt()-Bs?(We&2)===0&&xr(e,0):uc|=a,wr===He&&(wr=0)),sa(e)}function Fm(e,t){t===0&&(t=Et()),e=Oi(e,t),e!==null&&(ot(e,t),sa(e))}function F0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Fm(e,a)}function Z0(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Fm(e,a)}function J0(e,t){return Si(e,t)}var Ks=null,Rr=null,yc=!1,Xs=!1,vc=!1,ni=0;function sa(e){e!==Rr&&e.next===null&&(Rr===null?Ks=Rr=e:Rr=Rr.next=e),Xs=!0,yc||(yc=!0,$0())}function bl(e,t){if(!vc&&Xs){vc=!0;do for(var a=!1,r=Ks;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var u=0;else{var h=r.suspendedLanes,v=r.pingedLanes;u=(1<<31-kt(42|e)+1)-1,u&=o&~(h&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,$m(r,u))}else u=He,u=_e(r,r===rt?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(u&3)===0||st(r,u)||(a=!0,$m(r,u));r=r.next}while(a);vc=!1}}function I0(){Zm()}function Zm(){Xs=yc=!1;var e=0;ni!==0&&ob()&&(e=ni);for(var t=mt(),a=null,r=Ks;r!==null;){var o=r.next,u=Jm(r,t);u===0?(r.next=null,a===null?Ks=o:a.next=o,o===null&&(Rr=a)):(a=r,(e!==0||(u&3)!==0)&&(Xs=!0)),r=o}zt!==0&&zt!==5||bl(e),ni!==0&&(ni=0)}function Jm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-kt(u),v=1<<h,w=o[h];w===-1?((v&a)===0||(v&r)!==0)&&(o[h]=wt(v,t)):w<=t&&(e.expiredLanes|=v),u&=~v}if(t=rt,a=He,a=_e(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(et===2||et===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&wi(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||st(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&wi(r),I(a)){case 2:case 8:a=qa;break;case 32:a=Vt;break;case 268435456:a=_n;break;default:a=Vt}return r=Im.bind(null,e),a=Si(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&wi(r),e.callbackPriority=2,e.callbackNode=null,2}function Im(e,t){if(zt!==0&&zt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Gs()&&e.callbackNode!==a)return null;var r=He;return r=_e(e,e===rt?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Nm(e,r,t),Jm(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Im.bind(null,e):null)}function $m(e,t){if(Gs())return null;Nm(e,t,!0)}function $0(){cb(function(){(We&6)!==0?Si(aa,I0):Zm()})}function bc(){if(ni===0){var e=cr;e===0&&(e=Kn,Kn<<=1,(Kn&261888)===0&&(Kn=256)),ni=e}return ni}function Wm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:es(""+e)}function ep(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function W0(e,t,a,r,o){if(t==="submit"&&a&&a.stateNode===o){var u=Wm((o[ie]||null).action),h=r.submitter;h&&(t=(t=h[ie]||null)?Wm(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var v=new is("action","action",null,r,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ni!==0){var w=h?ep(o,h):new FormData(o);qu(a,{pending:!0,data:w,method:o.method,action:u},null,w)}}else typeof u=="function"&&(v.preventDefault(),w=h?ep(o,h):new FormData(o),qu(a,{pending:!0,data:w,method:o.method,action:u},u,w))},currentTarget:o}]})}}for(var Sc=0;Sc<nu.length;Sc++){var wc=nu[Sc],eb=wc.toLowerCase(),tb=wc[0].toUpperCase()+wc.slice(1);Jn(eb,"on"+tb)}Jn(Dd,"onAnimationEnd"),Jn(Nd,"onAnimationIteration"),Jn(kd,"onAnimationStart"),Jn("dblclick","onDoubleClick"),Jn("focusin","onFocus"),Jn("focusout","onBlur"),Jn(y0,"onTransitionRun"),Jn(v0,"onTransitionStart"),Jn(b0,"onTransitionCancel"),Jn(zd,"onTransitionEnd"),On("onMouseEnter",["mouseout","mouseover"]),On("onMouseLeave",["mouseout","mouseover"]),On("onPointerEnter",["pointerout","pointerover"]),On("onPointerLeave",["pointerout","pointerover"]),Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sl="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(" "),nb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sl));function tp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var h=r.length-1;0<=h;h--){var v=r[h],w=v.instance,N=v.currentTarget;if(v=v.listener,w!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=N;try{u(o)}catch(V){ss(V)}o.currentTarget=null,u=w}else for(h=0;h<r.length;h++){if(v=r[h],w=v.instance,N=v.currentTarget,v=v.listener,w!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=N;try{u(o)}catch(V){ss(V)}o.currentTarget=null,u=w}}}}function qe(e,t){var a=t[Ee];a===void 0&&(a=t[Ee]=new Set);var r=e+"__bubble";a.has(r)||(np(t,e,2,!1),a.add(r))}function Ec(e,t,a){var r=0;t&&(r|=4),np(a,e,r,t)}var Ps="_reactListening"+Math.random().toString(36).slice(2);function xc(e){if(!e[Ps]){e[Ps]=!0,Pn.forEach(function(a){a!=="selectionchange"&&(nb.has(a)||Ec(a,!1,e),Ec(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ps]||(t[Ps]=!0,Ec("selectionchange",!1,t))}}function np(e,t,a,r){switch(Dp(t)){case 2:var o=Mb;break;case 8:o=Db;break;default:o=Bc}a=o.bind(null,t,a,e),o=void 0,!Yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Tc(e,t,a,r,o){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var h=r.tag;if(h===3||h===4){var v=r.stateNode.containerInfo;if(v===o)break;if(h===4)for(h=r.return;h!==null;){var w=h.tag;if((w===3||w===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;v!==null;){if(h=vt(v),h===null)return;if(w=h.tag,w===5||w===6||w===26||w===27){r=u=h;continue e}v=v.parentNode}}r=r.return}sd(function(){var N=u,V=Qo(a),P=[];e:{var k=Ud.get(e);if(k!==void 0){var L=is,re=e;switch(e){case"keypress":if(ns(a)===0)break e;case"keydown":case"keyup":L=Zv;break;case"focusin":re="focus",L=Po;break;case"focusout":re="blur",L=Po;break;case"beforeblur":case"afterblur":L=Po;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=cd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=jv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=$v;break;case Dd:case Nd:case kd:L=Hv;break;case zd:L=e0;break;case"scroll":case"scrollend":L=Uv;break;case"wheel":L=n0;break;case"copy":case"cut":case"paste":L=Vv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=dd;break;case"toggle":case"beforetoggle":L=i0}var xe=(t&4)!==0,it=!xe&&(e==="scroll"||e==="scrollend"),O=xe?k!==null?k+"Capture":null:k;xe=[];for(var R=N,D;R!==null;){var X=R;if(D=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||D===null||O===null||(X=Vr(R,O),X!=null&&xe.push(wl(R,X,D))),it)break;R=R.return}0<xe.length&&(k=new L(k,re,null,a,V),P.push({event:k,listeners:xe}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",k&&a!==Ho&&(re=a.relatedTarget||a.fromElement)&&(vt(re)||re[de]))break e;if((L||k)&&(k=V.window===V?V:(k=V.ownerDocument)?k.defaultView||k.parentWindow:window,L?(re=a.relatedTarget||a.toElement,L=N,re=re?vt(re):null,re!==null&&(it=f(re),xe=re.tag,re!==it||xe!==5&&xe!==27&&xe!==6)&&(re=null)):(L=null,re=N),L!==re)){if(xe=cd,X="onMouseLeave",O="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(xe=dd,X="onPointerLeave",O="onPointerEnter",R="pointer"),it=L==null?k:jt(L),D=re==null?k:jt(re),k=new xe(X,R+"leave",L,a,V),k.target=it,k.relatedTarget=D,X=null,vt(V)===N&&(xe=new xe(O,R+"enter",re,a,V),xe.target=D,xe.relatedTarget=it,X=xe),it=X,L&&re)t:{for(xe=ab,O=L,R=re,D=0,X=O;X;X=xe(X))D++;X=0;for(var Se=R;Se;Se=xe(Se))X++;for(;0<D-X;)O=xe(O),D--;for(;0<X-D;)R=xe(R),X--;for(;D--;){if(O===R||R!==null&&O===R.alternate){xe=O;break t}O=xe(O),R=xe(R)}xe=null}else xe=null;L!==null&&ap(P,k,L,xe,!1),re!==null&&it!==null&&ap(P,it,re,xe,!0)}}e:{if(k=N?jt(N):window,L=k.nodeName&&k.nodeName.toLowerCase(),L==="select"||L==="input"&&k.type==="file")var Ie=Sd;else if(vd(k))if(wd)Ie=m0;else{Ie=d0;var fe=f0}else L=k.nodeName,!L||L.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?N&&qo(N.elementType)&&(Ie=Sd):Ie=h0;if(Ie&&(Ie=Ie(e,N))){bd(P,Ie,a,V);break e}fe&&fe(e,k,N),e==="focusout"&&N&&k.type==="number"&&N.memoizedProps.value!=null&&Bo(k,"number",k.value)}switch(fe=N?jt(N):window,e){case"focusin":(vd(fe)||fe.contentEditable==="true")&&(nr=fe,Wo=N,Jr=null);break;case"focusout":Jr=Wo=nr=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,Od(P,a,V);break;case"selectionchange":if(g0)break;case"keydown":case"keyup":Od(P,a,V)}var ke;if(Zo)e:{switch(e){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else tr?gd(e,a)&&(Qe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Qe="onCompositionStart");Qe&&(hd&&a.locale!=="ko"&&(tr||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&tr&&(ke=od()):(Ha=V,Go="value"in Ha?Ha.value:Ha.textContent,tr=!0)),fe=Fs(N,Qe),0<fe.length&&(Qe=new fd(Qe,e,null,a,V),P.push({event:Qe,listeners:fe}),ke?Qe.data=ke:(ke=yd(a),ke!==null&&(Qe.data=ke)))),(ke=l0?s0(e,a):o0(e,a))&&(Qe=Fs(N,"onBeforeInput"),0<Qe.length&&(fe=new fd("onBeforeInput","beforeinput",null,a,V),P.push({event:fe,listeners:Qe}),fe.data=ke)),W0(P,e,N,a,V)}tp(P,t)})}function wl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Fs(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Vr(e,a),o!=null&&r.unshift(wl(e,o,u)),o=Vr(e,t),o!=null&&r.push(wl(e,o,u))),e.tag===3)return r;e=e.return}return[]}function ab(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ap(e,t,a,r,o){for(var u=t._reactName,h=[];a!==null&&a!==r;){var v=a,w=v.alternate,N=v.stateNode;if(v=v.tag,w!==null&&w===r)break;v!==5&&v!==26&&v!==27||N===null||(w=N,o?(N=Vr(a,u),N!=null&&h.unshift(wl(a,N,w))):o||(N=Vr(a,u),N!=null&&h.push(wl(a,N,w)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var ib=/\r\n?/g,rb=/\u0000|\uFFFD/g;function ip(e){return(typeof e=="string"?e:""+e).replace(ib,`
10
- `).replace(rb,"")}function rp(e,t){return t=ip(t),ip(e)===t}function at(e,t,a,r,o,u){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||$i(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&$i(e,""+r);break;case"className":Zn(e,"class",r);break;case"tabIndex":Zn(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Zn(e,a,r);break;case"style":rd(e,r,u);break;case"data":if(t!=="object"){Zn(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=es(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&at(e,t,"name",o.name,o,null),at(e,t,"formEncType",o.formEncType,o,null),at(e,t,"formMethod",o.formMethod,o,null),at(e,t,"formTarget",o.formTarget,o,null)):(at(e,t,"encType",o.encType,o,null),at(e,t,"method",o.method,o,null),at(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=es(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=ba);break;case"onScroll":r!=null&&qe("scroll",e);break;case"onScrollEnd":r!=null&&qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=es(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":qe("beforetoggle",e),qe("toggle",e),xt(e,"popover",r);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":xt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=kv.get(a)||a,xt(e,a,r))}}function Rc(e,t,a,r,o,u){switch(a){case"style":rd(e,r,u);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof r=="string"?$i(e,r):(typeof r=="number"||typeof r=="bigint")&&$i(e,""+r);break;case"onScroll":r!=null&&qe("scroll",e);break;case"onScrollEnd":r!=null&&qe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=ba);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yn.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),u=e[ie]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof r=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,o);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):xt(e,a,r)}}}function Pt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",e),qe("load",e);var r=!1,o=!1,u;for(u in a)if(a.hasOwnProperty(u)){var h=a[u];if(h!=null)switch(u){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:at(e,t,u,h,a,null)}}o&&at(e,t,"srcSet",a.srcSet,a,null),r&&at(e,t,"src",a.src,a,null);return;case"input":qe("invalid",e);var v=u=h=o=null,w=null,N=null;for(r in a)if(a.hasOwnProperty(r)){var V=a[r];if(V!=null)switch(r){case"name":o=V;break;case"type":h=V;break;case"checked":w=V;break;case"defaultChecked":N=V;break;case"value":u=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:at(e,t,r,V,a,null)}}td(e,u,v,w,N,h,o,!1);return;case"select":qe("invalid",e),r=h=u=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":u=v;break;case"defaultValue":h=v;break;case"multiple":r=v;default:at(e,t,o,v,a,null)}t=u,a=h,e.multiple=!!r,t!=null?Ii(e,!!r,t,!1):a!=null&&Ii(e,!!r,a,!0);return;case"textarea":qe("invalid",e),u=o=r=null;for(h in a)if(a.hasOwnProperty(h)&&(v=a[h],v!=null))switch(h){case"value":r=v;break;case"defaultValue":o=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:at(e,t,h,v,a,null)}ad(e,r,o,u);return;case"option":for(w in a)a.hasOwnProperty(w)&&(r=a[w],r!=null)&&(w==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":at(e,t,w,r,a,null));return;case"dialog":qe("beforetoggle",e),qe("toggle",e),qe("cancel",e),qe("close",e);break;case"iframe":case"object":qe("load",e);break;case"video":case"audio":for(r=0;r<Sl.length;r++)qe(Sl[r],e);break;case"image":qe("error",e),qe("load",e);break;case"details":qe("toggle",e);break;case"embed":case"source":case"link":qe("error",e),qe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(r=a[N],r!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:at(e,t,N,r,a,null)}return;default:if(qo(t)){for(V in a)a.hasOwnProperty(V)&&(r=a[V],r!==void 0&&Rc(e,t,V,r,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(r=a[v],r!=null&&at(e,t,v,r,a,null))}function lb(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,h=null,v=null,w=null,N=null,V=null;for(L in a){var P=a[L];if(a.hasOwnProperty(L)&&P!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":w=P;default:r.hasOwnProperty(L)||at(e,t,L,null,r,P)}}for(var k in r){var L=r[k];if(P=a[k],r.hasOwnProperty(k)&&(L!=null||P!=null))switch(k){case"type":u=L;break;case"name":o=L;break;case"checked":N=L;break;case"defaultChecked":V=L;break;case"value":h=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:L!==P&&at(e,t,k,L,r,P)}}jo(e,h,v,w,N,V,u,o);return;case"select":L=h=v=k=null;for(u in a)if(w=a[u],a.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":L=w;default:r.hasOwnProperty(u)||at(e,t,u,null,r,w)}for(o in r)if(u=r[o],w=a[o],r.hasOwnProperty(o)&&(u!=null||w!=null))switch(o){case"value":k=u;break;case"defaultValue":v=u;break;case"multiple":h=u;default:u!==w&&at(e,t,o,u,r,w)}t=v,a=h,r=L,k!=null?Ii(e,!!a,k,!1):!!r!=!!a&&(t!=null?Ii(e,!!a,t,!0):Ii(e,!!a,a?[]:"",!1));return;case"textarea":L=k=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!r.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:at(e,t,v,null,r,o)}for(h in r)if(o=r[h],u=a[h],r.hasOwnProperty(h)&&(o!=null||u!=null))switch(h){case"value":k=o;break;case"defaultValue":L=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==u&&at(e,t,h,o,r,u)}nd(e,k,L);return;case"option":for(var re in a)k=a[re],a.hasOwnProperty(re)&&k!=null&&!r.hasOwnProperty(re)&&(re==="selected"?e.selected=!1:at(e,t,re,null,r,k));for(w in r)k=r[w],L=a[w],r.hasOwnProperty(w)&&k!==L&&(k!=null||L!=null)&&(w==="selected"?e.selected=k&&typeof k!="function"&&typeof k!="symbol":at(e,t,w,k,r,L));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in a)k=a[xe],a.hasOwnProperty(xe)&&k!=null&&!r.hasOwnProperty(xe)&&at(e,t,xe,null,r,k);for(N in r)if(k=r[N],L=a[N],r.hasOwnProperty(N)&&k!==L&&(k!=null||L!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(137,t));break;default:at(e,t,N,k,r,L)}return;default:if(qo(t)){for(var it in a)k=a[it],a.hasOwnProperty(it)&&k!==void 0&&!r.hasOwnProperty(it)&&Rc(e,t,it,void 0,r,k);for(V in r)k=r[V],L=a[V],!r.hasOwnProperty(V)||k===L||k===void 0&&L===void 0||Rc(e,t,V,k,r,L);return}}for(var O in a)k=a[O],a.hasOwnProperty(O)&&k!=null&&!r.hasOwnProperty(O)&&at(e,t,O,null,r,k);for(P in r)k=r[P],L=a[P],!r.hasOwnProperty(P)||k===L||k==null&&L==null||at(e,t,P,k,r,L)}function lp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var o=a[r],u=o.transferSize,h=o.initiatorType,v=o.duration;if(u&&v&&lp(h)){for(h=0,v=o.responseEnd,r+=1;r<a.length;r++){var w=a[r],N=w.startTime;if(N>v)break;var V=w.transferSize,P=w.initiatorType;V&&lp(P)&&(w=w.responseEnd,h+=V*(w<v?1:(v-N)/(w-N)))}if(--r,t+=8*(u+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _c=null,Cc=null;function Zs(e){return e.nodeType===9?e:e.ownerDocument}function sp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function op(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ac(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Oc=null;function ob(){var e=window.event;return e&&e.type==="popstate"?e===Oc?!1:(Oc=e,!0):(Oc=null,!1)}var up=typeof setTimeout=="function"?setTimeout:void 0,ub=typeof clearTimeout=="function"?clearTimeout:void 0,cp=typeof Promise=="function"?Promise:void 0,cb=typeof queueMicrotask=="function"?queueMicrotask:typeof cp<"u"?function(e){return cp.resolve(null).then(e).catch(fb)}:up;function fb(e){setTimeout(function(){throw e})}function ai(e){return e==="head"}function fp(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(o),Or(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")El(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,El(a);for(var u=a.firstChild;u;){var h=u.nextSibling,v=u.nodeName;u[pt]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=h}}else a==="body"&&El(e.ownerDocument.body);a=o}while(a);Or(t)}function dp(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function Mc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Mc(a),yt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function db(e,t,a,r){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[pt])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=jn(e.nextSibling),e===null)break}return null}function hb(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=jn(e.nextSibling),e===null))return null;return e}function hp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jn(e.nextSibling),e===null))return null;return e}function Dc(e){return e.data==="$?"||e.data==="$~"}function Nc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function mb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function jn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kc=null;function mp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return jn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function pp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function gp(e,t,a){switch(t=Zs(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function El(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yt(e)}var Bn=new Map,yp=new Set;function Js(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ua=F.d;F.d={f:pb,r:gb,D:yb,C:vb,L:bb,m:Sb,X:Eb,S:wb,M:xb};function pb(){var e=Ua.f(),t=Qs();return e||t}function gb(e){var t=Ge(e);t!==null&&t.tag===5&&t.type==="form"?zh(t):Ua.r(e)}var _r=typeof document>"u"?null:document;function vp(e,t,a){var r=_r;if(r&&typeof t=="string"&&t){var o=Mn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),yp.has(o)||(yp.add(o),e={rel:e,crossOrigin:a,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),Pt(t,"link",e),dt(t),r.head.appendChild(t)))}}function yb(e){Ua.D(e),vp("dns-prefetch",e,null)}function vb(e,t){Ua.C(e,t),vp("preconnect",e,t)}function bb(e,t,a){Ua.L(e,t,a);var r=_r;if(r&&e&&t){var o='link[rel="preload"][as="'+Mn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Mn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Mn(a.imageSizes)+'"]')):o+='[href="'+Mn(e)+'"]';var u=o;switch(t){case"style":u=Cr(e);break;case"script":u=Ar(e)}Bn.has(u)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Bn.set(u,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(xl(u))||t==="script"&&r.querySelector(Tl(u))||(t=r.createElement("link"),Pt(t,"link",e),dt(t),r.head.appendChild(t)))}}function Sb(e,t){Ua.m(e,t);var a=_r;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Mn(r)+'"][href="'+Mn(e)+'"]',u=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ar(e)}if(!Bn.has(u)&&(e=y({rel:"modulepreload",href:e},t),Bn.set(u,e),a.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Tl(u)))return}r=a.createElement("link"),Pt(r,"link",e),dt(r),a.head.appendChild(r)}}}function wb(e,t,a){Ua.S(e,t,a);var r=_r;if(r&&e){var o=ln(r).hoistableStyles,u=Cr(e);t=t||"default";var h=o.get(u);if(!h){var v={loading:0,preload:null};if(h=r.querySelector(xl(u)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Bn.get(u))&&zc(e,a);var w=h=r.createElement("link");dt(w),Pt(w,"link",e),w._p=new Promise(function(N,V){w.onload=N,w.onerror=V}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Is(h,t,r)}h={type:"stylesheet",instance:h,count:1,state:v},o.set(u,h)}}}function Eb(e,t){Ua.X(e,t);var a=_r;if(a&&e){var r=ln(a).hoistableScripts,o=Ar(e),u=r.get(o);u||(u=a.querySelector(Tl(o)),u||(e=y({src:e,async:!0},t),(t=Bn.get(o))&&Uc(e,t),u=a.createElement("script"),dt(u),Pt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(o,u))}}function xb(e,t){Ua.M(e,t);var a=_r;if(a&&e){var r=ln(a).hoistableScripts,o=Ar(e),u=r.get(o);u||(u=a.querySelector(Tl(o)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Bn.get(o))&&Uc(e,t),u=a.createElement("script"),dt(u),Pt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(o,u))}}function bp(e,t,a,r){var o=(o=ue.current)?Js(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Cr(a.href),a=ln(o).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Cr(a.href);var u=ln(o).hoistableStyles,h=u.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=o.querySelector(xl(e)))&&!u._p&&(h.instance=u,h.state.loading=5),Bn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Bn.set(e,a),u||Tb(o,e,a,h.state))),t&&r===null)throw Error(s(528,""));return h}if(t&&r!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ar(a),a=ln(o).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Cr(e){return'href="'+Mn(e)+'"'}function xl(e){return'link[rel="stylesheet"]['+e+"]"}function Sp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Tb(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Pt(t,"link",a),dt(t),e.head.appendChild(t))}function Ar(e){return'[src="'+Mn(e)+'"]'}function Tl(e){return"script[async]"+e}function wp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Mn(a.href)+'"]');if(r)return t.instance=r,dt(r),r;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),dt(r),Pt(r,"style",o),Is(r,a.precedence,e),t.instance=r;case"stylesheet":o=Cr(a.href);var u=e.querySelector(xl(o));if(u)return t.state.loading|=4,t.instance=u,dt(u),u;r=Sp(a),(o=Bn.get(o))&&zc(r,o),u=(e.ownerDocument||e).createElement("link"),dt(u);var h=u;return h._p=new Promise(function(v,w){h.onload=v,h.onerror=w}),Pt(u,"link",r),t.state.loading|=4,Is(u,a.precedence,e),t.instance=u;case"script":return u=Ar(a.src),(o=e.querySelector(Tl(u)))?(t.instance=o,dt(o),o):(r=a,(o=Bn.get(u))&&(r=y({},a),Uc(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),dt(o),Pt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Is(r,a.precedence,e));return t.instance}function Is(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,u=o,h=0;h<r.length;h++){var v=r[h];if(v.dataset.precedence===t)u=v;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Uc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $s=null;function Ep(e,t,a){if($s===null){var r=new Map,o=$s=new Map;o.set(a,r)}else o=$s,r=o.get(a),r||(r=new Map,o.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var u=a[o];if(!(u[pt]||u[ne]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var v=r.get(h);v?v.push(u):r.set(h,[u])}}return r}function xp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Rb(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Tp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _b(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Cr(r.href),u=t.querySelector(xl(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ws.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,dt(u);return}u=t.ownerDocument||t,r=Sp(r),(o=Bn.get(o))&&zc(r,o),u=u.createElement("link"),dt(u);var h=u;h._p=new Promise(function(v,w){h.onload=v,h.onerror=w}),Pt(u,"link",r),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ws.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Lc=0;function Cb(e,t){return e.stylesheets&&e.count===0&&to(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&to(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Lc===0&&(Lc=62500*sb());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&to(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Lc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Ws(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)to(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var eo=null;function to(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,eo=new Map,t.forEach(Ab,e),eo=null,Ws.call(e))}function Ab(e,t){if(!(t.state.loading&4)){var a=eo.get(e);if(a)var r=a.get(null);else{a=new Map,eo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var h=o[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),r=h)}r&&a.set(null,r)}o=t.instance,h=o.getAttribute("data-precedence"),u=a.get(h)||r,u===r&&a.set(null,o),a.set(h,o),this.count++,r=Ws.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Rl={$$typeof:$,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function Ob(e,t,a,r,o,u,h,v,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gn(0),this.hiddenUpdates=gn(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Rp(e,t,a,r,o,u,h,v,w,N,V,P){return e=new Ob(e,t,a,h,w,N,V,P,v),t=1,u===!0&&(t|=24),u=bn(3,null,null,t),e.current=u,u.stateNode=e,t=pu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:r,isDehydrated:a,cache:t},bu(u),e}function _p(e){return e?(e=rr,e):rr}function Cp(e,t,a,r,o,u){o=_p(o),r.context===null?r.context=o:r.pendingContext=o,r=Xa(t),r.payload={element:a},u=u===void 0?null:u,u!==null&&(r.callback=u),a=Pa(e,r,t),a!==null&&(dn(a,e,t),al(a,e,t))}function Ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function jc(e,t){Ap(e,t),(e=e.alternate)&&Ap(e,t)}function Op(e){if(e.tag===13||e.tag===31){var t=Oi(e,67108864);t!==null&&dn(t,e,67108864),jc(e,67108864)}}function Mp(e){if(e.tag===13||e.tag===31){var t=Tn();t=z(t);var a=Oi(e,t);a!==null&&dn(a,e,t),jc(e,t)}}var no=!0;function Mb(e,t,a,r){var o=A.T;A.T=null;var u=F.p;try{F.p=2,Bc(e,t,a,r)}finally{F.p=u,A.T=o}}function Db(e,t,a,r){var o=A.T;A.T=null;var u=F.p;try{F.p=8,Bc(e,t,a,r)}finally{F.p=u,A.T=o}}function Bc(e,t,a,r){if(no){var o=qc(r);if(o===null)Tc(e,t,r,ao,a),Np(e,r);else if(kb(o,e,t,a,r))r.stopPropagation();else if(Np(e,r),t&4&&-1<Nb.indexOf(e)){for(;o!==null;){var u=Ge(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=An(u.pendingLanes);if(h!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var w=1<<31-kt(h);v.entanglements[1]|=w,h&=~w}sa(u),(We&6)===0&&(qs=mt()+500,bl(0))}}break;case 31:case 13:v=Oi(u,2),v!==null&&dn(v,u,2),Qs(),jc(u,2)}if(u=qc(r),u===null&&Tc(e,t,r,ao,a),u===o)break;o=u}o!==null&&r.stopPropagation()}else Tc(e,t,r,null,a)}}function qc(e){return e=Qo(e),Hc(e)}var ao=null;function Hc(e){if(ao=null,e=vt(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ao=e,null}function Dp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ma()){case aa:return 2;case qa:return 8;case Vt:case Wt:return 32;case _n:return 268435456;default:return 32}default:return 32}}var Qc=!1,ii=null,ri=null,li=null,_l=new Map,Cl=new Map,si=[],Nb="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 Np(e,t){switch(e){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":_l.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cl.delete(t.pointerId)}}function Al(e,t,a,r,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Ge(t),t!==null&&Op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function kb(e,t,a,r,o){switch(t){case"focusin":return ii=Al(ii,e,t,a,r,o),!0;case"dragenter":return ri=Al(ri,e,t,a,r,o),!0;case"mouseover":return li=Al(li,e,t,a,r,o),!0;case"pointerover":var u=o.pointerId;return _l.set(u,Al(_l.get(u)||null,e,t,a,r,o)),!0;case"gotpointercapture":return u=o.pointerId,Cl.set(u,Al(Cl.get(u)||null,e,t,a,r,o)),!0}return!1}function kp(e){var t=vt(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,pe(e.priority,function(){Mp(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,pe(e.priority,function(){Mp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function io(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=qc(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);Ho=r,a.target.dispatchEvent(r),Ho=null}else return t=Ge(a),t!==null&&Op(t),e.blockedOn=a,!1;t.shift()}return!0}function zp(e,t,a){io(e)&&a.delete(t)}function zb(){Qc=!1,ii!==null&&io(ii)&&(ii=null),ri!==null&&io(ri)&&(ri=null),li!==null&&io(li)&&(li=null),_l.forEach(zp),Cl.forEach(zp)}function ro(e,t){e.blockedOn===t&&(e.blockedOn=null,Qc||(Qc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,zb)))}var lo=null;function Up(e){lo!==e&&(lo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){lo===e&&(lo=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(Hc(r||a)===null)continue;break}var u=Ge(a);u!==null&&(e.splice(t,3),t-=3,qu(u,{pending:!0,data:o,method:a.method,action:r},r,o))}}))}function Or(e){function t(w){return ro(w,e)}ii!==null&&ro(ii,e),ri!==null&&ro(ri,e),li!==null&&ro(li,e),_l.forEach(t),Cl.forEach(t);for(var a=0;a<si.length;a++){var r=si[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<si.length&&(a=si[0],a.blockedOn===null);)kp(a),a.blockedOn===null&&si.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var o=a[r],u=a[r+1],h=o[ie]||null;if(typeof u=="function")h||Up(a);else if(h){var v=null;if(u&&u.hasAttribute("formAction")){if(o=u,h=u[ie]||null)v=h.formAction;else if(Hc(o)!==null)continue}else v=h.action;typeof v=="function"?a[r+1]=v:(a.splice(r,3),r-=3),Up(a)}}}function Lp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(a,20)}function a(){if(!r&&!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 r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Vc(e){this._internalRoot=e}so.prototype.render=Vc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,r=Tn();Cp(a,r,e,t,null,null)},so.prototype.unmount=Vc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cp(e.current,2,null,e,null,null),Qs(),t[de]=null}};function so(e){this._internalRoot=e}so.prototype.unstable_scheduleHydration=function(e){if(e){var t=W();e={blockedOn:null,target:e,priority:t};for(var a=0;a<si.length&&t!==0&&t<si[a].priority;a++);si.splice(a,0,e),a===0&&kp(e)}};var jp=i.version;if(jp!=="19.2.4")throw Error(s(527,jp,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Ub={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oo.isDisabled&&oo.supportsFiber)try{pa=oo.inject(Ub),ut=oo}catch{}}return Ml.createRoot=function(e,t){if(!c(e))throw Error(s(299));var a=!1,r="",o=Gh,u=Kh,h=Xh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Rp(e,1,!1,null,null,a,r,null,o,u,h,Lp),e[de]=t.current,xc(e),new Vc(t)},Ml.hydrateRoot=function(e,t,a){if(!c(e))throw Error(s(299));var r=!1,o="",u=Gh,h=Kh,v=Xh,w=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=Rp(e,1,!0,t,a??null,r,o,w,u,h,v,Lp),t.context=_p(null),a=t.current,r=Tn(),r=z(r),o=Xa(r),o.callback=null,Pa(a,o,r),a=r,t.current.lanes=a,ot(t,a),sa(t),e[de]=t.current,xc(e),new so(t)},Ml.version="19.2.4",Ml}var Pp;function Xb(){if(Pp)return Kc.exports;Pp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Kc.exports=Kb(),Kc.exports}var Pb=Xb(),Lr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Fb={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},Zb=class{#e=Fb;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,i){return this.#e.setTimeout(n,i)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,i){return this.#e.setInterval(n,i)}clearInterval(n){this.#e.clearInterval(n)}},Yi=new Zb;function Jb(n){setTimeout(n,0)}var Ki=typeof window>"u"||"Deno"in globalThis;function tn(){}function Ib(n,i){return typeof n=="function"?n(i):n}function of(n){return typeof n=="number"&&n>=0&&n!==1/0}function ly(n,i){return Math.max(n+(i||0)-Date.now(),0)}function mi(n,i){return typeof n=="function"?n(i):n}function Hn(n,i){return typeof n=="function"?n(i):n}function Fp(n,i){const{type:l="all",exact:s,fetchStatus:c,predicate:f,queryKey:d,stale:p}=n;if(d){if(s){if(i.queryHash!==Of(d,i.options))return!1}else if(!Vl(i.queryKey,d))return!1}if(l!=="all"){const g=i.isActive();if(l==="active"&&!g||l==="inactive"&&g)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||c&&c!==i.state.fetchStatus||f&&!f(i))}function Zp(n,i){const{exact:l,status:s,predicate:c,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(l){if(Xi(i.options.mutationKey)!==Xi(f))return!1}else if(!Vl(i.options.mutationKey,f))return!1}return!(s&&i.state.status!==s||c&&!c(i))}function Of(n,i){return(i?.queryKeyHashFn||Xi)(n)}function Xi(n){return JSON.stringify(n,(i,l)=>uf(l)?Object.keys(l).sort().reduce((s,c)=>(s[c]=l[c],s),{}):l)}function Vl(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(l=>Vl(n[l],i[l])):!1}var $b=Object.prototype.hasOwnProperty;function sy(n,i,l=0){if(n===i)return n;if(l>500)return i;const s=Jp(n)&&Jp(i);if(!s&&!(uf(n)&&uf(i)))return i;const f=(s?n:Object.keys(n)).length,d=s?i:Object.keys(i),p=d.length,g=s?new Array(p):{};let m=0;for(let b=0;b<p;b++){const y=s?b:d[b],E=n[y],M=i[y];if(E===M){g[y]=E,(s?b<f:$b.call(n,y))&&m++;continue}if(E===null||M===null||typeof E!="object"||typeof M!="object"){g[y]=M;continue}const U=sy(E,M,l+1);g[y]=U,U===E&&m++}return f===p&&m===f?n:g}function Oo(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const l in n)if(n[l]!==i[l])return!1;return!0}function Jp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function uf(n){if(!Ip(n))return!1;const i=n.constructor;if(i===void 0)return!0;const l=i.prototype;return!(!Ip(l)||!l.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Ip(n){return Object.prototype.toString.call(n)==="[object Object]"}function Wb(n){return new Promise(i=>{Yi.setTimeout(i,n)})}function cf(n,i,l){return typeof l.structuralSharing=="function"?l.structuralSharing(n,i):l.structuralSharing!==!1?sy(n,i):i}function eS(n,i,l=0){const s=[...n,i];return l&&s.length>l?s.slice(1):s}function tS(n,i,l=0){const s=[i,...n];return l&&s.length>l?s.slice(0,-1):s}var Mf=Symbol();function oy(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Mf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Df(n,i){return typeof n=="function"?n(...i):!!n}function nS(n,i,l){let s=!1,c;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(c??=i(),s||(s=!0,c.aborted?l():c.addEventListener("abort",l,{once:!0})),c)}),n}var aS=class extends Lr{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!Ki&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Nf=new aS;function ff(){let n,i;const l=new Promise((c,f)=>{n=c,i=f});l.status="pending",l.catch(()=>{});function s(c){Object.assign(l,c),delete l.resolve,delete l.reject}return l.resolve=c=>{s({status:"fulfilled",value:c}),n(c)},l.reject=c=>{s({status:"rejected",reason:c}),i(c)},l}var iS=Jb;function rS(){let n=[],i=0,l=p=>{p()},s=p=>{p()},c=iS;const f=p=>{i?n.push(p):c(()=>{l(p)})},d=()=>{const p=n;n=[],p.length&&c(()=>{s(()=>{p.forEach(g=>{l(g)})})})};return{batch:p=>{let g;i++;try{g=p()}finally{i--,i||d()}return g},batchCalls:p=>(...g)=>{f(()=>{p(...g)})},schedule:f,setNotifyFunction:p=>{l=p},setBatchNotifyFunction:p=>{s=p},setScheduler:p=>{c=p}}}var Lt=rS(),lS=class extends Lr{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!Ki&&window.addEventListener){const i=()=>n(!0),l=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(l=>{l(n)}))}isOnline(){return this.#e}},Mo=new lS;function sS(n){return Math.min(1e3*2**n,3e4)}function uy(n){return(n??"online")==="online"?Mo.isOnline():!0}var df=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function cy(n){let i=!1,l=0,s;const c=ff(),f=()=>c.status!=="pending",d=j=>{if(!f()){const K=new df(j);E(K),n.onCancel?.(K)}},p=()=>{i=!0},g=()=>{i=!1},m=()=>Nf.isFocused()&&(n.networkMode==="always"||Mo.isOnline())&&n.canRun(),b=()=>uy(n.networkMode)&&n.canRun(),y=j=>{f()||(s?.(),c.resolve(j))},E=j=>{f()||(s?.(),c.reject(j))},M=()=>new Promise(j=>{s=K=>{(f()||m())&&j(K)},n.onPause?.()}).then(()=>{s=void 0,f()||n.onContinue?.()}),U=()=>{if(f())return;let j;const K=l===0?n.initialPromise:void 0;try{j=K??n.fn()}catch(G){j=Promise.reject(G)}Promise.resolve(j).then(y).catch(G=>{if(f())return;const J=n.retry??(Ki?0:3),$=n.retryDelay??sS,ye=typeof $=="function"?$(l,G):$,he=J===!0||typeof J=="number"&&l<J||typeof J=="function"&&J(l,G);if(i||!he){E(G);return}l++,n.onFail?.(l,G),Wb(ye).then(()=>m()?void 0:M()).then(()=>{i?E(G):U()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(s?.(),c),cancelRetry:p,continueRetry:g,canStart:b,start:()=>(b()?U():M().then(U),c)}}var fy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),of(this.gcTime)&&(this.#e=Yi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ki?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Yi.clearTimeout(this.#e),this.#e=void 0)}},oS=class extends fy{#e;#t;#n;#i;#a;#l;#s;constructor(n){super(),this.#s=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#n=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Wp(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Wp(this.options);i.data!==void 0&&(this.setState($p(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const l=cf(this.state.data,n,this.options);return this.#r({data:l,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),l}setState(n,i){this.#r({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#a?.promise;return this.#a?.cancel(n),i?i.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Hn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>mi(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!ly(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}const l=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#s=!0,l.signal)})},c=()=>{const p=oy(this.options,i),m=(()=>{const b={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(b),b})();return this.#s=!1,this.options.persister?this.options.persister(p,m,this):p(m)},d=(()=>{const p={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:c};return s(p),p})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#r({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=cy({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:p=>{p instanceof df&&p.revert&&this.setState({...this.#t,fetchStatus:"idle"}),l.abort()},onFail:(p,g)=>{this.#r({type:"failed",failureCount:p,error:g})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const p=await this.#a.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#n.config.onSuccess?.(p,this),this.#n.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof df){if(p.silent)return this.#a.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#r({type:"error",error:p}),this.#n.config.onError?.(p,this),this.#n.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#r(n){const i=l=>{switch(n.type){case"failed":return{...l,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...dy(l.data,this.options),fetchMeta:n.meta??null};case"success":const s={...l,...$p(n.data,n.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const c=n.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...n.state}}};this.state=i(this.state),Lt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function dy(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:uy(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function $p(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wp(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,l=i!==void 0,s=l?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:l?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}var uS=class extends Lr{constructor(n,i){super(),this.options=i,this.#e=n,this.#r=null,this.#s=ff(),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#n=void 0;#i=void 0;#a;#l;#s;#r;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),eg(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#w(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,l=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Hn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),i._defaulted&&!Oo(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&tg(this.#t,l,this.options,i)&&this.#f(),this.updateResult(),s&&(this.#t!==l||Hn(this.options.enabled,this.#t)!==Hn(i.enabled,this.#t)||mi(this.options.staleTime,this.#t)!==mi(i.staleTime,this.#t))&&this.#g();const c=this.#y();s&&(this.#t!==l||Hn(this.options.enabled,this.#t)!==Hn(i.enabled,this.#t)||c!==this.#o)&&this.#v(c)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),l=this.createResult(i,n);return fS(this,l)&&(this.#i=l,this.#l=this.options,this.#a=this.#t.state),l}getCurrentResult(){return this.#i}trackResult(n,i){return new Proxy(n,{get:(l,s)=>(this.trackProp(s),i?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),l=this.#e.getQueryCache().build(this.#e,i);return l.fetch().then(()=>this.createResult(l,i))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(n){this.#E();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(tn)),i}#g(){this.#S();const n=mi(this.options.staleTime,this.#t);if(Ki||this.#i.isStale||!of(n))return;const l=ly(this.#i.dataUpdatedAt,n)+1;this.#u=Yi.setTimeout(()=>{this.#i.isStale||this.updateResult()},l)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(n){this.#w(),this.#o=n,!(Ki||Hn(this.options.enabled,this.#t)===!1||!of(this.#o)||this.#o===0)&&(this.#c=Yi.setInterval(()=>{(this.options.refetchIntervalInBackground||Nf.isFocused())&&this.#f()},this.#o))}#b(){this.#g(),this.#v(this.#y())}#S(){this.#u&&(Yi.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(Yi.clearInterval(this.#c),this.#c=void 0)}createResult(n,i){const l=this.#t,s=this.options,c=this.#i,f=this.#a,d=this.#l,g=n!==l?n.state:this.#n,{state:m}=n;let b={...m},y=!1,E;if(i._optimisticResults){const Y=this.hasListeners(),oe=!Y&&eg(n,i),Ae=Y&&tg(n,l,i,s);(oe||Ae)&&(b={...b,...dy(m.data,n.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:M,errorUpdatedAt:U,status:j}=b;E=b.data;let K=!1;if(i.placeholderData!==void 0&&E===void 0&&j==="pending"){let Y;c?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(Y=c.data,K=!0):Y=typeof i.placeholderData=="function"?i.placeholderData(this.#h?.state.data,this.#h):i.placeholderData,Y!==void 0&&(j="success",E=cf(c?.data,Y,i),y=!0)}if(i.select&&E!==void 0&&!K)if(c&&E===f?.data&&i.select===this.#p)E=this.#d;else try{this.#p=i.select,E=i.select(E),E=cf(c?.data,E,i),this.#d=E,this.#r=null}catch(Y){this.#r=Y}this.#r&&(M=this.#r,E=this.#d,U=Date.now(),j="error");const G=b.fetchStatus==="fetching",J=j==="pending",$=j==="error",ye=J&&G,he=E!==void 0,C={status:j,fetchStatus:b.fetchStatus,isPending:J,isSuccess:j==="success",isError:$,isInitialLoading:ye,isLoading:ye,data:E,dataUpdatedAt:b.dataUpdatedAt,error:M,errorUpdatedAt:U,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:G,isRefetching:G&&!J,isLoadingError:$&&!he,isPaused:b.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:$&&he,isStale:kf(n,i),refetch:this.refetch,promise:this.#s,isEnabled:Hn(i.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const Y=C.data!==void 0,oe=C.status==="error"&&!Y,Ae=Ue=>{oe?Ue.reject(C.error):Y&&Ue.resolve(C.data)},Ce=()=>{const Ue=this.#s=C.promise=ff();Ae(Ue)},Te=this.#s;switch(Te.status){case"pending":n.queryHash===l.queryHash&&Ae(Te);break;case"fulfilled":(oe||C.data!==Te.value)&&Ce();break;case"rejected":(!oe||C.error!==Te.reason)&&Ce();break}}return C}updateResult(){const n=this.#i,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#l=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Oo(i,n))return;this.#i=i;const l=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!this.#m.size)return!0;const f=new Set(c??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#i).some(d=>{const p=d;return this.#i[p]!==n[p]&&f.has(p)})};this.#x({listeners:l()})}#E(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#x(n){Lt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function cS(n,i){return Hn(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function eg(n,i){return cS(n,i)||n.state.data!==void 0&&hf(n,i,i.refetchOnMount)}function hf(n,i,l){if(Hn(i.enabled,n)!==!1&&mi(i.staleTime,n)!=="static"){const s=typeof l=="function"?l(n):l;return s==="always"||s!==!1&&kf(n,i)}return!1}function tg(n,i,l,s){return(n!==i||Hn(s.enabled,n)===!1)&&(!l.suspense||n.state.status!=="error")&&kf(n,l)}function kf(n,i){return Hn(i.enabled,n)!==!1&&n.isStaleByTime(mi(i.staleTime,n))}function fS(n,i){return!Oo(n.getCurrentResult(),i)}function ng(n){return{onFetch:(i,l)=>{const s=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let p={pages:[],pageParams:[]},g=0;const m=async()=>{let b=!1;const y=U=>{nS(U,()=>i.signal,()=>b=!0)},E=oy(i.options,i.fetchOptions),M=async(U,j,K)=>{if(b)return Promise.reject();if(j==null&&U.pages.length)return Promise.resolve(U);const J=(()=>{const me={client:i.client,queryKey:i.queryKey,pageParam:j,direction:K?"backward":"forward",meta:i.options.meta};return y(me),me})(),$=await E(J),{maxPages:ye}=i.options,he=K?tS:eS;return{pages:he(U.pages,$,ye),pageParams:he(U.pageParams,j,ye)}};if(c&&f.length){const U=c==="backward",j=U?hy:mf,K={pages:f,pageParams:d},G=j(s,K);p=await M(K,G,U)}else{const U=n??f.length;do{const j=g===0?d[0]??s.initialPageParam:mf(s,p);if(g>0&&j==null)break;p=await M(p,j),g++}while(g<U)}return p};i.options.persister?i.fetchFn=()=>i.options.persister?.(m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},l):i.fetchFn=m}}}function mf(n,{pages:i,pageParams:l}){const s=i.length-1;return i.length>0?n.getNextPageParam(i[s],i,l[s],l):void 0}function hy(n,{pages:i,pageParams:l}){return i.length>0?n.getPreviousPageParam?.(i[0],i,l[0],l):void 0}function BR(n,i){return i?mf(n,i)!=null:!1}function qR(n,i){return!i||!n.getPreviousPageParam?!1:hy(n,i)!=null}var dS=class extends fy{#e;#t;#n;#i;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||my(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(i=>i!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#a({type:"continue"})},l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=cy({fn:()=>this.options.mutationFn?this.options.mutationFn(n,l):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",c=!this.#i.canStart();try{if(s)i();else{this.#a({type:"pending",variables:n,isPaused:c}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,l);const d=await this.options.onMutate?.(n,l);d!==this.state.context&&this.#a({type:"pending",context:d,variables:n,isPaused:c})}const f=await this.#i.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,l),await this.options.onSuccess?.(f,n,this.state.context,l),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(f,null,n,this.state.context,l),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,l)}catch(d){Promise.reject(d)}try{await this.options.onError?.(f,n,this.state.context,l)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,l)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,l)}catch(d){Promise.reject(d)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(n){const i=l=>{switch(n.type){case"failed":return{...l,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...l,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:n.error,failureCount:l.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Lt.batch(()=>{this.#t.forEach(l=>{l.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function my(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hS=class extends Lr{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,i,l){const s=new dS({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(i),state:l});return this.add(s),s}add(n){this.#e.add(n);const i=uo(n);if(typeof i=="string"){const l=this.#t.get(i);l?l.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=uo(n);if(typeof i=="string"){const l=this.#t.get(i);if(l)if(l.length>1){const s=l.indexOf(n);s!==-1&&l.splice(s,1)}else l[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=uo(n);if(typeof i=="string"){const s=this.#t.get(i)?.find(c=>c.state.status==="pending");return!s||s===n}else return!0}runNext(n){const i=uo(n);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Lt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(l=>Zp(i,l))}findAll(n={}){return this.getAll().filter(i=>Zp(n,i))}notify(n){Lt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return Lt.batch(()=>Promise.all(n.map(i=>i.continue().catch(tn))))}};function uo(n){return n.options.scope?.id}var mS=class extends Lr{#e;#t=void 0;#n;#i;constructor(i,l){super(),this.#e=i,this.setOptions(l),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const l=this.options;this.options=this.#e.defaultMutationOptions(i),Oo(this.options,l)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),l?.mutationKey&&this.options.mutationKey&&Xi(l.mutationKey)!==Xi(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#l(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#l()}mutate(i,l){return this.#i=l,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??my();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#l(i){Lt.batch(()=>{if(this.#i&&this.hasListeners()){const l=this.#t.variables,s=this.#t.context,c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(i?.type==="success"){try{this.#i.onSuccess?.(i.data,l,s,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(i.data,null,l,s,c)}catch(f){Promise.reject(f)}}else if(i?.type==="error"){try{this.#i.onError?.(i.error,l,s,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(void 0,i.error,l,s,c)}catch(f){Promise.reject(f)}}}this.listeners.forEach(l=>{l(this.#t)})})}},pS=class extends Lr{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,l){const s=i.queryKey,c=i.queryHash??Of(s,i);let f=this.get(c);return f||(f=new oS({client:n,queryKey:s,queryHash:c,options:n.defaultQueryOptions(i),state:l,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Lt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(l=>Fp(i,l))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(l=>Fp(n,l)):i}notify(n){Lt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},gS=class{#e;#t;#n;#i;#a;#l;#s;#r;constructor(n={}){this.#e=n.queryCache||new pS,this.#t=n.mutationCache||new hS,this.#n=n.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=Nf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=Mo.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#r?.(),this.#r=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),l=this.#e.build(this,i),s=l.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&l.isStaleByTime(mi(i.staleTime,l))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:l})=>{const s=l.data;return[i,s]})}setQueryData(n,i,l){const s=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(s.queryHash)?.state.data,d=Ib(i,f);if(d!==void 0)return this.#e.build(this,s).setData(d,{...l,manual:!0})}setQueriesData(n,i,l){return Lt.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,i,l)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;Lt.batch(()=>{i.findAll(n).forEach(l=>{i.remove(l)})})}resetQueries(n,i){const l=this.#e;return Lt.batch(()=>(l.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const l={revert:!0,...i},s=Lt.batch(()=>this.#e.findAll(n).map(c=>c.cancel(l)));return Promise.all(s).then(tn).catch(tn)}invalidateQueries(n,i={}){return Lt.batch(()=>(this.#e.findAll(n).forEach(l=>{l.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const l={...i,cancelRefetch:i.cancelRefetch??!0},s=Lt.batch(()=>this.#e.findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,l);return l.throwOnError||(f=f.catch(tn)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(tn)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const l=this.#e.build(this,i);return l.isStaleByTime(mi(i.staleTime,l))?l.fetch(i):Promise.resolve(l.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(tn).catch(tn)}fetchInfiniteQuery(n){return n.behavior=ng(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(tn).catch(tn)}ensureInfiniteQueryData(n){return n.behavior=ng(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Mo.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#i.set(Xi(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#i.values()],l={};return i.forEach(s=>{Vl(n,s.queryKey)&&Object.assign(l,s.defaultOptions)}),l}setMutationDefaults(n,i){this.#a.set(Xi(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#a.values()],l={};return i.forEach(s=>{Vl(n,s.mutationKey)&&Object.assign(l,s.defaultOptions)}),l}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Of(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Mf&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},py=T.createContext(void 0),gt=n=>{const i=T.useContext(py);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},yS=({client:n,children:i})=>(T.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),q.jsx(py.Provider,{value:n,children:i})),gy=T.createContext(!1),vS=()=>T.useContext(gy);gy.Provider;function bS(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var SS=T.createContext(bS()),wS=()=>T.useContext(SS),ES=(n,i,l)=>{const s=l?.state.error&&typeof n.throwOnError=="function"?Df(n.throwOnError,[l.state.error,l]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(i.isReset()||(n.retryOnMount=!1))},xS=n=>{T.useEffect(()=>{n.clearReset()},[n])},TS=({result:n,errorResetBoundary:i,throwOnError:l,query:s,suspense:c})=>n.isError&&!i.isReset()&&!n.isFetching&&s&&(c&&n.data===void 0||Df(l,[n.error,s])),RS=n=>{if(n.suspense){const l=c=>c==="static"?c:Math.max(c??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...c)=>l(s(...c)):l(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},_S=(n,i)=>n.isLoading&&n.isFetching&&!i,CS=(n,i)=>n?.suspense&&i.isPending,ag=(n,i,l)=>i.fetchOptimistic(n).catch(()=>{l.clearReset()});function AS(n,i,l){const s=vS(),c=wS(),f=gt(),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const p=f.getQueryCache().get(d.queryHash);d._optimisticResults=s?"isRestoring":"optimistic",RS(d),ES(d,c,p),xS(c);const g=!f.getQueryCache().get(d.queryHash),[m]=T.useState(()=>new i(f,d)),b=m.getOptimisticResult(d),y=!s&&n.subscribed!==!1;if(T.useSyncExternalStore(T.useCallback(E=>{const M=y?m.subscribe(Lt.batchCalls(E)):tn;return m.updateResult(),M},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),T.useEffect(()=>{m.setOptions(d)},[d,m]),CS(d,b))throw ag(d,m,c);if(TS({result:b,errorResetBoundary:c,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw b.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,b),d.experimental_prefetchInRender&&!Ki&&_S(b,s)&&(g?ag(d,m,c):p?.promise)?.catch(tn).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?b:m.trackResult(b)}function Ba(n,i){return AS(n,uS)}function qt(n,i){const l=gt(),[s]=T.useState(()=>new mS(l,n));T.useEffect(()=>{s.setOptions(n)},[s,n]);const c=T.useSyncExternalStore(T.useCallback(d=>s.subscribe(Lt.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=T.useCallback((d,p)=>{s.mutate(d,p).catch(tn)},[s]);if(c.error&&Df(s.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}var yy=ry();const OS=iy(yy);function MS(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",i.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}const DS=n=>{switch(n){case"success":return zS;case"info":return LS;case"warning":return US;case"error":return jS;default:return null}},NS=Array(12).fill(0),kS=({visible:n,className:i})=>ee.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},ee.createElement("div",{className:"sonner-spinner"},NS.map((l,s)=>ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),zS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),US=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),LS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),jS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),BS=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),qS=()=>{const[n,i]=ee.useState(document.hidden);return ee.useEffect(()=>{const l=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),n};let pf=1;class HS{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const l=this.subscribers.indexOf(i);this.subscribers.splice(l,1)}),this.publish=i=>{this.subscribers.forEach(l=>l(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var l;const{message:s,...c}=i,f=typeof i?.id=="number"||((l=i.id)==null?void 0:l.length)>0?i.id:pf++,d=this.toasts.find(g=>g.id===f),p=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(g=>g.id===f?(this.publish({...g,...i,id:f,title:s}),{...g,...i,id:f,dismissible:p,title:s}):g):this.addToast({title:s,...c,dismissible:p,id:f}),f},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(l=>l({id:i,dismiss:!0})))):this.toasts.forEach(l=>{this.subscribers.forEach(s=>s({id:l.id,dismiss:!0}))}),i),this.message=(i,l)=>this.create({...l,message:i}),this.error=(i,l)=>this.create({...l,message:i,type:"error"}),this.success=(i,l)=>this.create({...l,type:"success",message:i}),this.info=(i,l)=>this.create({...l,type:"info",message:i}),this.warning=(i,l)=>this.create({...l,type:"warning",message:i}),this.loading=(i,l)=>this.create({...l,type:"loading",message:i}),this.promise=(i,l)=>{if(!l)return;let s;l.loading!==void 0&&(s=this.create({...l,promise:i,type:"loading",message:l.loading,description:typeof l.description!="function"?l.description:void 0}));const c=Promise.resolve(i instanceof Function?i():i);let f=s!==void 0,d;const p=c.then(async m=>{if(d=["resolve",m],ee.isValidElement(m))f=!1,this.create({id:s,type:"default",message:m});else if(VS(m)&&!m.ok){f=!1;const y=typeof l.error=="function"?await l.error(`HTTP error! status: ${m.status}`):l.error,E=typeof l.description=="function"?await l.description(`HTTP error! status: ${m.status}`):l.description,U=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:E,...U})}else if(m instanceof Error){f=!1;const y=typeof l.error=="function"?await l.error(m):l.error,E=typeof l.description=="function"?await l.description(m):l.description,U=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:E,...U})}else if(l.success!==void 0){f=!1;const y=typeof l.success=="function"?await l.success(m):l.success,E=typeof l.description=="function"?await l.description(m):l.description,U=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:E,...U})}}).catch(async m=>{if(d=["reject",m],l.error!==void 0){f=!1;const b=typeof l.error=="function"?await l.error(m):l.error,y=typeof l.description=="function"?await l.description(m):l.description,M=typeof b=="object"&&!ee.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...M})}}).finally(()=>{f&&(this.dismiss(s),s=void 0),l.finally==null||l.finally.call(l)}),g=()=>new Promise((m,b)=>p.then(()=>d[0]==="reject"?b(d[1]):m(d[1])).catch(b));return typeof s!="string"&&typeof s!="number"?{unwrap:g}:Object.assign(s,{unwrap:g})},this.custom=(i,l)=>{const s=l?.id||pf++;return this.create({jsx:i(s),id:s,...l}),s},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const hn=new HS,QS=(n,i)=>{const l=i?.id||pf++;return hn.addToast({title:n,...i,id:l}),l},VS=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",YS=QS,GS=()=>hn.toasts,KS=()=>hn.getActiveToasts(),XS=Object.assign(YS,{success:hn.success,info:hn.info,warning:hn.warning,error:hn.error,custom:hn.custom,message:hn.message,promise:hn.promise,dismiss:hn.dismiss,loading:hn.loading},{getHistory:GS,getToasts:KS});MS("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function co(n){return n.label!==void 0}const PS=3,FS="24px",ZS="16px",ig=4e3,JS=356,IS=14,$S=45,WS=200;function oa(...n){return n.filter(Boolean).join(" ")}function e1(n){const[i,l]=n.split("-"),s=[];return i&&s.push(i),l&&s.push(l),s}const t1=n=>{var i,l,s,c,f,d,p,g,m;const{invert:b,toast:y,unstyled:E,interacting:M,setHeights:U,visibleToasts:j,heights:K,index:G,toasts:J,expanded:$,removeToast:ye,defaultRichColors:he,closeButton:me,style:C,cancelButtonStyle:Y,actionButtonStyle:oe,className:Ae="",descriptionClassName:Ce="",duration:Te,position:Ue,gap:Le,expandByDefault:we,classNames:A,icons:F,closeButtonAriaLabel:H="Close toast"}=n,[ge,ve]=ee.useState(null),[x,Q]=ee.useState(null),[B,Z]=ee.useState(!1),[te,ue]=ee.useState(!1),[ce,Re]=ee.useState(!1),[Ve,Ht]=ee.useState(!1),[$t,Je]=ee.useState(!1),[Gn,nn]=ee.useState(0),[vi,an]=ee.useState(0),ha=ee.useRef(y.duration||Te||ig),bi=ee.useRef(null),Ft=ee.useRef(null),Si=G===0,wi=G+1<=j,Qt=y.type,na=y.dismissible!==!1,mt=y.className||"",ma=y.descriptionClassName||"",aa=ee.useMemo(()=>K.findIndex(_e=>_e.toastId===y.id)||0,[K,y.id]),qa=ee.useMemo(()=>{var _e;return(_e=y.closeButton)!=null?_e:me},[y.closeButton,me]),Vt=ee.useMemo(()=>y.duration||Te||ig,[y.duration,Te]),Wt=ee.useRef(0),_n=ee.useRef(0),Zi=ee.useRef(0),Cn=ee.useRef(null),[pa,ut]=Ue.split("-"),rn=ee.useMemo(()=>K.reduce((_e,st,wt)=>wt>=aa?_e:_e+st.height,0),[K,aa]),kt=qS(),Ji=y.invert||b,Ei=Qt==="loading";_n.current=ee.useMemo(()=>aa*Le+rn,[aa,rn]),ee.useEffect(()=>{ha.current=Vt},[Vt]),ee.useEffect(()=>{Z(!0)},[]),ee.useEffect(()=>{const _e=Ft.current;if(_e){const st=_e.getBoundingClientRect().height;return an(st),U(wt=>[{toastId:y.id,height:st,position:y.position},...wt]),()=>U(wt=>wt.filter(Et=>Et.toastId!==y.id))}},[U,y.id]),ee.useLayoutEffect(()=>{if(!B)return;const _e=Ft.current,st=_e.style.height;_e.style.height="auto";const wt=_e.getBoundingClientRect().height;_e.style.height=st,an(wt),U(Et=>Et.find(ot=>ot.toastId===y.id)?Et.map(ot=>ot.toastId===y.id?{...ot,height:wt}:ot):[{toastId:y.id,height:wt,position:y.position},...Et])},[B,y.title,y.description,U,y.id,y.jsx,y.action,y.cancel]);const pn=ee.useCallback(()=>{ue(!0),nn(_n.current),U(_e=>_e.filter(st=>st.toastId!==y.id)),setTimeout(()=>{ye(y)},WS)},[y,ye,U,_n]);ee.useEffect(()=>{if(y.promise&&Qt==="loading"||y.duration===1/0||y.type==="loading")return;let _e;return $||M||kt?(()=>{if(Zi.current<Wt.current){const Et=new Date().getTime()-Wt.current;ha.current=ha.current-Et}Zi.current=new Date().getTime()})():ha.current!==1/0&&(Wt.current=new Date().getTime(),_e=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),pn()},ha.current)),()=>clearTimeout(_e)},[$,M,y,Qt,kt,pn]),ee.useEffect(()=>{y.delete&&(pn(),y.onDismiss==null||y.onDismiss.call(y,y))},[pn,y.delete]);function Kn(){var _e;if(F?.loading){var st;return ee.createElement("div",{className:oa(A?.loader,y==null||(st=y.classNames)==null?void 0:st.loader,"sonner-loader"),"data-visible":Qt==="loading"},F.loading)}return ee.createElement(kS,{className:oa(A?.loader,y==null||(_e=y.classNames)==null?void 0:_e.loader),visible:Qt==="loading"})}const ga=y.icon||F?.[Qt]||DS(Qt);var Xn,An;return ee.createElement("li",{tabIndex:0,ref:Ft,className:oa(Ae,mt,A?.toast,y==null||(i=y.classNames)==null?void 0:i.toast,A?.default,A?.[Qt],y==null||(l=y.classNames)==null?void 0:l[Qt]),"data-sonner-toast":"","data-rich-colors":(Xn=y.richColors)!=null?Xn:he,"data-styled":!(y.jsx||y.unstyled||E),"data-mounted":B,"data-promise":!!y.promise,"data-swiped":$t,"data-removed":te,"data-visible":wi,"data-y-position":pa,"data-x-position":ut,"data-index":G,"data-front":Si,"data-swiping":ce,"data-dismissible":na,"data-type":Qt,"data-invert":Ji,"data-swipe-out":Ve,"data-swipe-direction":x,"data-expanded":!!($||we&&B),"data-testid":y.testId,style:{"--index":G,"--toasts-before":G,"--z-index":J.length-G,"--offset":`${te?Gn:_n.current}px`,"--initial-height":we?"auto":`${vi}px`,...C,...y.style},onDragEnd:()=>{Re(!1),ve(null),Cn.current=null},onPointerDown:_e=>{_e.button!==2&&(Ei||!na||(bi.current=new Date,nn(_n.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(Re(!0),Cn.current={x:_e.clientX,y:_e.clientY})))},onPointerUp:()=>{var _e,st,wt;if(Ve||!na)return;Cn.current=null;const Et=Number(((_e=Ft.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),gn=Number(((st=Ft.current)==null?void 0:st.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ot=new Date().getTime()-((wt=bi.current)==null?void 0:wt.getTime()),Zt=ge==="x"?Et:gn,ya=Math.abs(Zt)/ot;if(Math.abs(Zt)>=$S||ya>.11){nn(_n.current),y.onDismiss==null||y.onDismiss.call(y,y),Q(ge==="x"?Et>0?"right":"left":gn>0?"down":"up"),pn(),Ht(!0);return}else{var S,_;(S=Ft.current)==null||S.style.setProperty("--swipe-amount-x","0px"),(_=Ft.current)==null||_.style.setProperty("--swipe-amount-y","0px")}Je(!1),Re(!1),ve(null)},onPointerMove:_e=>{var st,wt,Et;if(!Cn.current||!na||((st=window.getSelection())==null?void 0:st.toString().length)>0)return;const ot=_e.clientY-Cn.current.y,Zt=_e.clientX-Cn.current.x;var ya;const S=(ya=n.swipeDirections)!=null?ya:e1(Ue);!ge&&(Math.abs(Zt)>1||Math.abs(ot)>1)&&ve(Math.abs(Zt)>Math.abs(ot)?"x":"y");let _={x:0,y:0};const z=I=>1/(1.5+Math.abs(I)/20);if(ge==="y"){if(S.includes("top")||S.includes("bottom"))if(S.includes("top")&&ot<0||S.includes("bottom")&&ot>0)_.y=ot;else{const I=ot*z(ot);_.y=Math.abs(I)<Math.abs(ot)?I:ot}}else if(ge==="x"&&(S.includes("left")||S.includes("right")))if(S.includes("left")&&Zt<0||S.includes("right")&&Zt>0)_.x=Zt;else{const I=Zt*z(Zt);_.x=Math.abs(I)<Math.abs(Zt)?I:Zt}(Math.abs(_.x)>0||Math.abs(_.y)>0)&&Je(!0),(wt=Ft.current)==null||wt.style.setProperty("--swipe-amount-x",`${_.x}px`),(Et=Ft.current)==null||Et.style.setProperty("--swipe-amount-y",`${_.y}px`)}},qa&&!y.jsx&&Qt!=="loading"?ee.createElement("button",{"aria-label":H,"data-disabled":Ei,"data-close-button":!0,onClick:Ei||!na?()=>{}:()=>{pn(),y.onDismiss==null||y.onDismiss.call(y,y)},className:oa(A?.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(An=F?.close)!=null?An:BS):null,(Qt||y.icon||y.promise)&&y.icon!==null&&(F?.[Qt]!==null||y.icon)?ee.createElement("div",{"data-icon":"",className:oa(A?.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Kn():null,y.type!=="loading"?ga:null):null,ee.createElement("div",{"data-content":"",className:oa(A?.content,y==null||(f=y.classNames)==null?void 0:f.content)},ee.createElement("div",{"data-title":"",className:oa(A?.title,y==null||(d=y.classNames)==null?void 0:d.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?ee.createElement("div",{"data-description":"",className:oa(Ce,ma,A?.description,y==null||(p=y.classNames)==null?void 0:p.description)},typeof y.description=="function"?y.description():y.description):null),ee.isValidElement(y.cancel)?y.cancel:y.cancel&&co(y.cancel)?ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||Y,onClick:_e=>{co(y.cancel)&&na&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,_e),pn())},className:oa(A?.cancelButton,y==null||(g=y.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,ee.isValidElement(y.action)?y.action:y.action&&co(y.action)?ee.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||oe,onClick:_e=>{co(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,_e),!_e.defaultPrevented&&pn())},className:oa(A?.actionButton,y==null||(m=y.classNames)==null?void 0:m.actionButton)},y.action.label):null)};function rg(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function n1(n,i){const l={};return[n,i].forEach((s,c)=>{const f=c===1,d=f?"--mobile-offset":"--offset",p=f?ZS:FS;function g(m){["top","right","bottom","left"].forEach(b=>{l[`${d}-${b}`]=typeof m=="number"?`${m}px`:m})}typeof s=="number"||typeof s=="string"?g(s):typeof s=="object"?["top","right","bottom","left"].forEach(m=>{s[m]===void 0?l[`${d}-${m}`]=p:l[`${d}-${m}`]=typeof s[m]=="number"?`${s[m]}px`:s[m]}):g(p)}),l}const a1=ee.forwardRef(function(i,l){const{id:s,invert:c,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:p,closeButton:g,className:m,offset:b,mobileOffset:y,theme:E="light",richColors:M,duration:U,style:j,visibleToasts:K=PS,toastOptions:G,dir:J=rg(),gap:$=IS,icons:ye,containerAriaLabel:he="Notifications"}=i,[me,C]=ee.useState([]),Y=ee.useMemo(()=>s?me.filter(B=>B.toasterId===s):me.filter(B=>!B.toasterId),[me,s]),oe=ee.useMemo(()=>Array.from(new Set([f].concat(Y.filter(B=>B.position).map(B=>B.position)))),[Y,f]),[Ae,Ce]=ee.useState([]),[Te,Ue]=ee.useState(!1),[Le,we]=ee.useState(!1),[A,F]=ee.useState(E!=="system"?E:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=ee.useRef(null),ge=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),ve=ee.useRef(null),x=ee.useRef(!1),Q=ee.useCallback(B=>{C(Z=>{var te;return(te=Z.find(ue=>ue.id===B.id))!=null&&te.delete||hn.dismiss(B.id),Z.filter(({id:ue})=>ue!==B.id)})},[]);return ee.useEffect(()=>hn.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{C(Z=>Z.map(te=>te.id===B.id?{...te,delete:!0}:te))});return}setTimeout(()=>{OS.flushSync(()=>{C(Z=>{const te=Z.findIndex(ue=>ue.id===B.id);return te!==-1?[...Z.slice(0,te),{...Z[te],...B},...Z.slice(te+1)]:[B,...Z]})})})}),[me]),ee.useEffect(()=>{if(E!=="system"){F(E);return}if(E==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:Z})=>{F(Z?"dark":"light")})}catch{B.addListener(({matches:te})=>{try{F(te?"dark":"light")}catch(ue){console.error(ue)}})}},[E]),ee.useEffect(()=>{me.length<=1&&Ue(!1)},[me]),ee.useEffect(()=>{const B=Z=>{var te;if(d.every(Re=>Z[Re]||Z.code===Re)){var ce;Ue(!0),(ce=H.current)==null||ce.focus()}Z.code==="Escape"&&(document.activeElement===H.current||(te=H.current)!=null&&te.contains(document.activeElement))&&Ue(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[d]),ee.useEffect(()=>{if(H.current)return()=>{ve.current&&(ve.current.focus({preventScroll:!0}),ve.current=null,x.current=!1)}},[H.current]),ee.createElement("section",{ref:l,"aria-label":`${he} ${ge}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},oe.map((B,Z)=>{var te;const[ue,ce]=B.split("-");return Y.length?ee.createElement("ol",{key:B,dir:J==="auto"?rg():J,tabIndex:-1,ref:H,className:m,"data-sonner-toaster":!0,"data-sonner-theme":A,"data-y-position":ue,"data-x-position":ce,style:{"--front-toast-height":`${((te=Ae[0])==null?void 0:te.height)||0}px`,"--width":`${JS}px`,"--gap":`${$}px`,...j,...n1(b,y)},onBlur:Re=>{x.current&&!Re.currentTarget.contains(Re.relatedTarget)&&(x.current=!1,ve.current&&(ve.current.focus({preventScroll:!0}),ve.current=null))},onFocus:Re=>{Re.target instanceof HTMLElement&&Re.target.dataset.dismissible==="false"||x.current||(x.current=!0,ve.current=Re.relatedTarget)},onMouseEnter:()=>Ue(!0),onMouseMove:()=>Ue(!0),onMouseLeave:()=>{Le||Ue(!1)},onDragEnd:()=>Ue(!1),onPointerDown:Re=>{Re.target instanceof HTMLElement&&Re.target.dataset.dismissible==="false"||we(!0)},onPointerUp:()=>we(!1)},Y.filter(Re=>!Re.position&&Z===0||Re.position===B).map((Re,Ve)=>{var Ht,$t;return ee.createElement(t1,{key:Re.id,icons:ye,index:Ve,toast:Re,defaultRichColors:M,duration:(Ht=G?.duration)!=null?Ht:U,className:G?.className,descriptionClassName:G?.descriptionClassName,invert:c,visibleToasts:K,closeButton:($t=G?.closeButton)!=null?$t:g,interacting:Le,position:B,style:G?.style,unstyled:G?.unstyled,classNames:G?.classNames,cancelButtonStyle:G?.cancelButtonStyle,actionButtonStyle:G?.actionButtonStyle,closeButtonAriaLabel:G?.closeButtonAriaLabel,removeToast:Q,toasts:Y.filter(Je=>Je.position==Re.position),heights:Ae.filter(Je=>Je.position==Re.position),setHeights:Ce,expandByDefault:p,gap:$,expanded:Te,swipeDirections:i.swipeDirections})})):null}))}),i1=new gS({defaultOptions:{queries:{staleTime:1e3*60,retry:1}}}),r1="modulepreload",l1=function(n){return"/"+n},lg={},ea=function(i,l,s){let c=Promise.resolve();if(l&&l.length>0){let g=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");c=g(l.map(m=>{if(m=l1(m),m in lg)return;lg[m]=!0;const b=m.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const E=document.createElement("link");if(E.rel=b?"stylesheet":r1,b||(E.as="script"),E.crossOrigin="",E.href=m,p&&E.setAttribute("nonce",p),document.head.appendChild(E),b)return new Promise((M,U)=>{E.addEventListener("load",M),E.addEventListener("error",()=>U(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return c.then(d=>{for(const p of d||[])p.status==="rejected"&&f(p.reason);return i().catch(f)})};var vy=n=>{throw TypeError(n)},s1=(n,i,l)=>i.has(n)||vy("Cannot "+l),Zc=(n,i,l)=>(s1(n,i,"read from private field"),l?l.call(n):i.get(n)),o1=(n,i,l)=>i.has(n)?vy("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,l),sg="popstate";function u1(n={}){function i(s,c){let{pathname:f,search:d,hash:p}=s.location;return Yl("",{pathname:f,search:d,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function l(s,c){return typeof c=="string"?c:fa(c)}return f1(i,l,null,n)}function je(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function Nt(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function c1(){return Math.random().toString(36).substring(2,10)}function og(n,i){return{usr:n.state,key:n.key,idx:i}}function Yl(n,i,l=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?gi(i):i,state:l,key:i&&i.key||s||c1()}}function fa({pathname:n="/",search:i="",hash:l=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function gi(n){let i={};if(n){let l=n.indexOf("#");l>=0&&(i.hash=n.substring(l),n=n.substring(0,l));let s=n.indexOf("?");s>=0&&(i.search=n.substring(s),n=n.substring(0,s)),n&&(i.pathname=n)}return i}function f1(n,i,l,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,d=c.history,p="POP",g=null,m=b();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function b(){return(d.state||{idx:null}).idx}function y(){p="POP";let K=b(),G=K==null?null:K-m;m=K,g&&g({action:p,location:j.location,delta:G})}function E(K,G){p="PUSH";let J=Yl(j.location,K,G);m=b()+1;let $=og(J,m),ye=j.createHref(J);try{d.pushState($,"",ye)}catch(he){if(he instanceof DOMException&&he.name==="DataCloneError")throw he;c.location.assign(ye)}f&&g&&g({action:p,location:j.location,delta:1})}function M(K,G){p="REPLACE";let J=Yl(j.location,K,G);m=b();let $=og(J,m),ye=j.createHref(J);d.replaceState($,"",ye),f&&g&&g({action:p,location:j.location,delta:0})}function U(K){return by(K)}let j={get action(){return p},get location(){return n(c,d)},listen(K){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(sg,y),g=K,()=>{c.removeEventListener(sg,y),g=null}},createHref(K){return i(c,K)},createURL:U,encodeLocation(K){let G=U(K);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:E,replace:M,go(K){return d.go(K)}};return j}function by(n,i=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),je(l,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:fa(n);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=l+s),new URL(s,l)}var jl,ug=class{constructor(n){if(o1(this,jl,new Map),n)for(let[i,l]of n)this.set(i,l)}get(n){if(Zc(this,jl).has(n))return Zc(this,jl).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,i){Zc(this,jl).set(n,i)}};jl=new WeakMap;var d1=new Set(["lazy","caseSensitive","path","id","index","children"]);function h1(n){return d1.has(n)}var m1=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function p1(n){return m1.has(n)}function g1(n){return n.index===!0}function Gl(n,i,l=[],s={},c=!1){return n.map((f,d)=>{let p=[...l,String(d)],g=typeof f.id=="string"?f.id:p.join("-");if(je(f.index!==!0||!f.children,"Cannot specify children on an index route"),je(c||!s[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),g1(f)){let m={...f,id:g};return s[g]=cg(m,i(m)),m}else{let m={...f,id:g,children:void 0};return s[g]=cg(m,i(m)),f.children&&(m.children=Gl(f.children,i,p,s,c)),m}})}function cg(n,i){return Object.assign(n,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...n.lazy,...i.lazy}}:{}})}function ci(n,i,l="/"){return Bl(n,i,l,!1)}function Bl(n,i,l,s){let c=typeof i=="string"?gi(i):i,f=Vn(c.pathname||"/",l);if(f==null)return null;let d=Sy(n);v1(d);let p=null;for(let g=0;p==null&&g<d.length;++g){let m=O1(f);p=C1(d[g],m,s)}return p}function y1(n,i){let{route:l,pathname:s,params:c}=n;return{id:l.id,pathname:s,params:c,data:i[l.id],loaderData:i[l.id],handle:l.handle}}function Sy(n,i=[],l=[],s="",c=!1){let f=(d,p,g=c,m)=>{let b={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:p,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&g)return;je(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let y=ca([s,b.relativePath]),E=l.concat(b);d.children&&d.children.length>0&&(je(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Sy(d.children,i,E,y,g)),!(d.path==null&&!d.index)&&i.push({path:y,score:R1(y,d.index),routesMeta:E})};return n.forEach((d,p)=>{if(d.path===""||!d.path?.includes("?"))f(d,p);else for(let g of wy(d.path))f(d,p,!0,g)}),i}function wy(n){let i=n.split("/");if(i.length===0)return[];let[l,...s]=i,c=l.endsWith("?"),f=l.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let d=wy(s.join("/")),p=[];return p.push(...d.map(g=>g===""?f:[f,g].join("/"))),c&&p.push(...d),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function v1(n){n.sort((i,l)=>i.score!==l.score?l.score-i.score:_1(i.routesMeta.map(s=>s.childrenIndex),l.routesMeta.map(s=>s.childrenIndex)))}var b1=/^:[\w-]+$/,S1=3,w1=2,E1=1,x1=10,T1=-2,fg=n=>n==="*";function R1(n,i){let l=n.split("/"),s=l.length;return l.some(fg)&&(s+=T1),i&&(s+=w1),l.filter(c=>!fg(c)).reduce((c,f)=>c+(b1.test(f)?S1:f===""?E1:x1),s)}function _1(n,i){return n.length===i.length&&n.slice(0,-1).every((s,c)=>s===i[c])?n[n.length-1]-i[i.length-1]:0}function C1(n,i,l=!1){let{routesMeta:s}=n,c={},f="/",d=[];for(let p=0;p<s.length;++p){let g=s[p],m=p===s.length-1,b=f==="/"?i:i.slice(f.length)||"/",y=Do({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},b),E=g.route;if(!y&&m&&l&&!s[s.length-1].route.index&&(y=Do({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!y)return null;Object.assign(c,y.params),d.push({params:c,pathname:ca([f,y.pathname]),pathnameBase:N1(ca([f,y.pathnameBase])),route:E}),y.pathnameBase!=="/"&&(f=ca([f,y.pathnameBase]))}return d}function Do(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[l,s]=A1(n.path,n.caseSensitive,n.end),c=i.match(l);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),p=c.slice(1);return{params:s.reduce((m,{paramName:b,isOptional:y},E)=>{if(b==="*"){let U=p[E]||"";d=f.slice(0,f.length-U.length).replace(/(.)\/+$/,"$1")}const M=p[E];return y&&!M?m[b]=void 0:m[b]=(M||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:d,pattern:n}}function A1(n,i=!1,l=!0){Nt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,g)=>(s.push({paramName:p,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),s]}function O1(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Nt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Vn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let l=i.endsWith("/")?i.length-1:i.length,s=n.charAt(l);return s&&s!=="/"?null:n.slice(l)||"/"}function M1({basename:n,pathname:i}){return i==="/"?n:ca([n,i])}var Ey=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zf=n=>Ey.test(n);function D1(n,i="/"){let{pathname:l,search:s="",hash:c=""}=typeof n=="string"?gi(n):n,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=dg(l.substring(1),"/"):f=dg(l,i)):f=i,{pathname:f,search:k1(s),hash:z1(c)}}function dg(n,i){let l=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?l.length>1&&l.pop():c!=="."&&l.push(c)}),l.length>1?l.join("/"):"/"}function Jc(n,i,l,s){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function xy(n){return n.filter((i,l)=>l===0||i.route.path&&i.route.path.length>0)}function Uf(n){let i=xy(n);return i.map((l,s)=>s===i.length-1?l.pathname:l.pathnameBase)}function Lf(n,i,l,s=!1){let c;typeof n=="string"?c=gi(n):(c={...n},je(!c.pathname||!c.pathname.includes("?"),Jc("?","pathname","search",c)),je(!c.pathname||!c.pathname.includes("#"),Jc("#","pathname","hash",c)),je(!c.search||!c.search.includes("#"),Jc("#","search","hash",c)));let f=n===""||c.pathname==="",d=f?"/":c.pathname,p;if(d==null)p=l;else{let y=i.length-1;if(!s&&d.startsWith("..")){let E=d.split("/");for(;E[0]==="..";)E.shift(),y-=1;c.pathname=E.join("/")}p=y>=0?i[y]:"/"}let g=D1(c,p),m=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&l.endsWith("/");return!g.pathname.endsWith("/")&&(m||b)&&(g.pathname+="/"),g}var ca=n=>n.join("/").replace(/\/\/+/g,"/"),N1=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),k1=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,z1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Pl=class{constructor(n,i,l,s=!1){this.status=n,this.statusText=i||"",this.internal=s,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function Kl(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Fl(n){return n.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ty=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ry(n,i){let l=n;if(typeof l!="string"||!Ey.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let s=l,c=!1;if(Ty)try{let f=new URL(window.location.href),d=l.startsWith("//")?new URL(f.protocol+l):new URL(l),p=Vn(d.pathname,i);d.origin===f.origin&&p!=null?l=p+d.search+d.hash:c=!0}catch{Nt(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:l}}var di=Symbol("Uninstrumented");function U1(n,i){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(c=>c({id:i.id,index:i.index,path:i.path,instrument(f){let d=Object.keys(l);for(let p of d)f[p]&&l[p].push(f[p])}}));let s={};if(typeof i.lazy=="function"&&l.lazy.length>0){let c=Nr(l.lazy,i.lazy,()=>{});c&&(s.lazy=c)}if(typeof i.lazy=="object"){let c=i.lazy;["middleware","loader","action"].forEach(f=>{let d=c[f],p=l[`lazy.${f}`];if(typeof d=="function"&&p.length>0){let g=Nr(p,d,()=>{});g&&(s.lazy=Object.assign(s.lazy||{},{[f]:g}))}})}return["loader","action"].forEach(c=>{let f=i[c];if(typeof f=="function"&&l[c].length>0){let d=f[di]??f,p=Nr(l[c],d,(...g)=>hg(g[0]));p&&(c==="loader"&&d.hydrate===!0&&(p.hydrate=!0),p[di]=d,s[c]=p)}}),i.middleware&&i.middleware.length>0&&l.middleware.length>0&&(s.middleware=i.middleware.map(c=>{let f=c[di]??c,d=Nr(l.middleware,f,(...p)=>hg(p[0]));return d?(d[di]=f,d):c})),s}function L1(n,i){let l={navigate:[],fetch:[]};if(i.forEach(s=>s({instrument(c){let f=Object.keys(c);for(let d of f)c[d]&&l[d].push(c[d])}})),l.navigate.length>0){let s=n.navigate[di]??n.navigate,c=Nr(l.navigate,s,(...f)=>{let[d,p]=f;return{to:typeof d=="number"||typeof d=="string"?d:d?fa(d):".",...mg(n,p??{})}});c&&(c[di]=s,n.navigate=c)}if(l.fetch.length>0){let s=n.fetch[di]??n.fetch,c=Nr(l.fetch,s,(...f)=>{let[d,,p,g]=f;return{href:p??".",fetcherKey:d,...mg(n,g??{})}});c&&(c[di]=s,n.fetch=c)}return n}function Nr(n,i,l){return n.length===0?null:async(...s)=>{let c=await _y(n,l(...s),()=>i(...s),n.length-1);if(c.type==="error")throw c.value;return c.value}}async function _y(n,i,l,s){let c=n[s],f;if(c){let d,p=async()=>(d?console.error("You cannot call instrumented handlers more than once"):d=_y(n,i,l,s-1),f=await d,je(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await c(p,i)}catch(g){console.error("An instrumentation function threw an error:",g)}d||await p(),await d}else try{f={type:"success",value:await l()}}catch(d){f={type:"error",value:d}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function hg(n){let{request:i,context:l,params:s,unstable_pattern:c}=n;return{request:j1(i),params:{...s},unstable_pattern:c,context:B1(l)}}function mg(n,i){return{currentUrl:fa(n.state.location),..."formMethod"in i?{formMethod:i.formMethod}:{},..."formEncType"in i?{formEncType:i.formEncType}:{},..."formData"in i?{formData:i.formData}:{},..."body"in i?{body:i.body}:{}}}function j1(n){return{method:n.method,url:n.url,headers:{get:(...i)=>n.headers.get(...i)}}}function B1(n){if(H1(n)){let i={...n};return Object.freeze(i),i}else return{get:i=>n.get(i)}}var q1=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function H1(n){if(n===null||typeof n!="object")return!1;const i=Object.getPrototypeOf(n);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===q1}var Cy=["POST","PUT","PATCH","DELETE"],Q1=new Set(Cy),V1=["GET",...Cy],Y1=new Set(V1),Ay=new Set([301,302,303,307,308]),G1=new Set([307,308]),Ic={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},K1={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Dl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},X1=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Oy="remix-router-transitions",My=Symbol("ResetLoaderData");function P1(n){const i=n.window?n.window:typeof window<"u"?window:void 0,l=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";je(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=n.hydrationRouteProperties||[],c=n.mapRouteProperties||X1,f=c;if(n.unstable_instrumentations){let S=n.unstable_instrumentations;f=_=>({...c(_),...U1(S.map(z=>z.route).filter(Boolean),_)})}let d={},p=Gl(n.routes,f,void 0,d),g,m=n.basename||"/";m.startsWith("/")||(m=`/${m}`);let b=n.dataStrategy||$1,y={...n.future},E=null,M=new Set,U=null,j=null,K=null,G=n.hydrationData!=null,J=ci(p,n.history.location,m),$=!1,ye=null,he;if(J==null&&!n.patchRoutesOnNavigation){let S=qn(404,{pathname:n.history.location.pathname}),{matches:_,route:z}=fo(p);he=!0,J=_,ye={[z.id]:S}}else if(J&&!n.hydrationData&&Et(J,p,n.history.location.pathname).active&&(J=null),J)if(J.some(S=>S.route.lazy))he=!1;else if(!J.some(S=>jf(S.route)))he=!0;else{let S=n.hydrationData?n.hydrationData.loaderData:null,_=n.hydrationData?n.hydrationData.errors:null;if(_){let z=J.findIndex(I=>_[I.route.id]!==void 0);he=J.slice(0,z+1).every(I=>!yf(I.route,S,_))}else he=J.every(z=>!yf(z.route,S,_))}else{he=!1,J=[];let S=Et(null,p,n.history.location.pathname);S.active&&S.matches&&($=!0,J=S.matches)}let me,C={historyAction:n.history.action,location:n.history.location,matches:J,initialized:he,navigation:Ic,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||ye,fetchers:new Map,blockers:new Map},Y="POP",oe=null,Ae=!1,Ce,Te=!1,Ue=new Map,Le=null,we=!1,A=!1,F=new Set,H=new Map,ge=0,ve=-1,x=new Map,Q=new Set,B=new Map,Z=new Map,te=new Set,ue=new Map,ce,Re=null;function Ve(){if(E=n.history.listen(({action:S,location:_,delta:z})=>{if(ce){ce(),ce=void 0;return}Nt(ue.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=ga({currentLocation:C.location,nextLocation:_,historyAction:S});if(I&&z!=null){let W=new Promise(pe=>{ce=pe});n.history.go(z*-1),Kn(I,{state:"blocked",location:_,proceed(){Kn(I,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),W.then(()=>n.history.go(z))},reset(){let pe=new Map(C.blockers);pe.set(I,Dl),Je({blockers:pe})}}),oe?.resolve(),oe=null;return}return an(S,_)}),l){gw(i,Ue);let S=()=>yw(i,Ue);i.addEventListener("pagehide",S),Le=()=>i.removeEventListener("pagehide",S)}return C.initialized||an("POP",C.location,{initialHydration:!0}),me}function Ht(){E&&E(),Le&&Le(),M.clear(),Ce&&Ce.abort(),C.fetchers.forEach((S,_)=>Cn(_)),C.blockers.forEach((S,_)=>pn(_))}function $t(S){return M.add(S),()=>M.delete(S)}function Je(S,_={}){S.matches&&(S.matches=S.matches.map(W=>{let pe=d[W.route.id],ae=W.route;return ae.element!==pe.element||ae.errorElement!==pe.errorElement||ae.hydrateFallbackElement!==pe.hydrateFallbackElement?{...W,route:pe}:W})),C={...C,...S};let z=[],I=[];C.fetchers.forEach((W,pe)=>{W.state==="idle"&&(te.has(pe)?z.push(pe):I.push(pe))}),te.forEach(W=>{!C.fetchers.has(W)&&!H.has(W)&&z.push(W)}),[...M].forEach(W=>W(C,{deletedFetchers:z,newErrors:S.errors??null,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),z.forEach(W=>Cn(W)),I.forEach(W=>C.fetchers.delete(W))}function Gn(S,_,{flushSync:z}={}){let I=C.actionData!=null&&C.navigation.formMethod!=null&&It(C.navigation.formMethod)&&C.navigation.state==="loading"&&S.state?._isRedirect!==!0,W;_.actionData?Object.keys(_.actionData).length>0?W=_.actionData:W=null:I?W=C.actionData:W=null;let pe=_.loaderData?Tg(C.loaderData,_.loaderData,_.matches||[],_.errors):C.loaderData,ae=C.blockers;ae.size>0&&(ae=new Map(ae),ae.forEach((Ee,be)=>ae.set(be,Dl)));let ne=we?!1:wt(S,_.matches||C.matches),ie=Ae===!0||C.navigation.formMethod!=null&&It(C.navigation.formMethod)&&S.state?._isRedirect!==!0;g&&(p=g,g=void 0),we||Y==="POP"||(Y==="PUSH"?n.history.push(S,S.state):Y==="REPLACE"&&n.history.replace(S,S.state));let de;if(Y==="POP"){let Ee=Ue.get(C.location.pathname);Ee&&Ee.has(S.pathname)?de={currentLocation:C.location,nextLocation:S}:Ue.has(S.pathname)&&(de={currentLocation:S,nextLocation:C.location})}else if(Te){let Ee=Ue.get(C.location.pathname);Ee?Ee.add(S.pathname):(Ee=new Set([S.pathname]),Ue.set(C.location.pathname,Ee)),de={currentLocation:C.location,nextLocation:S}}Je({..._,actionData:W,loaderData:pe,historyAction:Y,location:S,initialized:!0,navigation:Ic,revalidation:"idle",restoreScrollPosition:ne,preventScrollReset:ie,blockers:ae},{viewTransitionOpts:de,flushSync:z===!0}),Y="POP",Ae=!1,Te=!1,we=!1,A=!1,oe?.resolve(),oe=null,Re?.resolve(),Re=null}async function nn(S,_){if(oe?.resolve(),oe=null,typeof S=="number"){oe||(oe=Ag());let Ye=oe.promise;return n.history.go(S),Ye}let z=gf(C.location,C.matches,m,S,_?.fromRouteId,_?.relative),{path:I,submission:W,error:pe}=pg(!1,z,_),ae=C.location,ne=Yl(C.location,I,_&&_.state);ne={...ne,...n.history.encodeLocation(ne)};let ie=_&&_.replace!=null?_.replace:void 0,de="PUSH";ie===!0?de="REPLACE":ie===!1||W!=null&&It(W.formMethod)&&W.formAction===C.location.pathname+C.location.search&&(de="REPLACE");let Ee=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,be=(_&&_.flushSync)===!0,Ze=ga({currentLocation:ae,nextLocation:ne,historyAction:de});if(Ze){Kn(Ze,{state:"blocked",location:ne,proceed(){Kn(Ze,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),nn(S,_)},reset(){let Ye=new Map(C.blockers);Ye.set(Ze,Dl),Je({blockers:Ye})}});return}await an(de,ne,{submission:W,pendingError:pe,preventScrollReset:Ee,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:be,callSiteDefaultShouldRevalidate:_&&_.unstable_defaultShouldRevalidate})}function vi(){Re||(Re=Ag()),qa(),Je({revalidation:"loading"});let S=Re.promise;return C.navigation.state==="submitting"?S:C.navigation.state==="idle"?(an(C.historyAction,C.location,{startUninterruptedRevalidation:!0}),S):(an(Y||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:Te===!0}),S)}async function an(S,_,z){Ce&&Ce.abort(),Ce=null,Y=S,we=(z&&z.startUninterruptedRevalidation)===!0,st(C.location,C.matches),Ae=(z&&z.preventScrollReset)===!0,Te=(z&&z.enableViewTransition)===!0;let I=g||p,W=z&&z.overrideNavigation,pe=z?.initialHydration&&C.matches&&C.matches.length>0&&!$?C.matches:ci(I,_,m),ae=(z&&z.flushSync)===!0;if(pe&&C.initialized&&!A&&lw(C.location,_)&&!(z&&z.submission&&It(z.submission.formMethod))){Gn(_,{matches:pe},{flushSync:ae});return}let ne=Et(pe,I,_.pathname);if(ne.active&&ne.matches&&(pe=ne.matches),!pe){let{error:yt,notFoundMatches:vt,route:Ge}=Xn(_.pathname);Gn(_,{matches:vt,loaderData:{},errors:{[Ge.id]:yt}},{flushSync:ae});return}Ce=new AbortController;let ie=Dr(n.history,_,Ce.signal,z&&z.submission),de=n.getContext?await n.getContext():new ug,Ee;if(z&&z.pendingError)Ee=[fi(pe).route.id,{type:"error",error:z.pendingError}];else if(z&&z.submission&&It(z.submission.formMethod)){let yt=await ha(ie,_,z.submission,pe,de,ne.active,z&&z.initialHydration===!0,{replace:z.replace,flushSync:ae});if(yt.shortCircuited)return;if(yt.pendingActionResult){let[vt,Ge]=yt.pendingActionResult;if(Rn(Ge)&&Kl(Ge.error)&&Ge.error.status===404){Ce=null,Gn(_,{matches:yt.matches,loaderData:{},errors:{[vt]:Ge.error}});return}}pe=yt.matches||pe,Ee=yt.pendingActionResult,W=$c(_,z.submission),ae=!1,ne.active=!1,ie=Dr(n.history,ie.url,ie.signal)}let{shortCircuited:be,matches:Ze,loaderData:Ye,errors:pt}=await bi(ie,_,pe,de,ne.active,W,z&&z.submission,z&&z.fetcherSubmission,z&&z.replace,z&&z.initialHydration===!0,ae,Ee,z&&z.callSiteDefaultShouldRevalidate);be||(Ce=null,Gn(_,{matches:Ze||pe,...Rg(Ee),loaderData:Ye,errors:pt}))}async function ha(S,_,z,I,W,pe,ae,ne={}){qa();let ie=mw(_,z);if(Je({navigation:ie},{flushSync:ne.flushSync===!0}),pe){let be=await gn(I,_.pathname,S.signal);if(be.type==="aborted")return{shortCircuited:!0};if(be.type==="error"){if(be.partialMatches.length===0){let{matches:Ye,route:pt}=fo(p);return{matches:Ye,pendingActionResult:[pt.id,{type:"error",error:be.error}]}}let Ze=fi(be.partialMatches).route.id;return{matches:be.partialMatches,pendingActionResult:[Ze,{type:"error",error:be.error}]}}else if(be.matches)I=be.matches;else{let{notFoundMatches:Ze,error:Ye,route:pt}=Xn(_.pathname);return{matches:Ze,pendingActionResult:[pt.id,{type:"error",error:Ye}]}}}let de,Ee=So(I,_);if(!Ee.route.action&&!Ee.route.lazy)de={type:"error",error:qn(405,{method:S.method,pathname:_.pathname,routeId:Ee.route.id})};else{let be=kr(f,d,S,I,Ee,ae?[]:s,W),Ze=await ma(S,be,W,null);if(de=Ze[Ee.route.id],!de){for(let Ye of I)if(Ze[Ye.route.id]){de=Ze[Ye.route.id];break}}if(S.signal.aborted)return{shortCircuited:!0}}if(Gi(de)){let be;return ne&&ne.replace!=null?be=ne.replace:be=wg(de.response.headers.get("Location"),new URL(S.url),m,n.history)===C.location.pathname+C.location.search,await mt(S,de,!0,{submission:z,replace:be}),{shortCircuited:!0}}if(Rn(de)){let be=fi(I,Ee.route.id);return(ne&&ne.replace)!==!0&&(Y="PUSH"),{matches:I,pendingActionResult:[be.route.id,de,Ee.route.id]}}return{matches:I,pendingActionResult:[Ee.route.id,de]}}async function bi(S,_,z,I,W,pe,ae,ne,ie,de,Ee,be,Ze){let Ye=pe||$c(_,ae),pt=ae||ne||Cg(Ye),yt=!we&&!de;if(W){if(yt){let xt=Ft(be);Je({navigation:Ye,...xt!==void 0?{actionData:xt}:{}},{flushSync:Ee})}let Ke=await gn(z,_.pathname,S.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){if(Ke.partialMatches.length===0){let{matches:Zn,route:Yt}=fo(p);return{matches:Zn,loaderData:{},errors:{[Yt.id]:Ke.error}}}let xt=fi(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[xt]:Ke.error}}}else if(Ke.matches)z=Ke.matches;else{let{error:xt,notFoundMatches:Zn,route:Yt}=Xn(_.pathname);return{matches:Zn,loaderData:{},errors:{[Yt.id]:xt}}}}let vt=g||p,{dsMatches:Ge,revalidatingFetchers:jt}=gg(S,I,f,d,n.history,C,z,pt,_,de?[]:s,de===!0,A,F,te,B,Q,vt,m,n.patchRoutesOnNavigation!=null,be,Ze);if(ve=++ge,!n.dataStrategy&&!Ge.some(Ke=>Ke.shouldLoad)&&!Ge.some(Ke=>Ke.route.middleware&&Ke.route.middleware.length>0)&&jt.length===0){let Ke=kt();return Gn(_,{matches:z,loaderData:{},errors:be&&Rn(be[1])?{[be[0]]:be[1].error}:null,...Rg(be),...Ke?{fetchers:new Map(C.fetchers)}:{}},{flushSync:Ee}),{shortCircuited:!0}}if(yt){let Ke={};if(!W){Ke.navigation=Ye;let xt=Ft(be);xt!==void 0&&(Ke.actionData=xt)}jt.length>0&&(Ke.fetchers=Si(jt)),Je(Ke,{flushSync:Ee})}jt.forEach(Ke=>{ut(Ke.key),Ke.controller&&H.set(Ke.key,Ke.controller)});let ln=()=>jt.forEach(Ke=>ut(Ke.key));Ce&&Ce.signal.addEventListener("abort",ln);let{loaderResults:dt,fetcherResults:Pn}=await aa(Ge,jt,S,I);if(S.signal.aborted)return{shortCircuited:!0};Ce&&Ce.signal.removeEventListener("abort",ln),jt.forEach(Ke=>H.delete(Ke.key));let yn=ho(dt);if(yn)return await mt(S,yn.result,!0,{replace:ie}),{shortCircuited:!0};if(yn=ho(Pn),yn)return Q.add(yn.key),await mt(S,yn.result,!0,{replace:ie}),{shortCircuited:!0};let{loaderData:Fn,errors:On}=xg(C,z,dt,be,jt,Pn);de&&C.errors&&(On={...C.errors,...On});let va=kt(),xi=Ji(ve),Ti=va||xi||jt.length>0;return{matches:z,loaderData:Fn,errors:On,...Ti?{fetchers:new Map(C.fetchers)}:{}}}function Ft(S){if(S&&!Rn(S[1]))return{[S[0]]:S[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Si(S){return S.forEach(_=>{let z=C.fetchers.get(_.key),I=Nl(void 0,z?z.data:void 0);C.fetchers.set(_.key,I)}),new Map(C.fetchers)}async function wi(S,_,z,I){ut(S);let W=(I&&I.flushSync)===!0,pe=g||p,ae=gf(C.location,C.matches,m,z,_,I?.relative),ne=ci(pe,ae,m),ie=Et(ne,pe,ae);if(ie.active&&ie.matches&&(ne=ie.matches),!ne){Wt(S,_,qn(404,{pathname:ae}),{flushSync:W});return}let{path:de,submission:Ee,error:be}=pg(!0,ae,I);if(be){Wt(S,_,be,{flushSync:W});return}let Ze=n.getContext?await n.getContext():new ug,Ye=(I&&I.preventScrollReset)===!0;if(Ee&&It(Ee.formMethod)){await Qt(S,_,de,ne,Ze,ie.active,W,Ye,Ee,I&&I.unstable_defaultShouldRevalidate);return}B.set(S,{routeId:_,path:de}),await na(S,_,de,ne,Ze,ie.active,W,Ye,Ee)}async function Qt(S,_,z,I,W,pe,ae,ne,ie,de){qa(),B.delete(S);let Ee=C.fetchers.get(S);Vt(S,pw(ie,Ee),{flushSync:ae});let be=new AbortController,Ze=Dr(n.history,z,be.signal,ie);if(pe){let Xe=await gn(I,new URL(Ze.url).pathname,Ze.signal,S);if(Xe.type==="aborted")return;if(Xe.type==="error"){Wt(S,_,Xe.error,{flushSync:ae});return}else if(Xe.matches)I=Xe.matches;else{Wt(S,_,qn(404,{pathname:z}),{flushSync:ae});return}}let Ye=So(I,z);if(!Ye.route.action&&!Ye.route.lazy){let Xe=qn(405,{method:ie.formMethod,pathname:z,routeId:_});Wt(S,_,Xe,{flushSync:ae});return}H.set(S,be);let pt=ge,yt=kr(f,d,Ze,I,Ye,s,W),vt=await ma(Ze,yt,W,S),Ge=vt[Ye.route.id];if(!Ge){for(let Xe of yt)if(vt[Xe.route.id]){Ge=vt[Xe.route.id];break}}if(Ze.signal.aborted){H.get(S)===be&&H.delete(S);return}if(te.has(S)){if(Gi(Ge)||Rn(Ge)){Vt(S,ja(void 0));return}}else{if(Gi(Ge))if(H.delete(S),ve>pt){Vt(S,ja(void 0));return}else return Q.add(S),Vt(S,Nl(ie)),mt(Ze,Ge,!1,{fetcherSubmission:ie,preventScrollReset:ne});if(Rn(Ge)){Wt(S,_,Ge.error);return}}let jt=C.navigation.location||C.location,ln=Dr(n.history,jt,be.signal),dt=g||p,Pn=C.navigation.state!=="idle"?ci(dt,C.navigation.location,m):C.matches;je(Pn,"Didn't find any matches after fetcher action");let yn=++ge;x.set(S,yn);let Fn=Nl(ie,Ge.data);C.fetchers.set(S,Fn);let{dsMatches:On,revalidatingFetchers:va}=gg(ln,W,f,d,n.history,C,Pn,ie,jt,s,!1,A,F,te,B,Q,dt,m,n.patchRoutesOnNavigation!=null,[Ye.route.id,Ge],de);va.filter(Xe=>Xe.key!==S).forEach(Xe=>{let Ri=Xe.key,$l=C.fetchers.get(Ri),Qr=Nl(void 0,$l?$l.data:void 0);C.fetchers.set(Ri,Qr),ut(Ri),Xe.controller&&H.set(Ri,Xe.controller)}),Je({fetchers:new Map(C.fetchers)});let xi=()=>va.forEach(Xe=>ut(Xe.key));be.signal.addEventListener("abort",xi);let{loaderResults:Ti,fetcherResults:Ke}=await aa(On,va,ln,W);if(be.signal.aborted)return;if(be.signal.removeEventListener("abort",xi),x.delete(S),H.delete(S),va.forEach(Xe=>H.delete(Xe.key)),C.fetchers.has(S)){let Xe=ja(Ge.data);C.fetchers.set(S,Xe)}let xt=ho(Ti);if(xt)return mt(ln,xt.result,!1,{preventScrollReset:ne});if(xt=ho(Ke),xt)return Q.add(xt.key),mt(ln,xt.result,!1,{preventScrollReset:ne});let{loaderData:Zn,errors:Yt}=xg(C,Pn,Ti,void 0,va,Ke);Ji(yn),C.navigation.state==="loading"&&yn>ve?(je(Y,"Expected pending action"),Ce&&Ce.abort(),Gn(C.navigation.location,{matches:Pn,loaderData:Zn,errors:Yt,fetchers:new Map(C.fetchers)})):(Je({errors:Yt,loaderData:Tg(C.loaderData,Zn,Pn,Yt),fetchers:new Map(C.fetchers)}),A=!1)}async function na(S,_,z,I,W,pe,ae,ne,ie){let de=C.fetchers.get(S);Vt(S,Nl(ie,de?de.data:void 0),{flushSync:ae});let Ee=new AbortController,be=Dr(n.history,z,Ee.signal);if(pe){let Ge=await gn(I,new URL(be.url).pathname,be.signal,S);if(Ge.type==="aborted")return;if(Ge.type==="error"){Wt(S,_,Ge.error,{flushSync:ae});return}else if(Ge.matches)I=Ge.matches;else{Wt(S,_,qn(404,{pathname:z}),{flushSync:ae});return}}let Ze=So(I,z);H.set(S,Ee);let Ye=ge,pt=kr(f,d,be,I,Ze,s,W),vt=(await ma(be,pt,W,S))[Ze.route.id];if(H.get(S)===Ee&&H.delete(S),!be.signal.aborted){if(te.has(S)){Vt(S,ja(void 0));return}if(Gi(vt))if(ve>Ye){Vt(S,ja(void 0));return}else{Q.add(S),await mt(be,vt,!1,{preventScrollReset:ne});return}if(Rn(vt)){Wt(S,_,vt.error);return}Vt(S,ja(vt.data))}}async function mt(S,_,z,{submission:I,fetcherSubmission:W,preventScrollReset:pe,replace:ae}={}){z||(oe?.resolve(),oe=null),_.response.headers.has("X-Remix-Revalidate")&&(A=!0);let ne=_.response.headers.get("Location");je(ne,"Expected a Location header on the redirect Response"),ne=wg(ne,new URL(S.url),m,n.history);let ie=Yl(C.location,ne,{_isRedirect:!0});if(l){let pt=!1;if(_.response.headers.has("X-Remix-Reload-Document"))pt=!0;else if(zf(ne)){const yt=by(ne,!0);pt=yt.origin!==i.location.origin||Vn(yt.pathname,m)==null}if(pt){ae?i.location.replace(ne):i.location.assign(ne);return}}Ce=null;let de=ae===!0||_.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ee,formAction:be,formEncType:Ze}=C.navigation;!I&&!W&&Ee&&be&&Ze&&(I=Cg(C.navigation));let Ye=I||W;if(G1.has(_.response.status)&&Ye&&It(Ye.formMethod))await an(de,ie,{submission:{...Ye,formAction:ne},preventScrollReset:pe||Ae,enableViewTransition:z?Te:void 0});else{let pt=$c(ie,I);await an(de,ie,{overrideNavigation:pt,fetcherSubmission:W,preventScrollReset:pe||Ae,enableViewTransition:z?Te:void 0})}}async function ma(S,_,z,I){let W,pe={};try{W=await ew(b,S,_,I,z,!1)}catch(ae){return _.filter(ne=>ne.shouldLoad).forEach(ne=>{pe[ne.route.id]={type:"error",error:ae}}),pe}if(S.signal.aborted)return pe;if(!It(S.method))for(let ae of _){if(W[ae.route.id]?.type==="error")break;!W.hasOwnProperty(ae.route.id)&&!C.loaderData.hasOwnProperty(ae.route.id)&&(!C.errors||!C.errors.hasOwnProperty(ae.route.id))&&ae.shouldCallHandler()&&(W[ae.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ae.route.id}`)})}for(let[ae,ne]of Object.entries(W))if(cw(ne)){let ie=ne.result;pe[ae]={type:"redirect",response:iw(ie,S,ae,_,m)}}else pe[ae]=await aw(ne);return pe}async function aa(S,_,z,I){let W=ma(z,S,I,null),pe=Promise.all(_.map(async ie=>{if(ie.matches&&ie.match&&ie.request&&ie.controller){let Ee=(await ma(ie.request,ie.matches,I,ie.key))[ie.match.route.id];return{[ie.key]:Ee}}else return Promise.resolve({[ie.key]:{type:"error",error:qn(404,{pathname:ie.path})}})})),ae=await W,ne=(await pe).reduce((ie,de)=>Object.assign(ie,de),{});return{loaderResults:ae,fetcherResults:ne}}function qa(){A=!0,B.forEach((S,_)=>{H.has(_)&&F.add(_),ut(_)})}function Vt(S,_,z={}){C.fetchers.set(S,_),Je({fetchers:new Map(C.fetchers)},{flushSync:(z&&z.flushSync)===!0})}function Wt(S,_,z,I={}){let W=fi(C.matches,_);Cn(S),Je({errors:{[W.route.id]:z},fetchers:new Map(C.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function _n(S){return Z.set(S,(Z.get(S)||0)+1),te.has(S)&&te.delete(S),C.fetchers.get(S)||K1}function Zi(S,_){ut(S,_?.reason),Vt(S,ja(null))}function Cn(S){let _=C.fetchers.get(S);H.has(S)&&!(_&&_.state==="loading"&&x.has(S))&&ut(S),B.delete(S),x.delete(S),Q.delete(S),te.delete(S),F.delete(S),C.fetchers.delete(S)}function pa(S){let _=(Z.get(S)||0)-1;_<=0?(Z.delete(S),te.add(S)):Z.set(S,_),Je({fetchers:new Map(C.fetchers)})}function ut(S,_){let z=H.get(S);z&&(z.abort(_),H.delete(S))}function rn(S){for(let _ of S){let z=_n(_),I=ja(z.data);C.fetchers.set(_,I)}}function kt(){let S=[],_=!1;for(let z of Q){let I=C.fetchers.get(z);je(I,`Expected fetcher: ${z}`),I.state==="loading"&&(Q.delete(z),S.push(z),_=!0)}return rn(S),_}function Ji(S){let _=[];for(let[z,I]of x)if(I<S){let W=C.fetchers.get(z);je(W,`Expected fetcher: ${z}`),W.state==="loading"&&(ut(z),x.delete(z),_.push(z))}return rn(_),_.length>0}function Ei(S,_){let z=C.blockers.get(S)||Dl;return ue.get(S)!==_&&ue.set(S,_),z}function pn(S){C.blockers.delete(S),ue.delete(S)}function Kn(S,_){let z=C.blockers.get(S)||Dl;je(z.state==="unblocked"&&_.state==="blocked"||z.state==="blocked"&&_.state==="blocked"||z.state==="blocked"&&_.state==="proceeding"||z.state==="blocked"&&_.state==="unblocked"||z.state==="proceeding"&&_.state==="unblocked",`Invalid blocker state transition: ${z.state} -> ${_.state}`);let I=new Map(C.blockers);I.set(S,_),Je({blockers:I})}function ga({currentLocation:S,nextLocation:_,historyAction:z}){if(ue.size===0)return;ue.size>1&&Nt(!1,"A router only supports one blocker at a time");let I=Array.from(ue.entries()),[W,pe]=I[I.length-1],ae=C.blockers.get(W);if(!(ae&&ae.state==="proceeding")&&pe({currentLocation:S,nextLocation:_,historyAction:z}))return W}function Xn(S){let _=qn(404,{pathname:S}),z=g||p,{matches:I,route:W}=fo(z);return{notFoundMatches:I,route:W,error:_}}function An(S,_,z){if(U=S,K=_,j=z||null,!G&&C.navigation===Ic){G=!0;let I=wt(C.location,C.matches);I!=null&&Je({restoreScrollPosition:I})}return()=>{U=null,K=null,j=null}}function _e(S,_){return j&&j(S,_.map(I=>y1(I,C.loaderData)))||S.key}function st(S,_){if(U&&K){let z=_e(S,_);U[z]=K()}}function wt(S,_){if(U){let z=_e(S,_),I=U[z];if(typeof I=="number")return I}return null}function Et(S,_,z){if(n.patchRoutesOnNavigation)if(S){if(Object.keys(S[0].params).length>0)return{active:!0,matches:Bl(_,z,m,!0)}}else return{active:!0,matches:Bl(_,z,m,!0)||[]};return{active:!1,matches:null}}async function gn(S,_,z,I){if(!n.patchRoutesOnNavigation)return{type:"success",matches:S};let W=S;for(;;){let pe=g==null,ae=g||p,ne=d;try{await n.patchRoutesOnNavigation({signal:z,path:_,matches:W,fetcherKey:I,patch:(Ee,be)=>{z.aborted||yg(Ee,be,ae,ne,f,!1)}})}catch(Ee){return{type:"error",error:Ee,partialMatches:W}}finally{pe&&!z.aborted&&(p=[...p])}if(z.aborted)return{type:"aborted"};let ie=ci(ae,_,m),de=null;if(ie){if(Object.keys(ie[0].params).length===0)return{type:"success",matches:ie};if(de=Bl(ae,_,m,!0),!(de&&W.length<de.length&&ot(W,de.slice(0,W.length))))return{type:"success",matches:ie}}if(de||(de=Bl(ae,_,m,!0)),!de||ot(W,de))return{type:"success",matches:null};W=de}}function ot(S,_){return S.length===_.length&&S.every((z,I)=>z.route.id===_[I].route.id)}function Zt(S){d={},g=Gl(S,f,void 0,d)}function ya(S,_,z=!1){let I=g==null;yg(S,_,g||p,d,f,z),I&&(p=[...p],Je({}))}return me={get basename(){return m},get future(){return y},get state(){return C},get routes(){return p},get window(){return i},initialize:Ve,subscribe:$t,enableScrollRestoration:An,navigate:nn,fetch:wi,revalidate:vi,createHref:S=>n.history.createHref(S),encodeLocation:S=>n.history.encodeLocation(S),getFetcher:_n,resetFetcher:Zi,deleteFetcher:pa,dispose:Ht,getBlocker:Ei,deleteBlocker:pn,patchRoutes:ya,_internalFetchControllers:H,_internalSetRoutes:Zt,_internalSetStateDoNotUseOrYouWillBreakYourApp(S){Je(S)}},n.unstable_instrumentations&&(me=L1(me,n.unstable_instrumentations.map(S=>S.router).filter(Boolean))),me}function F1(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function gf(n,i,l,s,c,f){let d,p;if(c){d=[];for(let m of i)if(d.push(m),m.route.id===c){p=m;break}}else d=i,p=i[i.length-1];let g=Lf(s||".",Uf(d),Vn(n.pathname,l)||n.pathname,f==="path");if(s==null&&(g.search=n.search,g.hash=n.hash),(s==null||s===""||s===".")&&p){let m=qf(g.search);if(p.route.index&&!m)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!p.route.index&&m){let b=new URLSearchParams(g.search),y=b.getAll("index");b.delete("index"),y.filter(M=>M).forEach(M=>b.append("index",M));let E=b.toString();g.search=E?`?${E}`:""}}return l!=="/"&&(g.pathname=M1({basename:l,pathname:g.pathname})),fa(g)}function pg(n,i,l){if(!l||!F1(l))return{path:i};if(l.formMethod&&!hw(l.formMethod))return{path:i,error:qn(405,{method:l.formMethod})};let s=()=>({path:i,error:qn(400,{type:"invalid-body"})}),f=(l.formMethod||"get").toUpperCase(),d=Ly(i);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!It(f))return s();let y=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((E,[M,U])=>`${E}${M}=${U}
11
- `,""):String(l.body);return{path:i,submission:{formMethod:f,formAction:d,formEncType:l.formEncType,formData:void 0,json:void 0,text:y}}}else if(l.formEncType==="application/json"){if(!It(f))return s();try{let y=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:i,submission:{formMethod:f,formAction:d,formEncType:l.formEncType,formData:void 0,json:y,text:void 0}}}catch{return s()}}}je(typeof FormData=="function","FormData is not available in this environment");let p,g;if(l.formData)p=bf(l.formData),g=l.formData;else if(l.body instanceof FormData)p=bf(l.body),g=l.body;else if(l.body instanceof URLSearchParams)p=l.body,g=Eg(p);else if(l.body==null)p=new URLSearchParams,g=new FormData;else try{p=new URLSearchParams(l.body),g=Eg(p)}catch{return s()}let m={formMethod:f,formAction:d,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(It(m.formMethod))return{path:i,submission:m};let b=gi(i);return n&&b.search&&qf(b.search)&&p.append("index",""),b.search=`?${p}`,{path:fa(b),submission:m}}function gg(n,i,l,s,c,f,d,p,g,m,b,y,E,M,U,j,K,G,J,$,ye){let he=$?Rn($[1])?$[1].error:$[1].data:void 0,me=c.createURL(f.location),C=c.createURL(g),Y;if(b&&f.errors){let we=Object.keys(f.errors)[0];Y=d.findIndex(A=>A.route.id===we)}else if($&&Rn($[1])){let we=$[0];Y=d.findIndex(A=>A.route.id===we)-1}let oe=$?$[1].statusCode:void 0,Ae=oe&&oe>=400,Ce={currentUrl:me,currentParams:f.matches[0]?.params||{},nextUrl:C,nextParams:d[0].params,...p,actionResult:he,actionStatus:oe},Te=Fl(d),Ue=d.map((we,A)=>{let{route:F}=we,H=null;if(Y!=null&&A>Y?H=!1:F.lazy?H=!0:jf(F)?b?H=yf(F,f.loaderData,f.errors):Z1(f.loaderData,f.matches[A],we)&&(H=!0):H=!1,H!==null)return vf(l,s,n,Te,we,m,i,H);let ge=!1;typeof ye=="boolean"?ge=ye:Ae?ge=!1:(y||me.pathname+me.search===C.pathname+C.search||me.search!==C.search||J1(f.matches[A],we))&&(ge=!0);let ve={...Ce,defaultShouldRevalidate:ge},x=Ql(we,ve);return vf(l,s,n,Te,we,m,i,x,ve,ye)}),Le=[];return U.forEach((we,A)=>{if(b||!d.some(Z=>Z.route.id===we.routeId)||M.has(A))return;let F=f.fetchers.get(A),H=F&&F.state!=="idle"&&F.data===void 0,ge=ci(K,we.path,G);if(!ge){if(J&&H)return;Le.push({key:A,routeId:we.routeId,path:we.path,matches:null,match:null,request:null,controller:null});return}if(j.has(A))return;let ve=So(ge,we.path),x=new AbortController,Q=Dr(c,we.path,x.signal),B=null;if(E.has(A))E.delete(A),B=kr(l,s,Q,ge,ve,m,i);else if(H)y&&(B=kr(l,s,Q,ge,ve,m,i));else{let Z;typeof ye=="boolean"?Z=ye:Ae?Z=!1:Z=y;let te={...Ce,defaultShouldRevalidate:Z};Ql(ve,te)&&(B=kr(l,s,Q,ge,ve,m,i,te))}B&&Le.push({key:A,routeId:we.routeId,path:we.path,matches:B,match:ve,request:Q,controller:x})}),{dsMatches:Ue,revalidatingFetchers:Le}}function jf(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function yf(n,i,l){if(n.lazy)return!0;if(!jf(n))return!1;let s=i!=null&&n.id in i,c=l!=null&&l[n.id]!==void 0;return!s&&c?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!s&&!c}function Z1(n,i,l){let s=!i||l.route.id!==i.route.id,c=!n.hasOwnProperty(l.route.id);return s||c}function J1(n,i){let l=n.route.path;return n.pathname!==i.pathname||l!=null&&l.endsWith("*")&&n.params["*"]!==i.params["*"]}function Ql(n,i){if(n.route.shouldRevalidate){let l=n.route.shouldRevalidate(i);if(typeof l=="boolean")return l}return i.defaultShouldRevalidate}function yg(n,i,l,s,c,f){let d;if(n){let m=s[n];je(m,`No route found to patch children into: routeId = ${n}`),m.children||(m.children=[]),d=m.children}else d=l;let p=[],g=[];if(i.forEach(m=>{let b=d.find(y=>Dy(m,y));b?g.push({existingRoute:b,newRoute:m}):p.push(m)}),p.length>0){let m=Gl(p,c,[n||"_","patch",String(d?.length||"0")],s);d.push(...m)}if(f&&g.length>0)for(let m=0;m<g.length;m++){let{existingRoute:b,newRoute:y}=g[m],E=b,[M]=Gl([y],c,[],{},!0);Object.assign(E,{element:M.element?M.element:E.element,errorElement:M.errorElement?M.errorElement:E.errorElement,hydrateFallbackElement:M.hydrateFallbackElement?M.hydrateFallbackElement:E.hydrateFallbackElement})}}function Dy(n,i){return"id"in n&&"id"in i&&n.id===i.id?!0:n.index===i.index&&n.path===i.path&&n.caseSensitive===i.caseSensitive?(!n.children||n.children.length===0)&&(!i.children||i.children.length===0)?!0:n.children.every((l,s)=>i.children?.some(c=>Dy(l,c))):!1}var vg=new WeakMap,Ny=({key:n,route:i,manifest:l,mapRouteProperties:s})=>{let c=l[i.id];if(je(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let f=c.lazy[n];if(!f)return;let d=vg.get(c);d||(d={},vg.set(c,d));let p=d[n];if(p)return p;let g=(async()=>{let m=h1(n),y=c[n]!==void 0&&n!=="hasErrorBoundary";if(m)Nt(!m,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),d[n]=Promise.resolve();else if(y)Nt(!1,`Route "${c.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let E=await f();E!=null&&(Object.assign(c,{[n]:E}),Object.assign(c,s(c)))}typeof c.lazy=="object"&&(c.lazy[n]=void 0,Object.values(c.lazy).every(E=>E===void 0)&&(c.lazy=void 0))})();return d[n]=g,g},bg=new WeakMap;function I1(n,i,l,s,c){let f=l[n.id];if(je(f,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let b=bg.get(f);if(b)return{lazyRoutePromise:b,lazyHandlerPromise:b};let y=(async()=>{je(typeof n.lazy=="function","No lazy route function found");let E=await n.lazy(),M={};for(let U in E){let j=E[U];if(j===void 0)continue;let K=p1(U),J=f[U]!==void 0&&U!=="hasErrorBoundary";K?Nt(!K,"Route property "+U+" is not a supported property to be returned from a lazy route function. This property will be ignored."):J?Nt(!J,`Route "${f.id}" has a static property "${U}" defined but its lazy function is also returning a value for this property. The lazy route property "${U}" will be ignored.`):M[U]=j}Object.assign(f,M),Object.assign(f,{...s(f),lazy:void 0})})();return bg.set(f,y),y.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:y}}let d=Object.keys(n.lazy),p=[],g;for(let b of d){if(c&&c.includes(b))continue;let y=Ny({key:b,route:n,manifest:l,mapRouteProperties:s});y&&(p.push(y),b===i&&(g=y))}let m=p.length>0?Promise.all(p).then(()=>{}):void 0;return m?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:g}}async function Sg(n){let i=n.matches.filter(c=>c.shouldLoad),l={};return(await Promise.all(i.map(c=>c.resolve()))).forEach((c,f)=>{l[i[f].route.id]=c}),l}async function $1(n){return n.matches.some(i=>i.route.middleware)?ky(n,()=>Sg(n)):Sg(n)}function ky(n,i){return W1(n,i,s=>{if(dw(s))throw s;return s},ow,l);function l(s,c,f){if(f)return Promise.resolve(Object.assign(f.value,{[c]:{type:"error",result:s}}));{let{matches:d}=n,p=Math.min(Math.max(d.findIndex(m=>m.route.id===c),0),Math.max(d.findIndex(m=>m.shouldCallHandler()),0)),g=fi(d,d[p].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:s}})}}}async function W1(n,i,l,s,c){let{matches:f,request:d,params:p,context:g,unstable_pattern:m}=n,b=f.flatMap(E=>E.route.middleware?E.route.middleware.map(M=>[E.route.id,M]):[]);return await zy({request:d,params:p,context:g,unstable_pattern:m},b,i,l,s,c)}async function zy(n,i,l,s,c,f,d=0){let{request:p}=n;if(p.signal.aborted)throw p.signal.reason??new Error(`Request aborted: ${p.method} ${p.url}`);let g=i[d];if(!g)return await l();let[m,b]=g,y,E=async()=>{if(y)throw new Error("You may only call `next()` once per middleware");try{return y={value:await zy(n,i,l,s,c,f,d+1)},y.value}catch(M){return y={value:await f(M,m,y)},y.value}};try{let M=await b(n,E),U=M!=null?s(M):void 0;return c(U)?U:y?U??y.value:(y={value:await E()},y.value)}catch(M){return await f(M,m,y)}}function Uy(n,i,l,s,c){let f=Ny({key:"middleware",route:s.route,manifest:i,mapRouteProperties:n}),d=I1(s.route,It(l.method)?"action":"loader",i,n,c);return{middleware:f,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function vf(n,i,l,s,c,f,d,p,g=null,m){let b=!1,y=Uy(n,i,l,c,f);return{...c,_lazyPromises:y,shouldLoad:p,shouldRevalidateArgs:g,shouldCallHandler(E){return b=!0,g?typeof m=="boolean"?Ql(c,{...g,defaultShouldRevalidate:m}):typeof E=="boolean"?Ql(c,{...g,defaultShouldRevalidate:E}):Ql(c,g):p},resolve(E){let{lazy:M,loader:U,middleware:j}=c.route,K=b||p||E&&!It(l.method)&&(M||U),G=j&&j.length>0&&!U&&!M;return K&&(It(l.method)||!G)?tw({request:l,unstable_pattern:s,match:c,lazyHandlerPromise:y?.handler,lazyRoutePromise:y?.route,handlerOverride:E,scopedContext:d}):Promise.resolve({type:"data",result:void 0})}}}function kr(n,i,l,s,c,f,d,p=null){return s.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:p,shouldCallHandler:()=>!1,_lazyPromises:Uy(n,i,l,g,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:vf(n,i,l,Fl(s),g,f,d,!0,p))}async function ew(n,i,l,s,c,f){l.some(m=>m._lazyPromises?.middleware)&&await Promise.all(l.map(m=>m._lazyPromises?.middleware));let d={request:i,unstable_pattern:Fl(l),params:l[0].params,context:c,matches:l},g=await n({...d,fetcherKey:s,runClientMiddleware:m=>{let b=d;return ky(b,()=>m({...b,fetcherKey:s,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return g}async function tw({request:n,unstable_pattern:i,match:l,lazyHandlerPromise:s,lazyRoutePromise:c,handlerOverride:f,scopedContext:d}){let p,g,m=It(n.method),b=m?"action":"loader",y=E=>{let M,U=new Promise((G,J)=>M=J);g=()=>M(),n.signal.addEventListener("abort",g);let j=G=>typeof E!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${b}" [routeId: ${l.route.id}]`)):E({request:n,unstable_pattern:i,params:l.params,context:d},...G!==void 0?[G]:[]),K=(async()=>{try{return{type:"data",result:await(f?f(J=>j(J)):j())}}catch(G){return{type:"error",result:G}}})();return Promise.race([K,U])};try{let E=m?l.route.action:l.route.loader;if(s||c)if(E){let M,[U]=await Promise.all([y(E).catch(j=>{M=j}),s,c]);if(M!==void 0)throw M;p=U}else{await s;let M=m?l.route.action:l.route.loader;if(M)[p]=await Promise.all([y(M),c]);else if(b==="action"){let U=new URL(n.url),j=U.pathname+U.search;throw qn(405,{method:n.method,pathname:j,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(E)p=await y(E);else{let M=new URL(n.url),U=M.pathname+M.search;throw qn(404,{pathname:U})}}catch(E){return{type:"error",result:E}}finally{g&&n.signal.removeEventListener("abort",g)}return p}async function nw(n){let i=n.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?n.body==null?null:n.json():n.text()}async function aw(n){let{result:i,type:l}=n;if(Bf(i)){let s;try{s=await nw(i)}catch(c){return{type:"error",error:c}}return l==="error"?{type:"error",error:new Pl(i.status,i.statusText,s),statusCode:i.status,headers:i.headers}:{type:"data",data:s,statusCode:i.status,headers:i.headers}}return l==="error"?_g(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:sw(i),statusCode:Kl(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:Kl(i)?i.status:void 0}:_g(i)?{type:"data",data:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function iw(n,i,l,s,c){let f=n.headers.get("Location");if(je(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!zf(f)){let d=s.slice(0,s.findIndex(p=>p.route.id===l)+1);f=gf(new URL(i.url),d,c,f),n.headers.set("Location",f)}return n}function wg(n,i,l,s){let c=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(zf(n)){let f=n,d=f.startsWith("//")?new URL(i.protocol+f):new URL(f);if(c.includes(d.protocol))throw new Error("Invalid redirect location");let p=Vn(d.pathname,l)!=null;if(d.origin===i.origin&&p)return d.pathname+d.search+d.hash}try{let f=s.createURL(n);if(c.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return n}function Dr(n,i,l,s){let c=n.createURL(Ly(i)).toString(),f={signal:l};if(s&&It(s.formMethod)){let{formMethod:d,formEncType:p}=s;f.method=d.toUpperCase(),p==="application/json"?(f.headers=new Headers({"Content-Type":p}),f.body=JSON.stringify(s.json)):p==="text/plain"?f.body=s.text:p==="application/x-www-form-urlencoded"&&s.formData?f.body=bf(s.formData):f.body=s.formData}return new Request(c,f)}function bf(n){let i=new URLSearchParams;for(let[l,s]of n.entries())i.append(l,typeof s=="string"?s:s.name);return i}function Eg(n){let i=new FormData;for(let[l,s]of n.entries())i.append(l,s);return i}function rw(n,i,l,s=!1,c=!1){let f={},d=null,p,g=!1,m={},b=l&&Rn(l[1])?l[1].error:void 0;return n.forEach(y=>{if(!(y.route.id in i))return;let E=y.route.id,M=i[E];if(je(!Gi(M),"Cannot handle redirect results in processLoaderData"),Rn(M)){let U=M.error;if(b!==void 0&&(U=b,b=void 0),d=d||{},c)d[E]=U;else{let j=fi(n,E);d[j.route.id]==null&&(d[j.route.id]=U)}s||(f[E]=My),g||(g=!0,p=Kl(M.error)?M.error.status:500),M.headers&&(m[E]=M.headers)}else f[E]=M.data,M.statusCode&&M.statusCode!==200&&!g&&(p=M.statusCode),M.headers&&(m[E]=M.headers)}),b!==void 0&&l&&(d={[l[0]]:b},l[2]&&(f[l[2]]=void 0)),{loaderData:f,errors:d,statusCode:p||200,loaderHeaders:m}}function xg(n,i,l,s,c,f){let{loaderData:d,errors:p}=rw(i,l,s);return c.filter(g=>!g.matches||g.matches.some(m=>m.shouldLoad)).forEach(g=>{let{key:m,match:b,controller:y}=g;if(y&&y.signal.aborted)return;let E=f[m];if(je(E,"Did not find corresponding fetcher result"),Rn(E)){let M=fi(n.matches,b?.route.id);p&&p[M.route.id]||(p={...p,[M.route.id]:E.error}),n.fetchers.delete(m)}else if(Gi(E))je(!1,"Unhandled fetcher revalidation redirect");else{let M=ja(E.data);n.fetchers.set(m,M)}}),{loaderData:d,errors:p}}function Tg(n,i,l,s){let c=Object.entries(i).filter(([,f])=>f!==My).reduce((f,[d,p])=>(f[d]=p,f),{});for(let f of l){let d=f.route.id;if(!i.hasOwnProperty(d)&&n.hasOwnProperty(d)&&f.route.loader&&(c[d]=n[d]),s&&s.hasOwnProperty(d))break}return c}function Rg(n){return n?Rn(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function fi(n,i){return(i?n.slice(0,n.findIndex(s=>s.route.id===i)+1):[...n]).reverse().find(s=>s.route.hasErrorBoundary===!0)||n[0]}function fo(n){let i=n.length===1?n[0]:n.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function qn(n,{pathname:i,routeId:l,method:s,type:c,message:f}={}){let d="Unknown Server Error",p="Unknown @remix-run/router error";return n===400?(d="Bad Request",s&&i&&l?p=`You made a ${s} request to "${i}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:c==="invalid-body"&&(p="Unable to encode submission body")):n===403?(d="Forbidden",p=`Route "${l}" does not match URL "${i}"`):n===404?(d="Not Found",p=`No route matches URL "${i}"`):n===405&&(d="Method Not Allowed",s&&i&&l?p=`You made a ${s.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:s&&(p=`Invalid request method "${s.toUpperCase()}"`)),new Pl(n||500,d,new Error(p),!0)}function ho(n){let i=Object.entries(n);for(let l=i.length-1;l>=0;l--){let[s,c]=i[l];if(Gi(c))return{key:s,result:c}}}function Ly(n){let i=typeof n=="string"?gi(n):n;return fa({...i,hash:""})}function lw(n,i){return n.pathname!==i.pathname||n.search!==i.search?!1:n.hash===""?i.hash!=="":n.hash===i.hash?!0:i.hash!==""}function sw(n){return new Pl(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)}function ow(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([i,l])=>typeof i=="string"&&uw(l))}function uw(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function cw(n){return Bf(n.result)&&Ay.has(n.result.status)}function Rn(n){return n.type==="error"}function Gi(n){return(n&&n.type)==="redirect"}function _g(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function Bf(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function fw(n){return Ay.has(n)}function dw(n){return Bf(n)&&fw(n.status)&&n.headers.has("Location")}function hw(n){return Y1.has(n.toUpperCase())}function It(n){return Q1.has(n.toUpperCase())}function qf(n){return new URLSearchParams(n).getAll("index").some(i=>i==="")}function So(n,i){let l=typeof i=="string"?gi(i).search:i.search;if(n[n.length-1].route.index&&qf(l||""))return n[n.length-1];let s=xy(n);return s[s.length-1]}function Cg(n){let{formMethod:i,formAction:l,formEncType:s,text:c,formData:f,json:d}=n;if(!(!i||!l||!s)){if(c!=null)return{formMethod:i,formAction:l,formEncType:s,formData:void 0,json:void 0,text:c};if(f!=null)return{formMethod:i,formAction:l,formEncType:s,formData:f,json:void 0,text:void 0};if(d!==void 0)return{formMethod:i,formAction:l,formEncType:s,formData:void 0,json:d,text:void 0}}}function $c(n,i){return i?{state:"loading",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function mw(n,i){return{state:"submitting",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function Nl(n,i){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function pw(n,i){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i?i.data:void 0}}function ja(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function gw(n,i){try{let l=n.sessionStorage.getItem(Oy);if(l){let s=JSON.parse(l);for(let[c,f]of Object.entries(s||{}))f&&Array.isArray(f)&&i.set(c,new Set(f||[]))}}catch{}}function yw(n,i){if(i.size>0){let l={};for(let[s,c]of i)l[s]=[...c];try{n.sessionStorage.setItem(Oy,JSON.stringify(l))}catch(s){Nt(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function Ag(){let n,i,l=new Promise((s,c)=>{n=async f=>{s(f);try{await l}catch{}},i=async f=>{c(f);try{await l}catch{}}});return{promise:l,resolve:n,reject:i}}var Pi=T.createContext(null);Pi.displayName="DataRouter";var Zl=T.createContext(null);Zl.displayName="DataRouterState";var jy=T.createContext(!1);function vw(){return T.useContext(jy)}var Hf=T.createContext({isTransitioning:!1});Hf.displayName="ViewTransition";var By=T.createContext(new Map);By.displayName="Fetchers";var bw=T.createContext(null);bw.displayName="Await";var Yn=T.createContext(null);Yn.displayName="Navigation";var ko=T.createContext(null);ko.displayName="Location";var ta=T.createContext({outlet:null,matches:[],isDataRoute:!1});ta.displayName="Route";var Qf=T.createContext(null);Qf.displayName="RouteError";var qy="REACT_ROUTER_ERROR",Sw="REDIRECT",ww="ROUTE_ERROR_RESPONSE";function Ew(n){if(n.startsWith(`${qy}:${Sw}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function xw(n){if(n.startsWith(`${qy}:${ww}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Pl(i.status,i.statusText,i.data)}catch{}}function Tw(n,{relative:i}={}){je(Jl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:s}=T.useContext(Yn),{hash:c,pathname:f,search:d}=Il(n,{relative:i}),p=f;return l!=="/"&&(p=f==="/"?l:ca([l,f])),s.createHref({pathname:p,search:d,hash:c})}function Jl(){return T.useContext(ko)!=null}function Fi(){return je(Jl(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(ko).location}var Hy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Qy(n){T.useContext(Yn).static||T.useLayoutEffect(n)}function Vy(){let{isDataRoute:n}=T.useContext(ta);return n?Hw():Rw()}function Rw(){je(Jl(),"useNavigate() may be used only in the context of a <Router> component.");let n=T.useContext(Pi),{basename:i,navigator:l}=T.useContext(Yn),{matches:s}=T.useContext(ta),{pathname:c}=Fi(),f=JSON.stringify(Uf(s)),d=T.useRef(!1);return Qy(()=>{d.current=!0}),T.useCallback((g,m={})=>{if(Nt(d.current,Hy),!d.current)return;if(typeof g=="number"){l.go(g);return}let b=Lf(g,JSON.parse(f),c,m.relative==="path");n==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:ca([i,b.pathname])),(m.replace?l.replace:l.push)(b,m.state,m)},[i,l,f,c,n])}var _w=T.createContext(null);function Cw(n){let i=T.useContext(ta).outlet;return T.useMemo(()=>i&&T.createElement(_w.Provider,{value:n},i),[i,n])}function Aw(){let{matches:n}=T.useContext(ta),i=n[n.length-1];return i?i.params:{}}function Il(n,{relative:i}={}){let{matches:l}=T.useContext(ta),{pathname:s}=Fi(),c=JSON.stringify(Uf(l));return T.useMemo(()=>Lf(n,JSON.parse(c),s,i==="path"),[n,c,s,i])}function Ow(n,i,l,s,c){je(Jl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=T.useContext(Yn),{matches:d}=T.useContext(ta),p=d[d.length-1],g=p?p.params:{},m=p?p.pathname:"/",b=p?p.pathnameBase:"/",y=p&&p.route;{let J=y&&y.path||"";Gy(m,!y||J.endsWith("*")||J.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${J}">) 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.
9
+ `+r.stack}}var Ft=Object.prototype.hasOwnProperty,Si=n.unstable_scheduleCallback,wi=n.unstable_cancelCallback,Qt=n.unstable_shouldYield,na=n.unstable_requestPaint,mt=n.unstable_now,ma=n.unstable_getCurrentPriorityLevel,aa=n.unstable_ImmediatePriority,qa=n.unstable_UserBlockingPriority,Vt=n.unstable_NormalPriority,Wt=n.unstable_LowPriority,_n=n.unstable_IdlePriority,Zi=n.log,Cn=n.unstable_setDisableYieldValue,pa=null,ut=null;function rn(e){if(typeof Zi=="function"&&Cn(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(pa,e)}catch{}}var kt=Math.clz32?Math.clz32:pn,Ji=Math.log,xi=Math.LN2;function pn(e){return e>>>=0,e===0?32:31-(Ji(e)/xi|0)|0}var Pn=256,ga=262144,Xn=4194304;function An(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _e(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var o=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=r&134217727;return v!==0?(r=v&~u,r!==0?o=An(r):(h&=v,h!==0?o=An(h):a||(a=v&~e,a!==0&&(o=An(a))))):(v=r&~u,v!==0?o=An(v):h!==0?o=An(h):a||(a=r&~e,a!==0&&(o=An(a)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:o}function st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xt(){var e=Xn;return Xn<<=1,(Xn&62914560)===0&&(Xn=4194304),e}function gn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zt(e,t,a,r,o,u){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,w=e.expirationTimes,k=e.hiddenUpdates;for(a=h&~a;0<a;){var V=31-kt(a),X=1<<V;v[V]=0,w[V]=-1;var z=k[V];if(z!==null)for(k[V]=null,V=0;V<z.length;V++){var U=z[V];U!==null&&(U.lane&=-536870913)}a&=~X}r!==0&&ya(e,r,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function ya(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-kt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function S(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-kt(a),o=1<<r;o&t|e[r]&t&&(e[r]|=t),a&=~o}}function C(e,t){var a=t&-t;return a=(a&42)!==0?1:j(a),(a&(e.suspendedLanes|t))!==0?0:a}function j(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function I(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function W(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Mp(e.type))}function pe(e,t){var a=F.p;try{return F.p=e,t()}finally{F.p=a}}var ae=Math.random().toString(36).slice(2),ne="__reactFiber$"+ae,ie="__reactProps$"+ae,de="__reactContainer$"+ae,xe="__reactEvents$"+ae,be="__reactListeners$"+ae,Ze="__reactHandles$"+ae,Ye="__reactResources$"+ae,pt="__reactMarker$"+ae;function yt(e){delete e[ne],delete e[ie],delete e[xe],delete e[be],delete e[Ze]}function vt(e){var t=e[ne];if(t)return t;for(var a=e.parentNode;a;){if(t=a[de]||a[ne]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=mp(e);e!==null;){if(a=e[ne])return a;e=mp(e)}return t}e=a,a=e.parentNode}return null}function Ge(e){if(e=e[ne]||e[de]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ut(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ln(e){var t=e[Ye];return t||(t=e[Ye]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[pt]=!0}var Fn=new Set,yn={};function Zn(e,t){On(e,t),On(e+"Capture",t)}function On(e,t){for(yn[e]=t,e=0;e<t.length;e++)Fn.add(t[e])}var va=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]*$"),Ei={},Ti={};function Ke(e){return Ft.call(Ti,e)?!0:Ft.call(Ei,e)?!1:va.test(e)?Ti[e]=!0:(Ei[e]=!0,!1)}function Et(e,t,a){if(Ke(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Jn(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Yt(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function Pe(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ri(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $l(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,u=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){a=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vr(e){if(!e._valueTracker){var t=Ri(e)?"checked":"value";e._valueTracker=$l(e,t,""+e[t])}}function Wf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Ri(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Wl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Dv=/[\n"\\]/g;function Mn(e){return e.replace(Dv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Uo(e,t,a,r,o,u,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Pe(t)):e.value!==""+Pe(t)&&(e.value=""+Pe(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Bo(e,h,Pe(t)):a!=null?Bo(e,h,Pe(a)):r!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Pe(v):e.removeAttribute("name")}function ed(e,t,a,r,o,u,h,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Vr(e);return}a=a!=null?""+Pe(a):"",t=t!=null?""+Pe(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=v?e.checked:!!r,e.defaultChecked=!!r,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Vr(e)}function Bo(e,t,a){t==="number"&&Wl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ii(e,t,a,r){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&r&&(e[a].defaultSelected=!0)}else{for(a=""+Pe(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function td(e,t,a){if(t!=null&&(t=""+Pe(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Pe(a):""}function nd(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(s(92));if(we(r)){if(1<r.length)throw Error(s(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=Pe(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),Vr(e)}function $i(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var kv=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 ad(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||kv.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function id(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&a[o]!==r&&ad(e,o,r)}else for(var u in t)t.hasOwnProperty(u)&&ad(e,u,t[u])}function qo(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zv=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"]]),jv=/^[\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 es(e){return jv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ba(){}var Ho=null;function Qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wi=null,er=null;function rd(e){var t=Ge(e);if(t&&(e=t.stateNode)){var a=e[ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(Uo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Mn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var o=r[ie]||null;if(!o)throw Error(s(90));Uo(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&Wf(r)}break e;case"textarea":td(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ii(e,!!a.multiple,t,!1)}}}var Vo=!1;function ld(e,t,a){if(Vo)return e(t,a);Vo=!0;try{var r=e(t);return r}finally{if(Vo=!1,(Wi!==null||er!==null)&&(Qs(),Wi&&(t=Wi,e=er,er=Wi=null,rd(t),e)))for(t=0;t<e.length;t++)rd(e[t])}}function Yr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[ie]||null;if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var Sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yo=!1;if(Sa)try{var Gr={};Object.defineProperty(Gr,"passive",{get:function(){Yo=!0}}),window.addEventListener("test",Gr,Gr),window.removeEventListener("test",Gr,Gr)}catch{Yo=!1}var Ha=null,Go=null,ts=null;function sd(){if(ts)return ts;var e,t=Go,a=t.length,r,o="value"in Ha?Ha.value:Ha.textContent,u=o.length;for(e=0;e<a&&t[e]===o[e];e++);var h=a-e;for(r=1;r<=h&&t[a-r]===o[u-r];r++);return ts=o.slice(e,1<r?1-r:void 0)}function ns(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function as(){return!0}function od(){return!1}function sn(e){function t(a,r,o,u,h){this._reactName=a,this._targetInst=o,this.type=r,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?as:od,this.isPropagationStopped=od,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=as)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=as)},persist:function(){},isPersistent:as}),t}var _i={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},is=sn(_i),Kr=y({},_i,{view:0,detail:0}),Lv=sn(Kr),Ko,Po,Pr,rs=y({},Kr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pr&&(Pr&&e.type==="mousemove"?(Ko=e.screenX-Pr.screenX,Po=e.screenY-Pr.screenY):Po=Ko=0,Pr=e),Ko)},movementY:function(e){return"movementY"in e?e.movementY:Po}}),ud=sn(rs),Uv=y({},rs,{dataTransfer:0}),Bv=sn(Uv),qv=y({},Kr,{relatedTarget:0}),Xo=sn(qv),Hv=y({},_i,{animationName:0,elapsedTime:0,pseudoElement:0}),Qv=sn(Hv),Vv=y({},_i,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yv=sn(Vv),Gv=y({},_i,{data:0}),cd=sn(Gv),Kv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Pv={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"},Xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xv[e])?!!t[e]:!1}function Fo(){return Fv}var Zv=y({},Kr,{key:function(e){if(e.key){var t=Kv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ns(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Pv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fo,charCode:function(e){return e.type==="keypress"?ns(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ns(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jv=sn(Zv),Iv=y({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fd=sn(Iv),$v=y({},Kr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fo}),Wv=sn($v),e0=y({},_i,{propertyName:0,elapsedTime:0,pseudoElement:0}),t0=sn(e0),n0=y({},rs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),a0=sn(n0),i0=y({},_i,{newState:0,oldState:0}),r0=sn(i0),l0=[9,13,27,32],Zo=Sa&&"CompositionEvent"in window,Xr=null;Sa&&"documentMode"in document&&(Xr=document.documentMode);var s0=Sa&&"TextEvent"in window&&!Xr,dd=Sa&&(!Zo||Xr&&8<Xr&&11>=Xr),hd=" ",md=!1;function pd(e,t){switch(e){case"keyup":return l0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function o0(e,t){switch(e){case"compositionend":return gd(t);case"keypress":return t.which!==32?null:(md=!0,hd);case"textInput":return e=t.data,e===hd&&md?null:e;default:return null}}function u0(e,t){if(tr)return e==="compositionend"||!Zo&&pd(e,t)?(e=sd(),ts=Go=Ha=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return dd&&t.locale!=="ko"?null:t.data;default:return null}}var c0={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 yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!c0[e.type]:t==="textarea"}function vd(e,t,a,r){Wi?er?er.push(r):er=[r]:Wi=r,t=Fs(t,"onChange"),0<t.length&&(a=new is("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Fr=null,Zr=null;function f0(e){ep(e,0)}function ls(e){var t=Ut(e);if(Wf(t))return e}function bd(e,t){if(e==="change")return t}var Sd=!1;if(Sa){var Jo;if(Sa){var Io="oninput"in document;if(!Io){var wd=document.createElement("div");wd.setAttribute("oninput","return;"),Io=typeof wd.oninput=="function"}Jo=Io}else Jo=!1;Sd=Jo&&(!document.documentMode||9<document.documentMode)}function xd(){Fr&&(Fr.detachEvent("onpropertychange",Ed),Zr=Fr=null)}function Ed(e){if(e.propertyName==="value"&&ls(Zr)){var t=[];vd(t,Zr,e,Qo(e)),ld(f0,t)}}function d0(e,t,a){e==="focusin"?(xd(),Fr=t,Zr=a,Fr.attachEvent("onpropertychange",Ed)):e==="focusout"&&xd()}function h0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ls(Zr)}function m0(e,t){if(e==="click")return ls(t)}function p0(e,t){if(e==="input"||e==="change")return ls(t)}function g0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vn=typeof Object.is=="function"?Object.is:g0;function Jr(e,t){if(vn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var o=a[r];if(!Ft.call(t,o)||!vn(e[o],t[o]))return!1}return!0}function Td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rd(e,t){var a=Td(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Td(a)}}function _d(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_d(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wl(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Wl(e.document)}return t}function $o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var y0=Sa&&"documentMode"in document&&11>=document.documentMode,nr=null,Wo=null,Ir=null,eu=!1;function Ad(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;eu||nr==null||nr!==Wl(r)||(r=nr,"selectionStart"in r&&$o(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&Jr(Ir,r)||(Ir=r,r=Fs(Wo,"onSelect"),0<r.length&&(t=new is("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=nr)))}function Ci(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ar={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionrun:Ci("Transition","TransitionRun"),transitionstart:Ci("Transition","TransitionStart"),transitioncancel:Ci("Transition","TransitionCancel"),transitionend:Ci("Transition","TransitionEnd")},tu={},Od={};Sa&&(Od=document.createElement("div").style,"AnimationEvent"in window||(delete ar.animationend.animation,delete ar.animationiteration.animation,delete ar.animationstart.animation),"TransitionEvent"in window||delete ar.transitionend.transition);function Ai(e){if(tu[e])return tu[e];if(!ar[e])return e;var t=ar[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Od)return tu[e]=t[a];return e}var Md=Ai("animationend"),Nd=Ai("animationiteration"),Dd=Ai("animationstart"),v0=Ai("transitionrun"),b0=Ai("transitionstart"),S0=Ai("transitioncancel"),kd=Ai("transitionend"),zd=new Map,nu="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(" ");nu.push("scrollEnd");function In(e,t){zd.set(e,t),Zn(t,[e])}var ss=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Nn=[],ir=0,au=0;function os(){for(var e=ir,t=au=ir=0;t<e;){var a=Nn[t];Nn[t++]=null;var r=Nn[t];Nn[t++]=null;var o=Nn[t];Nn[t++]=null;var u=Nn[t];if(Nn[t++]=null,r!==null&&o!==null){var h=r.pending;h===null?o.next=o:(o.next=h.next,h.next=o),r.pending=o}u!==0&&jd(a,o,u)}}function us(e,t,a,r){Nn[ir++]=e,Nn[ir++]=t,Nn[ir++]=a,Nn[ir++]=r,au|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function iu(e,t,a,r){return us(e,t,a,r),cs(e)}function Oi(e,t){return us(e,null,null,t),cs(e)}function jd(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var o=!1,u=e.return;u!==null;)u.childLanes|=a,r=u.alternate,r!==null&&(r.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-kt(a),e=u.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=a|536870912),u):null}function cs(e){if(50<bl)throw bl=0,hc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var rr={};function w0(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(e,t,a,r){return new w0(e,t,a,r)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wa(e,t){var a=e.alternate;return a===null?(a=bn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Ld(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fs(e,t,a,r,o,u){var h=0;if(r=e,typeof e=="function")ru(e)&&(h=1);else if(typeof e=="string")h=_b(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case oe:return e=bn(31,a,t,o),e.elementType=oe,e.lanes=u,e;case B:return Mi(a.children,o,u,t);case K:h=8,o|=24;break;case G:return e=bn(12,a,t,o|2),e.elementType=G,e.lanes=u,e;case he:return e=bn(13,a,t,o),e.elementType=he,e.lanes=u,e;case me:return e=bn(19,a,t,o),e.elementType=me,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:h=10;break e;case J:h=9;break e;case ye:h=11;break e;case A:h=14;break e;case Y:h=16,r=null;break e}h=29,a=Error(s(130,e===null?"null":typeof e,"")),r=null}return t=bn(h,a,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function Mi(e,t,a,r){return e=bn(7,e,r,t),e.lanes=a,e}function lu(e,t,a){return e=bn(6,e,null,t),e.lanes=a,e}function Ud(e){var t=bn(18,null,null,0);return t.stateNode=e,t}function su(e,t,a){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bd=new WeakMap;function Dn(e,t){if(typeof e=="object"&&e!==null){var a=Bd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:bi(t)},Bd.set(e,t),t)}return{value:e,source:t,stack:bi(t)}}var lr=[],sr=0,ds=null,$r=0,kn=[],zn=0,Qa=null,ia=1,ra="";function xa(e,t){lr[sr++]=$r,lr[sr++]=ds,ds=e,$r=t}function qd(e,t,a){kn[zn++]=ia,kn[zn++]=ra,kn[zn++]=Qa,Qa=e;var r=ia;e=ra;var o=32-kt(r)-1;r&=~(1<<o),a+=1;var u=32-kt(t)+o;if(30<u){var h=o-o%5;u=(r&(1<<h)-1).toString(32),r>>=h,o-=h,ia=1<<32-kt(t)+o|a<<o|r,ra=u+e}else ia=1<<u|a<<o|r,ra=e}function ou(e){e.return!==null&&(xa(e,1),qd(e,1,0))}function uu(e){for(;e===ds;)ds=lr[--sr],lr[sr]=null,$r=lr[--sr],lr[sr]=null;for(;e===Qa;)Qa=kn[--zn],kn[zn]=null,ra=kn[--zn],kn[zn]=null,ia=kn[--zn],kn[zn]=null}function Hd(e,t){kn[zn++]=ia,kn[zn++]=ra,kn[zn++]=Qa,ia=t.id,ra=t.overflow,Qa=e}var Gt=null,ct=null,Xe=!1,Va=null,jn=!1,cu=Error(s(519));function Ya(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wr(Dn(t,e)),cu}function Qd(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[ne]=e,t[ie]=r,a){case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":case"embed":qe("load",t);break;case"video":case"audio":for(a=0;a<wl.length;a++)qe(wl[a],t);break;case"source":qe("error",t);break;case"img":case"image":case"link":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"input":qe("invalid",t),ed(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":qe("invalid",t);break;case"textarea":qe("invalid",t),nd(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||ip(t.textContent,a)?(r.popover!=null&&(qe("beforetoggle",t),qe("toggle",t)),r.onScroll!=null&&qe("scroll",t),r.onScrollEnd!=null&&qe("scrollend",t),r.onClick!=null&&(t.onclick=ba),t=!0):t=!1,t||Ya(e,!0)}function Vd(e){for(Gt=e.return;Gt;)switch(Gt.tag){case 5:case 31:case 13:jn=!1;return;case 27:case 3:jn=!0;return;default:Gt=Gt.return}}function or(e){if(e!==Gt)return!1;if(!Xe)return Vd(e),Xe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ac(e.type,e.memoizedProps)),a=!a),a&&ct&&Ya(e),Vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ct=hp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ct=hp(e)}else t===27?(t=ct,ai(e.type)?(e=kc,kc=null,ct=e):ct=t):ct=Gt?Un(e.stateNode.nextSibling):null;return!0}function Ni(){ct=Gt=null,Xe=!1}function fu(){var e=Va;return e!==null&&(fn===null?fn=e:fn.push.apply(fn,e),Va=null),e}function Wr(e){Va===null?Va=[e]:Va.push(e)}var du=E(null),Di=null,Ea=null;function Ga(e,t,a){q(du,t._currentValue),t._currentValue=a}function Ta(e){e._currentValue=du.current,Q(du)}function hu(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function mu(e,t,a,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var h=o.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=o;for(var w=0;w<t.length;w++)if(v.context===t[w]){u.lanes|=a,v=u.alternate,v!==null&&(v.lanes|=a),hu(u.return,a,e),r||(h=null);break e}u=v.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=a,u=h.alternate,u!==null&&(u.lanes|=a),hu(h,a,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function ur(e,t,a,r){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var v=o.type;vn(o.pendingProps.value,h.value)||(e!==null?e.push(v):e=[v])}}else if(o===ce.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(_l):e=[_l])}o=o.return}e!==null&&mu(t,e,a,r),t.flags|=262144}function hs(e){for(e=e.firstContext;e!==null;){if(!vn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ki(e){Di=e,Ea=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Kt(e){return Yd(Di,e)}function ms(e,t){return Di===null&&ki(e),Yd(e,t)}function Yd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Ea===null){if(e===null)throw Error(s(308));Ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ea=Ea.next=t;return a}var x0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},E0=n.unstable_scheduleCallback,T0=n.unstable_NormalPriority,Ct={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pu(){return{controller:new x0,data:new Map,refCount:0}}function el(e){e.refCount--,e.refCount===0&&E0(T0,function(){e.controller.abort()})}var tl=null,gu=0,cr=0,fr=null;function R0(e,t){if(tl===null){var a=tl=[];gu=0,cr=bc(),fr={status:"pending",value:void 0,then:function(r){a.push(r)}}}return gu++,t.then(Gd,Gd),t}function Gd(){if(--gu===0&&tl!==null){fr!==null&&(fr.status="fulfilled");var e=tl;tl=null,cr=0,fr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _0(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),r}var Kd=O.S;O.S=function(e,t){Am=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&R0(e,t),Kd!==null&&Kd(e,t)};var zi=E(null);function yu(){var e=zi.current;return e!==null?e:rt.pooledCache}function ps(e,t){t===null?q(zi,zi.current):q(zi,t.pool)}function Pd(){var e=yu();return e===null?null:{parent:Ct._currentValue,pool:e}}var dr=Error(s(460)),vu=Error(s(474)),gs=Error(s(542)),ys={then:function(){}};function Xd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ba,ba),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jd(e),e;default:if(typeof t.status=="string")t.then(ba,ba);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jd(e),e}throw Li=t,dr}}function ji(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Li=a,dr):a}}var Li=null;function Zd(){if(Li===null)throw Error(s(459));var e=Li;return Li=null,e}function Jd(e){if(e===dr||e===gs)throw Error(s(483))}var hr=null,nl=0;function vs(e){var t=nl;return nl+=1,hr===null&&(hr=[]),Fd(hr,e,t)}function al(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bs(e,t){throw t.$$typeof===x?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Id(e){function t(M,R){if(e){var D=M.deletions;D===null?(M.deletions=[R],M.flags|=16):D.push(R)}}function a(M,R){if(!e)return null;for(;R!==null;)t(M,R),R=R.sibling;return null}function r(M){for(var R=new Map;M!==null;)M.key!==null?R.set(M.key,M):R.set(M.index,M),M=M.sibling;return R}function o(M,R){return M=wa(M,R),M.index=0,M.sibling=null,M}function u(M,R,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<R?(M.flags|=67108866,R):D):(M.flags|=67108866,R)):(M.flags|=1048576,R)}function h(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,R,D,P){return R===null||R.tag!==6?(R=lu(D,M.mode,P),R.return=M,R):(R=o(R,D),R.return=M,R)}function w(M,R,D,P){var Se=D.type;return Se===B?V(M,R,D.props.children,P,D.key):R!==null&&(R.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===Y&&ji(Se)===R.type)?(R=o(R,D.props),al(R,D),R.return=M,R):(R=fs(D.type,D.key,D.props,null,M.mode,P),al(R,D),R.return=M,R)}function k(M,R,D,P){return R===null||R.tag!==4||R.stateNode.containerInfo!==D.containerInfo||R.stateNode.implementation!==D.implementation?(R=su(D,M.mode,P),R.return=M,R):(R=o(R,D.children||[]),R.return=M,R)}function V(M,R,D,P,Se){return R===null||R.tag!==7?(R=Mi(D,M.mode,P,Se),R.return=M,R):(R=o(R,D),R.return=M,R)}function X(M,R,D){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=lu(""+R,M.mode,D),R.return=M,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case N:return D=fs(R.type,R.key,R.props,null,M.mode,D),al(D,R),D.return=M,D;case L:return R=su(R,M.mode,D),R.return=M,R;case Y:return R=ji(R),X(M,R,D)}if(we(R)||Te(R))return R=Mi(R,M.mode,D,null),R.return=M,R;if(typeof R.then=="function")return X(M,vs(R),D);if(R.$$typeof===$)return X(M,ms(M,R),D);bs(M,R)}return null}function z(M,R,D,P){var Se=R!==null?R.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return Se!==null?null:v(M,R,""+D,P);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case N:return D.key===Se?w(M,R,D,P):null;case L:return D.key===Se?k(M,R,D,P):null;case Y:return D=ji(D),z(M,R,D,P)}if(we(D)||Te(D))return Se!==null?null:V(M,R,D,P,null);if(typeof D.then=="function")return z(M,R,vs(D),P);if(D.$$typeof===$)return z(M,R,ms(M,D),P);bs(M,D)}return null}function U(M,R,D,P,Se){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return M=M.get(D)||null,v(R,M,""+P,Se);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case N:return M=M.get(P.key===null?D:P.key)||null,w(R,M,P,Se);case L:return M=M.get(P.key===null?D:P.key)||null,k(R,M,P,Se);case Y:return P=ji(P),U(M,R,D,P,Se)}if(we(P)||Te(P))return M=M.get(D)||null,V(R,M,P,Se,null);if(typeof P.then=="function")return U(M,R,D,vs(P),Se);if(P.$$typeof===$)return U(M,R,D,ms(R,P),Se);bs(R,P)}return null}function re(M,R,D,P){for(var Se=null,Ie=null,fe=R,ke=R=0,Qe=null;fe!==null&&ke<D.length;ke++){fe.index>ke?(Qe=fe,fe=null):Qe=fe.sibling;var $e=z(M,fe,D[ke],P);if($e===null){fe===null&&(fe=Qe);break}e&&fe&&$e.alternate===null&&t(M,fe),R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e,fe=Qe}if(ke===D.length)return a(M,fe),Xe&&xa(M,ke),Se;if(fe===null){for(;ke<D.length;ke++)fe=X(M,D[ke],P),fe!==null&&(R=u(fe,R,ke),Ie===null?Se=fe:Ie.sibling=fe,Ie=fe);return Xe&&xa(M,ke),Se}for(fe=r(fe);ke<D.length;ke++)Qe=U(fe,M,ke,D[ke],P),Qe!==null&&(e&&Qe.alternate!==null&&fe.delete(Qe.key===null?ke:Qe.key),R=u(Qe,R,ke),Ie===null?Se=Qe:Ie.sibling=Qe,Ie=Qe);return e&&fe.forEach(function(oi){return t(M,oi)}),Xe&&xa(M,ke),Se}function Ee(M,R,D,P){if(D==null)throw Error(s(151));for(var Se=null,Ie=null,fe=R,ke=R=0,Qe=null,$e=D.next();fe!==null&&!$e.done;ke++,$e=D.next()){fe.index>ke?(Qe=fe,fe=null):Qe=fe.sibling;var oi=z(M,fe,$e.value,P);if(oi===null){fe===null&&(fe=Qe);break}e&&fe&&oi.alternate===null&&t(M,fe),R=u(oi,R,ke),Ie===null?Se=oi:Ie.sibling=oi,Ie=oi,fe=Qe}if($e.done)return a(M,fe),Xe&&xa(M,ke),Se;if(fe===null){for(;!$e.done;ke++,$e=D.next())$e=X(M,$e.value,P),$e!==null&&(R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e);return Xe&&xa(M,ke),Se}for(fe=r(fe);!$e.done;ke++,$e=D.next())$e=U(fe,M,ke,$e.value,P),$e!==null&&(e&&$e.alternate!==null&&fe.delete($e.key===null?ke:$e.key),R=u($e,R,ke),Ie===null?Se=$e:Ie.sibling=$e,Ie=$e);return e&&fe.forEach(function(Ub){return t(M,Ub)}),Xe&&xa(M,ke),Se}function it(M,R,D,P){if(typeof D=="object"&&D!==null&&D.type===B&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case N:e:{for(var Se=D.key;R!==null;){if(R.key===Se){if(Se=D.type,Se===B){if(R.tag===7){a(M,R.sibling),P=o(R,D.props.children),P.return=M,M=P;break e}}else if(R.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===Y&&ji(Se)===R.type){a(M,R.sibling),P=o(R,D.props),al(P,D),P.return=M,M=P;break e}a(M,R);break}else t(M,R);R=R.sibling}D.type===B?(P=Mi(D.props.children,M.mode,P,D.key),P.return=M,M=P):(P=fs(D.type,D.key,D.props,null,M.mode,P),al(P,D),P.return=M,M=P)}return h(M);case L:e:{for(Se=D.key;R!==null;){if(R.key===Se)if(R.tag===4&&R.stateNode.containerInfo===D.containerInfo&&R.stateNode.implementation===D.implementation){a(M,R.sibling),P=o(R,D.children||[]),P.return=M,M=P;break e}else{a(M,R);break}else t(M,R);R=R.sibling}P=su(D,M.mode,P),P.return=M,M=P}return h(M);case Y:return D=ji(D),it(M,R,D,P)}if(we(D))return re(M,R,D,P);if(Te(D)){if(Se=Te(D),typeof Se!="function")throw Error(s(150));return D=Se.call(D),Ee(M,R,D,P)}if(typeof D.then=="function")return it(M,R,vs(D),P);if(D.$$typeof===$)return it(M,R,ms(M,D),P);bs(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,R!==null&&R.tag===6?(a(M,R.sibling),P=o(R,D),P.return=M,M=P):(a(M,R),P=lu(D,M.mode,P),P.return=M,M=P),h(M)):a(M,R)}return function(M,R,D,P){try{nl=0;var Se=it(M,R,D,P);return hr=null,Se}catch(fe){if(fe===dr||fe===gs)throw fe;var Ie=bn(29,fe,null,M.mode);return Ie.lanes=P,Ie.return=M,Ie}}}var Ui=Id(!0),$d=Id(!1),Ka=!1;function bu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Su(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(We&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=cs(e),jd(e,null,a),t}return us(e,r,t,a),cs(e)}function il(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,S(e,a)}}function wu(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var o=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?o=u=h:u=u.next=h,a=a.next}while(a!==null);u===null?o=u=t:u=u.next=t}else o=u=t;a={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var xu=!1;function rl(){if(xu){var e=fr;if(e!==null)throw e}}function ll(e,t,a,r){xu=!1;var o=e.updateQueue;Ka=!1;var u=o.firstBaseUpdate,h=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var w=v,k=w.next;w.next=null,h===null?u=k:h.next=k,h=w;var V=e.alternate;V!==null&&(V=V.updateQueue,v=V.lastBaseUpdate,v!==h&&(v===null?V.firstBaseUpdate=k:v.next=k,V.lastBaseUpdate=w))}if(u!==null){var X=o.baseState;h=0,V=k=w=null,v=u;do{var z=v.lane&-536870913,U=z!==v.lane;if(U?(He&z)===z:(r&z)===z){z!==0&&z===cr&&(xu=!0),V!==null&&(V=V.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var re=e,Ee=v;z=t;var it=a;switch(Ee.tag){case 1:if(re=Ee.payload,typeof re=="function"){X=re.call(it,X,z);break e}X=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=Ee.payload,z=typeof re=="function"?re.call(it,X,z):re,z==null)break e;X=y({},X,z);break e;case 2:Ka=!0}}z=v.callback,z!==null&&(e.flags|=64,U&&(e.flags|=8192),U=o.callbacks,U===null?o.callbacks=[z]:U.push(z))}else U={lane:z,tag:v.tag,payload:v.payload,callback:v.callback,next:null},V===null?(k=V=U,w=X):V=V.next=U,h|=z;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;U=v,v=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);V===null&&(w=X),o.baseState=w,o.firstBaseUpdate=k,o.lastBaseUpdate=V,u===null&&(o.shared.lanes=0),$a|=h,e.lanes=h,e.memoizedState=X}}function Wd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function eh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Wd(a[e],t)}var mr=E(null),Ss=E(0);function th(e,t){e=ka,q(Ss,e),q(mr,t),ka=e|t.baseLanes}function Eu(){q(Ss,ka),q(mr,mr.current)}function Tu(){ka=Ss.current,Q(mr),Q(Ss)}var Sn=E(null),Ln=null;function Fa(e){var t=e.alternate;q(Tt,Tt.current&1),q(Sn,e),Ln===null&&(t===null||mr.current!==null||t.memoizedState!==null)&&(Ln=e)}function Ru(e){q(Tt,Tt.current),q(Sn,e),Ln===null&&(Ln=e)}function nh(e){e.tag===22?(q(Tt,Tt.current),q(Sn,e),Ln===null&&(Ln=e)):Za()}function Za(){q(Tt,Tt.current),q(Sn,Sn.current)}function wn(e){Q(Sn),Ln===e&&(Ln=null),Q(Tt)}var Tt=E(0);function ws(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Nc(a)||Dc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ra=0,Ne=null,nt=null,At=null,xs=!1,pr=!1,Bi=!1,Es=0,sl=0,gr=null,C0=0;function bt(){throw Error(s(321))}function _u(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!vn(e[a],t[a]))return!1;return!0}function Cu(e,t,a,r,o,u){return Ra=u,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?qh:Vu,Bi=!1,u=a(r,o),Bi=!1,pr&&(u=ih(t,a,r,o)),ah(e),u}function ah(e){O.H=cl;var t=nt!==null&&nt.next!==null;if(Ra=0,At=nt=Ne=null,xs=!1,sl=0,gr=null,t)throw Error(s(300));e===null||Ot||(e=e.dependencies,e!==null&&hs(e)&&(Ot=!0))}function ih(e,t,a,r){Ne=e;var o=0;do{if(pr&&(gr=null),sl=0,pr=!1,25<=o)throw Error(s(301));if(o+=1,At=nt=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}O.H=Hh,u=t(a,r)}while(pr);return u}function A0(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?ol(t):t,e=e.useState()[0],(nt!==null?nt.memoizedState:null)!==e&&(Ne.flags|=1024),t}function Au(){var e=Es!==0;return Es=0,e}function Ou(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Mu(e){if(xs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xs=!1}Ra=0,At=nt=Ne=null,pr=!1,sl=Es=0,gr=null}function en(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Ne.memoizedState=At=e:At=At.next=e,At}function Rt(){if(nt===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=At===null?Ne.memoizedState:At.next;if(t!==null)At=t,nt=e;else{if(e===null)throw Ne.alternate===null?Error(s(467)):Error(s(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},At===null?Ne.memoizedState=At=e:At=At.next=e}return At}function Ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ol(e){var t=sl;return sl+=1,gr===null&&(gr=[]),e=Fd(gr,e,t),t=Ne,(At===null?t.memoizedState:At.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?qh:Vu),e}function Rs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ol(e);if(e.$$typeof===$)return Kt(e)}throw Error(s(438,String(e)))}function Nu(e){var t=null,a=Ne.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=Ne.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ts(),Ne.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=Ae;return t.index++,a}function _a(e,t){return typeof t=="function"?t(e):t}function _s(e){var t=Rt();return Du(t,nt,e)}function Du(e,t,a){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=a;var o=e.baseQueue,u=r.pending;if(u!==null){if(o!==null){var h=o.next;o.next=u.next,u.next=h}t.baseQueue=o=u,r.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var v=h=null,w=null,k=t,V=!1;do{var X=k.lane&-536870913;if(X!==k.lane?(He&X)===X:(Ra&X)===X){var z=k.revertLane;if(z===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),X===cr&&(V=!0);else if((Ra&z)===z){k=k.next,z===cr&&(V=!0);continue}else X={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},w===null?(v=w=X,h=u):w=w.next=X,Ne.lanes|=z,$a|=z;X=k.action,Bi&&a(u,X),u=k.hasEagerState?k.eagerState:a(u,X)}else z={lane:X,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},w===null?(v=w=z,h=u):w=w.next=z,Ne.lanes|=X,$a|=X;k=k.next}while(k!==null&&k!==t);if(w===null?h=u:w.next=v,!vn(u,e.memoizedState)&&(Ot=!0,V&&(a=fr,a!==null)))throw a;e.memoizedState=u,e.baseState=h,e.baseQueue=w,r.lastRenderedState=u}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ku(e){var t=Rt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var r=a.dispatch,o=a.pending,u=t.memoizedState;if(o!==null){a.pending=null;var h=o=o.next;do u=e(u,h.action),h=h.next;while(h!==o);vn(u,t.memoizedState)||(Ot=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,r]}function rh(e,t,a){var r=Ne,o=Rt(),u=Xe;if(u){if(a===void 0)throw Error(s(407));a=a()}else a=t();var h=!vn((nt||o).memoizedState,a);if(h&&(o.memoizedState=a,Ot=!0),o=o.queue,Lu(oh.bind(null,r,o,e),[e]),o.getSnapshot!==t||h||At!==null&&At.memoizedState.tag&1){if(r.flags|=2048,yr(9,{destroy:void 0},sh.bind(null,r,o,a,t),null),rt===null)throw Error(s(349));u||(Ra&127)!==0||lh(r,t,a)}return a}function lh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ne.updateQueue,t===null?(t=Ts(),Ne.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function sh(e,t,a,r){t.value=a,t.getSnapshot=r,uh(t)&&ch(e)}function oh(e,t,a){return a(function(){uh(t)&&ch(e)})}function uh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!vn(e,a)}catch{return!0}}function ch(e){var t=Oi(e,2);t!==null&&dn(t,e,2)}function zu(e){var t=en();if(typeof e=="function"){var a=e;if(e=a(),Bi){rn(!0);try{a()}finally{rn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t}function fh(e,t,a,r){return e.baseState=a,Du(e,nt,typeof r=="function"?r:_a)}function O0(e,t,a,r,o){if(Os(e))throw Error(s(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};O.T!==null?a(!0):u.isTransition=!1,r(u),a=t.pending,a===null?(u.next=t.pending=u,dh(t,u)):(u.next=a.next,t.pending=a.next=u)}}function dh(e,t){var a=t.action,r=t.payload,o=e.state;if(t.isTransition){var u=O.T,h={};O.T=h;try{var v=a(o,r),w=O.S;w!==null&&w(h,v),hh(e,t,v)}catch(k){ju(e,t,k)}finally{u!==null&&h.types!==null&&(u.types=h.types),O.T=u}}else try{u=a(o,r),hh(e,t,u)}catch(k){ju(e,t,k)}}function hh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){mh(e,t,r)},function(r){return ju(e,t,r)}):mh(e,t,a)}function mh(e,t,a){t.status="fulfilled",t.value=a,ph(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,dh(e,a)))}function ju(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,ph(t),t=t.next;while(t!==r)}e.action=null}function ph(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gh(e,t){return t}function yh(e,t){if(Xe){var a=rt.formState;if(a!==null){e:{var r=Ne;if(Xe){if(ct){t:{for(var o=ct,u=jn;o.nodeType!==8;){if(!u){o=null;break t}if(o=Un(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){ct=Un(o.nextSibling),r=o.data==="F!";break e}}Ya(r)}r=!1}r&&(t=a[0])}}return a=en(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gh,lastRenderedState:t},a.queue=r,a=Lh.bind(null,Ne,r),r.dispatch=a,r=zu(!1),u=Qu.bind(null,Ne,!1,r.queue),r=en(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,a=O0.bind(null,Ne,o,u,a),o.dispatch=a,r.memoizedState=e,[t,a,!1]}function vh(e){var t=Rt();return bh(t,nt,e)}function bh(e,t,a){if(t=Du(e,t,gh)[0],e=_s(_a)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=ol(t)}catch(h){throw h===dr?gs:h}else r=t;t=Rt();var o=t.queue,u=o.dispatch;return a!==t.memoizedState&&(Ne.flags|=2048,yr(9,{destroy:void 0},M0.bind(null,o,a),null)),[r,u,e]}function M0(e,t){e.action=t}function Sh(e){var t=Rt(),a=nt;if(a!==null)return bh(t,a,e);Rt(),t=t.memoizedState,a=Rt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function yr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=Ne.updateQueue,t===null&&(t=Ts(),Ne.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function wh(){return Rt().memoizedState}function Cs(e,t,a,r){var o=en();Ne.flags|=e,o.memoizedState=yr(1|t,{destroy:void 0},a,r===void 0?null:r)}function As(e,t,a,r){var o=Rt();r=r===void 0?null:r;var u=o.memoizedState.inst;nt!==null&&r!==null&&_u(r,nt.memoizedState.deps)?o.memoizedState=yr(t,u,a,r):(Ne.flags|=e,o.memoizedState=yr(1|t,u,a,r))}function xh(e,t){Cs(8390656,8,e,t)}function Lu(e,t){As(2048,8,e,t)}function N0(e){Ne.flags|=4;var t=Ne.updateQueue;if(t===null)t=Ts(),Ne.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Eh(e){var t=Rt().memoizedState;return N0({ref:t,nextImpl:e}),function(){if((We&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Th(e,t){return As(4,2,e,t)}function Rh(e,t){return As(4,4,e,t)}function _h(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ch(e,t,a){a=a!=null?a.concat([e]):null,As(4,4,_h.bind(null,t,e),a)}function Uu(){}function Ah(e,t){var a=Rt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&_u(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Oh(e,t){var a=Rt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&_u(t,r[1]))return r[0];if(r=e(),Bi){rn(!0);try{e()}finally{rn(!1)}}return a.memoizedState=[r,t],r}function Bu(e,t,a){return a===void 0||(Ra&1073741824)!==0&&(He&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Mm(),Ne.lanes|=e,$a|=e,a)}function Mh(e,t,a,r){return vn(a,t)?a:mr.current!==null?(e=Bu(e,a,r),vn(e,t)||(Ot=!0),e):(Ra&42)===0||(Ra&1073741824)!==0&&(He&261930)===0?(Ot=!0,e.memoizedState=a):(e=Mm(),Ne.lanes|=e,$a|=e,t)}function Nh(e,t,a,r,o){var u=F.p;F.p=u!==0&&8>u?u:8;var h=O.T,v={};O.T=v,Qu(e,!1,t,a);try{var w=o(),k=O.S;if(k!==null&&k(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var V=_0(w,r);ul(e,t,V,Tn(e))}else ul(e,t,r,Tn(e))}catch(X){ul(e,t,{then:function(){},status:"rejected",reason:X},Tn())}finally{F.p=u,h!==null&&v.types!==null&&(h.types=v.types),O.T=h}}function D0(){}function qu(e,t,a,r){if(e.tag!==5)throw Error(s(476));var o=Dh(e).queue;Nh(e,o,t,H,a===null?D0:function(){return kh(e),a(r)})}function Dh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:H},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kh(e){var t=Dh(e);t.next===null&&(t=e.alternate.memoizedState),ul(e,t.next.queue,{},Tn())}function Hu(){return Kt(_l)}function zh(){return Rt().memoizedState}function jh(){return Rt().memoizedState}function k0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Tn();e=Pa(a);var r=Xa(t,e,a);r!==null&&(dn(r,t,a),il(r,t,a)),t={cache:pu()},e.payload=t;return}t=t.return}}function z0(e,t,a){var r=Tn();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Os(e)?Uh(t,a):(a=iu(e,t,a,r),a!==null&&(dn(a,e,r),Bh(a,t,r)))}function Lh(e,t,a){var r=Tn();ul(e,t,a,r)}function ul(e,t,a,r){var o={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Os(e))Uh(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,v=u(h,a);if(o.hasEagerState=!0,o.eagerState=v,vn(v,h))return us(e,t,o,0),rt===null&&os(),!1}catch{}if(a=iu(e,t,o,r),a!==null)return dn(a,e,r),Bh(a,t,r),!0}return!1}function Qu(e,t,a,r){if(r={lane:2,revertLane:bc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(s(479))}else t=iu(e,a,r,2),t!==null&&dn(t,e,2)}function Os(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function Uh(e,t){pr=xs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Bh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,S(e,a)}}var cl={readContext:Kt,use:Rs,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt};cl.useEffectEvent=bt;var qh={readContext:Kt,use:Rs,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:xh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Cs(4194308,4,_h.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Cs(4194308,4,e,t)},useInsertionEffect:function(e,t){Cs(4,2,e,t)},useMemo:function(e,t){var a=en();t=t===void 0?null:t;var r=e();if(Bi){rn(!0);try{e()}finally{rn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=en();if(a!==void 0){var o=a(t);if(Bi){rn(!0);try{a(t)}finally{rn(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=z0.bind(null,Ne,e),[r.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:function(e){e=zu(e);var t=e.queue,a=Lh.bind(null,Ne,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Uu,useDeferredValue:function(e,t){var a=en();return Bu(a,e,t)},useTransition:function(){var e=zu(!1);return e=Nh.bind(null,Ne,e.queue,!0,!1),en().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=Ne,o=en();if(Xe){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),rt===null)throw Error(s(349));(He&127)!==0||lh(r,t,a)}o.memoizedState=a;var u={value:a,getSnapshot:t};return o.queue=u,xh(oh.bind(null,r,u,e),[e]),r.flags|=2048,yr(9,{destroy:void 0},sh.bind(null,r,u,a,t),null),a},useId:function(){var e=en(),t=rt.identifierPrefix;if(Xe){var a=ra,r=ia;a=(r&~(1<<32-kt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Es++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=C0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Hu,useFormState:yh,useActionState:yh,useOptimistic:function(e){var t=en();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Qu.bind(null,Ne,!0,a),a.dispatch=t,[e,t]},useMemoCache:Nu,useCacheRefresh:function(){return en().memoizedState=k0.bind(null,Ne)},useEffectEvent:function(e){var t=en(),a={impl:e};return t.memoizedState=a,function(){if((We&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Vu={readContext:Kt,use:Rs,useCallback:Ah,useContext:Kt,useEffect:Lu,useImperativeHandle:Ch,useInsertionEffect:Th,useLayoutEffect:Rh,useMemo:Oh,useReducer:_s,useRef:wh,useState:function(){return _s(_a)},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Rt();return Mh(a,nt.memoizedState,e,t)},useTransition:function(){var e=_s(_a)[0],t=Rt().memoizedState;return[typeof e=="boolean"?e:ol(e),t]},useSyncExternalStore:rh,useId:zh,useHostTransitionStatus:Hu,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var a=Rt();return fh(a,nt,e,t)},useMemoCache:Nu,useCacheRefresh:jh};Vu.useEffectEvent=Eh;var Hh={readContext:Kt,use:Rs,useCallback:Ah,useContext:Kt,useEffect:Lu,useImperativeHandle:Ch,useInsertionEffect:Th,useLayoutEffect:Rh,useMemo:Oh,useReducer:ku,useRef:wh,useState:function(){return ku(_a)},useDebugValue:Uu,useDeferredValue:function(e,t){var a=Rt();return nt===null?Bu(a,e,t):Mh(a,nt.memoizedState,e,t)},useTransition:function(){var e=ku(_a)[0],t=Rt().memoizedState;return[typeof e=="boolean"?e:ol(e),t]},useSyncExternalStore:rh,useId:zh,useHostTransitionStatus:Hu,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var a=Rt();return nt!==null?fh(a,nt,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Nu,useCacheRefresh:jh};Hh.useEffectEvent=Eh;function Yu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Gu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Tn(),o=Pa(r);o.payload=t,a!=null&&(o.callback=a),t=Xa(e,o,r),t!==null&&(dn(t,e,r),il(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Tn(),o=Pa(r);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Xa(e,o,r),t!==null&&(dn(t,e,r),il(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Tn(),r=Pa(a);r.tag=2,t!=null&&(r.callback=t),t=Xa(e,r,a),t!==null&&(dn(t,e,a),il(t,e,a))}};function Qh(e,t,a,r,o,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,h):t.prototype&&t.prototype.isPureReactComponent?!Jr(a,r)||!Jr(o,u):!0}function Vh(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Gu.enqueueReplaceState(t,t.state,null)}function qi(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Yh(e){ss(e)}function Gh(e){console.error(e)}function Kh(e){ss(e)}function Ms(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Ph(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ku(e,t,a){return a=Pa(a),a.tag=3,a.payload={element:null},a.callback=function(){Ms(e,t)},a}function Xh(e){return e=Pa(e),e.tag=3,e}function Fh(e,t,a,r){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var u=r.value;e.payload=function(){return o(u)},e.callback=function(){Ph(t,a,r)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Ph(t,a,r),typeof o!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var v=r.stack;this.componentDidCatch(r.value,{componentStack:v!==null?v:""})})}function j0(e,t,a,r,o){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&ur(t,a,o,!0),a=Sn.current,a!==null){switch(a.tag){case 31:case 13:return Ln===null?Vs():a.alternate===null&&St===0&&(St=3),a.flags&=-257,a.flags|=65536,a.lanes=o,r===ys?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),gc(e,r,o)),!1;case 22:return a.flags|=65536,r===ys?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),gc(e,r,o)),!1}throw Error(s(435,a.tag))}return gc(e,r,o),Vs(),!1}if(Xe)return t=Sn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==cu&&(e=Error(s(422),{cause:r}),Wr(Dn(e,a)))):(r!==cu&&(t=Error(s(423),{cause:r}),Wr(Dn(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Dn(r,a),o=Ku(e.stateNode,r,o),wu(e,o),St!==4&&(St=2)),!1;var u=Error(s(520),{cause:r});if(u=Dn(u,a),vl===null?vl=[u]:vl.push(u),St!==4&&(St=2),t===null)return!0;r=Dn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Ku(a.stateNode,r,e),wu(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wa===null||!Wa.has(u))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Xh(o),Fh(o,e,a,r),wu(a,o),!1}a=a.return}while(a!==null);return!1}var Pu=Error(s(461)),Ot=!1;function Pt(e,t,a,r){t.child=e===null?$d(t,null,a,r):Ui(t,e.child,a,r)}function Zh(e,t,a,r,o){a=a.render;var u=t.ref;if("ref"in r){var h={};for(var v in r)v!=="ref"&&(h[v]=r[v])}else h=r;return ki(t),r=Cu(e,t,a,h,u,o),v=Au(),e!==null&&!Ot?(Ou(e,t,o),Ca(e,t,o)):(Xe&&v&&ou(t),t.flags|=1,Pt(e,t,r,o),t.child)}function Jh(e,t,a,r,o){if(e===null){var u=a.type;return typeof u=="function"&&!ru(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,Ih(e,t,u,r,o)):(e=fs(a.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!ec(e,o)){var h=u.memoizedProps;if(a=a.compare,a=a!==null?a:Jr,a(h,r)&&e.ref===t.ref)return Ca(e,t,o)}return t.flags|=1,e=wa(u,r),e.ref=t.ref,e.return=t,t.child=e}function Ih(e,t,a,r,o){if(e!==null){var u=e.memoizedProps;if(Jr(u,r)&&e.ref===t.ref)if(Ot=!1,t.pendingProps=r=u,ec(e,o))(e.flags&131072)!==0&&(Ot=!0);else return t.lanes=e.lanes,Ca(e,t,o)}return Xu(e,t,a,r,o)}function $h(e,t,a,r){var o=r.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~u}else r=0,t.child=null;return Wh(e,t,u,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ps(t,u!==null?u.cachePool:null),u!==null?th(t,u):Eu(),nh(t);else return r=t.lanes=536870912,Wh(e,t,u!==null?u.baseLanes|a:a,a,r)}else u!==null?(ps(t,u.cachePool),th(t,u),Za(),t.memoizedState=null):(e!==null&&ps(t,null),Eu(),Za());return Pt(e,t,o,a),t.child}function fl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wh(e,t,a,r,o){var u=yu();return u=u===null?null:{parent:Ct._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&ps(t,null),Eu(),nh(t),e!==null&&ur(e,t,r,!0),t.childLanes=o,null}function Ns(e,t){return t=ks({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function em(e,t,a){return Ui(t,e.child,null,a),e=Ns(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function L0(e,t,a){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Xe){if(r.mode==="hidden")return e=Ns(t,r),t.lanes=536870912,fl(null,e);if(Ru(t),(e=ct)?(e=dp(e,jn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:ia,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Ud(e),a.return=t,t.child=a,Gt=t,ct=null)):e=null,e===null)throw Ya(t);return t.lanes=536870912,null}return Ns(t,r)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if(Ru(t),o)if(t.flags&256)t.flags&=-257,t=em(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Ot||ur(e,t,a,!1),o=(a&e.childLanes)!==0,Ot||o){if(r=rt,r!==null&&(h=C(r,a),h!==0&&h!==u.retryLane))throw u.retryLane=h,Oi(e,h),dn(r,e,h),Pu;Vs(),t=em(e,t,a)}else e=u.treeContext,ct=Un(h.nextSibling),Gt=t,Xe=!0,Va=null,jn=!1,e!==null&&Hd(t,e),t=Ns(t,r),t.flags|=4096;return t}return e=wa(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ds(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Xu(e,t,a,r,o){return ki(t),a=Cu(e,t,a,r,void 0,o),r=Au(),e!==null&&!Ot?(Ou(e,t,o),Ca(e,t,o)):(Xe&&r&&ou(t),t.flags|=1,Pt(e,t,a,o),t.child)}function tm(e,t,a,r,o,u){return ki(t),t.updateQueue=null,a=ih(t,r,a,o),ah(e),r=Au(),e!==null&&!Ot?(Ou(e,t,u),Ca(e,t,u)):(Xe&&r&&ou(t),t.flags|=1,Pt(e,t,a,u),t.child)}function nm(e,t,a,r,o){if(ki(t),t.stateNode===null){var u=rr,h=a.contextType;typeof h=="object"&&h!==null&&(u=Kt(h)),u=new a(r,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Gu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=r,u.state=t.memoizedState,u.refs={},bu(t),h=a.contextType,u.context=typeof h=="object"&&h!==null?Kt(h):rr,u.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(Yu(t,a,h,r),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&Gu.enqueueReplaceState(u,u.state,null),ll(t,r,u,o),rl(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,w=qi(a,v);u.props=w;var k=u.context,V=a.contextType;h=rr,typeof V=="object"&&V!==null&&(h=Kt(V));var X=a.getDerivedStateFromProps;V=typeof X=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,V||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||k!==h)&&Vh(t,u,r,h),Ka=!1;var z=t.memoizedState;u.state=z,ll(t,r,u,o),rl(),k=t.memoizedState,v||z!==k||Ka?(typeof X=="function"&&(Yu(t,a,X,r),k=t.memoizedState),(w=Ka||Qh(t,a,w,r,z,k,h))?(V||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=k),u.props=r,u.state=k,u.context=h,r=w):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,Su(e,t),h=t.memoizedProps,V=qi(a,h),u.props=V,X=t.pendingProps,z=u.context,k=a.contextType,w=rr,typeof k=="object"&&k!==null&&(w=Kt(k)),v=a.getDerivedStateFromProps,(k=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==X||z!==w)&&Vh(t,u,r,w),Ka=!1,z=t.memoizedState,u.state=z,ll(t,r,u,o),rl();var U=t.memoizedState;h!==X||z!==U||Ka||e!==null&&e.dependencies!==null&&hs(e.dependencies)?(typeof v=="function"&&(Yu(t,a,v,r),U=t.memoizedState),(V=Ka||Qh(t,a,V,r,z,U,w)||e!==null&&e.dependencies!==null&&hs(e.dependencies))?(k||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,U,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,U,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=U),u.props=r,u.state=U,u.context=w,r=V):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),r=!1)}return u=r,Ds(e,t),r=(t.flags&128)!==0,u||r?(u=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&r?(t.child=Ui(t,e.child,null,o),t.child=Ui(t,null,a,o)):Pt(e,t,a,o),t.memoizedState=u.state,e=t.child):e=Ca(e,t,o),e}function am(e,t,a,r){return Ni(),t.flags|=256,Pt(e,t,a,r),t.child}var Fu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zu(e){return{baseLanes:e,cachePool:Pd()}}function Ju(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=En),e}function im(e,t,a){var r=t.pendingProps,o=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(Tt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Xe){if(o?Fa(t):Za(),(e=ct)?(e=dp(e,jn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:ia,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Ud(e),a.return=t,t.child=a,Gt=t,ct=null)):e=null,e===null)throw Ya(t);return Dc(e)?t.lanes=32:t.lanes=536870912,null}var v=r.children;return r=r.fallback,o?(Za(),o=t.mode,v=ks({mode:"hidden",children:v},o),r=Mi(r,o,a,null),v.return=t,r.return=t,v.sibling=r,t.child=v,r=t.child,r.memoizedState=Zu(a),r.childLanes=Ju(e,h,a),t.memoizedState=Fu,fl(null,r)):(Fa(t),Iu(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(u)t.flags&256?(Fa(t),t.flags&=-257,t=$u(e,t,a)):t.memoizedState!==null?(Za(),t.child=e.child,t.flags|=128,t=null):(Za(),v=r.fallback,o=t.mode,r=ks({mode:"visible",children:r.children},o),v=Mi(v,o,a,null),v.flags|=2,r.return=t,v.return=t,r.sibling=v,t.child=r,Ui(t,e.child,null,a),r=t.child,r.memoizedState=Zu(a),r.childLanes=Ju(e,h,a),t.memoizedState=Fu,t=fl(null,r));else if(Fa(t),Dc(v)){if(h=v.nextSibling&&v.nextSibling.dataset,h)var k=h.dgst;h=k,r=Error(s(419)),r.stack="",r.digest=h,Wr({value:r,source:null,stack:null}),t=$u(e,t,a)}else if(Ot||ur(e,t,a,!1),h=(a&e.childLanes)!==0,Ot||h){if(h=rt,h!==null&&(r=C(h,a),r!==0&&r!==w.retryLane))throw w.retryLane=r,Oi(e,r),dn(h,e,r),Pu;Nc(v)||Vs(),t=$u(e,t,a)}else Nc(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,ct=Un(v.nextSibling),Gt=t,Xe=!0,Va=null,jn=!1,e!==null&&Hd(t,e),t=Iu(t,r.children),t.flags|=4096);return t}return o?(Za(),v=r.fallback,o=t.mode,w=e.child,k=w.sibling,r=wa(w,{mode:"hidden",children:r.children}),r.subtreeFlags=w.subtreeFlags&65011712,k!==null?v=wa(k,v):(v=Mi(v,o,a,null),v.flags|=2),v.return=t,r.return=t,r.sibling=v,t.child=r,fl(null,r),r=t.child,v=e.child.memoizedState,v===null?v=Zu(a):(o=v.cachePool,o!==null?(w=Ct._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Pd(),v={baseLanes:v.baseLanes|a,cachePool:o}),r.memoizedState=v,r.childLanes=Ju(e,h,a),t.memoizedState=Fu,fl(e.child,r)):(Fa(t),a=e.child,e=a.sibling,a=wa(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function Iu(e,t){return t=ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ks(e,t){return e=bn(22,e,null,t),e.lanes=0,e}function $u(e,t,a){return Ui(t,e.child,null,a),e=Iu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rm(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),hu(e.return,t,a)}function Wu(e,t,a,r,o,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:o,treeForkCount:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=r,h.tail=a,h.tailMode=o,h.treeForkCount=u)}function lm(e,t,a){var r=t.pendingProps,o=r.revealOrder,u=r.tail;r=r.children;var h=Tt.current,v=(h&2)!==0;if(v?(h=h&1|2,t.flags|=128):h&=1,q(Tt,h),Pt(e,t,r,a),r=Xe?$r:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rm(e,a,t);else if(e.tag===19)rm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&ws(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Wu(t,!1,o,a,u,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ws(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Wu(t,!0,a,null,u,r);break;case"together":Wu(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ca(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),$a|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ur(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=wa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=wa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ec(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hs(e)))}function U0(e,t,a){switch(t.tag){case 3:Re(t,t.stateNode.containerInfo),Ga(t,Ct,e.memoizedState.cache),Ni();break;case 27:case 5:Ht(t);break;case 4:Re(t,t.stateNode.containerInfo);break;case 10:Ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ru(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Fa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?im(e,t,a):(Fa(t),e=Ca(e,t,a),e!==null?e.sibling:null);Fa(t);break;case 19:var o=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(ur(e,t,a,!1),r=(a&t.childLanes)!==0),o){if(r)return lm(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),q(Tt,Tt.current),r)break;return null;case 22:return t.lanes=0,$h(e,t,a,t.pendingProps);case 24:Ga(t,Ct,e.memoizedState.cache)}return Ca(e,t,a)}function sm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ot=!0;else{if(!ec(e,a)&&(t.flags&128)===0)return Ot=!1,U0(e,t,a);Ot=(e.flags&131072)!==0}else Ot=!1,Xe&&(t.flags&1048576)!==0&&qd(t,$r,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ji(t.elementType),t.type=e,typeof e=="function")ru(e)?(r=qi(e,r),t.tag=1,t=nm(null,t,e,r,a)):(t.tag=0,t=Xu(null,t,e,r,a));else{if(e!=null){var o=e.$$typeof;if(o===ye){t.tag=11,t=Zh(null,t,e,r,a);break e}else if(o===A){t.tag=14,t=Jh(null,t,e,r,a);break e}}throw t=Le(e)||e,Error(s(306,t,""))}}return t;case 0:return Xu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,o=qi(r,t.pendingProps),nm(e,t,r,o,a);case 3:e:{if(Re(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var u=t.memoizedState;o=u.element,Su(e,t),ll(t,r,null,a);var h=t.memoizedState;if(r=h.cache,Ga(t,Ct,r),r!==u.cache&&mu(t,[Ct],a,!0),rl(),r=h.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=am(e,t,r,a);break e}else if(r!==o){o=Dn(Error(s(424)),t),Wr(o),t=am(e,t,r,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ct=Un(e.firstChild),Gt=t,Xe=!0,Va=null,jn=!0,a=$d(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ni(),r===o){t=Ca(e,t,a);break e}Pt(e,t,r,a)}t=t.child}return t;case 26:return Ds(e,t),e===null?(a=vp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Xe||(a=t.type,e=t.pendingProps,r=Zs(ue.current).createElement(a),r[ne]=t,r[ie]=e,Xt(r,a,e),dt(r),t.stateNode=r):t.memoizedState=vp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ht(t),e===null&&Xe&&(r=t.stateNode=pp(t.type,t.pendingProps,ue.current),Gt=t,jn=!0,o=ct,ai(t.type)?(kc=o,ct=Un(r.firstChild)):ct=o),Pt(e,t,t.pendingProps.children,a),Ds(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Xe&&((o=r=ct)&&(r=hb(r,t.type,t.pendingProps,jn),r!==null?(t.stateNode=r,Gt=t,ct=Un(r.firstChild),jn=!1,o=!0):o=!1),o||Ya(t)),Ht(t),o=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,r=u.children,Ac(o,u)?r=null:h!==null&&Ac(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=Cu(e,t,A0,null,null,a),_l._currentValue=o),Ds(e,t),Pt(e,t,r,a),t.child;case 6:return e===null&&Xe&&((e=a=ct)&&(a=mb(a,t.pendingProps,jn),a!==null?(t.stateNode=a,Gt=t,ct=null,e=!0):e=!1),e||Ya(t)),null;case 13:return im(e,t,a);case 4:return Re(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ui(t,null,r,a):Pt(e,t,r,a),t.child;case 11:return Zh(e,t,t.type,t.pendingProps,a);case 7:return Pt(e,t,t.pendingProps,a),t.child;case 8:return Pt(e,t,t.pendingProps.children,a),t.child;case 12:return Pt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Ga(t,t.type,r.value),Pt(e,t,r.children,a),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,ki(t),o=Kt(o),r=r(o),t.flags|=1,Pt(e,t,r,a),t.child;case 14:return Jh(e,t,t.type,t.pendingProps,a);case 15:return Ih(e,t,t.type,t.pendingProps,a);case 19:return lm(e,t,a);case 31:return L0(e,t,a);case 22:return $h(e,t,a,t.pendingProps);case 24:return ki(t),r=Kt(Ct),e===null?(o=yu(),o===null&&(o=rt,u=pu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=a),o=u),t.memoizedState={parent:r,cache:o},bu(t),Ga(t,Ct,o)):((e.lanes&a)!==0&&(Su(e,t),ll(t,null,null,a),rl()),o=e.memoizedState,u=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ga(t,Ct,r)):(r=u.cache,Ga(t,Ct,r),r!==o.cache&&mu(t,[Ct],a,!0))),Pt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Aa(e){e.flags|=4}function tc(e,t,a,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(zm())e.flags|=8192;else throw Li=ys,vu}else e.flags&=-16777217}function om(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ep(t))if(zm())e.flags|=8192;else throw Li=ys,vu}function zs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?xt():536870912,e.lanes|=t,wr|=t)}function dl(e,t){if(!Xe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function B0(e,t,a){var r=t.pendingProps;switch(uu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ta(Ct),Ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(or(t)?Aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fu())),ft(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Aa(t),u!==null?(ft(t),om(t,u)):(ft(t),tc(t,o,null,r,a))):u?u!==e.memoizedState?(Aa(t),ft(t),om(t,u)):(ft(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Aa(t),ft(t),tc(t,o,e,r,a)),null;case 27:if($t(t),a=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return ft(t),null}e=Z.current,or(t)?Qd(t):(e=pp(o,r,a),t.stateNode=e,Aa(t))}return ft(t),null;case 5:if($t(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return ft(t),null}if(u=Z.current,or(t))Qd(t);else{var h=Zs(ue.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof r.is=="string"?h.createElement("select",{is:r.is}):h.createElement("select"),r.multiple?u.multiple=!0:r.size&&(u.size=r.size);break;default:u=typeof r.is=="string"?h.createElement(o,{is:r.is}):h.createElement(o)}}u[ne]=t,u[ie]=r;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=u;e:switch(Xt(u,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Aa(t)}}return ft(t),tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Aa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(s(166));if(e=ue.current,or(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,o=Gt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ne]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||ip(e.nodeValue,a)),e||Ya(t,!0)}else e=Zs(e).createTextNode(r),e[ne]=t,t.stateNode=e}return ft(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=or(t),a!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ne]=t}else Ni(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),e=!1}else a=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if((t.flags&128)!==0)throw Error(s(558))}return ft(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=or(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ne]=t}else Ni(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),o=!1}else o=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==o&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),zs(t,t.updateQueue),ft(t),null);case 4:return Ve(),e===null&&Ec(t.stateNode.containerInfo),ft(t),null;case 10:return Ta(t.type),ft(t),null;case 19:if(Q(Tt),r=t.memoizedState,r===null)return ft(t),null;if(o=(t.flags&128)!==0,u=r.rendering,u===null)if(o)dl(r,!1);else{if(St!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ws(e),u!==null){for(t.flags|=128,dl(r,!1),e=u.updateQueue,t.updateQueue=e,zs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Ld(a,e),a=a.sibling;return q(Tt,Tt.current&1|2),Xe&&xa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&mt()>qs&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304)}else{if(!o)if(e=ws(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,zs(t,e),dl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!u.alternate&&!Xe)return ft(t),null}else 2*mt()-r.renderingStartTime>qs&&a!==536870912&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304);r.isBackwards?(u.sibling=t.child,t.child=u):(e=r.last,e!==null?e.sibling=u:t.child=u,r.last=u)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=mt(),e.sibling=null,a=Tt.current,q(Tt,o?a&1|2:a&1),Xe&&xa(t,r.treeForkCount),e):(ft(t),null);case 22:case 23:return wn(t),Tu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),a=t.updateQueue,a!==null&&zs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&Q(zi),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ta(Ct),ft(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function q0(e,t){switch(uu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ta(Ct),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $t(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(s(340));Ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ni()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Tt),null;case 4:return Ve(),null;case 10:return Ta(t.type),null;case 22:case 23:return wn(t),Tu(),e!==null&&Q(zi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ta(Ct),null;case 25:return null;default:return null}}function um(e,t){switch(uu(t),t.tag){case 3:Ta(Ct),Ve();break;case 26:case 27:case 5:$t(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:Q(Tt);break;case 10:Ta(t.type);break;case 22:case 23:wn(t),Tu(),e!==null&&Q(zi);break;case 24:Ta(Ct)}}function hl(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var o=r.next;a=o;do{if((a.tag&e)===e){r=void 0;var u=a.create,h=a.inst;r=u(),h.destroy=r}a=a.next}while(a!==o)}}catch(v){tt(t,t.return,v)}}function Ja(e,t,a){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var u=o.next;r=u;do{if((r.tag&e)===e){var h=r.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,o=t;var w=a,k=v;try{k()}catch(V){tt(o,w,V)}}}r=r.next}while(r!==u)}}catch(V){tt(t,t.return,V)}}function cm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{eh(t,a)}catch(r){tt(e,e.return,r)}}}function fm(e,t,a){a.props=qi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){tt(e,t,r)}}function ml(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(o){tt(e,t,o)}}function la(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(o){tt(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){tt(e,t,o)}else a.current=null}function dm(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(o){tt(e,e.return,o)}}function nc(e,t,a){try{var r=e.stateNode;sb(r,e.type,a,t),r[ie]=t}catch(o){tt(e,e.return,o)}}function hm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ai(e.type)||e.tag===4}function ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ai(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ic(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ba));else if(r!==4&&(r===27&&ai(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ic(e,t,a),e=e.sibling;e!==null;)ic(e,t,a),e=e.sibling}function js(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&ai(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(js(e,t,a),e=e.sibling;e!==null;)js(e,t,a),e=e.sibling}function mm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Xt(t,r,a),t[ne]=e,t[ie]=a}catch(u){tt(e,e.return,u)}}var Oa=!1,Mt=!1,rc=!1,pm=typeof WeakSet=="function"?WeakSet:Set,Bt=null;function H0(e,t){if(e=e.containerInfo,_c=no,e=Cd(e),$o(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var o=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var h=0,v=-1,w=-1,k=0,V=0,X=e,z=null;t:for(;;){for(var U;X!==a||o!==0&&X.nodeType!==3||(v=h+o),X!==u||r!==0&&X.nodeType!==3||(w=h+r),X.nodeType===3&&(h+=X.nodeValue.length),(U=X.firstChild)!==null;)z=X,X=U;for(;;){if(X===e)break t;if(z===a&&++k===o&&(v=h),z===u&&++V===r&&(w=h),(U=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=U}a=v===-1||w===-1?null:{start:v,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Cc={focusedElem:e,selectionRange:a},no=!1,Bt=t;Bt!==null;)if(t=Bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Bt=e;else for(;Bt!==null;){switch(t=Bt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,o=u.memoizedProps,u=u.memoizedState,r=a.stateNode;try{var re=qi(a.type,o);e=r.getSnapshotBeforeUpdate(re,u),r.__reactInternalSnapshotBeforeUpdate=e}catch(Ee){tt(a,a.return,Ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Mc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Bt=e;break}Bt=t.return}}function gm(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:Na(e,a),r&4&&hl(5,a);break;case 1:if(Na(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){tt(a,a.return,h)}else{var o=qi(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){tt(a,a.return,h)}}r&64&&cm(a),r&512&&ml(a,a.return);break;case 3:if(Na(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{eh(e,t)}catch(h){tt(a,a.return,h)}}break;case 27:t===null&&r&4&&mm(a);case 26:case 5:Na(e,a),t===null&&r&4&&dm(a),r&512&&ml(a,a.return);break;case 12:Na(e,a);break;case 31:Na(e,a),r&4&&bm(e,a);break;case 13:Na(e,a),r&4&&Sm(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Z0.bind(null,a),pb(e,a))));break;case 22:if(r=a.memoizedState!==null||Oa,!r){t=t!==null&&t.memoizedState!==null||Mt,o=Oa;var u=Mt;Oa=r,(Mt=t)&&!u?Da(e,a,(a.subtreeFlags&8772)!==0):Na(e,a),Oa=o,Mt=u}break;case 30:break;default:Na(e,a)}}function ym(e){var t=e.alternate;t!==null&&(e.alternate=null,ym(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ht=null,on=!1;function Ma(e,t,a){for(a=a.child;a!==null;)vm(e,t,a),a=a.sibling}function vm(e,t,a){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(pa,a)}catch{}switch(a.tag){case 26:Mt||la(a,t),Ma(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Mt||la(a,t);var r=ht,o=on;ai(a.type)&&(ht=a.stateNode,on=!1),Ma(e,t,a),El(a.stateNode),ht=r,on=o;break;case 5:Mt||la(a,t);case 6:if(r=ht,o=on,ht=null,Ma(e,t,a),ht=r,on=o,ht!==null)if(on)try{(ht.nodeType===9?ht.body:ht.nodeName==="HTML"?ht.ownerDocument.body:ht).removeChild(a.stateNode)}catch(u){tt(a,t,u)}else try{ht.removeChild(a.stateNode)}catch(u){tt(a,t,u)}break;case 18:ht!==null&&(on?(e=ht,cp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Or(e)):cp(ht,a.stateNode));break;case 4:r=ht,o=on,ht=a.stateNode.containerInfo,on=!0,Ma(e,t,a),ht=r,on=o;break;case 0:case 11:case 14:case 15:Ja(2,a,t),Mt||Ja(4,a,t),Ma(e,t,a);break;case 1:Mt||(la(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&fm(a,t,r)),Ma(e,t,a);break;case 21:Ma(e,t,a);break;case 22:Mt=(r=Mt)||a.memoizedState!==null,Ma(e,t,a),Mt=r;break;default:Ma(e,t,a)}}function bm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Or(e)}catch(a){tt(t,t.return,a)}}}function Sm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Or(e)}catch(a){tt(t,t.return,a)}}function Q0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pm),t;default:throw Error(s(435,e.tag))}}function Ls(e,t){var a=Q0(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var o=J0.bind(null,e,r);r.then(o,o)}})}function un(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var o=a[r],u=e,h=t,v=h;e:for(;v!==null;){switch(v.tag){case 27:if(ai(v.type)){ht=v.stateNode,on=!1;break e}break;case 5:ht=v.stateNode,on=!1;break e;case 3:case 4:ht=v.stateNode.containerInfo,on=!0;break e}v=v.return}if(ht===null)throw Error(s(160));vm(u,h,o),ht=null,on=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wm(t,e),t=t.sibling}var $n=null;function wm(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:un(t,e),cn(e),r&4&&(Ja(3,e,e.return),hl(3,e),Ja(5,e,e.return));break;case 1:un(t,e),cn(e),r&512&&(Mt||a===null||la(a,a.return)),r&64&&Oa&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var o=$n;if(un(t,e),cn(e),r&512&&(Mt||a===null||la(a,a.return)),r&4){var u=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":u=o.getElementsByTagName("title")[0],(!u||u[pt]||u[ne]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(r),o.head.insertBefore(u,o.querySelector("head > title"))),Xt(u,r,a),u[ne]=e,dt(u),r=u;break e;case"link":var h=wp("link","href",o).get(r+(a.href||""));if(h){for(var v=0;v<h.length;v++)if(u=h[v],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(v,1);break t}}u=o.createElement(r),Xt(u,r,a),o.head.appendChild(u);break;case"meta":if(h=wp("meta","content",o).get(r+(a.content||""))){for(v=0;v<h.length;v++)if(u=h[v],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(v,1);break t}}u=o.createElement(r),Xt(u,r,a),o.head.appendChild(u);break;default:throw Error(s(468,r))}u[ne]=e,dt(u),r=u}e.stateNode=r}else xp(o,e.type,e.stateNode);else e.stateNode=Sp(o,r,e.memoizedProps);else u!==r?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,r===null?xp(o,e.type,e.stateNode):Sp(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&nc(e,e.memoizedProps,a.memoizedProps)}break;case 27:un(t,e),cn(e),r&512&&(Mt||a===null||la(a,a.return)),a!==null&&r&4&&nc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(un(t,e),cn(e),r&512&&(Mt||a===null||la(a,a.return)),e.flags&32){o=e.stateNode;try{$i(o,"")}catch(re){tt(e,e.return,re)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,nc(e,o,a!==null?a.memoizedProps:o)),r&1024&&(rc=!0);break;case 6:if(un(t,e),cn(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(re){tt(e,e.return,re)}}break;case 3:if($s=null,o=$n,$n=Js(t.containerInfo),un(t,e),$n=o,cn(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Or(t.containerInfo)}catch(re){tt(e,e.return,re)}rc&&(rc=!1,xm(e));break;case 4:r=$n,$n=Js(e.stateNode.containerInfo),un(t,e),cn(e),$n=r;break;case 12:un(t,e),cn(e);break;case 31:un(t,e),cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ls(e,r)));break;case 13:un(t,e),cn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Bs=mt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ls(e,r)));break;case 22:o=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,k=Oa,V=Mt;if(Oa=k||o,Mt=V||w,un(t,e),Mt=V,Oa=k,cn(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||w||Oa||Mt||Hi(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(u=w.stateNode,o)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{v=w.stateNode;var X=w.memoizedProps.style,z=X!=null&&X.hasOwnProperty("display")?X.display:null;v.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(re){tt(w,w.return,re)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(re){tt(w,w.return,re)}}}else if(t.tag===18){if(a===null){w=t;try{var U=w.stateNode;o?fp(U,!0):fp(w.stateNode,!1)}catch(re){tt(w,w.return,re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Ls(e,a))));break;case 19:un(t,e),cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ls(e,r)));break;case 30:break;case 21:break;default:un(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(hm(r)){a=r;break}r=r.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,u=ac(e);js(e,u,o);break;case 5:var h=a.stateNode;a.flags&32&&($i(h,""),a.flags&=-33);var v=ac(e);js(e,v,h);break;case 3:case 4:var w=a.stateNode.containerInfo,k=ac(e);ic(e,k,w);break;default:throw Error(s(161))}}catch(V){tt(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gm(e,t.alternate,t),t=t.sibling}function Hi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ja(4,t,t.return),Hi(t);break;case 1:la(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&fm(t,t.return,a),Hi(t);break;case 27:El(t.stateNode);case 26:case 5:la(t,t.return),Hi(t);break;case 22:t.memoizedState===null&&Hi(t);break;case 30:Hi(t);break;default:Hi(t)}e=e.sibling}}function Da(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:Da(o,u,a),hl(4,u);break;case 1:if(Da(o,u,a),r=u,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(k){tt(r,r.return,k)}if(r=u,o=r.updateQueue,o!==null){var v=r.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Wd(w[o],v)}catch(k){tt(r,r.return,k)}}a&&h&64&&cm(u),ml(u,u.return);break;case 27:mm(u);case 26:case 5:Da(o,u,a),a&&r===null&&h&4&&dm(u),ml(u,u.return);break;case 12:Da(o,u,a);break;case 31:Da(o,u,a),a&&h&4&&bm(o,u);break;case 13:Da(o,u,a),a&&h&4&&Sm(o,u);break;case 22:u.memoizedState===null&&Da(o,u,a),ml(u,u.return);break;case 30:break;default:Da(o,u,a)}t=t.sibling}}function lc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&el(a))}function sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&el(e))}function Wn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Em(e,t,a,r),t=t.sibling}function Em(e,t,a,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Wn(e,t,a,r),o&2048&&hl(9,t);break;case 1:Wn(e,t,a,r);break;case 3:Wn(e,t,a,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&el(e)));break;case 12:if(o&2048){Wn(e,t,a,r),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,v=u.onPostCommit;typeof v=="function"&&v(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){tt(t,t.return,w)}}else Wn(e,t,a,r);break;case 31:Wn(e,t,a,r);break;case 13:Wn(e,t,a,r);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?Wn(e,t,a,r):pl(e,t):u._visibility&2?Wn(e,t,a,r):(u._visibility|=2,vr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&lc(h,t);break;case 24:Wn(e,t,a,r),o&2048&&sc(t.alternate,t);break;default:Wn(e,t,a,r)}}function vr(e,t,a,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,h=t,v=a,w=r,k=h.flags;switch(h.tag){case 0:case 11:case 15:vr(u,h,v,w,o),hl(8,h);break;case 23:break;case 22:var V=h.stateNode;h.memoizedState!==null?V._visibility&2?vr(u,h,v,w,o):pl(u,h):(V._visibility|=2,vr(u,h,v,w,o)),o&&k&2048&&lc(h.alternate,h);break;case 24:vr(u,h,v,w,o),o&&k&2048&&sc(h.alternate,h);break;default:vr(u,h,v,w,o)}t=t.sibling}}function pl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,o=r.flags;switch(r.tag){case 22:pl(a,r),o&2048&&lc(r.alternate,r);break;case 24:pl(a,r),o&2048&&sc(r.alternate,r);break;default:pl(a,r)}t=t.sibling}}var gl=8192;function br(e,t,a){if(e.subtreeFlags&gl)for(e=e.child;e!==null;)Tm(e,t,a),e=e.sibling}function Tm(e,t,a){switch(e.tag){case 26:br(e,t,a),e.flags&gl&&e.memoizedState!==null&&Cb(a,$n,e.memoizedState,e.memoizedProps);break;case 5:br(e,t,a);break;case 3:case 4:var r=$n;$n=Js(e.stateNode.containerInfo),br(e,t,a),$n=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=gl,gl=16777216,br(e,t,a),gl=r):br(e,t,a));break;default:br(e,t,a)}}function Rm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function yl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Bt=r,Cm(r,e)}Rm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_m(e),e=e.sibling}function _m(e){switch(e.tag){case 0:case 11:case 15:yl(e),e.flags&2048&&Ja(9,e,e.return);break;case 3:yl(e);break;case 12:yl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Us(e)):yl(e);break;default:yl(e)}}function Us(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Bt=r,Cm(r,e)}Rm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ja(8,t,t.return),Us(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Us(t));break;default:Us(t)}e=e.sibling}}function Cm(e,t){for(;Bt!==null;){var a=Bt;switch(a.tag){case 0:case 11:case 15:Ja(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:el(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,Bt=r;else e:for(a=e;Bt!==null;){r=Bt;var o=r.sibling,u=r.return;if(ym(r),r===a){Bt=null;break e}if(o!==null){o.return=u,Bt=o;break e}Bt=u}}}var V0={getCacheForType:function(e){var t=Kt(Ct),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Kt(Ct).controller.signal}},Y0=typeof WeakMap=="function"?WeakMap:Map,We=0,rt=null,Be=null,He=0,et=0,xn=null,Ia=!1,Sr=!1,oc=!1,ka=0,St=0,$a=0,Qi=0,uc=0,En=0,wr=0,vl=null,fn=null,cc=!1,Bs=0,Am=0,qs=1/0,Hs=null,Wa=null,zt=0,ei=null,xr=null,za=0,fc=0,dc=null,Om=null,bl=0,hc=null;function Tn(){return(We&2)!==0&&He!==0?He&-He:O.T!==null?bc():W()}function Mm(){if(En===0)if((He&536870912)===0||Xe){var e=ga;ga<<=1,(ga&3932160)===0&&(ga=262144),En=e}else En=536870912;return e=Sn.current,e!==null&&(e.flags|=32),En}function dn(e,t,a){(e===rt&&(et===2||et===9)||e.cancelPendingCommit!==null)&&(Er(e,0),ti(e,He,En,!1)),ot(e,a),((We&2)===0||e!==rt)&&(e===rt&&((We&2)===0&&(Qi|=a),St===4&&ti(e,He,En,!1)),sa(e))}function Nm(e,t,a){if((We&6)!==0)throw Error(s(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||st(e,t),o=r?P0(e,t):pc(e,t,!0),u=r;do{if(o===0){Sr&&!r&&ti(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!G0(a)){o=pc(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var v=e;o=vl;var w=v.current.memoizedState.isDehydrated;if(w&&(Er(v,h).flags|=256),h=pc(v,h,!1),h!==2){if(oc&&!w){v.errorRecoveryDisabledLanes|=u,Qi|=u,o=4;break e}u=fn,fn=o,u!==null&&(fn===null?fn=u:fn.push.apply(fn,u))}o=h}if(u=!1,o!==2)continue}}if(o===1){Er(e,0),ti(e,t,0,!0);break}e:{switch(r=e,u=o,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:ti(r,t,En,!Ia);break e;case 2:fn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Bs+300-mt(),10<o)){if(ti(r,t,En,!Ia),_e(r,0,!0)!==0)break e;za=t,r.timeoutHandle=op(Dm.bind(null,r,a,fn,Hs,cc,t,En,Qi,wr,Ia,u,"Throttled",-0,0),o);break e}Dm(r,a,fn,Hs,cc,t,En,Qi,wr,Ia,u,null,-0,0)}}break}while(!0);sa(e)}function Dm(e,t,a,r,o,u,h,v,w,k,V,X,z,U){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ba},Tm(t,u,X);var re=(u&62914560)===u?Bs-mt():(u&4194048)===u?Am-mt():0;if(re=Ab(X,re),re!==null){za=u,e.cancelPendingCommit=re(Hm.bind(null,e,t,u,a,r,o,h,v,w,V,X,null,z,U)),ti(e,u,h,!k);return}}Hm(e,t,u,a,r,o,h,v,w)}function G0(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var o=a[r],u=o.getSnapshot;o=o.value;try{if(!vn(u(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ti(e,t,a,r){t&=~uc,t&=~Qi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var u=31-kt(o),h=1<<u;r[u]=-1,o&=~h}a!==0&&ya(e,a,t)}function Qs(){return(We&6)===0?(Sl(0),!1):!0}function mc(){if(Be!==null){if(et===0)var e=Be.return;else e=Be,Ea=Di=null,Mu(e),hr=null,nl=0,e=Be;for(;e!==null;)um(e.alternate,e),e=e.return;Be=null}}function Er(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,cb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),za=0,mc(),rt=e,Be=a=wa(e.current,null),He=t,et=0,xn=null,Ia=!1,Sr=st(e,t),oc=!1,wr=En=uc=Qi=$a=St=0,fn=vl=null,cc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-kt(r),u=1<<o;t|=e[o],r&=~u}return ka=t,os(),a}function km(e,t){Ne=null,O.H=cl,t===dr||t===gs?(t=Zd(),et=3):t===vu?(t=Zd(),et=4):et=t===Pu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,xn=t,Be===null&&(St=1,Ms(e,Dn(t,e.current)))}function zm(){var e=Sn.current;return e===null?!0:(He&4194048)===He?Ln===null:(He&62914560)===He||(He&536870912)!==0?e===Ln:!1}function jm(){var e=O.H;return O.H=cl,e===null?cl:e}function Lm(){var e=O.A;return O.A=V0,e}function Vs(){St=4,Ia||(He&4194048)!==He&&Sn.current!==null||(Sr=!0),($a&134217727)===0&&(Qi&134217727)===0||rt===null||ti(rt,He,En,!1)}function pc(e,t,a){var r=We;We|=2;var o=jm(),u=Lm();(rt!==e||He!==t)&&(Hs=null,Er(e,t)),t=!1;var h=St;e:do try{if(et!==0&&Be!==null){var v=Be,w=xn;switch(et){case 8:mc(),h=6;break e;case 3:case 2:case 9:case 6:Sn.current===null&&(t=!0);var k=et;if(et=0,xn=null,Tr(e,v,w,k),a&&Sr){h=0;break e}break;default:k=et,et=0,xn=null,Tr(e,v,w,k)}}K0(),h=St;break}catch(V){km(e,V)}while(!0);return t&&e.shellSuspendCounter++,Ea=Di=null,We=r,O.H=o,O.A=u,Be===null&&(rt=null,He=0,os()),h}function K0(){for(;Be!==null;)Um(Be)}function P0(e,t){var a=We;We|=2;var r=jm(),o=Lm();rt!==e||He!==t?(Hs=null,qs=mt()+500,Er(e,t)):Sr=st(e,t);e:do try{if(et!==0&&Be!==null){t=Be;var u=xn;t:switch(et){case 1:et=0,xn=null,Tr(e,t,u,1);break;case 2:case 9:if(Xd(u)){et=0,xn=null,Bm(t);break}t=function(){et!==2&&et!==9||rt!==e||(et=7),sa(e)},u.then(t,t);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:Xd(u)?(et=0,xn=null,Bm(t)):(et=0,xn=null,Tr(e,t,u,7));break;case 5:var h=null;switch(Be.tag){case 26:h=Be.memoizedState;case 5:case 27:var v=Be;if(h?Ep(h):v.stateNode.complete){et=0,xn=null;var w=v.sibling;if(w!==null)Be=w;else{var k=v.return;k!==null?(Be=k,Ys(k)):Be=null}break t}}et=0,xn=null,Tr(e,t,u,5);break;case 6:et=0,xn=null,Tr(e,t,u,6);break;case 8:mc(),St=6;break e;default:throw Error(s(462))}}X0();break}catch(V){km(e,V)}while(!0);return Ea=Di=null,O.H=r,O.A=o,We=a,Be!==null?0:(rt=null,He=0,os(),St)}function X0(){for(;Be!==null&&!Qt();)Um(Be)}function Um(e){var t=sm(e.alternate,e,ka);e.memoizedProps=e.pendingProps,t===null?Ys(e):Be=t}function Bm(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=tm(a,t,t.pendingProps,t.type,void 0,He);break;case 11:t=tm(a,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:Mu(t);default:um(a,t),t=Be=Ld(t,ka),t=sm(a,t,ka)}e.memoizedProps=e.pendingProps,t===null?Ys(e):Be=t}function Tr(e,t,a,r){Ea=Di=null,Mu(t),hr=null,nl=0;var o=t.return;try{if(j0(e,o,t,a,He)){St=1,Ms(e,Dn(a,e.current)),Be=null;return}}catch(u){if(o!==null)throw Be=o,u;St=1,Ms(e,Dn(a,e.current)),Be=null;return}t.flags&32768?(Xe||r===1?e=!0:Sr||(He&536870912)!==0?e=!1:(Ia=e=!0,(r===2||r===9||r===3||r===6)&&(r=Sn.current,r!==null&&r.tag===13&&(r.flags|=16384))),qm(t,e)):Ys(t)}function Ys(e){var t=e;do{if((t.flags&32768)!==0){qm(t,Ia);return}e=t.return;var a=B0(t.alternate,t,ka);if(a!==null){Be=a;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);St===0&&(St=5)}function qm(e,t){do{var a=q0(e.alternate,e);if(a!==null){a.flags&=32767,Be=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Be=e;return}Be=e=a}while(e!==null);St=6,Be=null}function Hm(e,t,a,r,o,u,h,v,w){e.cancelPendingCommit=null;do Gs();while(zt!==0);if((We&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=au,Zt(e,a,u,h,v,w),e===rt&&(Be=rt=null,He=0),xr=t,ei=e,za=a,fc=u,dc=o,Om=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,I0(Vt,function(){return Km(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=O.T,O.T=null,o=F.p,F.p=2,h=We,We|=4;try{H0(e,t,a)}finally{We=h,F.p=o,O.T=r}}zt=1,Qm(),Vm(),Ym()}}function Qm(){if(zt===1){zt=0;var e=ei,t=xr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var r=F.p;F.p=2;var o=We;We|=4;try{wm(t,e);var u=Cc,h=Cd(e.containerInfo),v=u.focusedElem,w=u.selectionRange;if(h!==v&&v&&v.ownerDocument&&_d(v.ownerDocument.documentElement,v)){if(w!==null&&$o(v)){var k=w.start,V=w.end;if(V===void 0&&(V=k),"selectionStart"in v)v.selectionStart=k,v.selectionEnd=Math.min(V,v.value.length);else{var X=v.ownerDocument||document,z=X&&X.defaultView||window;if(z.getSelection){var U=z.getSelection(),re=v.textContent.length,Ee=Math.min(w.start,re),it=w.end===void 0?Ee:Math.min(w.end,re);!U.extend&&Ee>it&&(h=it,it=Ee,Ee=h);var M=Rd(v,Ee),R=Rd(v,it);if(M&&R&&(U.rangeCount!==1||U.anchorNode!==M.node||U.anchorOffset!==M.offset||U.focusNode!==R.node||U.focusOffset!==R.offset)){var D=X.createRange();D.setStart(M.node,M.offset),U.removeAllRanges(),Ee>it?(U.addRange(D),U.extend(R.node,R.offset)):(D.setEnd(R.node,R.offset),U.addRange(D))}}}}for(X=[],U=v;U=U.parentNode;)U.nodeType===1&&X.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<X.length;v++){var P=X[v];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}no=!!_c,Cc=_c=null}finally{We=o,F.p=r,O.T=a}}e.current=t,zt=2}}function Vm(){if(zt===2){zt=0;var e=ei,t=xr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var r=F.p;F.p=2;var o=We;We|=4;try{gm(e,t.alternate,t)}finally{We=o,F.p=r,O.T=a}}zt=3}}function Ym(){if(zt===4||zt===3){zt=0,na();var e=ei,t=xr,a=za,r=Om;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?zt=5:(zt=0,xr=ei=null,Gm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Wa=null),I(a),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(pa,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=O.T,o=F.p,F.p=2,O.T=null;try{for(var u=e.onRecoverableError,h=0;h<r.length;h++){var v=r[h];u(v.value,{componentStack:v.stack})}}finally{O.T=t,F.p=o}}(za&3)!==0&&Gs(),sa(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===hc?bl++:(bl=0,hc=e):bl=0,Sl(0)}}function Gm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,el(t)))}function Gs(){return Qm(),Vm(),Ym(),Km()}function Km(){if(zt!==5)return!1;var e=ei,t=fc;fc=0;var a=I(za),r=O.T,o=F.p;try{F.p=32>a?32:a,O.T=null,a=dc,dc=null;var u=ei,h=za;if(zt=0,xr=ei=null,za=0,(We&6)!==0)throw Error(s(331));var v=We;if(We|=4,_m(u.current),Em(u,u.current,h,a),We=v,Sl(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(pa,u)}catch{}return!0}finally{F.p=o,O.T=r,Gm(e,t)}}function Pm(e,t,a){t=Dn(a,t),t=Ku(e.stateNode,t,2),e=Xa(e,t,2),e!==null&&(ot(e,2),sa(e))}function tt(e,t,a){if(e.tag===3)Pm(e,e,a);else for(;t!==null;){if(t.tag===3){Pm(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wa===null||!Wa.has(r))){e=Dn(a,e),a=Xh(2),r=Xa(t,a,2),r!==null&&(Fh(a,r,t,e),ot(r,2),sa(r));break}}t=t.return}}function gc(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new Y0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(a)||(oc=!0,o.add(a),e=F0.bind(null,e,t,a),t.then(e,e))}function F0(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,rt===e&&(He&a)===a&&(St===4||St===3&&(He&62914560)===He&&300>mt()-Bs?(We&2)===0&&Er(e,0):uc|=a,wr===He&&(wr=0)),sa(e)}function Xm(e,t){t===0&&(t=xt()),e=Oi(e,t),e!==null&&(ot(e,t),sa(e))}function Z0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Xm(e,a)}function J0(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),Xm(e,a)}function I0(e,t){return Si(e,t)}var Ks=null,Rr=null,yc=!1,Ps=!1,vc=!1,ni=0;function sa(e){e!==Rr&&e.next===null&&(Rr===null?Ks=Rr=e:Rr=Rr.next=e),Ps=!0,yc||(yc=!0,W0())}function Sl(e,t){if(!vc&&Ps){vc=!0;do for(var a=!1,r=Ks;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var u=0;else{var h=r.suspendedLanes,v=r.pingedLanes;u=(1<<31-kt(42|e)+1)-1,u&=o&~(h&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Im(r,u))}else u=He,u=_e(r,r===rt?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(u&3)===0||st(r,u)||(a=!0,Im(r,u));r=r.next}while(a);vc=!1}}function $0(){Fm()}function Fm(){Ps=yc=!1;var e=0;ni!==0&&ub()&&(e=ni);for(var t=mt(),a=null,r=Ks;r!==null;){var o=r.next,u=Zm(r,t);u===0?(r.next=null,a===null?Ks=o:a.next=o,o===null&&(Rr=a)):(a=r,(e!==0||(u&3)!==0)&&(Ps=!0)),r=o}zt!==0&&zt!==5||Sl(e),ni!==0&&(ni=0)}function Zm(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-kt(u),v=1<<h,w=o[h];w===-1?((v&a)===0||(v&r)!==0)&&(o[h]=wt(v,t)):w<=t&&(e.expiredLanes|=v),u&=~v}if(t=rt,a=He,a=_e(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(et===2||et===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&wi(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||st(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&wi(r),I(a)){case 2:case 8:a=qa;break;case 32:a=Vt;break;case 268435456:a=_n;break;default:a=Vt}return r=Jm.bind(null,e),a=Si(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&wi(r),e.callbackPriority=2,e.callbackNode=null,2}function Jm(e,t){if(zt!==0&&zt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Gs()&&e.callbackNode!==a)return null;var r=He;return r=_e(e,e===rt?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Nm(e,r,t),Zm(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Jm.bind(null,e):null)}function Im(e,t){if(Gs())return null;Nm(e,t,!0)}function W0(){fb(function(){(We&6)!==0?Si(aa,$0):Fm()})}function bc(){if(ni===0){var e=cr;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),ni=e}return ni}function $m(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:es(""+e)}function Wm(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function eb(e,t,a,r,o){if(t==="submit"&&a&&a.stateNode===o){var u=$m((o[ie]||null).action),h=r.submitter;h&&(t=(t=h[ie]||null)?$m(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var v=new is("action","action",null,r,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ni!==0){var w=h?Wm(o,h):new FormData(o);qu(a,{pending:!0,data:w,method:o.method,action:u},null,w)}}else typeof u=="function"&&(v.preventDefault(),w=h?Wm(o,h):new FormData(o),qu(a,{pending:!0,data:w,method:o.method,action:u},u,w))},currentTarget:o}]})}}for(var Sc=0;Sc<nu.length;Sc++){var wc=nu[Sc],tb=wc.toLowerCase(),nb=wc[0].toUpperCase()+wc.slice(1);In(tb,"on"+nb)}In(Md,"onAnimationEnd"),In(Nd,"onAnimationIteration"),In(Dd,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(v0,"onTransitionRun"),In(b0,"onTransitionStart"),In(S0,"onTransitionCancel"),In(kd,"onTransitionEnd"),On("onMouseEnter",["mouseout","mouseover"]),On("onMouseLeave",["mouseout","mouseover"]),On("onPointerEnter",["pointerout","pointerover"]),On("onPointerLeave",["pointerout","pointerover"]),Zn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wl="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(" "),ab=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wl));function ep(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],o=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var h=r.length-1;0<=h;h--){var v=r[h],w=v.instance,k=v.currentTarget;if(v=v.listener,w!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=k;try{u(o)}catch(V){ss(V)}o.currentTarget=null,u=w}else for(h=0;h<r.length;h++){if(v=r[h],w=v.instance,k=v.currentTarget,v=v.listener,w!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=k;try{u(o)}catch(V){ss(V)}o.currentTarget=null,u=w}}}}function qe(e,t){var a=t[xe];a===void 0&&(a=t[xe]=new Set);var r=e+"__bubble";a.has(r)||(tp(t,e,2,!1),a.add(r))}function xc(e,t,a){var r=0;t&&(r|=4),tp(a,e,r,t)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function Ec(e){if(!e[Xs]){e[Xs]=!0,Fn.forEach(function(a){a!=="selectionchange"&&(ab.has(a)||xc(a,!1,e),xc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xs]||(t[Xs]=!0,xc("selectionchange",!1,t))}}function tp(e,t,a,r){switch(Mp(t)){case 2:var o=Nb;break;case 8:o=Db;break;default:o=Bc}a=o.bind(null,t,a,e),o=void 0,!Yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Tc(e,t,a,r,o){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var h=r.tag;if(h===3||h===4){var v=r.stateNode.containerInfo;if(v===o)break;if(h===4)for(h=r.return;h!==null;){var w=h.tag;if((w===3||w===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;v!==null;){if(h=vt(v),h===null)return;if(w=h.tag,w===5||w===6||w===26||w===27){r=u=h;continue e}v=v.parentNode}}r=r.return}ld(function(){var k=u,V=Qo(a),X=[];e:{var z=zd.get(e);if(z!==void 0){var U=is,re=e;switch(e){case"keypress":if(ns(a)===0)break e;case"keydown":case"keyup":U=Jv;break;case"focusin":re="focus",U=Xo;break;case"focusout":re="blur",U=Xo;break;case"beforeblur":case"afterblur":U=Xo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Bv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Wv;break;case Md:case Nd:case Dd:U=Qv;break;case kd:U=t0;break;case"scroll":case"scrollend":U=Lv;break;case"wheel":U=a0;break;case"copy":case"cut":case"paste":U=Yv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=fd;break;case"toggle":case"beforetoggle":U=r0}var Ee=(t&4)!==0,it=!Ee&&(e==="scroll"||e==="scrollend"),M=Ee?z!==null?z+"Capture":null:z;Ee=[];for(var R=k,D;R!==null;){var P=R;if(D=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||D===null||M===null||(P=Yr(R,M),P!=null&&Ee.push(xl(R,P,D))),it)break;R=R.return}0<Ee.length&&(z=new U(z,re,null,a,V),X.push({event:z,listeners:Ee}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",z&&a!==Ho&&(re=a.relatedTarget||a.fromElement)&&(vt(re)||re[de]))break e;if((U||z)&&(z=V.window===V?V:(z=V.ownerDocument)?z.defaultView||z.parentWindow:window,U?(re=a.relatedTarget||a.toElement,U=k,re=re?vt(re):null,re!==null&&(it=f(re),Ee=re.tag,re!==it||Ee!==5&&Ee!==27&&Ee!==6)&&(re=null)):(U=null,re=k),U!==re)){if(Ee=ud,P="onMouseLeave",M="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=fd,P="onPointerLeave",M="onPointerEnter",R="pointer"),it=U==null?z:Ut(U),D=re==null?z:Ut(re),z=new Ee(P,R+"leave",U,a,V),z.target=it,z.relatedTarget=D,P=null,vt(V)===k&&(Ee=new Ee(M,R+"enter",re,a,V),Ee.target=D,Ee.relatedTarget=it,P=Ee),it=P,U&&re)t:{for(Ee=ib,M=U,R=re,D=0,P=M;P;P=Ee(P))D++;P=0;for(var Se=R;Se;Se=Ee(Se))P++;for(;0<D-P;)M=Ee(M),D--;for(;0<P-D;)R=Ee(R),P--;for(;D--;){if(M===R||R!==null&&M===R.alternate){Ee=M;break t}M=Ee(M),R=Ee(R)}Ee=null}else Ee=null;U!==null&&np(X,z,U,Ee,!1),re!==null&&it!==null&&np(X,it,re,Ee,!0)}}e:{if(z=k?Ut(k):window,U=z.nodeName&&z.nodeName.toLowerCase(),U==="select"||U==="input"&&z.type==="file")var Ie=bd;else if(yd(z))if(Sd)Ie=p0;else{Ie=h0;var fe=d0}else U=z.nodeName,!U||U.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?k&&qo(k.elementType)&&(Ie=bd):Ie=m0;if(Ie&&(Ie=Ie(e,k))){vd(X,Ie,a,V);break e}fe&&fe(e,z,k),e==="focusout"&&k&&z.type==="number"&&k.memoizedProps.value!=null&&Bo(z,"number",z.value)}switch(fe=k?Ut(k):window,e){case"focusin":(yd(fe)||fe.contentEditable==="true")&&(nr=fe,Wo=k,Ir=null);break;case"focusout":Ir=Wo=nr=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,Ad(X,a,V);break;case"selectionchange":if(y0)break;case"keydown":case"keyup":Ad(X,a,V)}var ke;if(Zo)e:{switch(e){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else tr?pd(e,a)&&(Qe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Qe="onCompositionStart");Qe&&(dd&&a.locale!=="ko"&&(tr||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&tr&&(ke=sd()):(Ha=V,Go="value"in Ha?Ha.value:Ha.textContent,tr=!0)),fe=Fs(k,Qe),0<fe.length&&(Qe=new cd(Qe,e,null,a,V),X.push({event:Qe,listeners:fe}),ke?Qe.data=ke:(ke=gd(a),ke!==null&&(Qe.data=ke)))),(ke=s0?o0(e,a):u0(e,a))&&(Qe=Fs(k,"onBeforeInput"),0<Qe.length&&(fe=new cd("onBeforeInput","beforeinput",null,a,V),X.push({event:fe,listeners:Qe}),fe.data=ke)),eb(X,e,k,a,V)}ep(X,t)})}function xl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Fs(e,t){for(var a=t+"Capture",r=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Yr(e,a),o!=null&&r.unshift(xl(e,o,u)),o=Yr(e,t),o!=null&&r.push(xl(e,o,u))),e.tag===3)return r;e=e.return}return[]}function ib(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function np(e,t,a,r,o){for(var u=t._reactName,h=[];a!==null&&a!==r;){var v=a,w=v.alternate,k=v.stateNode;if(v=v.tag,w!==null&&w===r)break;v!==5&&v!==26&&v!==27||k===null||(w=k,o?(k=Yr(a,u),k!=null&&h.unshift(xl(a,k,w))):o||(k=Yr(a,u),k!=null&&h.push(xl(a,k,w)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var rb=/\r\n?/g,lb=/\u0000|\uFFFD/g;function ap(e){return(typeof e=="string"?e:""+e).replace(rb,`
10
+ `).replace(lb,"")}function ip(e,t){return t=ap(t),ap(e)===t}function at(e,t,a,r,o,u){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||$i(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&$i(e,""+r);break;case"className":Jn(e,"class",r);break;case"tabIndex":Jn(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Jn(e,a,r);break;case"style":id(e,r,u);break;case"data":if(t!=="object"){Jn(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=es(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(t!=="input"&&at(e,t,"name",o.name,o,null),at(e,t,"formEncType",o.formEncType,o,null),at(e,t,"formMethod",o.formMethod,o,null),at(e,t,"formTarget",o.formTarget,o,null)):(at(e,t,"encType",o.encType,o,null),at(e,t,"method",o.method,o,null),at(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=es(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=ba);break;case"onScroll":r!=null&&qe("scroll",e);break;case"onScrollEnd":r!=null&&qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=es(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":qe("beforetoggle",e),qe("toggle",e),Et(e,"popover",r);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Et(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=zv.get(a)||a,Et(e,a,r))}}function Rc(e,t,a,r,o,u){switch(a){case"style":id(e,r,u);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(s(61));if(a=r.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof r=="string"?$i(e,r):(typeof r=="number"||typeof r=="bigint")&&$i(e,""+r);break;case"onScroll":r!=null&&qe("scroll",e);break;case"onScrollEnd":r!=null&&qe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=ba);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yn.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),u=e[ie]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof r=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,o);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):Et(e,a,r)}}}function Xt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",e),qe("load",e);var r=!1,o=!1,u;for(u in a)if(a.hasOwnProperty(u)){var h=a[u];if(h!=null)switch(u){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:at(e,t,u,h,a,null)}}o&&at(e,t,"srcSet",a.srcSet,a,null),r&&at(e,t,"src",a.src,a,null);return;case"input":qe("invalid",e);var v=u=h=o=null,w=null,k=null;for(r in a)if(a.hasOwnProperty(r)){var V=a[r];if(V!=null)switch(r){case"name":o=V;break;case"type":h=V;break;case"checked":w=V;break;case"defaultChecked":k=V;break;case"value":u=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:at(e,t,r,V,a,null)}}ed(e,u,v,w,k,h,o,!1);return;case"select":qe("invalid",e),r=h=u=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":u=v;break;case"defaultValue":h=v;break;case"multiple":r=v;default:at(e,t,o,v,a,null)}t=u,a=h,e.multiple=!!r,t!=null?Ii(e,!!r,t,!1):a!=null&&Ii(e,!!r,a,!0);return;case"textarea":qe("invalid",e),u=o=r=null;for(h in a)if(a.hasOwnProperty(h)&&(v=a[h],v!=null))switch(h){case"value":r=v;break;case"defaultValue":o=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:at(e,t,h,v,a,null)}nd(e,r,o,u);return;case"option":for(w in a)a.hasOwnProperty(w)&&(r=a[w],r!=null)&&(w==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":at(e,t,w,r,a,null));return;case"dialog":qe("beforetoggle",e),qe("toggle",e),qe("cancel",e),qe("close",e);break;case"iframe":case"object":qe("load",e);break;case"video":case"audio":for(r=0;r<wl.length;r++)qe(wl[r],e);break;case"image":qe("error",e),qe("load",e);break;case"details":qe("toggle",e);break;case"embed":case"source":case"link":qe("error",e),qe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in a)if(a.hasOwnProperty(k)&&(r=a[k],r!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:at(e,t,k,r,a,null)}return;default:if(qo(t)){for(V in a)a.hasOwnProperty(V)&&(r=a[V],r!==void 0&&Rc(e,t,V,r,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(r=a[v],r!=null&&at(e,t,v,r,a,null))}function sb(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,h=null,v=null,w=null,k=null,V=null;for(U in a){var X=a[U];if(a.hasOwnProperty(U)&&X!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":w=X;default:r.hasOwnProperty(U)||at(e,t,U,null,r,X)}}for(var z in r){var U=r[z];if(X=a[z],r.hasOwnProperty(z)&&(U!=null||X!=null))switch(z){case"type":u=U;break;case"name":o=U;break;case"checked":k=U;break;case"defaultChecked":V=U;break;case"value":h=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:U!==X&&at(e,t,z,U,r,X)}}Uo(e,h,v,w,k,V,u,o);return;case"select":U=h=v=z=null;for(u in a)if(w=a[u],a.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":U=w;default:r.hasOwnProperty(u)||at(e,t,u,null,r,w)}for(o in r)if(u=r[o],w=a[o],r.hasOwnProperty(o)&&(u!=null||w!=null))switch(o){case"value":z=u;break;case"defaultValue":v=u;break;case"multiple":h=u;default:u!==w&&at(e,t,o,u,r,w)}t=v,a=h,r=U,z!=null?Ii(e,!!a,z,!1):!!r!=!!a&&(t!=null?Ii(e,!!a,t,!0):Ii(e,!!a,a?[]:"",!1));return;case"textarea":U=z=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!r.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:at(e,t,v,null,r,o)}for(h in r)if(o=r[h],u=a[h],r.hasOwnProperty(h)&&(o!=null||u!=null))switch(h){case"value":z=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==u&&at(e,t,h,o,r,u)}td(e,z,U);return;case"option":for(var re in a)z=a[re],a.hasOwnProperty(re)&&z!=null&&!r.hasOwnProperty(re)&&(re==="selected"?e.selected=!1:at(e,t,re,null,r,z));for(w in r)z=r[w],U=a[w],r.hasOwnProperty(w)&&z!==U&&(z!=null||U!=null)&&(w==="selected"?e.selected=z&&typeof z!="function"&&typeof z!="symbol":at(e,t,w,z,r,U));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in a)z=a[Ee],a.hasOwnProperty(Ee)&&z!=null&&!r.hasOwnProperty(Ee)&&at(e,t,Ee,null,r,z);for(k in r)if(z=r[k],U=a[k],r.hasOwnProperty(k)&&z!==U&&(z!=null||U!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,t));break;default:at(e,t,k,z,r,U)}return;default:if(qo(t)){for(var it in a)z=a[it],a.hasOwnProperty(it)&&z!==void 0&&!r.hasOwnProperty(it)&&Rc(e,t,it,void 0,r,z);for(V in r)z=r[V],U=a[V],!r.hasOwnProperty(V)||z===U||z===void 0&&U===void 0||Rc(e,t,V,z,r,U);return}}for(var M in a)z=a[M],a.hasOwnProperty(M)&&z!=null&&!r.hasOwnProperty(M)&&at(e,t,M,null,r,z);for(X in r)z=r[X],U=a[X],!r.hasOwnProperty(X)||z===U||z==null&&U==null||at(e,t,X,z,r,U)}function rp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ob(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var o=a[r],u=o.transferSize,h=o.initiatorType,v=o.duration;if(u&&v&&rp(h)){for(h=0,v=o.responseEnd,r+=1;r<a.length;r++){var w=a[r],k=w.startTime;if(k>v)break;var V=w.transferSize,X=w.initiatorType;V&&rp(X)&&(w=w.responseEnd,h+=V*(w<v?1:(v-k)/(w-k)))}if(--r,t+=8*(u+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var _c=null,Cc=null;function Zs(e){return e.nodeType===9?e:e.ownerDocument}function lp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ac(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Oc=null;function ub(){var e=window.event;return e&&e.type==="popstate"?e===Oc?!1:(Oc=e,!0):(Oc=null,!1)}var op=typeof setTimeout=="function"?setTimeout:void 0,cb=typeof clearTimeout=="function"?clearTimeout:void 0,up=typeof Promise=="function"?Promise:void 0,fb=typeof queueMicrotask=="function"?queueMicrotask:typeof up<"u"?function(e){return up.resolve(null).then(e).catch(db)}:op;function db(e){setTimeout(function(){throw e})}function ai(e){return e==="head"}function cp(e,t){var a=t,r=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(o),Or(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")El(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,El(a);for(var u=a.firstChild;u;){var h=u.nextSibling,v=u.nodeName;u[pt]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=h}}else a==="body"&&El(e.ownerDocument.body);a=o}while(a);Or(t)}function fp(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function Mc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Mc(a),yt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function hb(e,t,a,r){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[pt])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Un(e.nextSibling),e===null)break}return null}function mb(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Un(e.nextSibling),e===null))return null;return e}function dp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Un(e.nextSibling),e===null))return null;return e}function Nc(e){return e.data==="$?"||e.data==="$~"}function Dc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pb(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kc=null;function hp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Un(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function mp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function pp(e,t,a){switch(t=Zs(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function El(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yt(e)}var Bn=new Map,gp=new Set;function Js(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=F.d;F.d={f:gb,r:yb,D:vb,C:bb,L:Sb,m:wb,X:Eb,S:xb,M:Tb};function gb(){var e=ja.f(),t=Qs();return e||t}function yb(e){var t=Ge(e);t!==null&&t.tag===5&&t.type==="form"?kh(t):ja.r(e)}var _r=typeof document>"u"?null:document;function yp(e,t,a){var r=_r;if(r&&typeof t=="string"&&t){var o=Mn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),gp.has(o)||(gp.add(o),e={rel:e,crossOrigin:a,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),Xt(t,"link",e),dt(t),r.head.appendChild(t)))}}function vb(e){ja.D(e),yp("dns-prefetch",e,null)}function bb(e,t){ja.C(e,t),yp("preconnect",e,t)}function Sb(e,t,a){ja.L(e,t,a);var r=_r;if(r&&e&&t){var o='link[rel="preload"][as="'+Mn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Mn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Mn(a.imageSizes)+'"]')):o+='[href="'+Mn(e)+'"]';var u=o;switch(t){case"style":u=Cr(e);break;case"script":u=Ar(e)}Bn.has(u)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Bn.set(u,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(Tl(u))||t==="script"&&r.querySelector(Rl(u))||(t=r.createElement("link"),Xt(t,"link",e),dt(t),r.head.appendChild(t)))}}function wb(e,t){ja.m(e,t);var a=_r;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Mn(r)+'"][href="'+Mn(e)+'"]',u=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ar(e)}if(!Bn.has(u)&&(e=y({rel:"modulepreload",href:e},t),Bn.set(u,e),a.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Rl(u)))return}r=a.createElement("link"),Xt(r,"link",e),dt(r),a.head.appendChild(r)}}}function xb(e,t,a){ja.S(e,t,a);var r=_r;if(r&&e){var o=ln(r).hoistableStyles,u=Cr(e);t=t||"default";var h=o.get(u);if(!h){var v={loading:0,preload:null};if(h=r.querySelector(Tl(u)))v.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Bn.get(u))&&zc(e,a);var w=h=r.createElement("link");dt(w),Xt(w,"link",e),w._p=new Promise(function(k,V){w.onload=k,w.onerror=V}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Is(h,t,r)}h={type:"stylesheet",instance:h,count:1,state:v},o.set(u,h)}}}function Eb(e,t){ja.X(e,t);var a=_r;if(a&&e){var r=ln(a).hoistableScripts,o=Ar(e),u=r.get(o);u||(u=a.querySelector(Rl(o)),u||(e=y({src:e,async:!0},t),(t=Bn.get(o))&&jc(e,t),u=a.createElement("script"),dt(u),Xt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(o,u))}}function Tb(e,t){ja.M(e,t);var a=_r;if(a&&e){var r=ln(a).hoistableScripts,o=Ar(e),u=r.get(o);u||(u=a.querySelector(Rl(o)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Bn.get(o))&&jc(e,t),u=a.createElement("script"),dt(u),Xt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(o,u))}}function vp(e,t,a,r){var o=(o=ue.current)?Js(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Cr(a.href),a=ln(o).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Cr(a.href);var u=ln(o).hoistableStyles,h=u.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=o.querySelector(Tl(e)))&&!u._p&&(h.instance=u,h.state.loading=5),Bn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Bn.set(e,a),u||Rb(o,e,a,h.state))),t&&r===null)throw Error(s(528,""));return h}if(t&&r!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ar(a),a=ln(o).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Cr(e){return'href="'+Mn(e)+'"'}function Tl(e){return'link[rel="stylesheet"]['+e+"]"}function bp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Rb(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Xt(t,"link",a),dt(t),e.head.appendChild(t))}function Ar(e){return'[src="'+Mn(e)+'"]'}function Rl(e){return"script[async]"+e}function Sp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Mn(a.href)+'"]');if(r)return t.instance=r,dt(r),r;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),dt(r),Xt(r,"style",o),Is(r,a.precedence,e),t.instance=r;case"stylesheet":o=Cr(a.href);var u=e.querySelector(Tl(o));if(u)return t.state.loading|=4,t.instance=u,dt(u),u;r=bp(a),(o=Bn.get(o))&&zc(r,o),u=(e.ownerDocument||e).createElement("link"),dt(u);var h=u;return h._p=new Promise(function(v,w){h.onload=v,h.onerror=w}),Xt(u,"link",r),t.state.loading|=4,Is(u,a.precedence,e),t.instance=u;case"script":return u=Ar(a.src),(o=e.querySelector(Rl(u)))?(t.instance=o,dt(o),o):(r=a,(o=Bn.get(u))&&(r=y({},a),jc(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),dt(o),Xt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Is(r,a.precedence,e));return t.instance}function Is(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,u=o,h=0;h<r.length;h++){var v=r[h];if(v.dataset.precedence===t)u=v;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $s=null;function wp(e,t,a){if($s===null){var r=new Map,o=$s=new Map;o.set(a,r)}else o=$s,r=o.get(a),r||(r=new Map,o.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var u=a[o];if(!(u[pt]||u[ne]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var v=r.get(h);v?v.push(u):r.set(h,[u])}}return r}function xp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function _b(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ep(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cb(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Cr(r.href),u=t.querySelector(Tl(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ws.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,dt(u);return}u=t.ownerDocument||t,r=bp(r),(o=Bn.get(o))&&zc(r,o),u=u.createElement("link"),dt(u);var h=u;h._p=new Promise(function(v,w){h.onload=v,h.onerror=w}),Xt(u,"link",r),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ws.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Lc=0;function Ab(e,t){return e.stylesheets&&e.count===0&&to(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&to(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Lc===0&&(Lc=62500*ob());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&to(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Lc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Ws(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)to(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var eo=null;function to(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,eo=new Map,t.forEach(Ob,e),eo=null,Ws.call(e))}function Ob(e,t){if(!(t.state.loading&4)){var a=eo.get(e);if(a)var r=a.get(null);else{a=new Map,eo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var h=o[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),r=h)}r&&a.set(null,r)}o=t.instance,h=o.getAttribute("data-precedence"),u=a.get(h)||r,u===r&&a.set(null,o),a.set(h,o),this.count++,r=Ws.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var _l={$$typeof:$,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function Mb(e,t,a,r,o,u,h,v,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gn(0),this.hiddenUpdates=gn(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Tp(e,t,a,r,o,u,h,v,w,k,V,X){return e=new Mb(e,t,a,h,w,k,V,X,v),t=1,u===!0&&(t|=24),u=bn(3,null,null,t),e.current=u,u.stateNode=e,t=pu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:r,isDehydrated:a,cache:t},bu(u),e}function Rp(e){return e?(e=rr,e):rr}function _p(e,t,a,r,o,u){o=Rp(o),r.context===null?r.context=o:r.pendingContext=o,r=Pa(t),r.payload={element:a},u=u===void 0?null:u,u!==null&&(r.callback=u),a=Xa(e,r,t),a!==null&&(dn(a,e,t),il(a,e,t))}function Cp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Uc(e,t){Cp(e,t),(e=e.alternate)&&Cp(e,t)}function Ap(e){if(e.tag===13||e.tag===31){var t=Oi(e,67108864);t!==null&&dn(t,e,67108864),Uc(e,67108864)}}function Op(e){if(e.tag===13||e.tag===31){var t=Tn();t=j(t);var a=Oi(e,t);a!==null&&dn(a,e,t),Uc(e,t)}}var no=!0;function Nb(e,t,a,r){var o=O.T;O.T=null;var u=F.p;try{F.p=2,Bc(e,t,a,r)}finally{F.p=u,O.T=o}}function Db(e,t,a,r){var o=O.T;O.T=null;var u=F.p;try{F.p=8,Bc(e,t,a,r)}finally{F.p=u,O.T=o}}function Bc(e,t,a,r){if(no){var o=qc(r);if(o===null)Tc(e,t,r,ao,a),Np(e,r);else if(zb(o,e,t,a,r))r.stopPropagation();else if(Np(e,r),t&4&&-1<kb.indexOf(e)){for(;o!==null;){var u=Ge(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=An(u.pendingLanes);if(h!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;h;){var w=1<<31-kt(h);v.entanglements[1]|=w,h&=~w}sa(u),(We&6)===0&&(qs=mt()+500,Sl(0))}}break;case 31:case 13:v=Oi(u,2),v!==null&&dn(v,u,2),Qs(),Uc(u,2)}if(u=qc(r),u===null&&Tc(e,t,r,ao,a),u===o)break;o=u}o!==null&&r.stopPropagation()}else Tc(e,t,r,null,a)}}function qc(e){return e=Qo(e),Hc(e)}var ao=null;function Hc(e){if(ao=null,e=vt(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ao=e,null}function Mp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ma()){case aa:return 2;case qa:return 8;case Vt:case Wt:return 32;case _n:return 268435456;default:return 32}default:return 32}}var Qc=!1,ii=null,ri=null,li=null,Cl=new Map,Al=new Map,si=[],kb="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 Np(e,t){switch(e){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Cl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Al.delete(t.pointerId)}}function Ol(e,t,a,r,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Ge(t),t!==null&&Ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function zb(e,t,a,r,o){switch(t){case"focusin":return ii=Ol(ii,e,t,a,r,o),!0;case"dragenter":return ri=Ol(ri,e,t,a,r,o),!0;case"mouseover":return li=Ol(li,e,t,a,r,o),!0;case"pointerover":var u=o.pointerId;return Cl.set(u,Ol(Cl.get(u)||null,e,t,a,r,o)),!0;case"gotpointercapture":return u=o.pointerId,Al.set(u,Ol(Al.get(u)||null,e,t,a,r,o)),!0}return!1}function Dp(e){var t=vt(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,pe(e.priority,function(){Op(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,pe(e.priority,function(){Op(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function io(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=qc(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);Ho=r,a.target.dispatchEvent(r),Ho=null}else return t=Ge(a),t!==null&&Ap(t),e.blockedOn=a,!1;t.shift()}return!0}function kp(e,t,a){io(e)&&a.delete(t)}function jb(){Qc=!1,ii!==null&&io(ii)&&(ii=null),ri!==null&&io(ri)&&(ri=null),li!==null&&io(li)&&(li=null),Cl.forEach(kp),Al.forEach(kp)}function ro(e,t){e.blockedOn===t&&(e.blockedOn=null,Qc||(Qc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,jb)))}var lo=null;function zp(e){lo!==e&&(lo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){lo===e&&(lo=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(Hc(r||a)===null)continue;break}var u=Ge(a);u!==null&&(e.splice(t,3),t-=3,qu(u,{pending:!0,data:o,method:a.method,action:r},r,o))}}))}function Or(e){function t(w){return ro(w,e)}ii!==null&&ro(ii,e),ri!==null&&ro(ri,e),li!==null&&ro(li,e),Cl.forEach(t),Al.forEach(t);for(var a=0;a<si.length;a++){var r=si[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<si.length&&(a=si[0],a.blockedOn===null);)Dp(a),a.blockedOn===null&&si.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var o=a[r],u=a[r+1],h=o[ie]||null;if(typeof u=="function")h||zp(a);else if(h){var v=null;if(u&&u.hasAttribute("formAction")){if(o=u,h=u[ie]||null)v=h.formAction;else if(Hc(o)!==null)continue}else v=h.action;typeof v=="function"?a[r+1]=v:(a.splice(r,3),r-=3),zp(a)}}}function jp(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(a,20)}function a(){if(!r&&!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 r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Vc(e){this._internalRoot=e}so.prototype.render=Vc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,r=Tn();_p(a,r,e,t,null,null)},so.prototype.unmount=Vc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_p(e.current,2,null,e,null,null),Qs(),t[de]=null}};function so(e){this._internalRoot=e}so.prototype.unstable_scheduleHydration=function(e){if(e){var t=W();e={blockedOn:null,target:e,priority:t};for(var a=0;a<si.length&&t!==0&&t<si[a].priority;a++);si.splice(a,0,e),a===0&&Dp(e)}};var Lp=i.version;if(Lp!=="19.2.4")throw Error(s(527,Lp,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Lb={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oo.isDisabled&&oo.supportsFiber)try{pa=oo.inject(Lb),ut=oo}catch{}}return Nl.createRoot=function(e,t){if(!c(e))throw Error(s(299));var a=!1,r="",o=Yh,u=Gh,h=Kh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Tp(e,1,!1,null,null,a,r,null,o,u,h,jp),e[de]=t.current,Ec(e),new Vc(t)},Nl.hydrateRoot=function(e,t,a){if(!c(e))throw Error(s(299));var r=!1,o="",u=Yh,h=Gh,v=Kh,w=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=Tp(e,1,!0,t,a??null,r,o,w,u,h,v,jp),t.context=Rp(null),a=t.current,r=Tn(),r=j(r),o=Pa(r),o.callback=null,Xa(a,o,r),a=r,t.current.lanes=a,ot(t,a),sa(t),e[de]=t.current,Ec(e),new so(t)},Nl.version="19.2.4",Nl}var Pp;function Xb(){if(Pp)return Kc.exports;Pp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Kc.exports=Pb(),Kc.exports}var Fb=Xb(),Ur=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zb={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},Jb=class{#e=Zb;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,i){return this.#e.setTimeout(n,i)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,i){return this.#e.setInterval(n,i)}clearInterval(n){this.#e.clearInterval(n)}},Yi=new Jb;function Ib(n){setTimeout(n,0)}var Ki=typeof window>"u"||"Deno"in globalThis;function tn(){}function $b(n,i){return typeof n=="function"?n(i):n}function of(n){return typeof n=="number"&&n>=0&&n!==1/0}function ry(n,i){return Math.max(n+(i||0)-Date.now(),0)}function mi(n,i){return typeof n=="function"?n(i):n}function Hn(n,i){return typeof n=="function"?n(i):n}function Xp(n,i){const{type:l="all",exact:s,fetchStatus:c,predicate:f,queryKey:d,stale:p}=n;if(d){if(s){if(i.queryHash!==Of(d,i.options))return!1}else if(!Vl(i.queryKey,d))return!1}if(l!=="all"){const g=i.isActive();if(l==="active"&&!g||l==="inactive"&&g)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||c&&c!==i.state.fetchStatus||f&&!f(i))}function Fp(n,i){const{exact:l,status:s,predicate:c,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(l){if(Pi(i.options.mutationKey)!==Pi(f))return!1}else if(!Vl(i.options.mutationKey,f))return!1}return!(s&&i.state.status!==s||c&&!c(i))}function Of(n,i){return(i?.queryKeyHashFn||Pi)(n)}function Pi(n){return JSON.stringify(n,(i,l)=>uf(l)?Object.keys(l).sort().reduce((s,c)=>(s[c]=l[c],s),{}):l)}function Vl(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(l=>Vl(n[l],i[l])):!1}var Wb=Object.prototype.hasOwnProperty;function ly(n,i,l=0){if(n===i)return n;if(l>500)return i;const s=Zp(n)&&Zp(i);if(!s&&!(uf(n)&&uf(i)))return i;const f=(s?n:Object.keys(n)).length,d=s?i:Object.keys(i),p=d.length,g=s?new Array(p):{};let m=0;for(let b=0;b<p;b++){const y=s?b:d[b],x=n[y],N=i[y];if(x===N){g[y]=x,(s?b<f:Wb.call(n,y))&&m++;continue}if(x===null||N===null||typeof x!="object"||typeof N!="object"){g[y]=N;continue}const L=ly(x,N,l+1);g[y]=L,L===x&&m++}return f===p&&m===f?n:g}function Oo(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const l in n)if(n[l]!==i[l])return!1;return!0}function Zp(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function uf(n){if(!Jp(n))return!1;const i=n.constructor;if(i===void 0)return!0;const l=i.prototype;return!(!Jp(l)||!l.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Jp(n){return Object.prototype.toString.call(n)==="[object Object]"}function e1(n){return new Promise(i=>{Yi.setTimeout(i,n)})}function cf(n,i,l){return typeof l.structuralSharing=="function"?l.structuralSharing(n,i):l.structuralSharing!==!1?ly(n,i):i}function t1(n,i,l=0){const s=[...n,i];return l&&s.length>l?s.slice(1):s}function n1(n,i,l=0){const s=[i,...n];return l&&s.length>l?s.slice(0,-1):s}var Mf=Symbol();function sy(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Mf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Nf(n,i){return typeof n=="function"?n(...i):!!n}function a1(n,i,l){let s=!1,c;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(c??=i(),s||(s=!0,c.aborted?l():c.addEventListener("abort",l,{once:!0})),c)}),n}var i1=class extends Ur{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!Ki&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Df=new i1;function ff(){let n,i;const l=new Promise((c,f)=>{n=c,i=f});l.status="pending",l.catch(()=>{});function s(c){Object.assign(l,c),delete l.resolve,delete l.reject}return l.resolve=c=>{s({status:"fulfilled",value:c}),n(c)},l.reject=c=>{s({status:"rejected",reason:c}),i(c)},l}var r1=Ib;function l1(){let n=[],i=0,l=p=>{p()},s=p=>{p()},c=r1;const f=p=>{i?n.push(p):c(()=>{l(p)})},d=()=>{const p=n;n=[],p.length&&c(()=>{s(()=>{p.forEach(g=>{l(g)})})})};return{batch:p=>{let g;i++;try{g=p()}finally{i--,i||d()}return g},batchCalls:p=>(...g)=>{f(()=>{p(...g)})},schedule:f,setNotifyFunction:p=>{l=p},setBatchNotifyFunction:p=>{s=p},setScheduler:p=>{c=p}}}var Lt=l1(),s1=class extends Ur{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!Ki&&window.addEventListener){const i=()=>n(!0),l=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(l=>{l(n)}))}isOnline(){return this.#e}},Mo=new s1;function o1(n){return Math.min(1e3*2**n,3e4)}function oy(n){return(n??"online")==="online"?Mo.isOnline():!0}var df=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function uy(n){let i=!1,l=0,s;const c=ff(),f=()=>c.status!=="pending",d=B=>{if(!f()){const K=new df(B);x(K),n.onCancel?.(K)}},p=()=>{i=!0},g=()=>{i=!1},m=()=>Df.isFocused()&&(n.networkMode==="always"||Mo.isOnline())&&n.canRun(),b=()=>oy(n.networkMode)&&n.canRun(),y=B=>{f()||(s?.(),c.resolve(B))},x=B=>{f()||(s?.(),c.reject(B))},N=()=>new Promise(B=>{s=K=>{(f()||m())&&B(K)},n.onPause?.()}).then(()=>{s=void 0,f()||n.onContinue?.()}),L=()=>{if(f())return;let B;const K=l===0?n.initialPromise:void 0;try{B=K??n.fn()}catch(G){B=Promise.reject(G)}Promise.resolve(B).then(y).catch(G=>{if(f())return;const J=n.retry??(Ki?0:3),$=n.retryDelay??o1,ye=typeof $=="function"?$(l,G):$,he=J===!0||typeof J=="number"&&l<J||typeof J=="function"&&J(l,G);if(i||!he){x(G);return}l++,n.onFail?.(l,G),e1(ye).then(()=>m()?void 0:N()).then(()=>{i?x(G):L()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(s?.(),c),cancelRetry:p,continueRetry:g,canStart:b,start:()=>(b()?L():N().then(L),c)}}var cy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),of(this.gcTime)&&(this.#e=Yi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ki?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Yi.clearTimeout(this.#e),this.#e=void 0)}},u1=class extends cy{#e;#t;#n;#i;#a;#l;#s;constructor(n){super(),this.#s=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#n=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=$p(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=$p(this.options);i.data!==void 0&&(this.setState(Ip(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,i){const l=cf(this.state.data,n,this.options);return this.#r({data:l,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),l}setState(n,i){this.#r({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#a?.promise;return this.#a?.cancel(n),i?i.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Hn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>mi(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!ry(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}async fetch(n,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}const l=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#s=!0,l.signal)})},c=()=>{const p=sy(this.options,i),m=(()=>{const b={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(b),b})();return this.#s=!1,this.options.persister?this.options.persister(p,m,this):p(m)},d=(()=>{const p={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:c};return s(p),p})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#r({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=uy({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:p=>{p instanceof df&&p.revert&&this.setState({...this.#t,fetchStatus:"idle"}),l.abort()},onFail:(p,g)=>{this.#r({type:"failed",failureCount:p,error:g})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const p=await this.#a.start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),this.#n.config.onSuccess?.(p,this),this.#n.config.onSettled?.(p,this.state.error,this),p}catch(p){if(p instanceof df){if(p.silent)return this.#a.promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw this.#r({type:"error",error:p}),this.#n.config.onError?.(p,this),this.#n.config.onSettled?.(this.state.data,p,this),p}finally{this.scheduleGc()}}#r(n){const i=l=>{switch(n.type){case"failed":return{...l,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...fy(l.data,this.options),fetchMeta:n.meta??null};case"success":const s={...l,...Ip(n.data,n.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const c=n.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...n.state}}};this.state=i(this.state),Lt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function fy(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oy(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Ip(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function $p(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,l=i!==void 0,s=l?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:l?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}var c1=class extends Ur{constructor(n,i){super(),this.options=i,this.#e=n,this.#r=null,this.#s=ff(),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#n=void 0;#i=void 0;#a;#l;#s;#r;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Wp(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hf(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hf(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#w(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,l=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Hn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#t.setOptions(this.options),i._defaulted&&!Oo(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&eg(this.#t,l,this.options,i)&&this.#f(),this.updateResult(),s&&(this.#t!==l||Hn(this.options.enabled,this.#t)!==Hn(i.enabled,this.#t)||mi(this.options.staleTime,this.#t)!==mi(i.staleTime,this.#t))&&this.#g();const c=this.#y();s&&(this.#t!==l||Hn(this.options.enabled,this.#t)!==Hn(i.enabled,this.#t)||c!==this.#o)&&this.#v(c)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),l=this.createResult(i,n);return d1(this,l)&&(this.#i=l,this.#l=this.options,this.#a=this.#t.state),l}getCurrentResult(){return this.#i}trackResult(n,i){return new Proxy(n,{get:(l,s)=>(this.trackProp(s),i?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),l=this.#e.getQueryCache().build(this.#e,i);return l.fetch().then(()=>this.createResult(l,i))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(n){this.#x();let i=this.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(tn)),i}#g(){this.#S();const n=mi(this.options.staleTime,this.#t);if(Ki||this.#i.isStale||!of(n))return;const l=ry(this.#i.dataUpdatedAt,n)+1;this.#u=Yi.setTimeout(()=>{this.#i.isStale||this.updateResult()},l)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(n){this.#w(),this.#o=n,!(Ki||Hn(this.options.enabled,this.#t)===!1||!of(this.#o)||this.#o===0)&&(this.#c=Yi.setInterval(()=>{(this.options.refetchIntervalInBackground||Df.isFocused())&&this.#f()},this.#o))}#b(){this.#g(),this.#v(this.#y())}#S(){this.#u&&(Yi.clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(Yi.clearInterval(this.#c),this.#c=void 0)}createResult(n,i){const l=this.#t,s=this.options,c=this.#i,f=this.#a,d=this.#l,g=n!==l?n.state:this.#n,{state:m}=n;let b={...m},y=!1,x;if(i._optimisticResults){const Y=this.hasListeners(),oe=!Y&&Wp(n,i),Ae=Y&&eg(n,l,i,s);(oe||Ae)&&(b={...b,...fy(m.data,n.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:N,errorUpdatedAt:L,status:B}=b;x=b.data;let K=!1;if(i.placeholderData!==void 0&&x===void 0&&B==="pending"){let Y;c?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(Y=c.data,K=!0):Y=typeof i.placeholderData=="function"?i.placeholderData(this.#h?.state.data,this.#h):i.placeholderData,Y!==void 0&&(B="success",x=cf(c?.data,Y,i),y=!0)}if(i.select&&x!==void 0&&!K)if(c&&x===f?.data&&i.select===this.#p)x=this.#d;else try{this.#p=i.select,x=i.select(x),x=cf(c?.data,x,i),this.#d=x,this.#r=null}catch(Y){this.#r=Y}this.#r&&(N=this.#r,x=this.#d,L=Date.now(),B="error");const G=b.fetchStatus==="fetching",J=B==="pending",$=B==="error",ye=J&&G,he=x!==void 0,A={status:B,fetchStatus:b.fetchStatus,isPending:J,isSuccess:B==="success",isError:$,isInitialLoading:ye,isLoading:ye,data:x,dataUpdatedAt:b.dataUpdatedAt,error:N,errorUpdatedAt:L,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:G,isRefetching:G&&!J,isLoadingError:$&&!he,isPaused:b.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:$&&he,isStale:kf(n,i),refetch:this.refetch,promise:this.#s,isEnabled:Hn(i.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const Y=A.data!==void 0,oe=A.status==="error"&&!Y,Ae=je=>{oe?je.reject(A.error):Y&&je.resolve(A.data)},Ce=()=>{const je=this.#s=A.promise=ff();Ae(je)},Te=this.#s;switch(Te.status){case"pending":n.queryHash===l.queryHash&&Ae(Te);break;case"fulfilled":(oe||A.data!==Te.value)&&Ce();break;case"rejected":(!oe||A.error!==Te.reason)&&Ce();break}}return A}updateResult(){const n=this.#i,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#l=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Oo(i,n))return;this.#i=i;const l=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!this.#m.size)return!0;const f=new Set(c??this.#m);return this.options.throwOnError&&f.add("error"),Object.keys(this.#i).some(d=>{const p=d;return this.#i[p]!==n[p]&&f.has(p)})};this.#E({listeners:l()})}#x(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(n){Lt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function f1(n,i){return Hn(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function Wp(n,i){return f1(n,i)||n.state.data!==void 0&&hf(n,i,i.refetchOnMount)}function hf(n,i,l){if(Hn(i.enabled,n)!==!1&&mi(i.staleTime,n)!=="static"){const s=typeof l=="function"?l(n):l;return s==="always"||s!==!1&&kf(n,i)}return!1}function eg(n,i,l,s){return(n!==i||Hn(s.enabled,n)===!1)&&(!l.suspense||n.state.status!=="error")&&kf(n,l)}function kf(n,i){return Hn(i.enabled,n)!==!1&&n.isStaleByTime(mi(i.staleTime,n))}function d1(n,i){return!Oo(n.getCurrentResult(),i)}function tg(n){return{onFetch:(i,l)=>{const s=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,f=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let p={pages:[],pageParams:[]},g=0;const m=async()=>{let b=!1;const y=L=>{a1(L,()=>i.signal,()=>b=!0)},x=sy(i.options,i.fetchOptions),N=async(L,B,K)=>{if(b)return Promise.reject();if(B==null&&L.pages.length)return Promise.resolve(L);const J=(()=>{const me={client:i.client,queryKey:i.queryKey,pageParam:B,direction:K?"backward":"forward",meta:i.options.meta};return y(me),me})(),$=await x(J),{maxPages:ye}=i.options,he=K?n1:t1;return{pages:he(L.pages,$,ye),pageParams:he(L.pageParams,B,ye)}};if(c&&f.length){const L=c==="backward",B=L?dy:mf,K={pages:f,pageParams:d},G=B(s,K);p=await N(K,G,L)}else{const L=n??f.length;do{const B=g===0?d[0]??s.initialPageParam:mf(s,p);if(g>0&&B==null)break;p=await N(p,B),g++}while(g<L)}return p};i.options.persister?i.fetchFn=()=>i.options.persister?.(m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},l):i.fetchFn=m}}}function mf(n,{pages:i,pageParams:l}){const s=i.length-1;return i.length>0?n.getNextPageParam(i[s],i,l[s],l):void 0}function dy(n,{pages:i,pageParams:l}){return i.length>0?n.getPreviousPageParam?.(i[0],i,l[0],l):void 0}function I2(n,i){return i?mf(n,i)!=null:!1}function $2(n,i){return!i||!n.getPreviousPageParam?!1:dy(n,i)!=null}var h1=class extends cy{#e;#t;#n;#i;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||hy(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(i=>i!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#a({type:"continue"})},l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=uy({fn:()=>this.options.mutationFn?this.options.mutationFn(n,l):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",c=!this.#i.canStart();try{if(s)i();else{this.#a({type:"pending",variables:n,isPaused:c}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,l);const d=await this.options.onMutate?.(n,l);d!==this.state.context&&this.#a({type:"pending",context:d,variables:n,isPaused:c})}const f=await this.#i.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,l),await this.options.onSuccess?.(f,n,this.state.context,l),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(f,null,n,this.state.context,l),this.#a({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,l)}catch(d){Promise.reject(d)}try{await this.options.onError?.(f,n,this.state.context,l)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,l)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,l)}catch(d){Promise.reject(d)}throw this.#a({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#a(n){const i=l=>{switch(n.type){case"failed":return{...l,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...l,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:n.error,failureCount:l.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Lt.batch(()=>{this.#t.forEach(l=>{l.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function hy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var m1=class extends Ur{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,i,l){const s=new h1({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(i),state:l});return this.add(s),s}add(n){this.#e.add(n);const i=uo(n);if(typeof i=="string"){const l=this.#t.get(i);l?l.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=uo(n);if(typeof i=="string"){const l=this.#t.get(i);if(l)if(l.length>1){const s=l.indexOf(n);s!==-1&&l.splice(s,1)}else l[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=uo(n);if(typeof i=="string"){const s=this.#t.get(i)?.find(c=>c.state.status==="pending");return!s||s===n}else return!0}runNext(n){const i=uo(n);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Lt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(l=>Fp(i,l))}findAll(n={}){return this.getAll().filter(i=>Fp(n,i))}notify(n){Lt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return Lt.batch(()=>Promise.all(n.map(i=>i.continue().catch(tn))))}};function uo(n){return n.options.scope?.id}var p1=class extends Ur{#e;#t=void 0;#n;#i;constructor(i,l){super(),this.#e=i,this.setOptions(l),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const l=this.options;this.options=this.#e.defaultMutationOptions(i),Oo(this.options,l)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),l?.mutationKey&&this.options.mutationKey&&Pi(l.mutationKey)!==Pi(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#l(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#l()}mutate(i,l){return this.#i=l,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??hy();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#l(i){Lt.batch(()=>{if(this.#i&&this.hasListeners()){const l=this.#t.variables,s=this.#t.context,c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(i?.type==="success"){try{this.#i.onSuccess?.(i.data,l,s,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(i.data,null,l,s,c)}catch(f){Promise.reject(f)}}else if(i?.type==="error"){try{this.#i.onError?.(i.error,l,s,c)}catch(f){Promise.reject(f)}try{this.#i.onSettled?.(void 0,i.error,l,s,c)}catch(f){Promise.reject(f)}}}this.listeners.forEach(l=>{l(this.#t)})})}},g1=class extends Ur{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,l){const s=i.queryKey,c=i.queryHash??Of(s,i);let f=this.get(c);return f||(f=new u1({client:n,queryKey:s,queryHash:c,options:n.defaultQueryOptions(i),state:l,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Lt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(l=>Xp(i,l))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(l=>Xp(n,l)):i}notify(n){Lt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},y1=class{#e;#t;#n;#i;#a;#l;#s;#r;constructor(n={}){this.#e=n.queryCache||new g1,this.#t=n.mutationCache||new m1,this.#n=n.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=Df.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=Mo.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#r?.(),this.#r=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),l=this.#e.build(this,i),s=l.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&l.isStaleByTime(mi(i.staleTime,l))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:l})=>{const s=l.data;return[i,s]})}setQueryData(n,i,l){const s=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(s.queryHash)?.state.data,d=$b(i,f);if(d!==void 0)return this.#e.build(this,s).setData(d,{...l,manual:!0})}setQueriesData(n,i,l){return Lt.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,i,l)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;Lt.batch(()=>{i.findAll(n).forEach(l=>{i.remove(l)})})}resetQueries(n,i){const l=this.#e;return Lt.batch(()=>(l.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const l={revert:!0,...i},s=Lt.batch(()=>this.#e.findAll(n).map(c=>c.cancel(l)));return Promise.all(s).then(tn).catch(tn)}invalidateQueries(n,i={}){return Lt.batch(()=>(this.#e.findAll(n).forEach(l=>{l.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const l={...i,cancelRefetch:i.cancelRefetch??!0},s=Lt.batch(()=>this.#e.findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,l);return l.throwOnError||(f=f.catch(tn)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(tn)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const l=this.#e.build(this,i);return l.isStaleByTime(mi(i.staleTime,l))?l.fetch(i):Promise.resolve(l.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(tn).catch(tn)}fetchInfiniteQuery(n){return n.behavior=tg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(tn).catch(tn)}ensureInfiniteQueryData(n){return n.behavior=tg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Mo.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,i){this.#i.set(Pi(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#i.values()],l={};return i.forEach(s=>{Vl(n,s.queryKey)&&Object.assign(l,s.defaultOptions)}),l}setMutationDefaults(n,i){this.#a.set(Pi(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#a.values()],l={};return i.forEach(s=>{Vl(n,s.mutationKey)&&Object.assign(l,s.defaultOptions)}),l}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Of(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Mf&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},my=T.createContext(void 0),gt=n=>{const i=T.useContext(my);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},v1=({client:n,children:i})=>(T.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),_.jsx(my.Provider,{value:n,children:i})),py=T.createContext(!1),b1=()=>T.useContext(py);py.Provider;function S1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var w1=T.createContext(S1()),x1=()=>T.useContext(w1),E1=(n,i,l)=>{const s=l?.state.error&&typeof n.throwOnError=="function"?Nf(n.throwOnError,[l.state.error,l]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(i.isReset()||(n.retryOnMount=!1))},T1=n=>{T.useEffect(()=>{n.clearReset()},[n])},R1=({result:n,errorResetBoundary:i,throwOnError:l,query:s,suspense:c})=>n.isError&&!i.isReset()&&!n.isFetching&&s&&(c&&n.data===void 0||Nf(l,[n.error,s])),_1=n=>{if(n.suspense){const l=c=>c==="static"?c:Math.max(c??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...c)=>l(s(...c)):l(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},C1=(n,i)=>n.isLoading&&n.isFetching&&!i,A1=(n,i)=>n?.suspense&&i.isPending,ng=(n,i,l)=>i.fetchOptimistic(n).catch(()=>{l.clearReset()});function O1(n,i,l){const s=b1(),c=x1(),f=gt(),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const p=f.getQueryCache().get(d.queryHash);d._optimisticResults=s?"isRestoring":"optimistic",_1(d),E1(d,c,p),T1(c);const g=!f.getQueryCache().get(d.queryHash),[m]=T.useState(()=>new i(f,d)),b=m.getOptimisticResult(d),y=!s&&n.subscribed!==!1;if(T.useSyncExternalStore(T.useCallback(x=>{const N=y?m.subscribe(Lt.batchCalls(x)):tn;return m.updateResult(),N},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),T.useEffect(()=>{m.setOptions(d)},[d,m]),A1(d,b))throw ng(d,m,c);if(R1({result:b,errorResetBoundary:c,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw b.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,b),d.experimental_prefetchInRender&&!Ki&&C1(b,s)&&(g?ng(d,m,c):p?.promise)?.catch(tn).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?b:m.trackResult(b)}function Ba(n,i){return O1(n,c1)}function qt(n,i){const l=gt(),[s]=T.useState(()=>new p1(l,n));T.useEffect(()=>{s.setOptions(n)},[s,n]);const c=T.useSyncExternalStore(T.useCallback(d=>s.subscribe(Lt.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=T.useCallback((d,p)=>{s.mutate(d,p).catch(tn)},[s]);if(c.error&&Nf(s.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}var gy=iy();const M1=ay(gy);function N1(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",i.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}const D1=n=>{switch(n){case"success":return j1;case"info":return U1;case"warning":return L1;case"error":return B1;default:return null}},k1=Array(12).fill(0),z1=({visible:n,className:i})=>ee.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},ee.createElement("div",{className:"sonner-spinner"},k1.map((l,s)=>ee.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),j1=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),L1=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),U1=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),B1=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ee.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),q1=ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ee.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ee.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),H1=()=>{const[n,i]=ee.useState(document.hidden);return ee.useEffect(()=>{const l=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),n};let pf=1;class Q1{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const l=this.subscribers.indexOf(i);this.subscribers.splice(l,1)}),this.publish=i=>{this.subscribers.forEach(l=>l(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var l;const{message:s,...c}=i,f=typeof i?.id=="number"||((l=i.id)==null?void 0:l.length)>0?i.id:pf++,d=this.toasts.find(g=>g.id===f),p=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),d?this.toasts=this.toasts.map(g=>g.id===f?(this.publish({...g,...i,id:f,title:s}),{...g,...i,id:f,dismissible:p,title:s}):g):this.addToast({title:s,...c,dismissible:p,id:f}),f},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(l=>l({id:i,dismiss:!0})))):this.toasts.forEach(l=>{this.subscribers.forEach(s=>s({id:l.id,dismiss:!0}))}),i),this.message=(i,l)=>this.create({...l,message:i}),this.error=(i,l)=>this.create({...l,message:i,type:"error"}),this.success=(i,l)=>this.create({...l,type:"success",message:i}),this.info=(i,l)=>this.create({...l,type:"info",message:i}),this.warning=(i,l)=>this.create({...l,type:"warning",message:i}),this.loading=(i,l)=>this.create({...l,type:"loading",message:i}),this.promise=(i,l)=>{if(!l)return;let s;l.loading!==void 0&&(s=this.create({...l,promise:i,type:"loading",message:l.loading,description:typeof l.description!="function"?l.description:void 0}));const c=Promise.resolve(i instanceof Function?i():i);let f=s!==void 0,d;const p=c.then(async m=>{if(d=["resolve",m],ee.isValidElement(m))f=!1,this.create({id:s,type:"default",message:m});else if(Y1(m)&&!m.ok){f=!1;const y=typeof l.error=="function"?await l.error(`HTTP error! status: ${m.status}`):l.error,x=typeof l.description=="function"?await l.description(`HTTP error! status: ${m.status}`):l.description,L=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:x,...L})}else if(m instanceof Error){f=!1;const y=typeof l.error=="function"?await l.error(m):l.error,x=typeof l.description=="function"?await l.description(m):l.description,L=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:x,...L})}else if(l.success!==void 0){f=!1;const y=typeof l.success=="function"?await l.success(m):l.success,x=typeof l.description=="function"?await l.description(m):l.description,L=typeof y=="object"&&!ee.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:x,...L})}}).catch(async m=>{if(d=["reject",m],l.error!==void 0){f=!1;const b=typeof l.error=="function"?await l.error(m):l.error,y=typeof l.description=="function"?await l.description(m):l.description,N=typeof b=="object"&&!ee.isValidElement(b)?b:{message:b};this.create({id:s,type:"error",description:y,...N})}}).finally(()=>{f&&(this.dismiss(s),s=void 0),l.finally==null||l.finally.call(l)}),g=()=>new Promise((m,b)=>p.then(()=>d[0]==="reject"?b(d[1]):m(d[1])).catch(b));return typeof s!="string"&&typeof s!="number"?{unwrap:g}:Object.assign(s,{unwrap:g})},this.custom=(i,l)=>{const s=l?.id||pf++;return this.create({jsx:i(s),id:s,...l}),s},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const hn=new Q1,V1=(n,i)=>{const l=i?.id||pf++;return hn.addToast({title:n,...i,id:l}),l},Y1=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",G1=V1,K1=()=>hn.toasts,P1=()=>hn.getActiveToasts(),X1=Object.assign(G1,{success:hn.success,info:hn.info,warning:hn.warning,error:hn.error,custom:hn.custom,message:hn.message,promise:hn.promise,dismiss:hn.dismiss,loading:hn.loading},{getHistory:K1,getToasts:P1});N1("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function co(n){return n.label!==void 0}const F1=3,Z1="24px",J1="16px",ag=4e3,I1=356,$1=14,W1=45,eS=200;function oa(...n){return n.filter(Boolean).join(" ")}function tS(n){const[i,l]=n.split("-"),s=[];return i&&s.push(i),l&&s.push(l),s}const nS=n=>{var i,l,s,c,f,d,p,g,m;const{invert:b,toast:y,unstyled:x,interacting:N,setHeights:L,visibleToasts:B,heights:K,index:G,toasts:J,expanded:$,removeToast:ye,defaultRichColors:he,closeButton:me,style:A,cancelButtonStyle:Y,actionButtonStyle:oe,className:Ae="",descriptionClassName:Ce="",duration:Te,position:je,gap:Le,expandByDefault:we,classNames:O,icons:F,closeButtonAriaLabel:H="Close toast"}=n,[ge,ve]=ee.useState(null),[E,Q]=ee.useState(null),[q,Z]=ee.useState(!1),[te,ue]=ee.useState(!1),[ce,Re]=ee.useState(!1),[Ve,Ht]=ee.useState(!1),[$t,Je]=ee.useState(!1),[Kn,nn]=ee.useState(0),[vi,an]=ee.useState(0),ha=ee.useRef(y.duration||Te||ag),bi=ee.useRef(null),Ft=ee.useRef(null),Si=G===0,wi=G+1<=B,Qt=y.type,na=y.dismissible!==!1,mt=y.className||"",ma=y.descriptionClassName||"",aa=ee.useMemo(()=>K.findIndex(_e=>_e.toastId===y.id)||0,[K,y.id]),qa=ee.useMemo(()=>{var _e;return(_e=y.closeButton)!=null?_e:me},[y.closeButton,me]),Vt=ee.useMemo(()=>y.duration||Te||ag,[y.duration,Te]),Wt=ee.useRef(0),_n=ee.useRef(0),Zi=ee.useRef(0),Cn=ee.useRef(null),[pa,ut]=je.split("-"),rn=ee.useMemo(()=>K.reduce((_e,st,wt)=>wt>=aa?_e:_e+st.height,0),[K,aa]),kt=H1(),Ji=y.invert||b,xi=Qt==="loading";_n.current=ee.useMemo(()=>aa*Le+rn,[aa,rn]),ee.useEffect(()=>{ha.current=Vt},[Vt]),ee.useEffect(()=>{Z(!0)},[]),ee.useEffect(()=>{const _e=Ft.current;if(_e){const st=_e.getBoundingClientRect().height;return an(st),L(wt=>[{toastId:y.id,height:st,position:y.position},...wt]),()=>L(wt=>wt.filter(xt=>xt.toastId!==y.id))}},[L,y.id]),ee.useLayoutEffect(()=>{if(!q)return;const _e=Ft.current,st=_e.style.height;_e.style.height="auto";const wt=_e.getBoundingClientRect().height;_e.style.height=st,an(wt),L(xt=>xt.find(ot=>ot.toastId===y.id)?xt.map(ot=>ot.toastId===y.id?{...ot,height:wt}:ot):[{toastId:y.id,height:wt,position:y.position},...xt])},[q,y.title,y.description,L,y.id,y.jsx,y.action,y.cancel]);const pn=ee.useCallback(()=>{ue(!0),nn(_n.current),L(_e=>_e.filter(st=>st.toastId!==y.id)),setTimeout(()=>{ye(y)},eS)},[y,ye,L,_n]);ee.useEffect(()=>{if(y.promise&&Qt==="loading"||y.duration===1/0||y.type==="loading")return;let _e;return $||N||kt?(()=>{if(Zi.current<Wt.current){const xt=new Date().getTime()-Wt.current;ha.current=ha.current-xt}Zi.current=new Date().getTime()})():ha.current!==1/0&&(Wt.current=new Date().getTime(),_e=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),pn()},ha.current)),()=>clearTimeout(_e)},[$,N,y,Qt,kt,pn]),ee.useEffect(()=>{y.delete&&(pn(),y.onDismiss==null||y.onDismiss.call(y,y))},[pn,y.delete]);function Pn(){var _e;if(F?.loading){var st;return ee.createElement("div",{className:oa(O?.loader,y==null||(st=y.classNames)==null?void 0:st.loader,"sonner-loader"),"data-visible":Qt==="loading"},F.loading)}return ee.createElement(z1,{className:oa(O?.loader,y==null||(_e=y.classNames)==null?void 0:_e.loader),visible:Qt==="loading"})}const ga=y.icon||F?.[Qt]||D1(Qt);var Xn,An;return ee.createElement("li",{tabIndex:0,ref:Ft,className:oa(Ae,mt,O?.toast,y==null||(i=y.classNames)==null?void 0:i.toast,O?.default,O?.[Qt],y==null||(l=y.classNames)==null?void 0:l[Qt]),"data-sonner-toast":"","data-rich-colors":(Xn=y.richColors)!=null?Xn:he,"data-styled":!(y.jsx||y.unstyled||x),"data-mounted":q,"data-promise":!!y.promise,"data-swiped":$t,"data-removed":te,"data-visible":wi,"data-y-position":pa,"data-x-position":ut,"data-index":G,"data-front":Si,"data-swiping":ce,"data-dismissible":na,"data-type":Qt,"data-invert":Ji,"data-swipe-out":Ve,"data-swipe-direction":E,"data-expanded":!!($||we&&q),"data-testid":y.testId,style:{"--index":G,"--toasts-before":G,"--z-index":J.length-G,"--offset":`${te?Kn:_n.current}px`,"--initial-height":we?"auto":`${vi}px`,...A,...y.style},onDragEnd:()=>{Re(!1),ve(null),Cn.current=null},onPointerDown:_e=>{_e.button!==2&&(xi||!na||(bi.current=new Date,nn(_n.current),_e.target.setPointerCapture(_e.pointerId),_e.target.tagName!=="BUTTON"&&(Re(!0),Cn.current={x:_e.clientX,y:_e.clientY})))},onPointerUp:()=>{var _e,st,wt;if(Ve||!na)return;Cn.current=null;const xt=Number(((_e=Ft.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),gn=Number(((st=Ft.current)==null?void 0:st.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ot=new Date().getTime()-((wt=bi.current)==null?void 0:wt.getTime()),Zt=ge==="x"?xt:gn,ya=Math.abs(Zt)/ot;if(Math.abs(Zt)>=W1||ya>.11){nn(_n.current),y.onDismiss==null||y.onDismiss.call(y,y),Q(ge==="x"?xt>0?"right":"left":gn>0?"down":"up"),pn(),Ht(!0);return}else{var S,C;(S=Ft.current)==null||S.style.setProperty("--swipe-amount-x","0px"),(C=Ft.current)==null||C.style.setProperty("--swipe-amount-y","0px")}Je(!1),Re(!1),ve(null)},onPointerMove:_e=>{var st,wt,xt;if(!Cn.current||!na||((st=window.getSelection())==null?void 0:st.toString().length)>0)return;const ot=_e.clientY-Cn.current.y,Zt=_e.clientX-Cn.current.x;var ya;const S=(ya=n.swipeDirections)!=null?ya:tS(je);!ge&&(Math.abs(Zt)>1||Math.abs(ot)>1)&&ve(Math.abs(Zt)>Math.abs(ot)?"x":"y");let C={x:0,y:0};const j=I=>1/(1.5+Math.abs(I)/20);if(ge==="y"){if(S.includes("top")||S.includes("bottom"))if(S.includes("top")&&ot<0||S.includes("bottom")&&ot>0)C.y=ot;else{const I=ot*j(ot);C.y=Math.abs(I)<Math.abs(ot)?I:ot}}else if(ge==="x"&&(S.includes("left")||S.includes("right")))if(S.includes("left")&&Zt<0||S.includes("right")&&Zt>0)C.x=Zt;else{const I=Zt*j(Zt);C.x=Math.abs(I)<Math.abs(Zt)?I:Zt}(Math.abs(C.x)>0||Math.abs(C.y)>0)&&Je(!0),(wt=Ft.current)==null||wt.style.setProperty("--swipe-amount-x",`${C.x}px`),(xt=Ft.current)==null||xt.style.setProperty("--swipe-amount-y",`${C.y}px`)}},qa&&!y.jsx&&Qt!=="loading"?ee.createElement("button",{"aria-label":H,"data-disabled":xi,"data-close-button":!0,onClick:xi||!na?()=>{}:()=>{pn(),y.onDismiss==null||y.onDismiss.call(y,y)},className:oa(O?.closeButton,y==null||(s=y.classNames)==null?void 0:s.closeButton)},(An=F?.close)!=null?An:q1):null,(Qt||y.icon||y.promise)&&y.icon!==null&&(F?.[Qt]!==null||y.icon)?ee.createElement("div",{"data-icon":"",className:oa(O?.icon,y==null||(c=y.classNames)==null?void 0:c.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Pn():null,y.type!=="loading"?ga:null):null,ee.createElement("div",{"data-content":"",className:oa(O?.content,y==null||(f=y.classNames)==null?void 0:f.content)},ee.createElement("div",{"data-title":"",className:oa(O?.title,y==null||(d=y.classNames)==null?void 0:d.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?ee.createElement("div",{"data-description":"",className:oa(Ce,ma,O?.description,y==null||(p=y.classNames)==null?void 0:p.description)},typeof y.description=="function"?y.description():y.description):null),ee.isValidElement(y.cancel)?y.cancel:y.cancel&&co(y.cancel)?ee.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||Y,onClick:_e=>{co(y.cancel)&&na&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,_e),pn())},className:oa(O?.cancelButton,y==null||(g=y.classNames)==null?void 0:g.cancelButton)},y.cancel.label):null,ee.isValidElement(y.action)?y.action:y.action&&co(y.action)?ee.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||oe,onClick:_e=>{co(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,_e),!_e.defaultPrevented&&pn())},className:oa(O?.actionButton,y==null||(m=y.classNames)==null?void 0:m.actionButton)},y.action.label):null)};function ig(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function aS(n,i){const l={};return[n,i].forEach((s,c)=>{const f=c===1,d=f?"--mobile-offset":"--offset",p=f?J1:Z1;function g(m){["top","right","bottom","left"].forEach(b=>{l[`${d}-${b}`]=typeof m=="number"?`${m}px`:m})}typeof s=="number"||typeof s=="string"?g(s):typeof s=="object"?["top","right","bottom","left"].forEach(m=>{s[m]===void 0?l[`${d}-${m}`]=p:l[`${d}-${m}`]=typeof s[m]=="number"?`${s[m]}px`:s[m]}):g(p)}),l}const iS=ee.forwardRef(function(i,l){const{id:s,invert:c,position:f="bottom-right",hotkey:d=["altKey","KeyT"],expand:p,closeButton:g,className:m,offset:b,mobileOffset:y,theme:x="light",richColors:N,duration:L,style:B,visibleToasts:K=F1,toastOptions:G,dir:J=ig(),gap:$=$1,icons:ye,containerAriaLabel:he="Notifications"}=i,[me,A]=ee.useState([]),Y=ee.useMemo(()=>s?me.filter(q=>q.toasterId===s):me.filter(q=>!q.toasterId),[me,s]),oe=ee.useMemo(()=>Array.from(new Set([f].concat(Y.filter(q=>q.position).map(q=>q.position)))),[Y,f]),[Ae,Ce]=ee.useState([]),[Te,je]=ee.useState(!1),[Le,we]=ee.useState(!1),[O,F]=ee.useState(x!=="system"?x:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=ee.useRef(null),ge=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),ve=ee.useRef(null),E=ee.useRef(!1),Q=ee.useCallback(q=>{A(Z=>{var te;return(te=Z.find(ue=>ue.id===q.id))!=null&&te.delete||hn.dismiss(q.id),Z.filter(({id:ue})=>ue!==q.id)})},[]);return ee.useEffect(()=>hn.subscribe(q=>{if(q.dismiss){requestAnimationFrame(()=>{A(Z=>Z.map(te=>te.id===q.id?{...te,delete:!0}:te))});return}setTimeout(()=>{M1.flushSync(()=>{A(Z=>{const te=Z.findIndex(ue=>ue.id===q.id);return te!==-1?[...Z.slice(0,te),{...Z[te],...q},...Z.slice(te+1)]:[q,...Z]})})})}),[me]),ee.useEffect(()=>{if(x!=="system"){F(x);return}if(x==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;const q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:Z})=>{F(Z?"dark":"light")})}catch{q.addListener(({matches:te})=>{try{F(te?"dark":"light")}catch(ue){console.error(ue)}})}},[x]),ee.useEffect(()=>{me.length<=1&&je(!1)},[me]),ee.useEffect(()=>{const q=Z=>{var te;if(d.every(Re=>Z[Re]||Z.code===Re)){var ce;je(!0),(ce=H.current)==null||ce.focus()}Z.code==="Escape"&&(document.activeElement===H.current||(te=H.current)!=null&&te.contains(document.activeElement))&&je(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[d]),ee.useEffect(()=>{if(H.current)return()=>{ve.current&&(ve.current.focus({preventScroll:!0}),ve.current=null,E.current=!1)}},[H.current]),ee.createElement("section",{ref:l,"aria-label":`${he} ${ge}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},oe.map((q,Z)=>{var te;const[ue,ce]=q.split("-");return Y.length?ee.createElement("ol",{key:q,dir:J==="auto"?ig():J,tabIndex:-1,ref:H,className:m,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ue,"data-x-position":ce,style:{"--front-toast-height":`${((te=Ae[0])==null?void 0:te.height)||0}px`,"--width":`${I1}px`,"--gap":`${$}px`,...B,...aS(b,y)},onBlur:Re=>{E.current&&!Re.currentTarget.contains(Re.relatedTarget)&&(E.current=!1,ve.current&&(ve.current.focus({preventScroll:!0}),ve.current=null))},onFocus:Re=>{Re.target instanceof HTMLElement&&Re.target.dataset.dismissible==="false"||E.current||(E.current=!0,ve.current=Re.relatedTarget)},onMouseEnter:()=>je(!0),onMouseMove:()=>je(!0),onMouseLeave:()=>{Le||je(!1)},onDragEnd:()=>je(!1),onPointerDown:Re=>{Re.target instanceof HTMLElement&&Re.target.dataset.dismissible==="false"||we(!0)},onPointerUp:()=>we(!1)},Y.filter(Re=>!Re.position&&Z===0||Re.position===q).map((Re,Ve)=>{var Ht,$t;return ee.createElement(nS,{key:Re.id,icons:ye,index:Ve,toast:Re,defaultRichColors:N,duration:(Ht=G?.duration)!=null?Ht:L,className:G?.className,descriptionClassName:G?.descriptionClassName,invert:c,visibleToasts:K,closeButton:($t=G?.closeButton)!=null?$t:g,interacting:Le,position:q,style:G?.style,unstyled:G?.unstyled,classNames:G?.classNames,cancelButtonStyle:G?.cancelButtonStyle,actionButtonStyle:G?.actionButtonStyle,closeButtonAriaLabel:G?.closeButtonAriaLabel,removeToast:Q,toasts:Y.filter(Je=>Je.position==Re.position),heights:Ae.filter(Je=>Je.position==Re.position),setHeights:Ce,expandByDefault:p,gap:$,expanded:Te,swipeDirections:i.swipeDirections})})):null}))}),rS=new y1({defaultOptions:{queries:{staleTime:1e3*60,retry:1}}}),lS="modulepreload",sS=function(n){return"/"+n},rg={},Yn=function(i,l,s){let c=Promise.resolve();if(l&&l.length>0){let g=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");c=g(l.map(m=>{if(m=sS(m),m in rg)return;rg[m]=!0;const b=m.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const x=document.createElement("link");if(x.rel=b?"stylesheet":lS,b||(x.as="script"),x.crossOrigin="",x.href=m,p&&x.setAttribute("nonce",p),document.head.appendChild(x),b)return new Promise((N,L)=>{x.addEventListener("load",N),x.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return c.then(d=>{for(const p of d||[])p.status==="rejected"&&f(p.reason);return i().catch(f)})};var yy=n=>{throw TypeError(n)},oS=(n,i,l)=>i.has(n)||yy("Cannot "+l),Zc=(n,i,l)=>(oS(n,i,"read from private field"),l?l.call(n):i.get(n)),uS=(n,i,l)=>i.has(n)?yy("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,l),lg="popstate";function cS(n={}){function i(s,c){let{pathname:f,search:d,hash:p}=s.location;return Yl("",{pathname:f,search:d,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function l(s,c){return typeof c=="string"?c:fa(c)}return dS(i,l,null,n)}function Ue(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function Dt(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function fS(){return Math.random().toString(36).substring(2,10)}function sg(n,i){return{usr:n.state,key:n.key,idx:i}}function Yl(n,i,l=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?gi(i):i,state:l,key:i&&i.key||s||fS()}}function fa({pathname:n="/",search:i="",hash:l=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function gi(n){let i={};if(n){let l=n.indexOf("#");l>=0&&(i.hash=n.substring(l),n=n.substring(0,l));let s=n.indexOf("?");s>=0&&(i.search=n.substring(s),n=n.substring(0,s)),n&&(i.pathname=n)}return i}function dS(n,i,l,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,d=c.history,p="POP",g=null,m=b();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function b(){return(d.state||{idx:null}).idx}function y(){p="POP";let K=b(),G=K==null?null:K-m;m=K,g&&g({action:p,location:B.location,delta:G})}function x(K,G){p="PUSH";let J=Yl(B.location,K,G);m=b()+1;let $=sg(J,m),ye=B.createHref(J);try{d.pushState($,"",ye)}catch(he){if(he instanceof DOMException&&he.name==="DataCloneError")throw he;c.location.assign(ye)}f&&g&&g({action:p,location:B.location,delta:1})}function N(K,G){p="REPLACE";let J=Yl(B.location,K,G);m=b();let $=sg(J,m),ye=B.createHref(J);d.replaceState($,"",ye),f&&g&&g({action:p,location:B.location,delta:0})}function L(K){return vy(K)}let B={get action(){return p},get location(){return n(c,d)},listen(K){if(g)throw new Error("A history only accepts one active listener");return c.addEventListener(lg,y),g=K,()=>{c.removeEventListener(lg,y),g=null}},createHref(K){return i(c,K)},createURL:L,encodeLocation(K){let G=L(K);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:x,replace:N,go(K){return d.go(K)}};return B}function vy(n,i=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),Ue(l,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:fa(n);return s=s.replace(/ $/,"%20"),!i&&s.startsWith("//")&&(s=l+s),new URL(s,l)}var Ul,og=class{constructor(n){if(uS(this,Ul,new Map),n)for(let[i,l]of n)this.set(i,l)}get(n){if(Zc(this,Ul).has(n))return Zc(this,Ul).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,i){Zc(this,Ul).set(n,i)}};Ul=new WeakMap;var hS=new Set(["lazy","caseSensitive","path","id","index","children"]);function mS(n){return hS.has(n)}var pS=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function gS(n){return pS.has(n)}function yS(n){return n.index===!0}function Gl(n,i,l=[],s={},c=!1){return n.map((f,d)=>{let p=[...l,String(d)],g=typeof f.id=="string"?f.id:p.join("-");if(Ue(f.index!==!0||!f.children,"Cannot specify children on an index route"),Ue(c||!s[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),yS(f)){let m={...f,id:g};return s[g]=ug(m,i(m)),m}else{let m={...f,id:g,children:void 0};return s[g]=ug(m,i(m)),f.children&&(m.children=Gl(f.children,i,p,s,c)),m}})}function ug(n,i){return Object.assign(n,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...n.lazy,...i.lazy}}:{}})}function ci(n,i,l="/"){return Bl(n,i,l,!1)}function Bl(n,i,l,s){let c=typeof i=="string"?gi(i):i,f=Vn(c.pathname||"/",l);if(f==null)return null;let d=by(n);bS(d);let p=null;for(let g=0;p==null&&g<d.length;++g){let m=MS(f);p=AS(d[g],m,s)}return p}function vS(n,i){let{route:l,pathname:s,params:c}=n;return{id:l.id,pathname:s,params:c,data:i[l.id],loaderData:i[l.id],handle:l.handle}}function by(n,i=[],l=[],s="",c=!1){let f=(d,p,g=c,m)=>{let b={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:p,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&g)return;Ue(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let y=ca([s,b.relativePath]),x=l.concat(b);d.children&&d.children.length>0&&(Ue(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),by(d.children,i,x,y,g)),!(d.path==null&&!d.index)&&i.push({path:y,score:_S(y,d.index),routesMeta:x})};return n.forEach((d,p)=>{if(d.path===""||!d.path?.includes("?"))f(d,p);else for(let g of Sy(d.path))f(d,p,!0,g)}),i}function Sy(n){let i=n.split("/");if(i.length===0)return[];let[l,...s]=i,c=l.endsWith("?"),f=l.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let d=Sy(s.join("/")),p=[];return p.push(...d.map(g=>g===""?f:[f,g].join("/"))),c&&p.push(...d),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function bS(n){n.sort((i,l)=>i.score!==l.score?l.score-i.score:CS(i.routesMeta.map(s=>s.childrenIndex),l.routesMeta.map(s=>s.childrenIndex)))}var SS=/^:[\w-]+$/,wS=3,xS=2,ES=1,TS=10,RS=-2,cg=n=>n==="*";function _S(n,i){let l=n.split("/"),s=l.length;return l.some(cg)&&(s+=RS),i&&(s+=xS),l.filter(c=>!cg(c)).reduce((c,f)=>c+(SS.test(f)?wS:f===""?ES:TS),s)}function CS(n,i){return n.length===i.length&&n.slice(0,-1).every((s,c)=>s===i[c])?n[n.length-1]-i[i.length-1]:0}function AS(n,i,l=!1){let{routesMeta:s}=n,c={},f="/",d=[];for(let p=0;p<s.length;++p){let g=s[p],m=p===s.length-1,b=f==="/"?i:i.slice(f.length)||"/",y=No({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},b),x=g.route;if(!y&&m&&l&&!s[s.length-1].route.index&&(y=No({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!y)return null;Object.assign(c,y.params),d.push({params:c,pathname:ca([f,y.pathname]),pathnameBase:kS(ca([f,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(f=ca([f,y.pathnameBase]))}return d}function No(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[l,s]=OS(n.path,n.caseSensitive,n.end),c=i.match(l);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),p=c.slice(1);return{params:s.reduce((m,{paramName:b,isOptional:y},x)=>{if(b==="*"){let L=p[x]||"";d=f.slice(0,f.length-L.length).replace(/(.)\/+$/,"$1")}const N=p[x];return y&&!N?m[b]=void 0:m[b]=(N||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:d,pattern:n}}function OS(n,i=!1,l=!0){Dt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,g)=>(s.push({paramName:p,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),s]}function MS(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Dt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Vn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let l=i.endsWith("/")?i.length-1:i.length,s=n.charAt(l);return s&&s!=="/"?null:n.slice(l)||"/"}function NS({basename:n,pathname:i}){return i==="/"?n:ca([n,i])}var wy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zf=n=>wy.test(n);function DS(n,i="/"){let{pathname:l,search:s="",hash:c=""}=typeof n=="string"?gi(n):n,f;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?f=fg(l.substring(1),"/"):f=fg(l,i)):f=i,{pathname:f,search:zS(s),hash:jS(c)}}function fg(n,i){let l=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?l.length>1&&l.pop():c!=="."&&l.push(c)}),l.length>1?l.join("/"):"/"}function Jc(n,i,l,s){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function xy(n){return n.filter((i,l)=>l===0||i.route.path&&i.route.path.length>0)}function jf(n){let i=xy(n);return i.map((l,s)=>s===i.length-1?l.pathname:l.pathnameBase)}function Lf(n,i,l,s=!1){let c;typeof n=="string"?c=gi(n):(c={...n},Ue(!c.pathname||!c.pathname.includes("?"),Jc("?","pathname","search",c)),Ue(!c.pathname||!c.pathname.includes("#"),Jc("#","pathname","hash",c)),Ue(!c.search||!c.search.includes("#"),Jc("#","search","hash",c)));let f=n===""||c.pathname==="",d=f?"/":c.pathname,p;if(d==null)p=l;else{let y=i.length-1;if(!s&&d.startsWith("..")){let x=d.split("/");for(;x[0]==="..";)x.shift(),y-=1;c.pathname=x.join("/")}p=y>=0?i[y]:"/"}let g=DS(c,p),m=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&l.endsWith("/");return!g.pathname.endsWith("/")&&(m||b)&&(g.pathname+="/"),g}var ca=n=>n.join("/").replace(/\/\/+/g,"/"),kS=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),zS=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,jS=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Xl=class{constructor(n,i,l,s=!1){this.status=n,this.statusText=i||"",this.internal=s,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function Kl(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Fl(n){return n.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ey=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ty(n,i){let l=n;if(typeof l!="string"||!wy.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let s=l,c=!1;if(Ey)try{let f=new URL(window.location.href),d=l.startsWith("//")?new URL(f.protocol+l):new URL(l),p=Vn(d.pathname,i);d.origin===f.origin&&p!=null?l=p+d.search+d.hash:c=!0}catch{Dt(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:c,to:l}}var di=Symbol("Uninstrumented");function LS(n,i){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(c=>c({id:i.id,index:i.index,path:i.path,instrument(f){let d=Object.keys(l);for(let p of d)f[p]&&l[p].push(f[p])}}));let s={};if(typeof i.lazy=="function"&&l.lazy.length>0){let c=kr(l.lazy,i.lazy,()=>{});c&&(s.lazy=c)}if(typeof i.lazy=="object"){let c=i.lazy;["middleware","loader","action"].forEach(f=>{let d=c[f],p=l[`lazy.${f}`];if(typeof d=="function"&&p.length>0){let g=kr(p,d,()=>{});g&&(s.lazy=Object.assign(s.lazy||{},{[f]:g}))}})}return["loader","action"].forEach(c=>{let f=i[c];if(typeof f=="function"&&l[c].length>0){let d=f[di]??f,p=kr(l[c],d,(...g)=>dg(g[0]));p&&(c==="loader"&&d.hydrate===!0&&(p.hydrate=!0),p[di]=d,s[c]=p)}}),i.middleware&&i.middleware.length>0&&l.middleware.length>0&&(s.middleware=i.middleware.map(c=>{let f=c[di]??c,d=kr(l.middleware,f,(...p)=>dg(p[0]));return d?(d[di]=f,d):c})),s}function US(n,i){let l={navigate:[],fetch:[]};if(i.forEach(s=>s({instrument(c){let f=Object.keys(c);for(let d of f)c[d]&&l[d].push(c[d])}})),l.navigate.length>0){let s=n.navigate[di]??n.navigate,c=kr(l.navigate,s,(...f)=>{let[d,p]=f;return{to:typeof d=="number"||typeof d=="string"?d:d?fa(d):".",...hg(n,p??{})}});c&&(c[di]=s,n.navigate=c)}if(l.fetch.length>0){let s=n.fetch[di]??n.fetch,c=kr(l.fetch,s,(...f)=>{let[d,,p,g]=f;return{href:p??".",fetcherKey:d,...hg(n,g??{})}});c&&(c[di]=s,n.fetch=c)}return n}function kr(n,i,l){return n.length===0?null:async(...s)=>{let c=await Ry(n,l(...s),()=>i(...s),n.length-1);if(c.type==="error")throw c.value;return c.value}}async function Ry(n,i,l,s){let c=n[s],f;if(c){let d,p=async()=>(d?console.error("You cannot call instrumented handlers more than once"):d=Ry(n,i,l,s-1),f=await d,Ue(f,"Expected a result"),f.type==="error"&&f.value instanceof Error?{status:"error",error:f.value}:{status:"success",error:void 0});try{await c(p,i)}catch(g){console.error("An instrumentation function threw an error:",g)}d||await p(),await d}else try{f={type:"success",value:await l()}}catch(d){f={type:"error",value:d}}return f||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function dg(n){let{request:i,context:l,params:s,unstable_pattern:c}=n;return{request:BS(i),params:{...s},unstable_pattern:c,context:qS(l)}}function hg(n,i){return{currentUrl:fa(n.state.location),..."formMethod"in i?{formMethod:i.formMethod}:{},..."formEncType"in i?{formEncType:i.formEncType}:{},..."formData"in i?{formData:i.formData}:{},..."body"in i?{body:i.body}:{}}}function BS(n){return{method:n.method,url:n.url,headers:{get:(...i)=>n.headers.get(...i)}}}function qS(n){if(QS(n)){let i={...n};return Object.freeze(i),i}else return{get:i=>n.get(i)}}var HS=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function QS(n){if(n===null||typeof n!="object")return!1;const i=Object.getPrototypeOf(n);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===HS}var _y=["POST","PUT","PATCH","DELETE"],VS=new Set(_y),YS=["GET",..._y],GS=new Set(YS),Cy=new Set([301,302,303,307,308]),KS=new Set([307,308]),Ic={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},PS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Dl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},XS=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Ay="remix-router-transitions",Oy=Symbol("ResetLoaderData");function FS(n){const i=n.window?n.window:typeof window<"u"?window:void 0,l=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";Ue(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=n.hydrationRouteProperties||[],c=n.mapRouteProperties||XS,f=c;if(n.unstable_instrumentations){let S=n.unstable_instrumentations;f=C=>({...c(C),...LS(S.map(j=>j.route).filter(Boolean),C)})}let d={},p=Gl(n.routes,f,void 0,d),g,m=n.basename||"/";m.startsWith("/")||(m=`/${m}`);let b=n.dataStrategy||WS,y={...n.future},x=null,N=new Set,L=null,B=null,K=null,G=n.hydrationData!=null,J=ci(p,n.history.location,m),$=!1,ye=null,he;if(J==null&&!n.patchRoutesOnNavigation){let S=qn(404,{pathname:n.history.location.pathname}),{matches:C,route:j}=fo(p);he=!0,J=C,ye={[j.id]:S}}else if(J&&!n.hydrationData&&xt(J,p,n.history.location.pathname).active&&(J=null),J)if(J.some(S=>S.route.lazy))he=!1;else if(!J.some(S=>Uf(S.route)))he=!0;else{let S=n.hydrationData?n.hydrationData.loaderData:null,C=n.hydrationData?n.hydrationData.errors:null;if(C){let j=J.findIndex(I=>C[I.route.id]!==void 0);he=J.slice(0,j+1).every(I=>!yf(I.route,S,C))}else he=J.every(j=>!yf(j.route,S,C))}else{he=!1,J=[];let S=xt(null,p,n.history.location.pathname);S.active&&S.matches&&($=!0,J=S.matches)}let me,A={historyAction:n.history.action,location:n.history.location,matches:J,initialized:he,navigation:Ic,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||ye,fetchers:new Map,blockers:new Map},Y="POP",oe=null,Ae=!1,Ce,Te=!1,je=new Map,Le=null,we=!1,O=!1,F=new Set,H=new Map,ge=0,ve=-1,E=new Map,Q=new Set,q=new Map,Z=new Map,te=new Set,ue=new Map,ce,Re=null;function Ve(){if(x=n.history.listen(({action:S,location:C,delta:j})=>{if(ce){ce(),ce=void 0;return}Dt(ue.size===0||j!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=ga({currentLocation:A.location,nextLocation:C,historyAction:S});if(I&&j!=null){let W=new Promise(pe=>{ce=pe});n.history.go(j*-1),Pn(I,{state:"blocked",location:C,proceed(){Pn(I,{state:"proceeding",proceed:void 0,reset:void 0,location:C}),W.then(()=>n.history.go(j))},reset(){let pe=new Map(A.blockers);pe.set(I,Dl),Je({blockers:pe})}}),oe?.resolve(),oe=null;return}return an(S,C)}),l){yw(i,je);let S=()=>vw(i,je);i.addEventListener("pagehide",S),Le=()=>i.removeEventListener("pagehide",S)}return A.initialized||an("POP",A.location,{initialHydration:!0}),me}function Ht(){x&&x(),Le&&Le(),N.clear(),Ce&&Ce.abort(),A.fetchers.forEach((S,C)=>Cn(C)),A.blockers.forEach((S,C)=>pn(C))}function $t(S){return N.add(S),()=>N.delete(S)}function Je(S,C={}){S.matches&&(S.matches=S.matches.map(W=>{let pe=d[W.route.id],ae=W.route;return ae.element!==pe.element||ae.errorElement!==pe.errorElement||ae.hydrateFallbackElement!==pe.hydrateFallbackElement?{...W,route:pe}:W})),A={...A,...S};let j=[],I=[];A.fetchers.forEach((W,pe)=>{W.state==="idle"&&(te.has(pe)?j.push(pe):I.push(pe))}),te.forEach(W=>{!A.fetchers.has(W)&&!H.has(W)&&j.push(W)}),[...N].forEach(W=>W(A,{deletedFetchers:j,newErrors:S.errors??null,viewTransitionOpts:C.viewTransitionOpts,flushSync:C.flushSync===!0})),j.forEach(W=>Cn(W)),I.forEach(W=>A.fetchers.delete(W))}function Kn(S,C,{flushSync:j}={}){let I=A.actionData!=null&&A.navigation.formMethod!=null&&It(A.navigation.formMethod)&&A.navigation.state==="loading"&&S.state?._isRedirect!==!0,W;C.actionData?Object.keys(C.actionData).length>0?W=C.actionData:W=null:I?W=A.actionData:W=null;let pe=C.loaderData?Eg(A.loaderData,C.loaderData,C.matches||[],C.errors):A.loaderData,ae=A.blockers;ae.size>0&&(ae=new Map(ae),ae.forEach((xe,be)=>ae.set(be,Dl)));let ne=we?!1:wt(S,C.matches||A.matches),ie=Ae===!0||A.navigation.formMethod!=null&&It(A.navigation.formMethod)&&S.state?._isRedirect!==!0;g&&(p=g,g=void 0),we||Y==="POP"||(Y==="PUSH"?n.history.push(S,S.state):Y==="REPLACE"&&n.history.replace(S,S.state));let de;if(Y==="POP"){let xe=je.get(A.location.pathname);xe&&xe.has(S.pathname)?de={currentLocation:A.location,nextLocation:S}:je.has(S.pathname)&&(de={currentLocation:S,nextLocation:A.location})}else if(Te){let xe=je.get(A.location.pathname);xe?xe.add(S.pathname):(xe=new Set([S.pathname]),je.set(A.location.pathname,xe)),de={currentLocation:A.location,nextLocation:S}}Je({...C,actionData:W,loaderData:pe,historyAction:Y,location:S,initialized:!0,navigation:Ic,revalidation:"idle",restoreScrollPosition:ne,preventScrollReset:ie,blockers:ae},{viewTransitionOpts:de,flushSync:j===!0}),Y="POP",Ae=!1,Te=!1,we=!1,O=!1,oe?.resolve(),oe=null,Re?.resolve(),Re=null}async function nn(S,C){if(oe?.resolve(),oe=null,typeof S=="number"){oe||(oe=Cg());let Ye=oe.promise;return n.history.go(S),Ye}let j=gf(A.location,A.matches,m,S,C?.fromRouteId,C?.relative),{path:I,submission:W,error:pe}=mg(!1,j,C),ae=A.location,ne=Yl(A.location,I,C&&C.state);ne={...ne,...n.history.encodeLocation(ne)};let ie=C&&C.replace!=null?C.replace:void 0,de="PUSH";ie===!0?de="REPLACE":ie===!1||W!=null&&It(W.formMethod)&&W.formAction===A.location.pathname+A.location.search&&(de="REPLACE");let xe=C&&"preventScrollReset"in C?C.preventScrollReset===!0:void 0,be=(C&&C.flushSync)===!0,Ze=ga({currentLocation:ae,nextLocation:ne,historyAction:de});if(Ze){Pn(Ze,{state:"blocked",location:ne,proceed(){Pn(Ze,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),nn(S,C)},reset(){let Ye=new Map(A.blockers);Ye.set(Ze,Dl),Je({blockers:Ye})}});return}await an(de,ne,{submission:W,pendingError:pe,preventScrollReset:xe,replace:C&&C.replace,enableViewTransition:C&&C.viewTransition,flushSync:be,callSiteDefaultShouldRevalidate:C&&C.unstable_defaultShouldRevalidate})}function vi(){Re||(Re=Cg()),qa(),Je({revalidation:"loading"});let S=Re.promise;return A.navigation.state==="submitting"?S:A.navigation.state==="idle"?(an(A.historyAction,A.location,{startUninterruptedRevalidation:!0}),S):(an(Y||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:Te===!0}),S)}async function an(S,C,j){Ce&&Ce.abort(),Ce=null,Y=S,we=(j&&j.startUninterruptedRevalidation)===!0,st(A.location,A.matches),Ae=(j&&j.preventScrollReset)===!0,Te=(j&&j.enableViewTransition)===!0;let I=g||p,W=j&&j.overrideNavigation,pe=j?.initialHydration&&A.matches&&A.matches.length>0&&!$?A.matches:ci(I,C,m),ae=(j&&j.flushSync)===!0;if(pe&&A.initialized&&!O&&sw(A.location,C)&&!(j&&j.submission&&It(j.submission.formMethod))){Kn(C,{matches:pe},{flushSync:ae});return}let ne=xt(pe,I,C.pathname);if(ne.active&&ne.matches&&(pe=ne.matches),!pe){let{error:yt,notFoundMatches:vt,route:Ge}=Xn(C.pathname);Kn(C,{matches:vt,loaderData:{},errors:{[Ge.id]:yt}},{flushSync:ae});return}Ce=new AbortController;let ie=Dr(n.history,C,Ce.signal,j&&j.submission),de=n.getContext?await n.getContext():new og,xe;if(j&&j.pendingError)xe=[fi(pe).route.id,{type:"error",error:j.pendingError}];else if(j&&j.submission&&It(j.submission.formMethod)){let yt=await ha(ie,C,j.submission,pe,de,ne.active,j&&j.initialHydration===!0,{replace:j.replace,flushSync:ae});if(yt.shortCircuited)return;if(yt.pendingActionResult){let[vt,Ge]=yt.pendingActionResult;if(Rn(Ge)&&Kl(Ge.error)&&Ge.error.status===404){Ce=null,Kn(C,{matches:yt.matches,loaderData:{},errors:{[vt]:Ge.error}});return}}pe=yt.matches||pe,xe=yt.pendingActionResult,W=$c(C,j.submission),ae=!1,ne.active=!1,ie=Dr(n.history,ie.url,ie.signal)}let{shortCircuited:be,matches:Ze,loaderData:Ye,errors:pt}=await bi(ie,C,pe,de,ne.active,W,j&&j.submission,j&&j.fetcherSubmission,j&&j.replace,j&&j.initialHydration===!0,ae,xe,j&&j.callSiteDefaultShouldRevalidate);be||(Ce=null,Kn(C,{matches:Ze||pe,...Tg(xe),loaderData:Ye,errors:pt}))}async function ha(S,C,j,I,W,pe,ae,ne={}){qa();let ie=pw(C,j);if(Je({navigation:ie},{flushSync:ne.flushSync===!0}),pe){let be=await gn(I,C.pathname,S.signal);if(be.type==="aborted")return{shortCircuited:!0};if(be.type==="error"){if(be.partialMatches.length===0){let{matches:Ye,route:pt}=fo(p);return{matches:Ye,pendingActionResult:[pt.id,{type:"error",error:be.error}]}}let Ze=fi(be.partialMatches).route.id;return{matches:be.partialMatches,pendingActionResult:[Ze,{type:"error",error:be.error}]}}else if(be.matches)I=be.matches;else{let{notFoundMatches:Ze,error:Ye,route:pt}=Xn(C.pathname);return{matches:Ze,pendingActionResult:[pt.id,{type:"error",error:Ye}]}}}let de,xe=So(I,C);if(!xe.route.action&&!xe.route.lazy)de={type:"error",error:qn(405,{method:S.method,pathname:C.pathname,routeId:xe.route.id})};else{let be=zr(f,d,S,I,xe,ae?[]:s,W),Ze=await ma(S,be,W,null);if(de=Ze[xe.route.id],!de){for(let Ye of I)if(Ze[Ye.route.id]){de=Ze[Ye.route.id];break}}if(S.signal.aborted)return{shortCircuited:!0}}if(Gi(de)){let be;return ne&&ne.replace!=null?be=ne.replace:be=Sg(de.response.headers.get("Location"),new URL(S.url),m,n.history)===A.location.pathname+A.location.search,await mt(S,de,!0,{submission:j,replace:be}),{shortCircuited:!0}}if(Rn(de)){let be=fi(I,xe.route.id);return(ne&&ne.replace)!==!0&&(Y="PUSH"),{matches:I,pendingActionResult:[be.route.id,de,xe.route.id]}}return{matches:I,pendingActionResult:[xe.route.id,de]}}async function bi(S,C,j,I,W,pe,ae,ne,ie,de,xe,be,Ze){let Ye=pe||$c(C,ae),pt=ae||ne||_g(Ye),yt=!we&&!de;if(W){if(yt){let Et=Ft(be);Je({navigation:Ye,...Et!==void 0?{actionData:Et}:{}},{flushSync:xe})}let Ke=await gn(j,C.pathname,S.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){if(Ke.partialMatches.length===0){let{matches:Jn,route:Yt}=fo(p);return{matches:Jn,loaderData:{},errors:{[Yt.id]:Ke.error}}}let Et=fi(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[Et]:Ke.error}}}else if(Ke.matches)j=Ke.matches;else{let{error:Et,notFoundMatches:Jn,route:Yt}=Xn(C.pathname);return{matches:Jn,loaderData:{},errors:{[Yt.id]:Et}}}}let vt=g||p,{dsMatches:Ge,revalidatingFetchers:Ut}=pg(S,I,f,d,n.history,A,j,pt,C,de?[]:s,de===!0,O,F,te,q,Q,vt,m,n.patchRoutesOnNavigation!=null,be,Ze);if(ve=++ge,!n.dataStrategy&&!Ge.some(Ke=>Ke.shouldLoad)&&!Ge.some(Ke=>Ke.route.middleware&&Ke.route.middleware.length>0)&&Ut.length===0){let Ke=kt();return Kn(C,{matches:j,loaderData:{},errors:be&&Rn(be[1])?{[be[0]]:be[1].error}:null,...Tg(be),...Ke?{fetchers:new Map(A.fetchers)}:{}},{flushSync:xe}),{shortCircuited:!0}}if(yt){let Ke={};if(!W){Ke.navigation=Ye;let Et=Ft(be);Et!==void 0&&(Ke.actionData=Et)}Ut.length>0&&(Ke.fetchers=Si(Ut)),Je(Ke,{flushSync:xe})}Ut.forEach(Ke=>{ut(Ke.key),Ke.controller&&H.set(Ke.key,Ke.controller)});let ln=()=>Ut.forEach(Ke=>ut(Ke.key));Ce&&Ce.signal.addEventListener("abort",ln);let{loaderResults:dt,fetcherResults:Fn}=await aa(Ge,Ut,S,I);if(S.signal.aborted)return{shortCircuited:!0};Ce&&Ce.signal.removeEventListener("abort",ln),Ut.forEach(Ke=>H.delete(Ke.key));let yn=ho(dt);if(yn)return await mt(S,yn.result,!0,{replace:ie}),{shortCircuited:!0};if(yn=ho(Fn),yn)return Q.add(yn.key),await mt(S,yn.result,!0,{replace:ie}),{shortCircuited:!0};let{loaderData:Zn,errors:On}=xg(A,j,dt,be,Ut,Fn);de&&A.errors&&(On={...A.errors,...On});let va=kt(),Ei=Ji(ve),Ti=va||Ei||Ut.length>0;return{matches:j,loaderData:Zn,errors:On,...Ti?{fetchers:new Map(A.fetchers)}:{}}}function Ft(S){if(S&&!Rn(S[1]))return{[S[0]]:S[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function Si(S){return S.forEach(C=>{let j=A.fetchers.get(C.key),I=kl(void 0,j?j.data:void 0);A.fetchers.set(C.key,I)}),new Map(A.fetchers)}async function wi(S,C,j,I){ut(S);let W=(I&&I.flushSync)===!0,pe=g||p,ae=gf(A.location,A.matches,m,j,C,I?.relative),ne=ci(pe,ae,m),ie=xt(ne,pe,ae);if(ie.active&&ie.matches&&(ne=ie.matches),!ne){Wt(S,C,qn(404,{pathname:ae}),{flushSync:W});return}let{path:de,submission:xe,error:be}=mg(!0,ae,I);if(be){Wt(S,C,be,{flushSync:W});return}let Ze=n.getContext?await n.getContext():new og,Ye=(I&&I.preventScrollReset)===!0;if(xe&&It(xe.formMethod)){await Qt(S,C,de,ne,Ze,ie.active,W,Ye,xe,I&&I.unstable_defaultShouldRevalidate);return}q.set(S,{routeId:C,path:de}),await na(S,C,de,ne,Ze,ie.active,W,Ye,xe)}async function Qt(S,C,j,I,W,pe,ae,ne,ie,de){qa(),q.delete(S);let xe=A.fetchers.get(S);Vt(S,gw(ie,xe),{flushSync:ae});let be=new AbortController,Ze=Dr(n.history,j,be.signal,ie);if(pe){let Pe=await gn(I,new URL(Ze.url).pathname,Ze.signal,S);if(Pe.type==="aborted")return;if(Pe.type==="error"){Wt(S,C,Pe.error,{flushSync:ae});return}else if(Pe.matches)I=Pe.matches;else{Wt(S,C,qn(404,{pathname:j}),{flushSync:ae});return}}let Ye=So(I,j);if(!Ye.route.action&&!Ye.route.lazy){let Pe=qn(405,{method:ie.formMethod,pathname:j,routeId:C});Wt(S,C,Pe,{flushSync:ae});return}H.set(S,be);let pt=ge,yt=zr(f,d,Ze,I,Ye,s,W),vt=await ma(Ze,yt,W,S),Ge=vt[Ye.route.id];if(!Ge){for(let Pe of yt)if(vt[Pe.route.id]){Ge=vt[Pe.route.id];break}}if(Ze.signal.aborted){H.get(S)===be&&H.delete(S);return}if(te.has(S)){if(Gi(Ge)||Rn(Ge)){Vt(S,Ua(void 0));return}}else{if(Gi(Ge))if(H.delete(S),ve>pt){Vt(S,Ua(void 0));return}else return Q.add(S),Vt(S,kl(ie)),mt(Ze,Ge,!1,{fetcherSubmission:ie,preventScrollReset:ne});if(Rn(Ge)){Wt(S,C,Ge.error);return}}let Ut=A.navigation.location||A.location,ln=Dr(n.history,Ut,be.signal),dt=g||p,Fn=A.navigation.state!=="idle"?ci(dt,A.navigation.location,m):A.matches;Ue(Fn,"Didn't find any matches after fetcher action");let yn=++ge;E.set(S,yn);let Zn=kl(ie,Ge.data);A.fetchers.set(S,Zn);let{dsMatches:On,revalidatingFetchers:va}=pg(ln,W,f,d,n.history,A,Fn,ie,Ut,s,!1,O,F,te,q,Q,dt,m,n.patchRoutesOnNavigation!=null,[Ye.route.id,Ge],de);va.filter(Pe=>Pe.key!==S).forEach(Pe=>{let Ri=Pe.key,$l=A.fetchers.get(Ri),Vr=kl(void 0,$l?$l.data:void 0);A.fetchers.set(Ri,Vr),ut(Ri),Pe.controller&&H.set(Ri,Pe.controller)}),Je({fetchers:new Map(A.fetchers)});let Ei=()=>va.forEach(Pe=>ut(Pe.key));be.signal.addEventListener("abort",Ei);let{loaderResults:Ti,fetcherResults:Ke}=await aa(On,va,ln,W);if(be.signal.aborted)return;if(be.signal.removeEventListener("abort",Ei),E.delete(S),H.delete(S),va.forEach(Pe=>H.delete(Pe.key)),A.fetchers.has(S)){let Pe=Ua(Ge.data);A.fetchers.set(S,Pe)}let Et=ho(Ti);if(Et)return mt(ln,Et.result,!1,{preventScrollReset:ne});if(Et=ho(Ke),Et)return Q.add(Et.key),mt(ln,Et.result,!1,{preventScrollReset:ne});let{loaderData:Jn,errors:Yt}=xg(A,Fn,Ti,void 0,va,Ke);Ji(yn),A.navigation.state==="loading"&&yn>ve?(Ue(Y,"Expected pending action"),Ce&&Ce.abort(),Kn(A.navigation.location,{matches:Fn,loaderData:Jn,errors:Yt,fetchers:new Map(A.fetchers)})):(Je({errors:Yt,loaderData:Eg(A.loaderData,Jn,Fn,Yt),fetchers:new Map(A.fetchers)}),O=!1)}async function na(S,C,j,I,W,pe,ae,ne,ie){let de=A.fetchers.get(S);Vt(S,kl(ie,de?de.data:void 0),{flushSync:ae});let xe=new AbortController,be=Dr(n.history,j,xe.signal);if(pe){let Ge=await gn(I,new URL(be.url).pathname,be.signal,S);if(Ge.type==="aborted")return;if(Ge.type==="error"){Wt(S,C,Ge.error,{flushSync:ae});return}else if(Ge.matches)I=Ge.matches;else{Wt(S,C,qn(404,{pathname:j}),{flushSync:ae});return}}let Ze=So(I,j);H.set(S,xe);let Ye=ge,pt=zr(f,d,be,I,Ze,s,W),vt=(await ma(be,pt,W,S))[Ze.route.id];if(H.get(S)===xe&&H.delete(S),!be.signal.aborted){if(te.has(S)){Vt(S,Ua(void 0));return}if(Gi(vt))if(ve>Ye){Vt(S,Ua(void 0));return}else{Q.add(S),await mt(be,vt,!1,{preventScrollReset:ne});return}if(Rn(vt)){Wt(S,C,vt.error);return}Vt(S,Ua(vt.data))}}async function mt(S,C,j,{submission:I,fetcherSubmission:W,preventScrollReset:pe,replace:ae}={}){j||(oe?.resolve(),oe=null),C.response.headers.has("X-Remix-Revalidate")&&(O=!0);let ne=C.response.headers.get("Location");Ue(ne,"Expected a Location header on the redirect Response"),ne=Sg(ne,new URL(S.url),m,n.history);let ie=Yl(A.location,ne,{_isRedirect:!0});if(l){let pt=!1;if(C.response.headers.has("X-Remix-Reload-Document"))pt=!0;else if(zf(ne)){const yt=vy(ne,!0);pt=yt.origin!==i.location.origin||Vn(yt.pathname,m)==null}if(pt){ae?i.location.replace(ne):i.location.assign(ne);return}}Ce=null;let de=ae===!0||C.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:xe,formAction:be,formEncType:Ze}=A.navigation;!I&&!W&&xe&&be&&Ze&&(I=_g(A.navigation));let Ye=I||W;if(KS.has(C.response.status)&&Ye&&It(Ye.formMethod))await an(de,ie,{submission:{...Ye,formAction:ne},preventScrollReset:pe||Ae,enableViewTransition:j?Te:void 0});else{let pt=$c(ie,I);await an(de,ie,{overrideNavigation:pt,fetcherSubmission:W,preventScrollReset:pe||Ae,enableViewTransition:j?Te:void 0})}}async function ma(S,C,j,I){let W,pe={};try{W=await tw(b,S,C,I,j,!1)}catch(ae){return C.filter(ne=>ne.shouldLoad).forEach(ne=>{pe[ne.route.id]={type:"error",error:ae}}),pe}if(S.signal.aborted)return pe;if(!It(S.method))for(let ae of C){if(W[ae.route.id]?.type==="error")break;!W.hasOwnProperty(ae.route.id)&&!A.loaderData.hasOwnProperty(ae.route.id)&&(!A.errors||!A.errors.hasOwnProperty(ae.route.id))&&ae.shouldCallHandler()&&(W[ae.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ae.route.id}`)})}for(let[ae,ne]of Object.entries(W))if(fw(ne)){let ie=ne.result;pe[ae]={type:"redirect",response:rw(ie,S,ae,C,m)}}else pe[ae]=await iw(ne);return pe}async function aa(S,C,j,I){let W=ma(j,S,I,null),pe=Promise.all(C.map(async ie=>{if(ie.matches&&ie.match&&ie.request&&ie.controller){let xe=(await ma(ie.request,ie.matches,I,ie.key))[ie.match.route.id];return{[ie.key]:xe}}else return Promise.resolve({[ie.key]:{type:"error",error:qn(404,{pathname:ie.path})}})})),ae=await W,ne=(await pe).reduce((ie,de)=>Object.assign(ie,de),{});return{loaderResults:ae,fetcherResults:ne}}function qa(){O=!0,q.forEach((S,C)=>{H.has(C)&&F.add(C),ut(C)})}function Vt(S,C,j={}){A.fetchers.set(S,C),Je({fetchers:new Map(A.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function Wt(S,C,j,I={}){let W=fi(A.matches,C);Cn(S),Je({errors:{[W.route.id]:j},fetchers:new Map(A.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function _n(S){return Z.set(S,(Z.get(S)||0)+1),te.has(S)&&te.delete(S),A.fetchers.get(S)||PS}function Zi(S,C){ut(S,C?.reason),Vt(S,Ua(null))}function Cn(S){let C=A.fetchers.get(S);H.has(S)&&!(C&&C.state==="loading"&&E.has(S))&&ut(S),q.delete(S),E.delete(S),Q.delete(S),te.delete(S),F.delete(S),A.fetchers.delete(S)}function pa(S){let C=(Z.get(S)||0)-1;C<=0?(Z.delete(S),te.add(S)):Z.set(S,C),Je({fetchers:new Map(A.fetchers)})}function ut(S,C){let j=H.get(S);j&&(j.abort(C),H.delete(S))}function rn(S){for(let C of S){let j=_n(C),I=Ua(j.data);A.fetchers.set(C,I)}}function kt(){let S=[],C=!1;for(let j of Q){let I=A.fetchers.get(j);Ue(I,`Expected fetcher: ${j}`),I.state==="loading"&&(Q.delete(j),S.push(j),C=!0)}return rn(S),C}function Ji(S){let C=[];for(let[j,I]of E)if(I<S){let W=A.fetchers.get(j);Ue(W,`Expected fetcher: ${j}`),W.state==="loading"&&(ut(j),E.delete(j),C.push(j))}return rn(C),C.length>0}function xi(S,C){let j=A.blockers.get(S)||Dl;return ue.get(S)!==C&&ue.set(S,C),j}function pn(S){A.blockers.delete(S),ue.delete(S)}function Pn(S,C){let j=A.blockers.get(S)||Dl;Ue(j.state==="unblocked"&&C.state==="blocked"||j.state==="blocked"&&C.state==="blocked"||j.state==="blocked"&&C.state==="proceeding"||j.state==="blocked"&&C.state==="unblocked"||j.state==="proceeding"&&C.state==="unblocked",`Invalid blocker state transition: ${j.state} -> ${C.state}`);let I=new Map(A.blockers);I.set(S,C),Je({blockers:I})}function ga({currentLocation:S,nextLocation:C,historyAction:j}){if(ue.size===0)return;ue.size>1&&Dt(!1,"A router only supports one blocker at a time");let I=Array.from(ue.entries()),[W,pe]=I[I.length-1],ae=A.blockers.get(W);if(!(ae&&ae.state==="proceeding")&&pe({currentLocation:S,nextLocation:C,historyAction:j}))return W}function Xn(S){let C=qn(404,{pathname:S}),j=g||p,{matches:I,route:W}=fo(j);return{notFoundMatches:I,route:W,error:C}}function An(S,C,j){if(L=S,K=C,B=j||null,!G&&A.navigation===Ic){G=!0;let I=wt(A.location,A.matches);I!=null&&Je({restoreScrollPosition:I})}return()=>{L=null,K=null,B=null}}function _e(S,C){return B&&B(S,C.map(I=>vS(I,A.loaderData)))||S.key}function st(S,C){if(L&&K){let j=_e(S,C);L[j]=K()}}function wt(S,C){if(L){let j=_e(S,C),I=L[j];if(typeof I=="number")return I}return null}function xt(S,C,j){if(n.patchRoutesOnNavigation)if(S){if(Object.keys(S[0].params).length>0)return{active:!0,matches:Bl(C,j,m,!0)}}else return{active:!0,matches:Bl(C,j,m,!0)||[]};return{active:!1,matches:null}}async function gn(S,C,j,I){if(!n.patchRoutesOnNavigation)return{type:"success",matches:S};let W=S;for(;;){let pe=g==null,ae=g||p,ne=d;try{await n.patchRoutesOnNavigation({signal:j,path:C,matches:W,fetcherKey:I,patch:(xe,be)=>{j.aborted||gg(xe,be,ae,ne,f,!1)}})}catch(xe){return{type:"error",error:xe,partialMatches:W}}finally{pe&&!j.aborted&&(p=[...p])}if(j.aborted)return{type:"aborted"};let ie=ci(ae,C,m),de=null;if(ie){if(Object.keys(ie[0].params).length===0)return{type:"success",matches:ie};if(de=Bl(ae,C,m,!0),!(de&&W.length<de.length&&ot(W,de.slice(0,W.length))))return{type:"success",matches:ie}}if(de||(de=Bl(ae,C,m,!0)),!de||ot(W,de))return{type:"success",matches:null};W=de}}function ot(S,C){return S.length===C.length&&S.every((j,I)=>j.route.id===C[I].route.id)}function Zt(S){d={},g=Gl(S,f,void 0,d)}function ya(S,C,j=!1){let I=g==null;gg(S,C,g||p,d,f,j),I&&(p=[...p],Je({}))}return me={get basename(){return m},get future(){return y},get state(){return A},get routes(){return p},get window(){return i},initialize:Ve,subscribe:$t,enableScrollRestoration:An,navigate:nn,fetch:wi,revalidate:vi,createHref:S=>n.history.createHref(S),encodeLocation:S=>n.history.encodeLocation(S),getFetcher:_n,resetFetcher:Zi,deleteFetcher:pa,dispose:Ht,getBlocker:xi,deleteBlocker:pn,patchRoutes:ya,_internalFetchControllers:H,_internalSetRoutes:Zt,_internalSetStateDoNotUseOrYouWillBreakYourApp(S){Je(S)}},n.unstable_instrumentations&&(me=US(me,n.unstable_instrumentations.map(S=>S.router).filter(Boolean))),me}function ZS(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function gf(n,i,l,s,c,f){let d,p;if(c){d=[];for(let m of i)if(d.push(m),m.route.id===c){p=m;break}}else d=i,p=i[i.length-1];let g=Lf(s||".",jf(d),Vn(n.pathname,l)||n.pathname,f==="path");if(s==null&&(g.search=n.search,g.hash=n.hash),(s==null||s===""||s===".")&&p){let m=qf(g.search);if(p.route.index&&!m)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!p.route.index&&m){let b=new URLSearchParams(g.search),y=b.getAll("index");b.delete("index"),y.filter(N=>N).forEach(N=>b.append("index",N));let x=b.toString();g.search=x?`?${x}`:""}}return l!=="/"&&(g.pathname=NS({basename:l,pathname:g.pathname})),fa(g)}function mg(n,i,l){if(!l||!ZS(l))return{path:i};if(l.formMethod&&!mw(l.formMethod))return{path:i,error:qn(405,{method:l.formMethod})};let s=()=>({path:i,error:qn(400,{type:"invalid-body"})}),f=(l.formMethod||"get").toUpperCase(),d=jy(i);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!It(f))return s();let y=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((x,[N,L])=>`${x}${N}=${L}
11
+ `,""):String(l.body);return{path:i,submission:{formMethod:f,formAction:d,formEncType:l.formEncType,formData:void 0,json:void 0,text:y}}}else if(l.formEncType==="application/json"){if(!It(f))return s();try{let y=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:i,submission:{formMethod:f,formAction:d,formEncType:l.formEncType,formData:void 0,json:y,text:void 0}}}catch{return s()}}}Ue(typeof FormData=="function","FormData is not available in this environment");let p,g;if(l.formData)p=bf(l.formData),g=l.formData;else if(l.body instanceof FormData)p=bf(l.body),g=l.body;else if(l.body instanceof URLSearchParams)p=l.body,g=wg(p);else if(l.body==null)p=new URLSearchParams,g=new FormData;else try{p=new URLSearchParams(l.body),g=wg(p)}catch{return s()}let m={formMethod:f,formAction:d,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(It(m.formMethod))return{path:i,submission:m};let b=gi(i);return n&&b.search&&qf(b.search)&&p.append("index",""),b.search=`?${p}`,{path:fa(b),submission:m}}function pg(n,i,l,s,c,f,d,p,g,m,b,y,x,N,L,B,K,G,J,$,ye){let he=$?Rn($[1])?$[1].error:$[1].data:void 0,me=c.createURL(f.location),A=c.createURL(g),Y;if(b&&f.errors){let we=Object.keys(f.errors)[0];Y=d.findIndex(O=>O.route.id===we)}else if($&&Rn($[1])){let we=$[0];Y=d.findIndex(O=>O.route.id===we)-1}let oe=$?$[1].statusCode:void 0,Ae=oe&&oe>=400,Ce={currentUrl:me,currentParams:f.matches[0]?.params||{},nextUrl:A,nextParams:d[0].params,...p,actionResult:he,actionStatus:oe},Te=Fl(d),je=d.map((we,O)=>{let{route:F}=we,H=null;if(Y!=null&&O>Y?H=!1:F.lazy?H=!0:Uf(F)?b?H=yf(F,f.loaderData,f.errors):JS(f.loaderData,f.matches[O],we)&&(H=!0):H=!1,H!==null)return vf(l,s,n,Te,we,m,i,H);let ge=!1;typeof ye=="boolean"?ge=ye:Ae?ge=!1:(y||me.pathname+me.search===A.pathname+A.search||me.search!==A.search||IS(f.matches[O],we))&&(ge=!0);let ve={...Ce,defaultShouldRevalidate:ge},E=Ql(we,ve);return vf(l,s,n,Te,we,m,i,E,ve,ye)}),Le=[];return L.forEach((we,O)=>{if(b||!d.some(Z=>Z.route.id===we.routeId)||N.has(O))return;let F=f.fetchers.get(O),H=F&&F.state!=="idle"&&F.data===void 0,ge=ci(K,we.path,G);if(!ge){if(J&&H)return;Le.push({key:O,routeId:we.routeId,path:we.path,matches:null,match:null,request:null,controller:null});return}if(B.has(O))return;let ve=So(ge,we.path),E=new AbortController,Q=Dr(c,we.path,E.signal),q=null;if(x.has(O))x.delete(O),q=zr(l,s,Q,ge,ve,m,i);else if(H)y&&(q=zr(l,s,Q,ge,ve,m,i));else{let Z;typeof ye=="boolean"?Z=ye:Ae?Z=!1:Z=y;let te={...Ce,defaultShouldRevalidate:Z};Ql(ve,te)&&(q=zr(l,s,Q,ge,ve,m,i,te))}q&&Le.push({key:O,routeId:we.routeId,path:we.path,matches:q,match:ve,request:Q,controller:E})}),{dsMatches:je,revalidatingFetchers:Le}}function Uf(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function yf(n,i,l){if(n.lazy)return!0;if(!Uf(n))return!1;let s=i!=null&&n.id in i,c=l!=null&&l[n.id]!==void 0;return!s&&c?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!s&&!c}function JS(n,i,l){let s=!i||l.route.id!==i.route.id,c=!n.hasOwnProperty(l.route.id);return s||c}function IS(n,i){let l=n.route.path;return n.pathname!==i.pathname||l!=null&&l.endsWith("*")&&n.params["*"]!==i.params["*"]}function Ql(n,i){if(n.route.shouldRevalidate){let l=n.route.shouldRevalidate(i);if(typeof l=="boolean")return l}return i.defaultShouldRevalidate}function gg(n,i,l,s,c,f){let d;if(n){let m=s[n];Ue(m,`No route found to patch children into: routeId = ${n}`),m.children||(m.children=[]),d=m.children}else d=l;let p=[],g=[];if(i.forEach(m=>{let b=d.find(y=>My(m,y));b?g.push({existingRoute:b,newRoute:m}):p.push(m)}),p.length>0){let m=Gl(p,c,[n||"_","patch",String(d?.length||"0")],s);d.push(...m)}if(f&&g.length>0)for(let m=0;m<g.length;m++){let{existingRoute:b,newRoute:y}=g[m],x=b,[N]=Gl([y],c,[],{},!0);Object.assign(x,{element:N.element?N.element:x.element,errorElement:N.errorElement?N.errorElement:x.errorElement,hydrateFallbackElement:N.hydrateFallbackElement?N.hydrateFallbackElement:x.hydrateFallbackElement})}}function My(n,i){return"id"in n&&"id"in i&&n.id===i.id?!0:n.index===i.index&&n.path===i.path&&n.caseSensitive===i.caseSensitive?(!n.children||n.children.length===0)&&(!i.children||i.children.length===0)?!0:n.children.every((l,s)=>i.children?.some(c=>My(l,c))):!1}var yg=new WeakMap,Ny=({key:n,route:i,manifest:l,mapRouteProperties:s})=>{let c=l[i.id];if(Ue(c,"No route found in manifest"),!c.lazy||typeof c.lazy!="object")return;let f=c.lazy[n];if(!f)return;let d=yg.get(c);d||(d={},yg.set(c,d));let p=d[n];if(p)return p;let g=(async()=>{let m=mS(n),y=c[n]!==void 0&&n!=="hasErrorBoundary";if(m)Dt(!m,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),d[n]=Promise.resolve();else if(y)Dt(!1,`Route "${c.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let x=await f();x!=null&&(Object.assign(c,{[n]:x}),Object.assign(c,s(c)))}typeof c.lazy=="object"&&(c.lazy[n]=void 0,Object.values(c.lazy).every(x=>x===void 0)&&(c.lazy=void 0))})();return d[n]=g,g},vg=new WeakMap;function $S(n,i,l,s,c){let f=l[n.id];if(Ue(f,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let b=vg.get(f);if(b)return{lazyRoutePromise:b,lazyHandlerPromise:b};let y=(async()=>{Ue(typeof n.lazy=="function","No lazy route function found");let x=await n.lazy(),N={};for(let L in x){let B=x[L];if(B===void 0)continue;let K=gS(L),J=f[L]!==void 0&&L!=="hasErrorBoundary";K?Dt(!K,"Route property "+L+" is not a supported property to be returned from a lazy route function. This property will be ignored."):J?Dt(!J,`Route "${f.id}" has a static property "${L}" defined but its lazy function is also returning a value for this property. The lazy route property "${L}" will be ignored.`):N[L]=B}Object.assign(f,N),Object.assign(f,{...s(f),lazy:void 0})})();return vg.set(f,y),y.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:y}}let d=Object.keys(n.lazy),p=[],g;for(let b of d){if(c&&c.includes(b))continue;let y=Ny({key:b,route:n,manifest:l,mapRouteProperties:s});y&&(p.push(y),b===i&&(g=y))}let m=p.length>0?Promise.all(p).then(()=>{}):void 0;return m?.catch(()=>{}),g?.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:g}}async function bg(n){let i=n.matches.filter(c=>c.shouldLoad),l={};return(await Promise.all(i.map(c=>c.resolve()))).forEach((c,f)=>{l[i[f].route.id]=c}),l}async function WS(n){return n.matches.some(i=>i.route.middleware)?Dy(n,()=>bg(n)):bg(n)}function Dy(n,i){return ew(n,i,s=>{if(hw(s))throw s;return s},uw,l);function l(s,c,f){if(f)return Promise.resolve(Object.assign(f.value,{[c]:{type:"error",result:s}}));{let{matches:d}=n,p=Math.min(Math.max(d.findIndex(m=>m.route.id===c),0),Math.max(d.findIndex(m=>m.shouldCallHandler()),0)),g=fi(d,d[p].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:s}})}}}async function ew(n,i,l,s,c){let{matches:f,request:d,params:p,context:g,unstable_pattern:m}=n,b=f.flatMap(x=>x.route.middleware?x.route.middleware.map(N=>[x.route.id,N]):[]);return await ky({request:d,params:p,context:g,unstable_pattern:m},b,i,l,s,c)}async function ky(n,i,l,s,c,f,d=0){let{request:p}=n;if(p.signal.aborted)throw p.signal.reason??new Error(`Request aborted: ${p.method} ${p.url}`);let g=i[d];if(!g)return await l();let[m,b]=g,y,x=async()=>{if(y)throw new Error("You may only call `next()` once per middleware");try{return y={value:await ky(n,i,l,s,c,f,d+1)},y.value}catch(N){return y={value:await f(N,m,y)},y.value}};try{let N=await b(n,x),L=N!=null?s(N):void 0;return c(L)?L:y?L??y.value:(y={value:await x()},y.value)}catch(N){return await f(N,m,y)}}function zy(n,i,l,s,c){let f=Ny({key:"middleware",route:s.route,manifest:i,mapRouteProperties:n}),d=$S(s.route,It(l.method)?"action":"loader",i,n,c);return{middleware:f,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function vf(n,i,l,s,c,f,d,p,g=null,m){let b=!1,y=zy(n,i,l,c,f);return{...c,_lazyPromises:y,shouldLoad:p,shouldRevalidateArgs:g,shouldCallHandler(x){return b=!0,g?typeof m=="boolean"?Ql(c,{...g,defaultShouldRevalidate:m}):typeof x=="boolean"?Ql(c,{...g,defaultShouldRevalidate:x}):Ql(c,g):p},resolve(x){let{lazy:N,loader:L,middleware:B}=c.route,K=b||p||x&&!It(l.method)&&(N||L),G=B&&B.length>0&&!L&&!N;return K&&(It(l.method)||!G)?nw({request:l,unstable_pattern:s,match:c,lazyHandlerPromise:y?.handler,lazyRoutePromise:y?.route,handlerOverride:x,scopedContext:d}):Promise.resolve({type:"data",result:void 0})}}}function zr(n,i,l,s,c,f,d,p=null){return s.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:p,shouldCallHandler:()=>!1,_lazyPromises:zy(n,i,l,g,f),resolve:()=>Promise.resolve({type:"data",result:void 0})}:vf(n,i,l,Fl(s),g,f,d,!0,p))}async function tw(n,i,l,s,c,f){l.some(m=>m._lazyPromises?.middleware)&&await Promise.all(l.map(m=>m._lazyPromises?.middleware));let d={request:i,unstable_pattern:Fl(l),params:l[0].params,context:c,matches:l},g=await n({...d,fetcherKey:s,runClientMiddleware:m=>{let b=d;return Dy(b,()=>m({...b,fetcherKey:s,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return g}async function nw({request:n,unstable_pattern:i,match:l,lazyHandlerPromise:s,lazyRoutePromise:c,handlerOverride:f,scopedContext:d}){let p,g,m=It(n.method),b=m?"action":"loader",y=x=>{let N,L=new Promise((G,J)=>N=J);g=()=>N(),n.signal.addEventListener("abort",g);let B=G=>typeof x!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${b}" [routeId: ${l.route.id}]`)):x({request:n,unstable_pattern:i,params:l.params,context:d},...G!==void 0?[G]:[]),K=(async()=>{try{return{type:"data",result:await(f?f(J=>B(J)):B())}}catch(G){return{type:"error",result:G}}})();return Promise.race([K,L])};try{let x=m?l.route.action:l.route.loader;if(s||c)if(x){let N,[L]=await Promise.all([y(x).catch(B=>{N=B}),s,c]);if(N!==void 0)throw N;p=L}else{await s;let N=m?l.route.action:l.route.loader;if(N)[p]=await Promise.all([y(N),c]);else if(b==="action"){let L=new URL(n.url),B=L.pathname+L.search;throw qn(405,{method:n.method,pathname:B,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(x)p=await y(x);else{let N=new URL(n.url),L=N.pathname+N.search;throw qn(404,{pathname:L})}}catch(x){return{type:"error",result:x}}finally{g&&n.signal.removeEventListener("abort",g)}return p}async function aw(n){let i=n.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?n.body==null?null:n.json():n.text()}async function iw(n){let{result:i,type:l}=n;if(Bf(i)){let s;try{s=await aw(i)}catch(c){return{type:"error",error:c}}return l==="error"?{type:"error",error:new Xl(i.status,i.statusText,s),statusCode:i.status,headers:i.headers}:{type:"data",data:s,statusCode:i.status,headers:i.headers}}return l==="error"?Rg(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:ow(i),statusCode:Kl(i)?i.status:void 0,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:Kl(i)?i.status:void 0}:Rg(i)?{type:"data",data:i.data,statusCode:i.init?.status,headers:i.init?.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function rw(n,i,l,s,c){let f=n.headers.get("Location");if(Ue(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!zf(f)){let d=s.slice(0,s.findIndex(p=>p.route.id===l)+1);f=gf(new URL(i.url),d,c,f),n.headers.set("Location",f)}return n}function Sg(n,i,l,s){let c=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(zf(n)){let f=n,d=f.startsWith("//")?new URL(i.protocol+f):new URL(f);if(c.includes(d.protocol))throw new Error("Invalid redirect location");let p=Vn(d.pathname,l)!=null;if(d.origin===i.origin&&p)return d.pathname+d.search+d.hash}try{let f=s.createURL(n);if(c.includes(f.protocol))throw new Error("Invalid redirect location")}catch{}return n}function Dr(n,i,l,s){let c=n.createURL(jy(i)).toString(),f={signal:l};if(s&&It(s.formMethod)){let{formMethod:d,formEncType:p}=s;f.method=d.toUpperCase(),p==="application/json"?(f.headers=new Headers({"Content-Type":p}),f.body=JSON.stringify(s.json)):p==="text/plain"?f.body=s.text:p==="application/x-www-form-urlencoded"&&s.formData?f.body=bf(s.formData):f.body=s.formData}return new Request(c,f)}function bf(n){let i=new URLSearchParams;for(let[l,s]of n.entries())i.append(l,typeof s=="string"?s:s.name);return i}function wg(n){let i=new FormData;for(let[l,s]of n.entries())i.append(l,s);return i}function lw(n,i,l,s=!1,c=!1){let f={},d=null,p,g=!1,m={},b=l&&Rn(l[1])?l[1].error:void 0;return n.forEach(y=>{if(!(y.route.id in i))return;let x=y.route.id,N=i[x];if(Ue(!Gi(N),"Cannot handle redirect results in processLoaderData"),Rn(N)){let L=N.error;if(b!==void 0&&(L=b,b=void 0),d=d||{},c)d[x]=L;else{let B=fi(n,x);d[B.route.id]==null&&(d[B.route.id]=L)}s||(f[x]=Oy),g||(g=!0,p=Kl(N.error)?N.error.status:500),N.headers&&(m[x]=N.headers)}else f[x]=N.data,N.statusCode&&N.statusCode!==200&&!g&&(p=N.statusCode),N.headers&&(m[x]=N.headers)}),b!==void 0&&l&&(d={[l[0]]:b},l[2]&&(f[l[2]]=void 0)),{loaderData:f,errors:d,statusCode:p||200,loaderHeaders:m}}function xg(n,i,l,s,c,f){let{loaderData:d,errors:p}=lw(i,l,s);return c.filter(g=>!g.matches||g.matches.some(m=>m.shouldLoad)).forEach(g=>{let{key:m,match:b,controller:y}=g;if(y&&y.signal.aborted)return;let x=f[m];if(Ue(x,"Did not find corresponding fetcher result"),Rn(x)){let N=fi(n.matches,b?.route.id);p&&p[N.route.id]||(p={...p,[N.route.id]:x.error}),n.fetchers.delete(m)}else if(Gi(x))Ue(!1,"Unhandled fetcher revalidation redirect");else{let N=Ua(x.data);n.fetchers.set(m,N)}}),{loaderData:d,errors:p}}function Eg(n,i,l,s){let c=Object.entries(i).filter(([,f])=>f!==Oy).reduce((f,[d,p])=>(f[d]=p,f),{});for(let f of l){let d=f.route.id;if(!i.hasOwnProperty(d)&&n.hasOwnProperty(d)&&f.route.loader&&(c[d]=n[d]),s&&s.hasOwnProperty(d))break}return c}function Tg(n){return n?Rn(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function fi(n,i){return(i?n.slice(0,n.findIndex(s=>s.route.id===i)+1):[...n]).reverse().find(s=>s.route.hasErrorBoundary===!0)||n[0]}function fo(n){let i=n.length===1?n[0]:n.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function qn(n,{pathname:i,routeId:l,method:s,type:c,message:f}={}){let d="Unknown Server Error",p="Unknown @remix-run/router error";return n===400?(d="Bad Request",s&&i&&l?p=`You made a ${s} request to "${i}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:c==="invalid-body"&&(p="Unable to encode submission body")):n===403?(d="Forbidden",p=`Route "${l}" does not match URL "${i}"`):n===404?(d="Not Found",p=`No route matches URL "${i}"`):n===405&&(d="Method Not Allowed",s&&i&&l?p=`You made a ${s.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:s&&(p=`Invalid request method "${s.toUpperCase()}"`)),new Xl(n||500,d,new Error(p),!0)}function ho(n){let i=Object.entries(n);for(let l=i.length-1;l>=0;l--){let[s,c]=i[l];if(Gi(c))return{key:s,result:c}}}function jy(n){let i=typeof n=="string"?gi(n):n;return fa({...i,hash:""})}function sw(n,i){return n.pathname!==i.pathname||n.search!==i.search?!1:n.hash===""?i.hash!=="":n.hash===i.hash?!0:i.hash!==""}function ow(n){return new Xl(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)}function uw(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([i,l])=>typeof i=="string"&&cw(l))}function cw(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function fw(n){return Bf(n.result)&&Cy.has(n.result.status)}function Rn(n){return n.type==="error"}function Gi(n){return(n&&n.type)==="redirect"}function Rg(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function Bf(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function dw(n){return Cy.has(n)}function hw(n){return Bf(n)&&dw(n.status)&&n.headers.has("Location")}function mw(n){return GS.has(n.toUpperCase())}function It(n){return VS.has(n.toUpperCase())}function qf(n){return new URLSearchParams(n).getAll("index").some(i=>i==="")}function So(n,i){let l=typeof i=="string"?gi(i).search:i.search;if(n[n.length-1].route.index&&qf(l||""))return n[n.length-1];let s=xy(n);return s[s.length-1]}function _g(n){let{formMethod:i,formAction:l,formEncType:s,text:c,formData:f,json:d}=n;if(!(!i||!l||!s)){if(c!=null)return{formMethod:i,formAction:l,formEncType:s,formData:void 0,json:void 0,text:c};if(f!=null)return{formMethod:i,formAction:l,formEncType:s,formData:f,json:void 0,text:void 0};if(d!==void 0)return{formMethod:i,formAction:l,formEncType:s,formData:void 0,json:d,text:void 0}}}function $c(n,i){return i?{state:"loading",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function pw(n,i){return{state:"submitting",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function kl(n,i){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function gw(n,i){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i?i.data:void 0}}function Ua(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function yw(n,i){try{let l=n.sessionStorage.getItem(Ay);if(l){let s=JSON.parse(l);for(let[c,f]of Object.entries(s||{}))f&&Array.isArray(f)&&i.set(c,new Set(f||[]))}}catch{}}function vw(n,i){if(i.size>0){let l={};for(let[s,c]of i)l[s]=[...c];try{n.sessionStorage.setItem(Ay,JSON.stringify(l))}catch(s){Dt(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function Cg(){let n,i,l=new Promise((s,c)=>{n=async f=>{s(f);try{await l}catch{}},i=async f=>{c(f);try{await l}catch{}}});return{promise:l,resolve:n,reject:i}}var Xi=T.createContext(null);Xi.displayName="DataRouter";var Zl=T.createContext(null);Zl.displayName="DataRouterState";var Ly=T.createContext(!1);function bw(){return T.useContext(Ly)}var Hf=T.createContext({isTransitioning:!1});Hf.displayName="ViewTransition";var Uy=T.createContext(new Map);Uy.displayName="Fetchers";var Sw=T.createContext(null);Sw.displayName="Await";var Gn=T.createContext(null);Gn.displayName="Navigation";var ko=T.createContext(null);ko.displayName="Location";var ta=T.createContext({outlet:null,matches:[],isDataRoute:!1});ta.displayName="Route";var Qf=T.createContext(null);Qf.displayName="RouteError";var By="REACT_ROUTER_ERROR",ww="REDIRECT",xw="ROUTE_ERROR_RESPONSE";function Ew(n){if(n.startsWith(`${By}:${ww}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Tw(n){if(n.startsWith(`${By}:${xw}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Xl(i.status,i.statusText,i.data)}catch{}}function Rw(n,{relative:i}={}){Ue(Jl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:s}=T.useContext(Gn),{hash:c,pathname:f,search:d}=Il(n,{relative:i}),p=f;return l!=="/"&&(p=f==="/"?l:ca([l,f])),s.createHref({pathname:p,search:d,hash:c})}function Jl(){return T.useContext(ko)!=null}function Fi(){return Ue(Jl(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(ko).location}var qy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hy(n){T.useContext(Gn).static||T.useLayoutEffect(n)}function Qy(){let{isDataRoute:n}=T.useContext(ta);return n?Qw():_w()}function _w(){Ue(Jl(),"useNavigate() may be used only in the context of a <Router> component.");let n=T.useContext(Xi),{basename:i,navigator:l}=T.useContext(Gn),{matches:s}=T.useContext(ta),{pathname:c}=Fi(),f=JSON.stringify(jf(s)),d=T.useRef(!1);return Hy(()=>{d.current=!0}),T.useCallback((g,m={})=>{if(Dt(d.current,qy),!d.current)return;if(typeof g=="number"){l.go(g);return}let b=Lf(g,JSON.parse(f),c,m.relative==="path");n==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:ca([i,b.pathname])),(m.replace?l.replace:l.push)(b,m.state,m)},[i,l,f,c,n])}var Cw=T.createContext(null);function Aw(n){let i=T.useContext(ta).outlet;return T.useMemo(()=>i&&T.createElement(Cw.Provider,{value:n},i),[i,n])}function Ow(){let{matches:n}=T.useContext(ta),i=n[n.length-1];return i?i.params:{}}function Il(n,{relative:i}={}){let{matches:l}=T.useContext(ta),{pathname:s}=Fi(),c=JSON.stringify(jf(l));return T.useMemo(()=>Lf(n,JSON.parse(c),s,i==="path"),[n,c,s,i])}function Mw(n,i,l,s,c){Ue(Jl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=T.useContext(Gn),{matches:d}=T.useContext(ta),p=d[d.length-1],g=p?p.params:{},m=p?p.pathname:"/",b=p?p.pathnameBase:"/",y=p&&p.route;{let J=y&&y.path||"";Yy(m,!y||J.endsWith("*")||J.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${J}">) 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.
12
12
 
13
- Please change the parent <Route path="${J}"> to <Route path="${J==="/"?"*":`${J}/*`}">.`)}let E=Fi(),M;M=E;let U=M.pathname||"/",j=U;if(b!=="/"){let J=b.replace(/^\//,"").split("/");j="/"+U.replace(/^\//,"").split("/").slice(J.length).join("/")}let K=ci(n,{pathname:j});return Nt(y||K!=null,`No routes matched location "${M.pathname}${M.search}${M.hash}" `),Nt(K==null||K[K.length-1].route.element!==void 0||K[K.length-1].route.Component!==void 0||K[K.length-1].route.lazy!==void 0,`Matched leaf route at location "${M.pathname}${M.search}${M.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.`),zw(K&&K.map(J=>Object.assign({},J,{params:Object.assign({},g,J.params),pathname:ca([b,f.encodeLocation?f.encodeLocation(J.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:J.pathname]),pathnameBase:J.pathnameBase==="/"?b:ca([b,f.encodeLocation?f.encodeLocation(J.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:J.pathnameBase])})),d,l,s,c)}function Mw(){let n=qw(),i=Kl(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},i),l?T.createElement("pre",{style:c},l):null,d)}var Dw=T.createElement(Mw,null),Yy=class extends T.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const l=xw(n.digest);l&&(n=l)}let i=n!==void 0?T.createElement(ta.Provider,{value:this.props.routeContext},T.createElement(Qf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?T.createElement(Nw,{error:n},i):i}};Yy.contextType=jy;var Wc=new WeakMap;function Nw({children:n,error:i}){let{basename:l}=T.useContext(Yn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=Ew(i.digest);if(s){let c=Wc.get(i);if(c)throw c;let f=Ry(s.location,l);if(Ty&&!Wc.get(i))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw Wc.set(i,d),d}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function kw({routeContext:n,match:i,children:l}){let s=T.useContext(Pi);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),T.createElement(ta.Provider,{value:n},l)}function zw(n,i=[],l=null,s=null,c=null){if(n==null){if(!l)return null;if(l.errors)n=l.matches;else if(i.length===0&&!l.initialized&&l.matches.length>0)n=l.matches;else return null}let f=n,d=l?.errors;if(d!=null){let b=f.findIndex(y=>y.route.id&&d?.[y.route.id]!==void 0);je(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let p=!1,g=-1;if(l)for(let b=0;b<f.length;b++){let y=f[b];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=b),y.route.id){let{loaderData:E,errors:M}=l,U=y.route.loader&&!E.hasOwnProperty(y.route.id)&&(!M||M[y.route.id]===void 0);if(y.route.lazy||U){p=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}let m=l&&s?(b,y)=>{s(b,{location:l.location,params:l.matches?.[0]?.params??{},unstable_pattern:Fl(l.matches),errorInfo:y})}:void 0;return f.reduceRight((b,y,E)=>{let M,U=!1,j=null,K=null;l&&(M=d&&y.route.id?d[y.route.id]:void 0,j=y.route.errorElement||Dw,p&&(g<0&&E===0?(Gy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),U=!0,K=null):g===E&&(U=!0,K=y.route.hydrateFallbackElement||null)));let G=i.concat(f.slice(0,E+1)),J=()=>{let $;return M?$=j:U?$=K:y.route.Component?$=T.createElement(y.route.Component,null):y.route.element?$=y.route.element:$=b,T.createElement(kw,{match:y,routeContext:{outlet:b,matches:G,isDataRoute:l!=null},children:$})};return l&&(y.route.ErrorBoundary||y.route.errorElement||E===0)?T.createElement(Yy,{location:l.location,revalidation:l.revalidation,component:j,error:M,children:J(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:m}):J()},null)}function Vf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uw(n){let i=T.useContext(Pi);return je(i,Vf(n)),i}function Lw(n){let i=T.useContext(Zl);return je(i,Vf(n)),i}function jw(n){let i=T.useContext(ta);return je(i,Vf(n)),i}function Yf(n){let i=jw(n),l=i.matches[i.matches.length-1];return je(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function Bw(){return Yf("useRouteId")}function qw(){let n=T.useContext(Qf),i=Lw("useRouteError"),l=Yf("useRouteError");return n!==void 0?n:i.errors?.[l]}function Hw(){let{router:n}=Uw("useNavigate"),i=Yf("useNavigate"),l=T.useRef(!1);return Qy(()=>{l.current=!0}),T.useCallback(async(c,f={})=>{Nt(l.current,Hy),l.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:i,...f}))},[n,i])}var Og={};function Gy(n,i,l){!i&&!Og[n]&&(Og[n]=!0,Nt(!1,l))}var Mg={};function Dg(n,i){!n&&!Mg[i]&&(Mg[i]=!0,console.warn(i))}var Qw="useOptimistic",Ng=Qb[Qw],Vw=()=>{};function Yw(n){return Ng?Ng(n):[n,Vw]}function Gw(n){let i={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&Nt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:T.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&Nt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:T.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&Nt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:T.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),i}var Kw=["HydrateFallback","hydrateFallbackElement"],Xw=class{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",n(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",i(l))}})}};function Pw({router:n,flushSync:i,onError:l,unstable_useTransitions:s}){s=vw()||s;let[f,d]=T.useState(n.state),[p,g]=Yw(f),[m,b]=T.useState(),[y,E]=T.useState({isTransitioning:!1}),[M,U]=T.useState(),[j,K]=T.useState(),[G,J]=T.useState(),$=T.useRef(new Map),ye=T.useCallback((Y,{deletedFetchers:oe,newErrors:Ae,flushSync:Ce,viewTransitionOpts:Te})=>{Ae&&l&&Object.values(Ae).forEach(Le=>l(Le,{location:Y.location,params:Y.matches[0]?.params??{},unstable_pattern:Fl(Y.matches)})),Y.fetchers.forEach((Le,we)=>{Le.data!==void 0&&$.current.set(we,Le.data)}),oe.forEach(Le=>$.current.delete(Le)),Dg(Ce===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Ue=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(Dg(Te==null||Ue,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Te||!Ue){i&&Ce?i(()=>d(Y)):s===!1?d(Y):T.startTransition(()=>{s===!0&&g(Le=>kg(Le,Y)),d(Y)});return}if(i&&Ce){i(()=>{j&&(M?.resolve(),j.skipTransition()),E({isTransitioning:!0,flushSync:!0,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation})});let Le=n.window.document.startViewTransition(()=>{i(()=>d(Y))});Le.finished.finally(()=>{i(()=>{U(void 0),K(void 0),b(void 0),E({isTransitioning:!1})})}),i(()=>K(Le));return}j?(M?.resolve(),j.skipTransition(),J({state:Y,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation})):(b(Y),E({isTransitioning:!0,flushSync:!1,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation}))},[n.window,i,j,M,s,g,l]);T.useLayoutEffect(()=>n.subscribe(ye),[n,ye]),T.useEffect(()=>{y.isTransitioning&&!y.flushSync&&U(new Xw)},[y]),T.useEffect(()=>{if(M&&m&&n.window){let Y=m,oe=M.promise,Ae=n.window.document.startViewTransition(async()=>{s===!1?d(Y):T.startTransition(()=>{s===!0&&g(Ce=>kg(Ce,Y)),d(Y)}),await oe});Ae.finished.finally(()=>{U(void 0),K(void 0),b(void 0),E({isTransitioning:!1})}),K(Ae)}},[m,M,n.window,s,g]),T.useEffect(()=>{M&&m&&p.location.key===m.location.key&&M.resolve()},[M,j,p.location,m]),T.useEffect(()=>{!y.isTransitioning&&G&&(b(G.state),E({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}),J(void 0))},[y.isTransitioning,G]);let he=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:Y=>n.navigate(Y),push:(Y,oe,Ae)=>n.navigate(Y,{state:oe,preventScrollReset:Ae?.preventScrollReset}),replace:(Y,oe,Ae)=>n.navigate(Y,{replace:!0,state:oe,preventScrollReset:Ae?.preventScrollReset})}),[n]),me=n.basename||"/",C=T.useMemo(()=>({router:n,navigator:he,static:!1,basename:me,onError:l}),[n,he,me,l]);return T.createElement(T.Fragment,null,T.createElement(Pi.Provider,{value:C},T.createElement(Zl.Provider,{value:p},T.createElement(By.Provider,{value:$.current},T.createElement(Hf.Provider,{value:y},T.createElement(Iw,{basename:me,location:p.location,navigationType:p.historyAction,navigator:he,unstable_useTransitions:s},T.createElement(Fw,{routes:n.routes,future:n.future,state:p,onError:l})))))),null)}function kg(n,i){return{...n,navigation:i.navigation.state!=="idle"?i.navigation:n.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:n.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:n.actionData,fetchers:i.fetchers}}var Fw=T.memo(Zw);function Zw({routes:n,future:i,state:l,onError:s}){return Ow(n,void 0,l,s,i)}function Jw(n){return Cw(n.context)}function Iw({basename:n="/",children:i=null,location:l,navigationType:s="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){je(!Jl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),g=T.useMemo(()=>({basename:p,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[p,c,f,d]);typeof l=="string"&&(l=gi(l));let{pathname:m="/",search:b="",hash:y="",state:E=null,key:M="default"}=l,U=T.useMemo(()=>{let j=Vn(m,p);return j==null?null:{location:{pathname:j,search:b,hash:y,state:E,key:M},navigationType:s}},[p,m,b,y,E,M,s]);return Nt(U!=null,`<Router basename="${p}"> is not able to match the URL "${m}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),U==null?null:T.createElement(Yn.Provider,{value:g},T.createElement(ko.Provider,{children:i,value:U}))}var wo="get",Eo="application/x-www-form-urlencoded";function zo(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function $w(n){return zo(n)&&n.tagName.toLowerCase()==="button"}function Ww(n){return zo(n)&&n.tagName.toLowerCase()==="form"}function eE(n){return zo(n)&&n.tagName.toLowerCase()==="input"}function tE(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function nE(n,i){return n.button===0&&(!i||i==="_self")&&!tE(n)}var mo=null;function aE(){if(mo===null)try{new FormData(document.createElement("form"),0),mo=!1}catch{mo=!0}return mo}var iE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ef(n){return n!=null&&!iE.has(n)?(Nt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Eo}"`),null):n}function rE(n,i){let l,s,c,f,d;if(Ww(n)){let p=n.getAttribute("action");s=p?Vn(p,i):null,l=n.getAttribute("method")||wo,c=ef(n.getAttribute("enctype"))||Eo,f=new FormData(n)}else if($w(n)||eE(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||p.getAttribute("action");if(s=g?Vn(g,i):null,l=n.getAttribute("formmethod")||p.getAttribute("method")||wo,c=ef(n.getAttribute("formenctype"))||ef(p.getAttribute("enctype"))||Eo,f=new FormData(p,n),!aE()){let{name:m,type:b,value:y}=n;if(b==="image"){let E=m?`${m}.`:"";f.append(`${E}x`,"0"),f.append(`${E}y`,"0")}else m&&f.append(m,y)}}else{if(zo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=wo,s=null,c=Eo,d=n}return f&&c==="text/plain"&&(d=f,f=void 0),{action:s,method:l.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Gf(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function lE(n,i,l,s){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return l?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:i&&Vn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${s}`,c}async function sE(n,i){if(n.id in i)return i[n.id];try{let l=await import(n.module);return i[n.id]=l,l}catch(l){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function oE(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function uE(n,i,l){let s=await Promise.all(n.map(async c=>{let f=i.routes[c.route.id];if(f){let d=await sE(f,l);return d.links?d.links():[]}return[]}));return hE(s.flat(1).filter(oE).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function zg(n,i,l,s,c,f){let d=(g,m)=>l[m]?g.route.id!==l[m].route.id:!0,p=(g,m)=>l[m].pathname!==g.pathname||l[m].route.path?.endsWith("*")&&l[m].params["*"]!==g.params["*"];return f==="assets"?i.filter((g,m)=>d(g,m)||p(g,m)):f==="data"?i.filter((g,m)=>{let b=s.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(d(g,m)||p(g,m))return!0;if(g.route.shouldRevalidate){let y=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function cE(n,i,{includeHydrateFallback:l}={}){return fE(n.map(s=>{let c=i.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),l&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function fE(n){return[...new Set(n)]}function dE(n){let i={},l=Object.keys(n).sort();for(let s of l)i[s]=n[s];return i}function hE(n,i){let l=new Set;return new Set(i),n.reduce((s,c)=>{let f=JSON.stringify(dE(c));return l.has(f)||(l.add(f),s.push({key:f,link:c})),s},[])}function Ky(){let n=T.useContext(Pi);return Gf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function mE(){let n=T.useContext(Zl);return Gf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Kf=T.createContext(void 0);Kf.displayName="FrameworkContext";function Xy(){let n=T.useContext(Kf);return Gf(n,"You must render this element inside a <HydratedRouter> element"),n}function pE(n,i){let l=T.useContext(Kf),[s,c]=T.useState(!1),[f,d]=T.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:b,onTouchStart:y}=i,E=T.useRef(null);T.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let j=G=>{G.forEach(J=>{d(J.isIntersecting)})},K=new IntersectionObserver(j,{threshold:.5});return E.current&&K.observe(E.current),()=>{K.disconnect()}}},[n]),T.useEffect(()=>{if(s){let j=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(j)}}},[s]);let M=()=>{c(!0)},U=()=>{c(!1),d(!1)};return l?n!=="intent"?[f,E,{}]:[f,E,{onFocus:kl(p,M),onBlur:kl(g,U),onMouseEnter:kl(m,M),onMouseLeave:kl(b,U),onTouchStart:kl(y,M)}]:[!1,E,{}]}function kl(n,i){return l=>{n&&n(l),l.defaultPrevented||i(l)}}function gE({page:n,...i}){let{router:l}=Ky(),s=T.useMemo(()=>ci(l.routes,n,l.basename),[l.routes,n,l.basename]);return s?T.createElement(vE,{page:n,matches:s,...i}):null}function yE(n){let{manifest:i,routeModules:l}=Xy(),[s,c]=T.useState([]);return T.useEffect(()=>{let f=!1;return uE(n,i,l).then(d=>{f||c(d)}),()=>{f=!0}},[n,i,l]),s}function vE({page:n,matches:i,...l}){let s=Fi(),{future:c,manifest:f,routeModules:d}=Xy(),{basename:p}=Ky(),{loaderData:g,matches:m}=mE(),b=T.useMemo(()=>zg(n,i,m,f,s,"data"),[n,i,m,f,s]),y=T.useMemo(()=>zg(n,i,m,f,s,"assets"),[n,i,m,f,s]),E=T.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let j=new Set,K=!1;if(i.forEach(J=>{let $=f.routes[J.route.id];!$||!$.hasLoader||(!b.some(ye=>ye.route.id===J.route.id)&&J.route.id in g&&d[J.route.id]?.shouldRevalidate||$.hasClientLoader?K=!0:j.add(J.route.id))}),j.size===0)return[];let G=lE(n,p,c.unstable_trailingSlashAwareDataRequests,"data");return K&&j.size>0&&G.searchParams.set("_routes",i.filter(J=>j.has(J.route.id)).map(J=>J.route.id).join(",")),[G.pathname+G.search]},[p,c.unstable_trailingSlashAwareDataRequests,g,s,f,b,i,n,d]),M=T.useMemo(()=>cE(y,f),[y,f]),U=yE(y);return T.createElement(T.Fragment,null,E.map(j=>T.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...l})),M.map(j=>T.createElement("link",{key:j,rel:"modulepreload",href:j,...l})),U.map(({key:j,link:K})=>T.createElement("link",{key:j,nonce:l.nonce,...K,crossOrigin:K.crossOrigin??l.crossOrigin})))}function bE(...n){return i=>{n.forEach(l=>{typeof l=="function"?l(i):l!=null&&(l.current=i)})}}var SE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{SE&&(window.__reactRouterVersion="7.13.0")}catch{}function wE(n,i){return P1({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:u1({window:i?.window}),hydrationData:EE(),routes:n,mapRouteProperties:Gw,hydrationRouteProperties:Kw,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function EE(){let n=window?.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:xE(n.errors)}),n}function xE(n){if(!n)return null;let i=Object.entries(n),l={};for(let[s,c]of i)if(c&&c.__type==="RouteErrorResponse")l[s]=new Pl(c.status,c.statusText,c.data,c.internal===!0);else if(c&&c.__type==="Error"){if(c.__subType){let f=window[c.__subType];if(typeof f=="function")try{let d=new f(c.message);d.stack="",l[s]=d}catch{}}if(l[s]==null){let f=new Error(c.message);f.stack="",l[s]=f}}else l[s]=c;return l}var Py=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fy=T.forwardRef(function({onClick:i,discover:l="render",prefetch:s="none",relative:c,reloadDocument:f,replace:d,state:p,target:g,to:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E,...M},U){let{basename:j,unstable_useTransitions:K}=T.useContext(Yn),G=typeof m=="string"&&Py.test(m),J=Ry(m,j);m=J.to;let $=Tw(m,{relative:c}),[ye,he,me]=pE(s,M),C=CE(m,{replace:d,state:p,target:g,preventScrollReset:b,relative:c,viewTransition:y,unstable_defaultShouldRevalidate:E,unstable_useTransitions:K});function Y(Ae){i&&i(Ae),Ae.defaultPrevented||C(Ae)}let oe=T.createElement("a",{...M,...me,href:J.absoluteURL||$,onClick:J.isExternal||f?i:Y,ref:bE(U,he),target:g,"data-discover":!G&&l==="render"?"true":void 0});return ye&&!G?T.createElement(T.Fragment,null,oe,T.createElement(gE,{page:$})):oe});Fy.displayName="Link";var TE=T.forwardRef(function({"aria-current":i="page",caseSensitive:l=!1,className:s="",end:c=!1,style:f,to:d,viewTransition:p,children:g,...m},b){let y=Il(d,{relative:m.relative}),E=Fi(),M=T.useContext(Zl),{navigator:U,basename:j}=T.useContext(Yn),K=M!=null&&NE(y)&&p===!0,G=U.encodeLocation?U.encodeLocation(y).pathname:y.pathname,J=E.pathname,$=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;l||(J=J.toLowerCase(),$=$?$.toLowerCase():null,G=G.toLowerCase()),$&&j&&($=Vn($,j)||$);const ye=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let he=J===G||!c&&J.startsWith(G)&&J.charAt(ye)==="/",me=$!=null&&($===G||!c&&$.startsWith(G)&&$.charAt(G.length)==="/"),C={isActive:he,isPending:me,isTransitioning:K},Y=he?i:void 0,oe;typeof s=="function"?oe=s(C):oe=[s,he?"active":null,me?"pending":null,K?"transitioning":null].filter(Boolean).join(" ");let Ae=typeof f=="function"?f(C):f;return T.createElement(Fy,{...m,"aria-current":Y,className:oe,ref:b,style:Ae,to:d,viewTransition:p},typeof g=="function"?g(C):g)});TE.displayName="NavLink";var RE=T.forwardRef(({discover:n="render",fetcherKey:i,navigate:l,reloadDocument:s,replace:c,state:f,method:d=wo,action:p,onSubmit:g,relative:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E,...M},U)=>{let{unstable_useTransitions:j}=T.useContext(Yn),K=ME(),G=DE(p,{relative:m}),J=d.toLowerCase()==="get"?"get":"post",$=typeof p=="string"&&Py.test(p),ye=he=>{if(g&&g(he),he.defaultPrevented)return;he.preventDefault();let me=he.nativeEvent.submitter,C=me?.getAttribute("formmethod")||d,Y=()=>K(me||he.currentTarget,{fetcherKey:i,method:C,navigate:l,replace:c,state:f,relative:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:E});j&&l!==!1?T.startTransition(()=>Y()):Y()};return T.createElement("form",{ref:U,method:J,action:G,onSubmit:s?g:ye,...M,"data-discover":!$&&n==="render"?"true":void 0})});RE.displayName="Form";function _E(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zy(n){let i=T.useContext(Pi);return je(i,_E(n)),i}function CE(n,{target:i,replace:l,state:s,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let m=Vy(),b=Fi(),y=Il(n,{relative:f});return T.useCallback(E=>{if(nE(E,i)){E.preventDefault();let M=l!==void 0?l:fa(b)===fa(y),U=()=>m(n,{replace:M,state:s,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:p});g?T.startTransition(()=>U()):U()}},[b,m,y,l,s,i,n,c,f,d,p,g])}var AE=0,OE=()=>`__${String(++AE)}__`;function ME(){let{router:n}=Zy("useSubmit"),{basename:i}=T.useContext(Yn),l=Bw(),s=n.fetch,c=n.navigate;return T.useCallback(async(f,d={})=>{let{action:p,method:g,encType:m,formData:b,body:y}=rE(f,i);if(d.navigate===!1){let E=d.fetcherKey||OE();await s(E,l,d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:y,formMethod:d.method||g,formEncType:d.encType||m,flushSync:d.flushSync})}else await c(d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:y,formMethod:d.method||g,formEncType:d.encType||m,replace:d.replace,state:d.state,fromRouteId:l,flushSync:d.flushSync,viewTransition:d.viewTransition})},[s,c,i,l])}function DE(n,{relative:i}={}){let{basename:l}=T.useContext(Yn),s=T.useContext(ta);je(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...Il(n||".",{relative:i})},d=Fi();if(n==null){f.search=d.search;let p=new URLSearchParams(f.search),g=p.getAll("index");if(g.some(b=>b==="")){p.delete("index"),g.filter(y=>y).forEach(y=>p.append("index",y));let b=p.toString();f.search=b?`?${b}`:""}}return(!n||n===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(f.pathname=f.pathname==="/"?l:ca([l,f.pathname])),fa(f)}function NE(n,{relative:i}={}){let l=T.useContext(Hf);je(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Zy("useViewTransitionState"),c=Il(n,{relative:i});if(!l.isTransitioning)return!1;let f=Vn(l.currentLocation.pathname,s)||l.currentLocation.pathname,d=Vn(l.nextLocation.pathname,s)||l.nextLocation.pathname;return Do(c.pathname,d)!=null||Do(c.pathname,f)!=null}function kE(n){return T.createElement(Pw,{flushSync:yy.flushSync,...n})}const Jy=(...n)=>n.filter((i,l,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===l).join(" ").trim();const zE=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const UE=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,s)=>s?s.toUpperCase():l.toLowerCase());const Ug=n=>{const i=UE(n);return i.charAt(0).toUpperCase()+i.slice(1)};var LE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const jE=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const BE=T.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:d,...p},g)=>T.createElement("svg",{ref:g,...LE,width:i,height:i,stroke:n,strokeWidth:s?Number(l)*24/Number(i):l,className:Jy("lucide",c),...!f&&!jE(p)&&{"aria-hidden":"true"},...p},[...d.map(([m,b])=>T.createElement(m,b)),...Array.isArray(f)?f:[f]]));const yi=(n,i)=>{const l=T.forwardRef(({className:s,...c},f)=>T.createElement(BE,{ref:f,iconNode:i,className:Jy(`lucide-${zE(Ug(n))}`,`lucide-${n}`,s),...c}));return l.displayName=Ug(n),l};const qE=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],HE=yi("bell",qE);const QE=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],VE=yi("cable",QE);const YE=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],GE=yi("cpu",YE);const KE=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],XE=yi("folder-git-2",KE);const PE=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],FE=yi("languages",PE);const ZE=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],JE=yi("settings",ZE);const IE=[["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"}]],$E=yi("users",IE);const WE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ex=yi("x",WE),Lg=n=>{let i;const l=new Set,s=(m,b)=>{const y=typeof m=="function"?m(i):m;if(!Object.is(y,i)){const E=i;i=b??(typeof y!="object"||y===null)?y:Object.assign({},i,y),l.forEach(M=>M(i,E))}},c=()=>i,p={setState:s,getState:c,getInitialState:()=>g,subscribe:m=>(l.add(m),()=>l.delete(m))},g=i=n(s,c,p);return p},tx=(n=>n?Lg(n):Lg),nx=n=>n;function ax(n,i=nx){const l=ee.useSyncExternalStore(n.subscribe,ee.useCallback(()=>i(n.getState()),[n,i]),ee.useCallback(()=>i(n.getInitialState()),[n,i]));return ee.useDebugValue(l),l}const jg=n=>{const i=tx(n),l=s=>ax(i,s);return Object.assign(l,i),l},Iy=(n=>n?jg(n):jg),ql=Iy(n=>({sidebarOpen:!0,theme:"system",settingsOpen:!1,settingsTab:"general",toggleSidebar:()=>n(i=>({sidebarOpen:!i.sidebarOpen})),setSidebarOpen:i=>n({sidebarOpen:i}),setTheme:i=>n({theme:i}),openSettings:i=>n({settingsOpen:!0,...i?{settingsTab:i}:{}}),closeSettings:()=>n({settingsOpen:!1}),setSettingsTab:i=>n({settingsTab:i})})),ix="/api";class rx{baseUrl;constructor(i){this.baseUrl=i}async request(i,l={}){const{params:s,...c}=l;let f=`${this.baseUrl}${i}`;if(s){const g=new URLSearchParams(s);f+=`?${g.toString()}`}const d={...c.headers};c.body!==void 0&&(d["Content-Type"]="application/json");const p=await fetch(f,{...c,headers:d});if(!p.ok){const g=await p.json().catch(()=>({}));throw new Xf(p.status,typeof g.message=="string"?g.message:typeof g.error=="string"?g.error:"Request failed",g)}if(p.status!==204)return p.json()}get(i,l){return this.request(i,{...l,method:"GET"})}post(i,l,s){return this.request(i,{...s,method:"POST",body:l?JSON.stringify(l):void 0})}put(i,l,s){return this.request(i,{...s,method:"PUT",body:l?JSON.stringify(l):void 0})}patch(i,l,s){return this.request(i,{...s,method:"PATCH",body:l?JSON.stringify(l):void 0})}delete(i,l){return this.request(i,{...l,method:"DELETE"})}}class Xf extends Error{status;details;constructor(i,l,s={}){super(l),this.name="ApiError",this.status=i,this.details=s}}const lt=new rx(ix),Ne={projects:{all:["projects"],list:n=>["projects","list",n],detail:n=>["projects","detail",n]},tasks:{all:["tasks"],list:(n,i)=>["tasks","list",n,i],detail:n=>["tasks","detail",n],body:n=>["tasks","body",n],stats:n=>["tasks","stats",n]},workspaces:{all:["workspaces"],list:n=>["workspaces","list",n],detail:n=>["workspaces","detail",n],diff:n=>["workspaces","diff",n],gitStatus:n=>["workspaces","gitStatus",n]},previews:{all:["previews"],status:n=>["previews","status",n]},sessions:{all:["sessions"],detail:n=>["sessions","detail",n]},conversations:{all:["conversations"],list:n=>["conversations","list",n],detail:n=>["conversations","detail",n]},files:{all:["files"],tree:(n,i)=>["files","tree",n,i],content:(n,i)=>["files","content",n,i]},git:{all:["git"],changes:n=>["git","changes",n],diff:(n,i,l)=>["git","diff",n,i,l],log:n=>["git","log",n],commitFiles:(n,i)=>["git","commitFiles",n,i],commitDiff:(n,i,l)=>["git","commitDiff",n,i,l]},profiles:{all:["profiles"],defaults:["profiles","defaults"],agent:n=>["profiles","agent",n],variant:(n,i)=>["profiles","variant",n,i]},providers:{all:["providers"],detail:n=>["providers","detail",n]},tunnel:{status:["tunnel","status"]},notifications:{settings:["notifications","settings"]},appSettings:{detail:["app-settings"]},system:{cursorAgentModels:["system","cursor-agent-models"],mcpConfig:["system","mcp-config"],slashCommandCatalog:(n,i)=>["system","slash-command-catalog",n??null,i??null],skillCatalog:(n,i)=>["system","skill-catalog",n??null,i??null]}};function lx(){return Ba({queryKey:Ne.appSettings.detail,queryFn:()=>lt.get("/app-settings")})}function sx(){const n=gt();return qt({mutationFn:i=>lt.put("/app-settings",i),onSuccess:()=>{n.invalidateQueries({queryKey:Ne.appSettings.detail})}})}function QR(){return Ba({queryKey:[...Ne.appSettings.detail,"commit-message-defaults"],queryFn:()=>lt.get("/app-settings/commit-message-defaults")})}const ox={"zh-CN":{Settings:"设置",General:"通用",Back:"返回","Loading...":"加载中...","No options":"暂无选项","Processing...":"处理中...",Confirm:"确认",Cancel:"取消",Start:"开始","Starting...":"启动中...","General Settings":"通用设置","Display Language":"显示语言","Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.":"选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。",English:"English","Simplified Chinese":"简体中文","Language setting":"语言设置","Language setting could not be saved":"语言设置保存失败","Browse and select a Git repository, or type a path and press Enter":"浏览并选择一个 Git 仓库,或输入路径后按 Enter","Browse and select a directory, or type a path and press Enter":"浏览并选择一个目录,或输入路径后按 Enter","Select Current":"选择当前目录","Agent 配置":"Agent 配置",项目配置:"项目配置",通知:"通知",通用:"通用","AI Agent Task Management Dashboard":"AI Agent 任务管理面板","Project Management":"项目管理","Manage your AI agent projects":"管理你的 AI Agent 项目","View Projects":"查看项目","Task Board":"任务看板",Tasks:"任务","Kanban-style task management":"Kanban 风格的任务管理","Open Board":"打开看板",Workspace:"工作区","Git worktree isolated environments":"Git Worktree 隔离环境","Manage Workspaces":"管理工作区","Move to":"移动到","Delete Task":"删除任务","Drop into {title}":"放入 {title}","Drop here":"拖到此处","No tasks":"暂无任务","All Projects":"所有项目",Projects:"项目","Select View":"选择视图","Create New Project...":"创建新项目...","New Task":"新任务","New Project":"新项目",Search:"搜索","Search tasks...":"搜索任务...","Search conversations...":"搜索对话...","Recent tasks":"近期任务","Recent conversations":"最近对话","No matching tasks":"没有匹配的任务","No matching conversations":"没有匹配的对话","{count} tasks":"{count} 个任务","Clear filter":"清除筛选",Review:"待审查",Running:"进行中",Pending:"待开始",Done:"已完成",Cancelled:"已取消",Starting:"启动中",Completed:"已完成",Stopped:"已停止",Changes:"变更",History:"历史",Conversation:"对话",Conversations:"对话","New Conversation":"新对话","No conversations":"暂无对话","Conversation not found":"对话不存在","Delete this conversation?":"删除这个对话?","Ask a question...":"问一个问题...",Editor:"编辑器",Terminal:"终端",Preview:"预览","Coming soon...":"即将推出...",Modified:"已修改",Added:"已新增",Deleted:"已删除",Delete:"删除",Renamed:"已重命名","Loading diff...":"正在加载差异...","Failed to load diff.":"加载差异失败。","No diff content available.":"没有可显示的差异内容。","No workspace selected.":"未选择工作区。","Loading changes...":"正在加载变更...","Failed to load changes.":"加载变更失败。","No pending changes":"暂无待处理变更",Uncommitted:"未提交",Committed:"已提交","Select a file to view diff":"选择一个文件以查看差异","{count}s ago":"{count} 秒前","{count}m ago":"{count} 分钟前","{count}h ago":"{count} 小时前","{count}d ago":"{count} 天前","Loading files...":"正在加载文件列表...","No files changed":"没有文件变更","Loading history...":"正在加载历史记录...","Failed to load history.":"加载历史记录失败。","No commit history":"暂无提交历史","Load more":"加载更多","Select a commit to view changes":"选择一个提交以查看变更","Zoom out":"缩小","Reset zoom":"重置缩放","Zoom in":"放大","Fit to view":"适应视图","Failed to load image.":"加载图片失败。","Close tab":"关闭标签页",Close:"关闭","Expand file tree":"展开文件树","No open files":"暂无打开文件",Saving:"保存中",Unsaved:"未保存","Select a file from the tree to open.":"从文件树中选择一个文件以打开。","Loading file...":"正在加载文件...","Failed to load file":"加载文件失败","Failed to load":"加载失败","Failed to start. Please try again.":"启动失败,请重试",Files:"文件","No working directory":"未选择工作目录","Refresh file tree":"刷新文件树","Collapse file tree":"收起文件树","Shell {count}":"终端 {count}","New Terminal":"新终端","No terminals open":"暂无打开终端",Disconnected:"未连接","Connecting...":"连接中...",Connected:"已连接","No active session":"暂无活动会话","Create a workspace and start a session to see terminal output.":"创建工作区并启动会话后即可查看终端输出。","Process exited with code {code}":"进程已退出,退出码 {code}","Error: {message}":"错误: {message}","Session: {id}":"会话: {id}","Tunnel active":"隧道已启用","Share via tunnel":"通过隧道分享","Tunnel Active":"隧道已启用","Tunnel healthy":"隧道健康","Tunnel needs attention":"隧道需要注意","Tunnel unavailable":"隧道不可用","Tunnel starting":"隧道启动中","Tunnel is off":"隧道未开启","Checking tunnel health":"正在检查隧道健康","Observing original link":"正在观察原链接","Local service unavailable":"本地服务不可用","Tunnel process exited":"隧道进程已退出","Tunnel error":"隧道错误","New link generated":"新链接已生成","Use Agent Tower on your phone":"在手机上使用 Agent Tower","After enabling the tunnel, you can scan a QR code with your phone to visit this Agent Tower instance, assign tasks, and check agent status.":"开启隧道后,可以用手机扫码访问本机的 Agent Tower,用手机派任务、查看 Agent 状态。","Enable phone access":"开启手机访问","Starting tunnel...":"正在开启隧道...","Start a temporary Quick Tunnel when you need to share this Agent Tower session.":"需要分享当前 Agent Tower 会话时,可以启动一个临时 Quick Tunnel。","The Cloudflare tunnel is running and the local Agent Tower health check passed.":"Cloudflare 隧道正在运行,且本地 Agent Tower 健康检查已通过。","The Cloudflare tunnel is running. Agent Tower is waiting for the first local health check.":"Cloudflare 隧道正在运行,Agent Tower 正在等待首次本地健康检查。","The original public URL is currently unreachable. Agent Tower is watching for it to recover and will not generate a new link automatically.":"原公网链接当前不可访问。Agent Tower 正在观察它是否恢复,不会自动生成新链接。","The local Agent Tower target is not responding, so the tunnel cannot be considered healthy.":"本地 Agent Tower 目标没有响应,因此隧道不能视为健康。","The tunnel process has exited. The old Quick Tunnel link is unlikely to recover.":"隧道进程已退出,旧 Quick Tunnel 链接大概率无法恢复。","The tunnel reported an error. Check the diagnostics before generating a new link.":"隧道报告了错误。生成新链接前请先查看诊断信息。","A new Quick Tunnel link was generated. The old link and token are no longer valid.":"已生成新的 Quick Tunnel 链接。旧链接和 token 已失效。","Agent Tower is asking Cloudflare Quick Tunnel for a temporary public URL.":"Agent Tower 正在向 Cloudflare Quick Tunnel 申请临时公网链接。","Last checked":"上次检查","Last healthy":"上次健康",Never:"从未","Agent Tower is keeping the same URL and waiting for Cloudflare Quick Tunnel to recover.":"Agent Tower 会保留同一个 URL,并等待 Cloudflare Quick Tunnel 自行恢复。","The previous tunnel link and token are no longer valid.":"之前的隧道链接和 token 已不再有效。","Generating a new link will invalidate the current link. People using the old URL must receive the new one.":"生成新链接会使当前链接失效。正在使用旧 URL 的人需要收到新链接。","Regenerate link":"重新生成链接","Generating...":"生成中...","Token protected":"受 Token 保护","Copy shareable link":"复制分享链接","No tunnel link available":"暂无可用隧道链接","Hide token":"隐藏 Token","Show token":"显示 Token","Copy token":"复制 Token","Stopping...":"停止中...","Stop Tunnel":"停止隧道","Create & Start":"创建并启动","Create TeamRun":"创建 TeamRun","Creating TeamRun...":"正在创建 TeamRun...","Team Status":"团队状态","Team mode":"团队模式","Review reason":"审查原因",Members:"成员","No members":"暂无成员",Queue:"队列","No queued work requests":"暂无排队中的工作请求","Active invocations":"活动调用","No active invocations":"暂无活动调用","Recently completed":"最近完成","No completed invocations":"暂无已完成调用","New session per request":"每次新会话","Resume last session":"复用上次会话",Latest:"最新","Invocation history":"调用历史","No invocation history":"暂无调用历史","No invocations yet":"暂无调用记录","All members idle":"所有成员空闲",Log:"日志",Details:"详情",Workspaces:"工作区",Owner:"所有者",Parent:"父级",Selected:"已选",Select:"选择","View workspace":"查看工作区",Invocation:"调用",Session:"会话","View log":"查看日志","View details":"查看详情","Team room":"团队房间","No room messages yet":"暂无房间消息",Messages:"消息","Work requests":"工作请求","Active work":"进行中的工作",Working:"正在工作","Queued...":"排队中...","Waiting reply...":"等待回复...",running:"进行中",queued:"排队",waiting:"等待",ended:"已结束",Elapsed:"耗时",Failed:"失败","Session ended":"会话已结束","Failed to send room message":"发送房间消息失败",selected:"已选择","Back to bottom":"回到底部","Expand full message":"展开全部","Collapse message":"收起","Invocation details":"调用详情","Back to room":"返回群聊","Pending approval":"待审批","Tool Calls":"工具调用","No pending approvals":"暂无待审批项",Requester:"发起者",User:"用户",System:"系统","Waiting room reply":"等待房间回复",Queued:"排队中",Idle:"空闲","Queue if busy":"忙碌时排队","Cancel current if busy":"忙碌时取消当前并开始","Cancel queued":"取消排队",Approve:"批准",Approving:"批准中...",Reject:"拒绝",Rejecting:"拒绝中...",Cancelling:"取消中...","Failed to update work request":"更新工作请求失败","Failed to cancel work request":"取消工作请求失败",Stop:"停止","Stop running work?":"停止正在运行的工作?","Stop only":"仅停止","Stop + clear queue":"停止并清空队列",Stopping:"停止中...","Failed to stop member work":"停止成员工作失败",Yes:"是",No:"否","Creating Task...":"正在创建任务...","Creating Workspace...":"正在创建工作区...","Creating Session...":"正在创建会话...","Starting Agent...":"正在启动 Agent...","启动 Agent 失败":"Failed to start Agent","重试启动 Agent":"Retry Start Agent","Create New Project":"创建新项目","Creating...":"创建中...","Checking...":"检查中...",Create:"创建","Create Project":"创建项目","Initialize Git repository?":"初始化 Git 仓库?","Initialize and Create":"初始化并创建","This directory is empty and does not have Git version control yet. Agent Tower can initialize Git and create the initial commit before creating the project.":"该目录为空且尚未启用 Git 版本管理。Agent Tower 可以先初始化 Git 并创建初始提交,然后再创建项目。","The selected directory is not a Git repository and is not empty. Initialize Git manually and make an initial commit, then create the project.":"所选目录不是 Git 仓库且不为空。请手动初始化 Git 并完成首次提交,然后再创建项目。","Selected path is not a valid directory":"所选路径不是有效目录","Could not check repository path":"无法检查仓库路径","Project Name":"项目名称","e.g., Agent Tower":"例如:Agent Tower","Repository Path":"仓库路径","Create New Task":"创建新任务",Execution:"执行方式","Solo Agent":"Solo Agent",Project:"项目",Provider:"Provider",Agent:"Agent","Select project...":"选择项目...","Select provider...":"选择 Provider...","Task Title":"任务标题","e.g., Implement login flow":"例如:实现登录流程",Description:"描述","Optional...":"可选...","Optional description...":"可选描述...","Drop files here":"将文件拖到这里","Attach files":"添加文件","or paste files":"或粘贴文件","or paste/drag files":"或粘贴/拖拽文件","Drag to resize":"拖动以调整大小","Failed to create task":"创建任务失败","Failed to create project":"创建项目失败","Select a task from the sidebar to view logs, monitor execution, or interact with an agent.":"从侧边栏选择一个任务,以查看日志、监控执行过程,或与 Agent 交互。","Open in IDE":"在 IDE 中打开","Toggle Workspace":"切换工作区面板","More actions":"更多操作","No description":"暂无描述","Setup ({current}/{total}): {command}":"Setup({current}/{total}):{command}","Loading logs...":"正在加载日志...","Waiting for agent output...":"等待 Agent 输出...","No logs recorded for this session.":"当前会话暂无日志记录。","Scroll to bottom":"滚动到底部","Send failed. Please try again.":"发送失败,请重试","Drop files here...":"将文件拖到这里...","Continue conversation...":"继续对话...","Message Agent...":"给 Agent 发送消息...","Upload file":"上传文件","Uploading...":"上传中...",Send:"发送","Describe your task...":"描述你的任务...","Switch to TeamRun":"切换到 TeamRun","Switch to Solo Agent":"切换到单 Agent"," (unavailable)":"(不可用)","Manage Team Members":"管理团队成员","Add member":"添加成员","Save member":"保存成员","Edit member":"编辑成员","Remove member":"移除成员",Remove:"移除","Member added":"成员已添加","Member updated":"成员已更新","Member removed":"成员已移除","Failed to save member":"保存成员失败","Failed to remove member":"移除成员失败","Name, provider, and role prompt are required":"名称、Provider 和角色提示词不能为空","No active members":"暂无活跃成员","Add member from preset":"从预设添加成员","Choose a saved preset to add a ready-to-run member snapshot.":"选择已保存的预设,添加一个可直接工作的成员快照。","Custom member":"自定义成员",Custom:"自定义","Use preset":"使用预设",Preset:"预设","Select a member":"选择成员","Choose a member on the left to edit its future TeamRun configuration.":"从左侧选择成员,编辑其后续 TeamRun 配置。","Provider, role, workspace, and session changes apply to future work only.":"Provider、角色、工作区和会话变更只影响后续工作。","Create a one-off member snapshot for this TeamRun.":"为当前 TeamRun 创建一次性的成员快照。","Create a custom member for this TeamRun, or add presets from Team Collaboration Settings.":"可以为当前 TeamRun 创建自定义成员,或先在团队协作设置中添加预设。","Remove this member from future TeamRun work?":"将该成员从后续 TeamRun 工作中移除?",Name:"名称",Aliases:"别名",Avatar:"头像","Workspace policy":"工作区策略","Trigger policy":"触发策略","Session policy":"会话策略","Queue policy":"队列策略","Role prompt":"角色提示词",Capabilities:"能力","Comma separated":"用逗号分隔","No member presets":"暂无成员预设",active:"活跃",working:"工作中"},en:{设置:"Settings",通用:"General",返回:"Back","加载中...":"Loading...",暂无选项:"No options","处理中...":"Processing...",确认:"Confirm",取消:"Cancel",工具调用:"Tool Calls","失败 {count}":"Failed {count}",通用设置:"General Settings",显示语言:"Display Language","选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。":"Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.",简体中文:"Simplified Chinese",语言设置:"Language setting",语言设置保存失败:"Language setting could not be saved","Agent 配置":"Agent Settings",项目配置:"Project Settings",通知:"Notifications","MCP 配置":"MCP Config","复制下面的 JSON 到支持 MCP 的客户端配置中。桌面打包版使用 App 内置 runtime,不需要全局安装 agent-tower。":"Copy this JSON into an MCP-capable client config. The packaged desktop app uses the bundled runtime and does not require a global agent-tower install.",复制配置:"Copy Config","MCP 配置已复制":"MCP config copied","复制 MCP 配置失败":"Failed to copy MCP config","MCP 配置加载失败":"Failed to load MCP config","无需全局 CLI":"No global CLI needed","桌面打包 runtime":"Desktop packaged runtime","工作区 runtime":"Workspace runtime","当前版本只生成通用 MCP 配置,不会自动修改 Claude、Codex 或其他第三方客户端配置文件。":"This version only generates generic MCP config and does not modify Claude, Codex, or other third-party client config files automatically.","暂无项目,请先创建项目":"No projects yet. Create one first.",选择项目:"Select Project","选择项目...":"Select project...",自动复制文件:"Auto-copy Files","创建 worktree 时自动从主仓库复制的文件或目录。支持 glob 模式。":"Files or directories to copy from the main repository when creating a worktree. Glob patterns are supported.","适用于不在 git 管理中但启动必需的文件,如 .env、node_modules、数据库文件等":"Useful for required startup files that are not tracked by git, such as .env, node_modules, or database files.","Setup 脚本":"Setup Script","创建 worktree 后自动执行的命令,每行一条,按顺序执行。":"Commands to run automatically after creating the worktree, one per line in order.","命令在 worktree 目录下执行,单条命令超时 5 分钟,失败不会阻断后续命令":"Commands run inside the worktree directory. Each command times out after 5 minutes, and a failure does not block later commands.",常用命令:"Quick Commands","在终端中可快速执行的命令,不会自动运行。":"Commands that can be run quickly in the terminal. They are not executed automatically.","保存中...":"Saving...",保存:"Save",有未保存的更改:"You have unsaved changes",系统通知:"System Notifications",任务完成时弹出桌面通知:"Show a desktop notification when a task finishes.",第三方通知:"Third-party Notifications",选择一个第三方渠道接收通知:"Choose a third-party channel to receive notifications.",无:"None",飞书:"Feishu",测试发送:"Send Test",发送成功:"Sent successfully",发送失败:"Send failed","跳转地址(用于生成任务链接)":"Base URL (used to generate task links)",'通知卡片中的"查看任务"按钮将跳转到 {path}':'The "View Task" button in the notification card will open {path}',通知模板:"Notification Templates","支持变量: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}":"Supported variables: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}",标题模板:"Title Template",内容模板:"Body Template",'✅ "{taskTitle}" 已完成,等待审查':'✅ "{taskTitle}" is complete and ready for review',保存所有更改:"Save All Changes","启动失败: {message}":"Start failed: {message}",未知错误:"Unknown error",会话已停止:"Session stopped","Agent 交互演示":"Agent Interaction Demo","选择 Agent":"Select Agent","输入你的问题或任务...":"Enter your question or task...","启动中...":"Starting...",开始:"Start",对话:"Conversation",已连接:"Connected","连接中...":"Connecting...",未连接:"Disconnected",停止:"Stop","选择 Agent 并输入问题开始对话":"Select an agent and enter a prompt to start chatting.",你:"You","发送后续消息...":"Send a follow-up message...",发送:"Send",新会话:"New Session",未选择:"Not selected",连接:"Connection","Profiles 设置":"Profile Settings","配置变体 (Profile Variant)":"Profile Variant",输入任务:"Task Input","等待 Agent 响应...":"Waiting for agent output...","发送消息给 Agent...":"Send a message to the agent...","启动失败,请重试":"Failed to start. Please try again.",启动:"Start","创建工作空间...":"Creating workspace...","创建会话...":"Creating session...","启动 Agent...":"Starting agent...","启动 Agent":"Start Agent","选择 Provider":"Select Provider"," (不可用)":" (Unavailable)",任务描述:"Task Description","描述你想让 Agent 完成的任务...":"Describe the task you want the agent to complete...","输入文件路径...":"Enter a file path...",添加:"Add",添加此目录:"Add this directory",名称:"Name",命令:"Command",切换渠道:"Switch Provider","(默认)":"(Default)","留空为 auto;或直接输入模型 ID(与 cursor-agent --model 一致)":"Leave empty for auto, or enter a model ID directly (same as cursor-agent --model).","正在加载 cursor-agent 模型列表…":"Loading cursor-agent model list...",收起列表:"Collapse List","从本机 cursor-agent 选择({count} 个)":"Choose from local cursor-agent ({count})","筛选模型…":"Filter models...","默认 (auto)":"Default (auto)",无匹配项:"No matches",请求失败:"Request failed","无法从本机加载模型列表({error})。仍可手动输入;或在安装 cursor-agent 的机器上运行":"Could not load models from the local machine ({error}). You can still enter one manually, or run","查看 ID。":"to inspect available IDs.","JSON 格式错误":"Invalid JSON format","删除 Profile Variant":"Delete Profile Variant","确定删除 {agentType} / {variant}?":"Delete {agentType} / {variant}?",新增:"New",内置:"Built-in","新增 Variant — {agentType}":"New Variant — {agentType}","编辑 {variant}":"Edit {variant}","Variant 名称":"Variant Name","例如: CUSTOM":"e.g. CUSTOM","配置 (JSON)":"Configuration (JSON)","状态变更失败,该操作不被允许":"Status change failed. This action is not allowed.","Git 操作":"Git Operations",删除任务:"Delete Task","Setup 完成":"Setup complete","Setup 失败: {error}":"Setup failed: {error}","尚未启动 Agent":"No agent started yet","选择一个 Agent 来执行此任务":"Choose an agent to execute this task.","选择一个 Agent 来执行此任务,Agent 将自动创建工作空间并开始工作。":"Choose an agent to execute this task. The agent will create a workspace automatically and start working.",回到底部:"Back to Bottom","代码已合并,以上为历史沟通记录":"The code has been merged. The conversation above is historical.","启动新 Agent":"Start New Agent","确认删除任务「{title}」?此操作不可撤销。":'Delete task "{title}"? This action cannot be undone.',删除:"Delete","正在运行的 Agent 将被停止":"The running agent will be stopped.",分支上未合并的变更将丢失:"Unmerged changes on the branch will be lost.","关联的工作目录(worktree)将被清理":"The associated worktree directory will be cleaned up.","{opLabel} 冲突 — {count} 个文件":"{opLabel} conflicts — {count} files",中止操作:"Abort Operation",解决冲突:"Resolve Conflicts","解决 {opLabel} 冲突":"Resolve {opLabel} Conflicts","在 IDE 中打开":"Open in IDE","发送中...":"Sending...","AI 辅助解决":"Resolve with AI","冲突文件({count})":"Conflicted Files ({count})","选择 Session(AI 辅助解决)":"Choose Session (Resolve with AI)","选择一个 Session...":"Select a session...","没有可用的 Session,请在 IDE 中手动解决冲突。":"No session is available. Please resolve the conflicts manually in your IDE.","TeamRun 模式下会把处理冲突请求发送到 Team Room,由团队调度处理。":"In TeamRun mode, the conflict request will be sent to Team Room for team scheduling.","已发送到 Team Room":"Sent to Team Room",快捷命令:"Quick Commands",待办:"Todos","上下文: {used} / {max} tokens":"Context: {used} / {max} tokens","已使用: {used} tokens":"Used: {used} tokens",可用:"Available",不可用:"Unavailable",该类型暂无运行配置:"No runtime configuration is available for this type.","追加 Prompt":"Append Prompt","追加到每次 prompt 末尾的文本":"Text appended to the end of every prompt.",跳过权限确认:"Skip Permission Confirmation",模型:"Model",强制执行:"Force Execution",跳过所有确认和沙盒:"Skip All Confirmations and Sandbox",Profile:"Profile","~/.codex/config.toml 中的 profile 名称":"Profile name in ~/.codex/config.toml",是:"Yes",否:"No",覆盖:"Overwrite",跳过:"Skip","JSON 语法错误":"Invalid JSON syntax","TOML 语法错误: {message}":"Invalid TOML syntax: {message}","编辑 Provider":"Edit Provider","新建 Provider":"New Provider","例如: Claude Code (官方)":"e.g. Claude Code (Official)","Agent 类型":"Agent Type","选择 Agent 类型":"Select Agent Type","设为该类型的默认 Provider":"Set as the default provider for this agent type",运行配置:"Runtime Configuration",环境变量:"Environment Variables","注入到 Agent 进程的环境变量。Codex 的":"Environment variables injected into the agent process. Codex","指定的是变量名,实际值需在此处设置。":"specifies the variable name in env_key, and the actual value must be set here.","变量名,如 AZURE_OPENAI_API_KEY":"Variable name, e.g. AZURE_OPENAI_API_KEY",值:"Value",添加变量:"Add Variable","CLI 原生配置 (config.toml)":"Native CLI Config (config.toml)","CLI 原生配置 (settings.json)":"Native CLI Config (settings.json)","直接填写 Codex":"Enter a Codex","格式的配置片段,通过":"configuration snippet directly and inject it via","参数注入。不会修改你的":". It will not modify your","文件。":"file.","对应 Claude Code 的":"This corresponds to Claude Code",通过:"and is injected through","参数注入。在":". Configure","中设置 ANTHROPIC_API_KEY、ANTHROPIC_BASE_URL 等。":"inside env, such as ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL.","导出 Provider 备份":"Export Provider Backup","导出中...":"Exporting...",导出备份:"Export Backup","导出的备份文件将包含完整的 Provider 配置,包括环境变量、CLI settings 等敏感信息。任何拿到文件的人都可能直接使用这些 Provider。":"The exported backup file contains the full provider configuration, including sensitive information such as environment variables and CLI settings. Anyone with this file may be able to use those providers directly.","这个功能用于备份和迁移,不用于分享配置。":"This feature is for backup and migration, not for sharing configuration.","导出内容只包含用户层配置:自定义 Provider,以及对内置 Provider 的覆盖。":"The export only contains user-level configuration: custom providers and overrides of built-in providers.","我已知晓该备份文件包含敏感信息,只会保存在安全位置。":"I understand that this backup contains sensitive information and will only store it in a secure location.","导入 Provider 备份":"Import Provider Backup","导入中...":"Importing...","确认导入 {count} 项":"Import {count} item(s)","导出时间:{value}":"Exported at: {value}","模式:完整备份(含敏感信息)":"Mode: Full backup (contains sensitive data)","文件内 Provider 数量:{count}":"Providers in file: {count}","将覆盖当前已有的 Provider:{name}":"This will overwrite the existing provider: {name}","当前同 ID Provider 配置一致,本次不会重复写入。":"The provider with the same ID is already identical. It will not be written again.","当前不存在同 ID Provider,将直接新增。":"No provider with the same ID exists. It will be created directly.","系统内置 Provider 不可删除":"Built-in providers cannot be deleted.","已恢复默认 Provider 配置":"Default provider configuration restored.","Provider 已删除":"Provider deleted.","删除 Provider 失败":"Failed to delete provider.","Provider 备份已导出":"Provider backup exported.","导出 Provider 备份失败":"Failed to export provider backup.","备份文件不是有效的 JSON":"The backup file is not valid JSON.",导入预览失败:"Failed to preview import.","导入完成,当前配置无需变更":"Import complete. No changes were needed.","导入完成:新增 {create},覆盖 {overwrite},跳过 {skip}":"Import complete: created {create}, overwritten {overwrite}, skipped {skip}","导入 Provider 备份失败":"Failed to import provider backup.","Provider 配置":"Provider Configuration","管理 AI Agent 的连接配置和运行参数":"Manage AI agent connection settings and runtime parameters.",导入备份:"Import Backup","暂无 Provider 配置":"No providers configured yet.",默认:"Default","CLI 配置:":"CLI Config:",已配置:"Configured","环境变量:":"Environment Variables:",编辑:"Edit",删除自定义覆盖并恢复默认:"Delete custom override and restore default","恢复默认 Provider":"Restore Default Provider",'确定删除 "{name}" 的自定义覆盖,并恢复系统默认配置?':'Delete the custom override for "{name}" and restore the system default configuration?','确定删除 "{name}"?此操作不可撤销。':'Delete "{name}"? This action cannot be undone.',恢复默认:"Restore Default","{count} 个未提交变更":"{count} uncommitted changes","{count} 个冲突文件":"{count} conflicted files",变基进行中:"Rebase in progress",合并进行中:"Merge in progress","领先 {count} 个提交":"{count} commits ahead","落后 {count} 个提交":"{count} commits behind",已是最新:"Up to date","工作区有未提交的变更,请先让 Agent 提交或手动处理后再执行 Rebase / Merge 操作。":"The workspace has uncommitted changes. Ask the agent to commit them or handle them manually before running Rebase / Merge.",变基失败:"Rebase failed",合并失败:"Merge failed",确认合并:"Confirm Merge","加载分支状态...":"Loading branch status...","变基中...":"Rebasing...","变基 (Rebase)":"Rebase","将当前分支变基到最新的 {targetBranch}":"Rebase the current branch onto the latest {targetBranch}","合并 (Merge)":"Merge","合并中...":"Merging...","Squash merge 到 {targetBranch}":"Squash merge into {targetBranch}",提交消息:"Commit Message","输入提交消息...":"Enter commit message...",留空将使用默认消息:"Leave blank to use the default message.","Git Commit Message":"Git Commit Message","配置自动生成 commit message 时使用的 Agent 渠道和提示词。":"Configure the agent provider and prompt used for auto-generating commit messages.","Agent 渠道":"Agent Provider",跟随任务:"Follow Task",'"跟随任务"表示使用当前任务所用的 Agent 渠道。选择具体渠道可使用更经济的模型。':'"Follow Task" uses the same provider as the current task. Select a specific provider to use a more cost-effective model.',提示词模板:"Prompt Template","自定义生成 commit message 的提示词。留空则使用内置默认模板。":"Custom prompt for generating commit messages. Leave empty to use the built-in default template.",保存失败:"Save failed",已保存:"Saved",已创建:"Created",创建:"Create",单人:"Solo",团队:"Team",团队协作:"Team Collaboration",团队协作设置:"Team Collaboration Settings","管理成员预设与团队模板。":"Manage member presets and team templates.",成员预设:"Member Presets",团队模板:"Team Templates","点击列表项可编辑。":"Click an item to edit it.",当前没有成员预设:"No member presets yet.",当前没有团队模板:"No team templates yet.",创建新成员预设:"Create a new member preset",编辑成员预设:"Edit member preset",创建新团队模板:"Create a new team template",编辑团队模板:"Edit team template",成员预设名称:"Member preset name",成员预设别名:"Member preset aliases",成员预设头像:"Member preset avatar",成员预设角色提示词:"Member preset role prompt",团队模板名称:"Team template name",别名:"Aliases",头像:"Avatar",角色提示词:"Role Prompt",可用能力:"Capabilities",工作区策略:"Workspace Policy",触发策略:"Trigger Policy",共享:"Shared",独占:"Dedicated",仅提及:"Mention only",所有用户消息:"All user messages",读房间:"Read room",发房间消息:"Post room message",提及成员:"Mention members",停止成员工作:"Stop member work",标记可审查:"Mark ready for review",读文件:"Read files",写文件:"Write files",运行命令:"Run commands","读 diff":"Read diff",合并工作区:"Merge workspace","{count} 个成员":"{count} member(s)","Provider 列表加载失败":"Failed to load providers","Provider 列表加载失败,无法创建或修改成员预设。":"Failed to load providers. Member presets cannot be created or updated.",成员预设加载失败:"Failed to load member presets",团队模板加载失败:"Failed to load team templates","请稍后重试。":"Please try again later.",重试:"Retry","暂无可用 Provider,请先在 Agent 配置中创建。":"No available provider. Create one in Agent Settings first.","alice, a, reviewer":"alice, a, reviewer","选择顺序即保存顺序。":"Selection order is the saved order.",已选成员:"Selected Members","上移下移后即为保存顺序。":"Use up/down to change the saved order.",尚未选择成员预设:"No member presets selected yet.","先创建成员预设,再配置团队模板。":"Create member presets first, then configure a team template.",删除失败:"Delete failed",上移:"Move up",下移:"Move down","创建 TeamRun":"Create TeamRun",TeamRun:"TeamRun",模式:"Mode",执行模式:"Execution mode","TeamRun 模式":"TeamRun mode",确认模式:"Confirm mode",自动模式:"Auto mode","默认使用自动模式,团队消息会直接排队执行。":"Auto mode is the default. Team messages are queued for execution directly.","模板成员会先加入,随后按顺序追加所选成员。":"Template members are added first, then the selected members are appended in order.","请选择至少一个团队模板或成员预设。":"Select at least one team template or member preset.","该任务已经存在 TeamRun。请刷新后再试。":"This task already has a TeamRun. Refresh and try again.","创建 TeamRun 失败":"Failed to create TeamRun","TeamRun 创建失败,请检查团队配置后重试":"TeamRun creation failed. Please check team config and retry.","前往 /settings/team 创建":"Go to /settings/team to create one","欢迎使用 Agent Tower":"Welcome to Agent Tower","需要我帮你做点什么?":"What can I help you with?","描述任务,选择 Agent 或团队,即刻开始":"Describe a task, pick an Agent or team, and start right away","描述一个任务,AI Agent 将为你开始工作":"Describe a task and an AI agent will start working on it.","TeamRun 协作配置":"TeamRun Configuration",团队协作配置:"Team Collaboration Config","切换回单 Agent":"Switch to Solo Agent",追加成员:"Additional Members","{count} 个追加成员":"{count} additional member(s)",去创建:"Create",请选择团队模板或追加成员:"Select a team template or add members",收起:"Collapse","没有可用项目,请先创建或恢复项目":"No available projects. Please create or restore a project first.","任务已创建,但启动 Agent 失败,可在详情中重试":"Task created, but failed to start Agent. You can retry from the task detail.",冲突:"Conflict",变基中:"Rebasing",合并中:"Merging","{count} 未提交":"{count} uncommitted","落后 {count}":"Behind {count}",可合并:"Mergeable",查看变更详情:"View changes","分支落后 {count} 个提交,建议先执行变基 (Rebase) 同步最新代码。":"The branch is {count} commits behind. Consider rebasing to sync the latest code.","合并到 {target}":"Merge into {target}",需要先变基同步最新代码:"Rebase required to sync latest code",请先处理未提交变更:"Handle uncommitted changes first","中止中...":"Aborting...","正在检查工作区状态...":"Checking workspace status...",当前分支还没有任何变更:"No changes on this branch yet",调整工作区宽度:"Resize workspace panel","{files} 个文件 · {lines} 行":"{files} files · {lines} lines",更新:"Update",合并:"Merge","{count} 个本地改动未处理,需要先整理后再继续":"{count} local changes pending — clean them up before continuing","{count} 个文件存在冲突,需要处理后继续":"{count} files have conflicts — resolve them to continue","正在同步源分支更新...":"Syncing updates from source branch...","正在提交变更...":"Submitting changes...","源分支 {branch} 有 {count} 个更新":"Source branch {branch} has {count} updates","{count} 个文件变更,可以安全提交":"{count} file changes, safe to submit",同步更新:"Sync updates","正在同步...":"Syncing...",提交变更:"Submit changes",需要先同步源分支更新:"Sync source branch updates first","更新失败,请稍后重试":"Update failed. Please try again later.","提交失败,请稍后重试":"Submit failed. Please try again later.","正在提交...":"Submitting...",确认提交:"Confirm Submit",请描述本次修改的内容:"Describe the changes in this submission","建议以 feat、fix、docs、refactor、chore 开头,保持提交记录清晰。feat 新增功能,fix 修复问题,docs 文档更新,refactor 代码重构,chore 日常维护。":"Start with feat (new feature), fix (bug fix), docs (documentation), refactor (restructure), or chore (maintenance) to keep the history clean.",需要先处理本地改动:"Handle local changes first",处理冲突:"Resolve conflicts","正在撤销...":"Undoing...",撤销操作:"Undo operation",确认后会停止当前工作并取消队列:"Confirming will stop the current work and clear the queue",每次新会话:"New session per request",复用上次会话:"Resume last session",仅自己队列:"Own queue only",全队列待处理:"Team pending queue",代码审查:"Review","{count} 个文件":"{count} files",未选择工作区:"No workspace selected",没有可显示的差异内容:"No diff content available","还有 {count} 行变更被折叠,点击展开全部":"{count} more lines collapsed — click to expand all","正在加载差异...":"Loading diff...",差异加载失败:"Failed to load diff",变更加载失败:"Failed to load changes",没有匹配筛选条件的文件:"No files match the filter",该提交没有文件变更:"No file changes in this commit",没有待审查的变更:"No changes to review",未提交:"Uncommitted",已提交:"Committed","筛选文件...":"Filter files...",无匹配文件:"No matching files",暂无变更文件:"No changed files",提交记录:"Commits",全部变更:"All changes","正在加载提交记录...":"Loading commits...",暂无提交记录:"No commits yet",加载更多提交:"Load more commits","正在加载...":"Loading..."}},$y=T.createContext(null);function ux(n){return n?n==="en"?"en":n==="zh-CN"?"zh-CN":null:null}function cx(){return typeof navigator>"u"||navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en"}function fx(n,i){if(!i)return n;let l=n;for(const[s,c]of Object.entries(i))l=l.replaceAll(`{${s}}`,String(c??""));return l}let Sf="zh-CN";function Wy(n,i,l){const s=ox[n]?.[i]??i;return fx(s,l)}function dx(n,i){return Wy(Sf,n,i)}function hx({children:n}){const i=T.useRef(cx()),[l,s]=T.useState(i.current),{data:c}=lx(),f=sx(),d=T.useRef(!1),p=T.useCallback(b=>{Sf=b,s(b),document.documentElement.lang=b},[]);T.useEffect(()=>{const b=ux(c?.locale)??i.current;p(b),c&&c.locale===null&&!d.current&&(d.current=!0,f.mutate({locale:b}))},[c,p,f]);const g=T.useCallback(b=>{const y=Sf;p(b),f.mutate({locale:b},{onError:()=>{p(y),XS.error(dx("语言设置保存失败"))}})},[p,f]),m=T.useMemo(()=>({locale:l,setLocale:g,t:(b,y)=>Wy(l,b,y)}),[l,g]);return q.jsx($y.Provider,{value:m,children:n})}function Pf(){const n=T.useContext($y);if(!n)throw new Error("useI18n must be used within I18nProvider");return n}function ev(n){var i,l,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(i=0;i<c;i++)n[i]&&(l=ev(n[i]))&&(s&&(s+=" "),s+=l)}else for(l in n)n[l]&&(s&&(s+=" "),s+=l);return s}function tv(){for(var n,i,l=0,s="",c=arguments.length;l<c;l++)(n=arguments[l])&&(i=ev(n))&&(s&&(s+=" "),s+=i);return s}const mx=(n,i)=>{const l=new Array(n.length+i.length);for(let s=0;s<n.length;s++)l[s]=n[s];for(let s=0;s<i.length;s++)l[n.length+s]=i[s];return l},px=(n,i)=>({classGroupId:n,validator:i}),nv=(n=new Map,i=null,l)=>({nextPart:n,validators:i,classGroupId:l}),No="-",Bg=[],gx="arbitrary..",yx=n=>{const i=bx(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return vx(d);const p=d.split(No),g=p[0]===""&&p.length>1?1:0;return av(p,g,i)},getConflictingClassGroupIds:(d,p)=>{if(p){const g=s[d],m=l[d];return g?m?mx(m,g):g:m||Bg}return l[d]||Bg}}},av=(n,i,l)=>{if(n.length-i===0)return l.classGroupId;const c=n[i],f=l.nextPart.get(c);if(f){const m=av(n,i+1,f);if(m)return m}const d=l.validators;if(d===null)return;const p=i===0?n.join(No):n.slice(i).join(No),g=d.length;for(let m=0;m<g;m++){const b=d[m];if(b.validator(p))return b.classGroupId}},vx=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),l=i.indexOf(":"),s=i.slice(0,l);return s?gx+s:void 0})(),bx=n=>{const{theme:i,classGroups:l}=n;return Sx(l,i)},Sx=(n,i)=>{const l=nv();for(const s in n){const c=n[s];Ff(c,l,s,i)}return l},Ff=(n,i,l,s)=>{const c=n.length;for(let f=0;f<c;f++){const d=n[f];wx(d,i,l,s)}},wx=(n,i,l,s)=>{if(typeof n=="string"){Ex(n,i,l);return}if(typeof n=="function"){xx(n,i,l,s);return}Tx(n,i,l,s)},Ex=(n,i,l)=>{const s=n===""?i:iv(i,n);s.classGroupId=l},xx=(n,i,l,s)=>{if(Rx(n)){Ff(n(s),i,l,s);return}i.validators===null&&(i.validators=[]),i.validators.push(px(l,n))},Tx=(n,i,l,s)=>{const c=Object.entries(n),f=c.length;for(let d=0;d<f;d++){const[p,g]=c[d];Ff(g,iv(i,p),l,s)}},iv=(n,i)=>{let l=n;const s=i.split(No),c=s.length;for(let f=0;f<c;f++){const d=s[f];let p=l.nextPart.get(d);p||(p=nv(),l.nextPart.set(d,p)),l=p}return l},Rx=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,_x=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),s=Object.create(null);const c=(f,d)=>{l[f]=d,i++,i>n&&(i=0,s=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=s[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},wf="!",qg=":",Cx=[],Hg=(n,i,l,s,c)=>({modifiers:n,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:s,isExternal:c}),Ax=n=>{const{prefix:i,experimentalParseClassName:l}=n;let s=c=>{const f=[];let d=0,p=0,g=0,m;const b=c.length;for(let j=0;j<b;j++){const K=c[j];if(d===0&&p===0){if(K===qg){f.push(c.slice(g,j)),g=j+1;continue}if(K==="/"){m=j;continue}}K==="["?d++:K==="]"?d--:K==="("?p++:K===")"&&p--}const y=f.length===0?c:c.slice(g);let E=y,M=!1;y.endsWith(wf)?(E=y.slice(0,-1),M=!0):y.startsWith(wf)&&(E=y.slice(1),M=!0);const U=m&&m>g?m-g:void 0;return Hg(f,M,E,U)};if(i){const c=i+qg,f=s;s=d=>d.startsWith(c)?f(d.slice(c.length)):Hg(Cx,!1,d,void 0,!0)}if(l){const c=s;s=f=>l({className:f,parseClassName:c})}return s},Ox=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((l,s)=>{i.set(l,1e6+s)}),l=>{const s=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],p=d[0]==="[",g=i.has(d);p||g?(c.length>0&&(c.sort(),s.push(...c),c=[]),s.push(d)):c.push(d)}return c.length>0&&(c.sort(),s.push(...c)),s}},Mx=n=>({cache:_x(n.cacheSize),parseClassName:Ax(n),sortModifiers:Ox(n),...yx(n)}),Dx=/\s+/,Nx=(n,i)=>{const{parseClassName:l,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:f}=i,d=[],p=n.trim().split(Dx);let g="";for(let m=p.length-1;m>=0;m-=1){const b=p[m],{isExternal:y,modifiers:E,hasImportantModifier:M,baseClassName:U,maybePostfixModifierPosition:j}=l(b);if(y){g=b+(g.length>0?" "+g:g);continue}let K=!!j,G=s(K?U.substring(0,j):U);if(!G){if(!K){g=b+(g.length>0?" "+g:g);continue}if(G=s(U),!G){g=b+(g.length>0?" "+g:g);continue}K=!1}const J=E.length===0?"":E.length===1?E[0]:f(E).join(":"),$=M?J+wf:J,ye=$+G;if(d.indexOf(ye)>-1)continue;d.push(ye);const he=c(G,K);for(let me=0;me<he.length;++me){const C=he[me];d.push($+C)}g=b+(g.length>0?" "+g:g)}return g},kx=(...n)=>{let i=0,l,s,c="";for(;i<n.length;)(l=n[i++])&&(s=rv(l))&&(c&&(c+=" "),c+=s);return c},rv=n=>{if(typeof n=="string")return n;let i,l="";for(let s=0;s<n.length;s++)n[s]&&(i=rv(n[s]))&&(l&&(l+=" "),l+=i);return l},zx=(n,...i)=>{let l,s,c,f;const d=g=>{const m=i.reduce((b,y)=>y(b),n());return l=Mx(m),s=l.cache.get,c=l.cache.set,f=p,p(g)},p=g=>{const m=s(g);if(m)return m;const b=Nx(g,l);return c(g,b),b};return f=d,(...g)=>f(kx(...g))},Ux=[],Ut=n=>{const i=l=>l[n]||Ux;return i.isThemeGetter=!0,i},lv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lx=/^\d+\/\d+$/,jx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Hx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mr=n=>Lx.test(n),ze=n=>!!n&&!Number.isNaN(Number(n)),ui=n=>!!n&&Number.isInteger(Number(n)),tf=n=>n.endsWith("%")&&ze(n.slice(0,-1)),La=n=>jx.test(n),Vx=()=>!0,Yx=n=>Bx.test(n)&&!qx.test(n),ov=()=>!1,Gx=n=>Hx.test(n),Kx=n=>Qx.test(n),Xx=n=>!le(n)&&!se(n),Px=n=>jr(n,fv,ov),le=n=>lv.test(n),Vi=n=>jr(n,dv,Yx),nf=n=>jr(n,$x,ze),Qg=n=>jr(n,uv,ov),Fx=n=>jr(n,cv,Kx),po=n=>jr(n,hv,Gx),se=n=>sv.test(n),zl=n=>Br(n,dv),Zx=n=>Br(n,Wx),Vg=n=>Br(n,uv),Jx=n=>Br(n,fv),Ix=n=>Br(n,cv),go=n=>Br(n,hv,!0),jr=(n,i,l)=>{const s=lv.exec(n);return s?s[1]?i(s[1]):l(s[2]):!1},Br=(n,i,l=!1)=>{const s=sv.exec(n);return s?s[1]?i(s[1]):l:!1},uv=n=>n==="position"||n==="percentage",cv=n=>n==="image"||n==="url",fv=n=>n==="length"||n==="size"||n==="bg-size",dv=n=>n==="length",$x=n=>n==="number",Wx=n=>n==="family-name",hv=n=>n==="shadow",eT=()=>{const n=Ut("color"),i=Ut("font"),l=Ut("text"),s=Ut("font-weight"),c=Ut("tracking"),f=Ut("leading"),d=Ut("breakpoint"),p=Ut("container"),g=Ut("spacing"),m=Ut("radius"),b=Ut("shadow"),y=Ut("inset-shadow"),E=Ut("text-shadow"),M=Ut("drop-shadow"),U=Ut("blur"),j=Ut("perspective"),K=Ut("aspect"),G=Ut("ease"),J=Ut("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],he=()=>[...ye(),se,le],me=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],Y=()=>[se,le,g],oe=()=>[Mr,"full","auto",...Y()],Ae=()=>[ui,"none","subgrid",se,le],Ce=()=>["auto",{span:["full",ui,se,le]},ui,se,le],Te=()=>[ui,"auto",se,le],Ue=()=>["auto","min","max","fr",se,le],Le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],we=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...Y()],F=()=>[Mr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],H=()=>[n,se,le],ge=()=>[...ye(),Vg,Qg,{position:[se,le]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],x=()=>["auto","cover","contain",Jx,Px,{size:[se,le]}],Q=()=>[tf,zl,Vi],B=()=>["","none","full",m,se,le],Z=()=>["",ze,zl,Vi],te=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[ze,tf,Vg,Qg],Re=()=>["","none",U,se,le],Ve=()=>["none",ze,se,le],Ht=()=>["none",ze,se,le],$t=()=>[ze,se,le],Je=()=>[Mr,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[La],breakpoint:[La],color:[Vx],container:[La],"drop-shadow":[La],ease:["in","out","in-out"],font:[Xx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[La],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[La],shadow:[La],spacing:["px",ze],text:[La],"text-shadow":[La],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mr,le,se,K]}],container:["container"],columns:[{columns:[ze,le,se,p]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:he()}],overflow:[{overflow:me()}],"overflow-x":[{"overflow-x":me()}],"overflow-y":[{"overflow-y":me()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:oe()}],"inset-x":[{"inset-x":oe()}],"inset-y":[{"inset-y":oe()}],start:[{start:oe()}],end:[{end:oe()}],top:[{top:oe()}],right:[{right:oe()}],bottom:[{bottom:oe()}],left:[{left:oe()}],visibility:["visible","invisible","collapse"],z:[{z:[ui,"auto",se,le]}],basis:[{basis:[Mr,"full","auto",p,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,Mr,"auto","initial","none",le]}],grow:[{grow:["",ze,se,le]}],shrink:[{shrink:["",ze,se,le]}],order:[{order:[ui,"first","last","none",se,le]}],"grid-cols":[{"grid-cols":Ae()}],"col-start-end":[{col:Ce()}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":Ae()}],"row-start-end":[{row:Ce()}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ue()}],"auto-rows":[{"auto-rows":Ue()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...Le(),"normal"]}],"justify-items":[{"justify-items":[...we(),"normal"]}],"justify-self":[{"justify-self":["auto",...we()]}],"align-content":[{content:["normal",...Le()]}],"align-items":[{items:[...we(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...we(),{baseline:["","last"]}]}],"place-content":[{"place-content":Le()}],"place-items":[{"place-items":[...we(),"baseline"]}],"place-self":[{"place-self":["auto",...we()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[p,"screen",...F()]}],"min-w":[{"min-w":[p,"screen","none",...F()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",l,zl,Vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,se,nf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",tf,le]}],"font-family":[{font:[Zx,le,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,se,le]}],"line-clamp":[{"line-clamp":[ze,"none",se,nf]}],leading:[{leading:[f,...Y()]}],"list-image":[{"list-image":["none",se,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",se,Vi]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[ze,"auto",se,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:x()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ui,se,le],radial:["",se,le],conic:[ui,se,le]},Ix,Fx]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,se,le]}],"outline-w":[{outline:["",ze,zl,Vi]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",b,go,po]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",y,go,po]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[ze,Vi]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",E,go,po]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[ze,se,le]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[se,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":ye()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:x()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,le]}],filter:[{filter:["","none",se,le]}],blur:[{blur:Re()}],brightness:[{brightness:[ze,se,le]}],contrast:[{contrast:[ze,se,le]}],"drop-shadow":[{"drop-shadow":["","none",M,go,po]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",ze,se,le]}],"hue-rotate":[{"hue-rotate":[ze,se,le]}],invert:[{invert:["",ze,se,le]}],saturate:[{saturate:[ze,se,le]}],sepia:[{sepia:["",ze,se,le]}],"backdrop-filter":[{"backdrop-filter":["","none",se,le]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[ze,se,le]}],"backdrop-contrast":[{"backdrop-contrast":[ze,se,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,se,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,se,le]}],"backdrop-invert":[{"backdrop-invert":["",ze,se,le]}],"backdrop-opacity":[{"backdrop-opacity":[ze,se,le]}],"backdrop-saturate":[{"backdrop-saturate":[ze,se,le]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,se,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",se,le]}],ease:[{ease:["linear","initial",G,se,le]}],delay:[{delay:[ze,se,le]}],animate:[{animate:["none",J,se,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,se,le]}],"perspective-origin":[{"perspective-origin":he()}],rotate:[{rotate:Ve()}],"rotate-x":[{"rotate-x":Ve()}],"rotate-y":[{"rotate-y":Ve()}],"rotate-z":[{"rotate-z":Ve()}],scale:[{scale:Ht()}],"scale-x":[{"scale-x":Ht()}],"scale-y":[{"scale-y":Ht()}],"scale-z":[{"scale-z":Ht()}],"scale-3d":["scale-3d"],skew:[{skew:$t()}],"skew-x":[{"skew-x":$t()}],"skew-y":[{"skew-y":$t()}],transform:[{transform:[se,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:he()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Je()}],"translate-x":[{"translate-x":Je()}],"translate-y":[{"translate-y":Je()}],"translate-z":[{"translate-z":Je()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,le]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[ze,zl,Vi,nf]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},tT=zx(eT);function mn(...n){return tT(tv(n))}function af(n){let i=0;for(const l of n){const s=l.codePointAt(0);s>=19968&&s<=40959||s>=13312&&s<=19903||s>=65280&&s<=65376||s>=12288&&s<=12351?i+=2:i+=1}return i}function VR(n,i){if(af(n)<=i)return n;const l=i-1,s=Math.ceil(l/2),c=Math.floor(l/2);let f="",d=0;for(const b of n){const y=af(b);if(d+y>s)break;f+=b,d+=y}const p=[...n];let g="",m=0;for(let b=p.length-1;b>=0;b--){const y=af(p[b]);if(m+y>c)break;g=p[b]+g,m+=y}return f+"…"+g}let zr=0;function nT(){zr++,zr===1&&(document.body.style.overflow="hidden")}function Yg(){zr=Math.max(0,zr-1),zr===0&&(document.body.style.overflow="")}function aT(){return zr}const Gg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Kg=tv,iT=(n,i)=>l=>{var s;if(i?.variants==null)return Kg(n,l?.class,l?.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(m=>{const b=l?.[m],y=f?.[m];if(b===null)return null;const E=Gg(b)||Gg(y);return c[m][E]}),p=l&&Object.entries(l).reduce((m,b)=>{let[y,E]=b;return E===void 0||(m[y]=E),m},{}),g=i==null||(s=i.compoundVariants)===null||s===void 0?void 0:s.reduce((m,b)=>{let{class:y,className:E,...M}=b;return Object.entries(M).every(U=>{let[j,K]=U;return Array.isArray(K)?K.includes({...f,...p}[j]):{...f,...p}[j]===K})?[...m,y,E]:m},[]);return Kg(n,d,g,l?.class,l?.className)};function Xg(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function rT(...n){return i=>{let l=!1;const s=n.map(c=>{const f=Xg(c,i);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<s.length;c++){const f=s[c];typeof f=="function"?f():Xg(n[c],null)}}}}function lT(n){const i=oT(n),l=T.forwardRef((s,c)=>{const{children:f,...d}=s,p=T.Children.toArray(f),g=p.find(cT);if(g){const m=g.props.children,b=p.map(y=>y===g?T.Children.count(m)>1?T.Children.only(null):T.isValidElement(m)?m.props.children:null:y);return q.jsx(i,{...d,ref:c,children:T.isValidElement(m)?T.cloneElement(m,void 0,b):null})}return q.jsx(i,{...d,ref:c,children:f})});return l.displayName=`${n}.Slot`,l}var sT=lT("Slot");function oT(n){const i=T.forwardRef((l,s)=>{const{children:c,...f}=l;if(T.isValidElement(c)){const d=dT(c),p=fT(f,c.props);return c.type!==T.Fragment&&(p.ref=s?rT(s,d):d),T.cloneElement(c,p)}return T.Children.count(c)>1?T.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var uT=Symbol("radix.slottable");function cT(n){return T.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===uT}function fT(n,i){const l={...i};for(const s in i){const c=n[s],f=i[s];/^on[A-Z]/.test(s)?c&&f?l[s]=(...p)=>{const g=f(...p);return c(...p),g}:c&&(l[s]=c):s==="style"?l[s]={...c,...f}:s==="className"&&(l[s]=[c,f].filter(Boolean).join(" "))}return{...n,...l}}function dT(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning;return l?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}const hT=iT("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Pg({className:n,variant:i="default",size:l="default",asChild:s=!1,...c}){const f=s?sT:"button";return q.jsx(f,{"data-slot":"button","data-variant":i,"data-size":l,className:mn(hT({variant:i,size:l,className:n})),...c})}function _t({className:n,...i}){return q.jsx("div",{"data-slot":"skeleton","aria-hidden":"true",className:mn("animate-pulse rounded-md bg-muted motion-reduce:animate-none",n),...i})}function mT({children:n,className:i}){return q.jsx("div",{className:mn("mx-auto w-full max-w-4xl px-5 py-5 sm:px-8 sm:py-6",i),children:n})}function YR({title:n,description:i,actions:l,className:s}){return q.jsxs("div",{className:mn("mb-5 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",s),children:[q.jsxs("div",{className:"min-w-0",children:[q.jsx("h2",{className:"text-xl font-semibold tracking-tight text-foreground",children:n}),i&&q.jsx("p",{className:"mt-1 text-[13px] leading-relaxed text-muted-foreground",children:i})]}),l&&q.jsx("div",{className:"flex flex-wrap items-center gap-2 shrink-0",children:l})]})}function GR({children:n,className:i}){return q.jsx("h3",{className:mn("text-[12px] font-semibold uppercase tracking-wide text-muted-foreground",i),children:n})}function KR({label:n,description:i,icon:l,children:s,align:c="start",controlWidth:f="fixed",className:d}){return q.jsxs("div",{className:mn("flex flex-col gap-3 py-5 sm:flex-row sm:justify-between sm:gap-8",c==="center"?"sm:items-center":"sm:items-start",d),children:[q.jsxs("div",{className:"flex min-w-0 items-start gap-3 sm:max-w-[360px]",children:[l&&q.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground","aria-hidden":"true",children:q.jsx(l,{size:15})}),q.jsxs("div",{className:"min-w-0",children:[q.jsx("div",{className:"text-[13px] font-medium text-foreground",children:n}),i&&q.jsx("p",{className:"mt-0.5 text-xs leading-relaxed text-muted-foreground",children:i})]})]}),q.jsx("div",{className:mn("shrink-0",f==="fixed"?"w-full sm:w-[260px]":"w-auto"),children:s})]})}function XR({label:n,description:i,children:l,className:s,htmlFor:c}){return q.jsxs("div",{className:mn("space-y-1.5",s),children:[q.jsxs("div",{children:[q.jsx("label",{htmlFor:c,className:"block text-[13px] font-medium text-foreground",children:n}),i&&q.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground",children:i})]}),l]})}function PR({icon:n,message:i,action:l,className:s}){return q.jsxs("div",{className:mn("rounded-xl border border-dashed border-border bg-muted/30 py-14 text-center",s),children:[n&&q.jsx(n,{size:48,strokeWidth:1.25,className:"mx-auto mb-3 text-muted-foreground/40","aria-hidden":"true"}),q.jsx("p",{className:"text-sm text-muted-foreground",children:i}),l&&q.jsx("div",{className:"mt-4 flex justify-center",children:l})]})}function FR({saving:n,onSave:i,onCancel:l,className:s}){const{t:c}=Pf();return q.jsx("div",{className:mn("sticky bottom-0 z-10 -mx-5 border-t border-border/60 bg-background/90 px-5 py-3 backdrop-blur sm:-mx-8 sm:px-8",s),children:q.jsxs("div",{className:"flex items-center justify-between gap-3",children:[q.jsx("span",{className:"text-xs text-muted-foreground",children:c("有未保存的更改")}),q.jsxs("div",{className:"flex items-center gap-2",children:[l&&q.jsx(Pg,{size:"sm",variant:"ghost",onClick:l,disabled:n,children:c("取消")}),q.jsx(Pg,{size:"sm",onClick:i,disabled:n,children:c(n?"保存中...":"保存")})]})]})})}function pT({rows:n=3}){return q.jsxs("div",{role:"status","aria-label":"Loading",children:[q.jsx(_t,{className:"h-7 w-36"}),q.jsx("div",{className:"mt-6 divide-y divide-border/60",children:Array.from({length:n}).map((i,l)=>q.jsxs("div",{className:"flex items-start justify-between gap-8 py-5",children:[q.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[q.jsx(_t,{className:"h-4 w-32"}),q.jsx(_t,{className:"h-3 w-64 max-w-full"})]}),q.jsx(_t,{className:"h-9 w-[260px] shrink-0 rounded-lg"})]},l))})]})}function ZR(){return q.jsxs("div",{role:"status","aria-label":"Loading",children:[q.jsx(_t,{className:"h-7 w-36"}),q.jsxs("div",{className:"mt-6 grid gap-5 lg:grid-cols-[240px_minmax(0,1fr)]",children:[q.jsx("div",{className:"space-y-1",children:Array.from({length:5}).map((n,i)=>q.jsxs("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",children:[q.jsx(_t,{className:"h-2 w-2 rounded-full"}),q.jsxs("div",{className:"flex-1 space-y-1.5",children:[q.jsx(_t,{className:"h-3.5 w-3/4"}),q.jsx(_t,{className:"h-2.5 w-1/2"})]})]},i))}),q.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[q.jsxs("div",{className:"flex items-start justify-between gap-4",children:[q.jsxs("div",{className:"space-y-2",children:[q.jsx(_t,{className:"h-5 w-44"}),q.jsx(_t,{className:"h-3 w-28"})]}),q.jsx(_t,{className:"h-8 w-24 rounded-md"})]}),q.jsxs("div",{className:"mt-8 space-y-3",children:[q.jsx(_t,{className:"h-3 w-20"}),q.jsx(_t,{className:"h-24 w-full rounded-lg"}),q.jsx(_t,{className:"h-3 w-20"}),q.jsx(_t,{className:"h-16 w-full rounded-lg"})]})]})]})]})}function JR({cards:n=6}){return q.jsxs("div",{role:"status","aria-label":"Loading",children:[q.jsxs("div",{className:"flex items-center justify-between gap-4",children:[q.jsx(_t,{className:"h-7 w-36"}),q.jsx(_t,{className:"h-8 w-44 rounded-lg"})]}),q.jsx("div",{className:"mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:n}).map((i,l)=>q.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-border bg-card p-4",children:[q.jsx(_t,{className:"h-10 w-10 shrink-0 rounded-full"}),q.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[q.jsx(_t,{className:"h-4 w-2/3"}),q.jsx(_t,{className:"h-3 w-1/2"}),q.jsx(_t,{className:"h-3 w-3/4"})]})]},l))})]})}const gT=T.lazy(()=>ea(()=>import("./GeneralSettingsPage-CTymytF6.js"),__vite__mapDeps([0,1,2,3,4,5])).then(n=>({default:n.GeneralSettingsPage}))),yT=T.lazy(()=>ea(()=>import("./ProviderSettingsPage-BlLaN0i2.js"),__vite__mapDeps([6,5,7,8,9,1,2,3,10,4,11,12,13,14,15,16,17])).then(n=>({default:n.ProviderSettingsPage}))),vT=T.lazy(()=>ea(()=>import("./TeamSettingsPage-CqQTc5AI.js"),__vite__mapDeps([18,7,8,1,2,3,19,5,13,15,20])).then(n=>({default:n.TeamSettingsPage}))),bT=T.lazy(()=>ea(()=>import("./ProjectSettingsPage-BJ4sOhMl.js"),__vite__mapDeps([21,22,23,24,25,26,3,15,8,12,13,17])).then(n=>({default:n.ProjectSettingsPage}))),ST=T.lazy(()=>ea(()=>import("./NotificationSettingsPage-BBop2Bu4.js"),__vite__mapDeps([27,1,2,3,9,10,28,25,26])).then(n=>({default:n.NotificationSettingsPage}))),wT=T.lazy(()=>ea(()=>import("./McpSettingsPage-DyolUN8C.js"),__vite__mapDeps([29,25,30,3])).then(n=>({default:n.McpSettingsPage}))),ET=T.lazy(()=>ea(()=>import("./ProfileSettingsPage-Bw-eI0cF.js"),__vite__mapDeps([31,32,8,7,9,4,33,2,15,16])).then(n=>({default:n.ProfileSettingsPage}))),Fg=[{id:"general",label:"通用",icon:FE},{id:"agents",label:"Agent 配置",icon:GE},{id:"team",label:"团队协作",icon:$E},{id:"projects",label:"项目配置",icon:XE},{id:"notifications",label:"通知",icon:HE},{id:"mcp",label:"MCP 配置",icon:VE}];function xT({tab:n}){switch(n){case"general":return q.jsx(gT,{});case"agents":return q.jsx(yT,{});case"team":return q.jsx(vT,{});case"projects":return q.jsx(bT,{});case"notifications":return q.jsx(ST,{});case"mcp":return q.jsx(wT,{});case"agents-legacy":return q.jsx(ET,{})}}function TT(){return q.jsx(mT,{children:q.jsx(pT,{rows:3})})}function RT(){const{t:n}=Pf(),i=ql(m=>m.settingsOpen),l=ql(m=>m.settingsTab),s=ql(m=>m.closeSettings),c=ql(m=>m.setSettingsTab),[f,d]=T.useState(!1),p=T.useRef(!1),g=T.useRef(null);return T.useEffect(()=>{if(i)d(!0),p.current||(nT(),p.current=!0),requestAnimationFrame(()=>g.current?.focus());else{const m=setTimeout(()=>d(!1),200);return p.current&&(Yg(),p.current=!1),()=>clearTimeout(m)}},[i]),T.useEffect(()=>()=>{p.current&&(Yg(),p.current=!1)},[]),T.useEffect(()=>{if(!i)return;const m=b=>{b.key==="Escape"&&aT()===1&&s()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[i,s]),!f&&!i?null:q.jsxs("div",{className:mn("fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6 transition-opacity duration-200 motion-reduce:transition-none",i?"opacity-100":"opacity-0 pointer-events-none"),children:[q.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm",onClick:s,"aria-hidden":"true"}),q.jsxs("div",{ref:g,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":n("设置"),className:mn("relative flex w-full max-w-[1100px] flex-col overflow-hidden rounded-2xl bg-background shadow-[0_12px_16px_-4px_rgba(36,36,36,0.08)] ring-1 ring-foreground/5 transform transition-all duration-200 outline-none motion-reduce:transition-none","h-[min(calc(100vh-1.5rem),840px)] sm:h-[min(calc(100vh-3rem),840px)]",i?"scale-100 translate-y-0":"scale-[0.97] translate-y-1"),children:[q.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-border/60 bg-muted/40 px-5 py-3 sm:px-6",children:[q.jsxs("div",{className:"flex items-center gap-2.5",children:[q.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-lg bg-primary text-primary-foreground","aria-hidden":"true",children:q.jsx(JE,{size:14})}),q.jsx("h2",{className:"text-[15px] font-semibold text-foreground",children:n("设置")})]}),q.jsx("button",{onClick:s,"aria-label":n("取消"),className:"flex h-7 w-7 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",children:q.jsx(ex,{size:15})})]}),q.jsx("div",{className:"sm:hidden flex shrink-0 border-b border-border/60 bg-background overflow-x-auto scrollbar-none",role:"tablist",children:Fg.map(m=>q.jsxs("button",{role:"tab","aria-selected":l===m.id,onClick:()=>c(m.id),className:mn("flex items-center gap-1.5 px-4 py-2.5 text-xs whitespace-nowrap transition-colors border-b-2 -mb-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset",l===m.id?"border-primary text-foreground font-medium":"border-transparent text-muted-foreground hover:text-foreground"),children:[q.jsx(m.icon,{size:13,"aria-hidden":"true"}),q.jsx("span",{children:n(m.label)})]},m.id))}),q.jsxs("div",{className:"flex flex-1 min-h-0",children:[q.jsx("nav",{"aria-label":n("设置"),className:"hidden sm:flex w-[180px] shrink-0 flex-col gap-0.5 border-r border-border/60 bg-muted/30 p-3 overflow-y-auto scrollbar-app-thin",children:Fg.map(m=>q.jsxs("button",{"aria-current":l===m.id?"page":void 0,onClick:()=>c(m.id),className:mn("flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",l===m.id?"bg-background text-foreground font-medium shadow-[0_1px_2px_rgba(0,0,0,0.05)] ring-1 ring-foreground/[0.04]":"text-muted-foreground hover:text-foreground hover:bg-background/60"),children:[q.jsx(m.icon,{size:15,className:"shrink-0","aria-hidden":"true"}),q.jsx("span",{children:n(m.label)})]},m.id))}),q.jsx("div",{className:"flex-1 min-w-0 overflow-y-auto scrollbar-app-thin bg-background",children:q.jsx(T.Suspense,{fallback:q.jsx(TT,{}),children:q.jsx(xT,{tab:l})})})]})]})]})}function _T(){return q.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[q.jsx(Jw,{}),q.jsx(RT,{})]})}const CT=T.lazy(()=>ea(()=>import("./ProjectKanbanPage-BFf2FZVz.js"),__vite__mapDeps([34,11,7,8,35,2,24,36,3,25,19,5,15,37,38,23,22,26,28,33,20,1,30,14,13,17,39])).then(n=>({default:n.ProjectKanbanPage}))),Zg=T.lazy(()=>ea(()=>import("./ConversationPage-Cyiw8Hra.js"),__vite__mapDeps([40,11,37,24,2,3,38,36,25,19,5,15,23,28,13])).then(n=>({default:n.ConversationPage}))),AT=T.lazy(()=>ea(()=>import("./DemoPage-SywVXjL0.js"),[]).then(n=>({default:n.DemoPage}))),OT=T.lazy(()=>ea(()=>import("./AgentDemoPage-CUgqAjq9.js"),__vite__mapDeps([41,37,11,24,2,3,38,35,32,20])).then(n=>({default:n.AgentDemoPage})));function Ul(){const{t:n}=Pf();return q.jsx("div",{className:"p-8",children:n("Loading...")})}const MT=new Set(["general","agents","team","projects","notifications","mcp","agents-legacy"]);function Jg(){const n=Vy(),{tab:i}=Aw();return T.useEffect(()=>{const l=i&&MT.has(i)?i:"general";ql.getState().openSettings(l),n("/",{replace:!0})},[n,i]),null}const DT=wE([{path:"/",element:q.jsx(_T,{}),children:[{index:!0,element:q.jsx(T.Suspense,{fallback:q.jsx(Ul,{}),children:q.jsx(CT,{})})},{path:"conversations",element:q.jsx(T.Suspense,{fallback:q.jsx(Ul,{}),children:q.jsx(Zg,{})})},{path:"conversations/:conversationId",element:q.jsx(T.Suspense,{fallback:q.jsx(Ul,{}),children:q.jsx(Zg,{})})},{path:"demo",element:q.jsx(T.Suspense,{fallback:q.jsx(Ul,{}),children:q.jsx(AT,{})})},{path:"agent-demo",element:q.jsx(T.Suspense,{fallback:q.jsx(Ul,{}),children:q.jsx(OT,{})})},{path:"settings",element:q.jsx(Jg,{})},{path:"settings/:tab",element:q.jsx(Jg,{})}]}]);function NT(){return q.jsx(kE,{router:DT})}const da=Object.create(null);da.open="0";da.close="1";da.ping="2";da.pong="3";da.message="4";da.upgrade="5";da.noop="6";const xo=Object.create(null);Object.keys(da).forEach(n=>{xo[da[n]]=n});const Ef={type:"error",data:"parser error"},mv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",pv=typeof ArrayBuffer=="function",gv=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Zf=({type:n,data:i},l,s)=>mv&&i instanceof Blob?l?s(i):Ig(i,s):pv&&(i instanceof ArrayBuffer||gv(i))?l?s(i):Ig(new Blob([i]),s):s(da[n]+(i||"")),Ig=(n,i)=>{const l=new FileReader;return l.onload=function(){const s=l.result.split(",")[1];i("b"+(s||""))},l.readAsDataURL(n)};function $g(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let rf;function kT(n,i){if(mv&&n.data instanceof Blob)return n.data.arrayBuffer().then($g).then(i);if(pv&&(n.data instanceof ArrayBuffer||gv(n.data)))return i($g(n.data));Zf(n,!1,l=>{rf||(rf=new TextEncoder),i(rf.encode(l))})}const Wg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Wg.length;n++)Hl[Wg.charCodeAt(n)]=n;const zT=n=>{let i=n.length*.75,l=n.length,s,c=0,f,d,p,g;n[n.length-1]==="="&&(i--,n[n.length-2]==="="&&i--);const m=new ArrayBuffer(i),b=new Uint8Array(m);for(s=0;s<l;s+=4)f=Hl[n.charCodeAt(s)],d=Hl[n.charCodeAt(s+1)],p=Hl[n.charCodeAt(s+2)],g=Hl[n.charCodeAt(s+3)],b[c++]=f<<2|d>>4,b[c++]=(d&15)<<4|p>>2,b[c++]=(p&3)<<6|g&63;return m},UT=typeof ArrayBuffer=="function",Jf=(n,i)=>{if(typeof n!="string")return{type:"message",data:yv(n,i)};const l=n.charAt(0);return l==="b"?{type:"message",data:LT(n.substring(1),i)}:xo[l]?n.length>1?{type:xo[l],data:n.substring(1)}:{type:xo[l]}:Ef},LT=(n,i)=>{if(UT){const l=zT(n);return yv(l,i)}else return{base64:!0,data:n}},yv=(n,i)=>i==="blob"?n instanceof Blob?n:new Blob([n]):n instanceof ArrayBuffer?n:n.buffer,vv="",jT=(n,i)=>{const l=n.length,s=new Array(l);let c=0;n.forEach((f,d)=>{Zf(f,!1,p=>{s[d]=p,++c===l&&i(s.join(vv))})})},BT=(n,i)=>{const l=n.split(vv),s=[];for(let c=0;c<l.length;c++){const f=Jf(l[c],i);if(s.push(f),f.type==="error")break}return s};function qT(){return new TransformStream({transform(n,i){kT(n,l=>{const s=l.length;let c;if(s<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,s);else if(s<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,s)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(c[0]|=128),i.enqueue(c),i.enqueue(l)})}})}let lf;function yo(n){return n.reduce((i,l)=>i+l.length,0)}function vo(n,i){if(n[0].length===i)return n.shift();const l=new Uint8Array(i);let s=0;for(let c=0;c<i;c++)l[c]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),l}function HT(n,i){lf||(lf=new TextDecoder);const l=[];let s=0,c=-1,f=!1;return new TransformStream({transform(d,p){for(l.push(d);;){if(s===0){if(yo(l)<1)break;const g=vo(l,1);f=(g[0]&128)===128,c=g[0]&127,c<126?s=3:c===126?s=1:s=2}else if(s===1){if(yo(l)<2)break;const g=vo(l,2);c=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),s=3}else if(s===2){if(yo(l)<8)break;const g=vo(l,8),m=new DataView(g.buffer,g.byteOffset,g.length),b=m.getUint32(0);if(b>Math.pow(2,21)-1){p.enqueue(Ef);break}c=b*Math.pow(2,32)+m.getUint32(4),s=3}else{if(yo(l)<c)break;const g=vo(l,c);p.enqueue(Jf(f?g:lf.decode(g),i)),s=0}if(c===0||c>n){p.enqueue(Ef);break}}}})}const bv=4;function Dt(n){if(n)return QT(n)}function QT(n){for(var i in Dt.prototype)n[i]=Dt.prototype[i];return n}Dt.prototype.on=Dt.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this};Dt.prototype.once=function(n,i){function l(){this.off(n,l),i.apply(this,arguments)}return l.fn=i,this.on(n,l),this};Dt.prototype.off=Dt.prototype.removeListener=Dt.prototype.removeAllListeners=Dt.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var l=this._callbacks["$"+n];if(!l)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,c=0;c<l.length;c++)if(s=l[c],s===i||s.fn===i){l.splice(c,1);break}return l.length===0&&delete this._callbacks["$"+n],this};Dt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),l=this._callbacks["$"+n],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(l){l=l.slice(0);for(var s=0,c=l.length;s<c;++s)l[s].apply(this,i)}return this};Dt.prototype.emitReserved=Dt.prototype.emit;Dt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Dt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Uo=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,l)=>l(i,0),Qn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),VT="arraybuffer";function Sv(n,...i){return i.reduce((l,s)=>(n.hasOwnProperty(s)&&(l[s]=n[s]),l),{})}const YT=Qn.setTimeout,GT=Qn.clearTimeout;function Lo(n,i){i.useNativeTimers?(n.setTimeoutFn=YT.bind(Qn),n.clearTimeoutFn=GT.bind(Qn)):(n.setTimeoutFn=Qn.setTimeout.bind(Qn),n.clearTimeoutFn=Qn.clearTimeout.bind(Qn))}const KT=1.33;function XT(n){return typeof n=="string"?PT(n):Math.ceil((n.byteLength||n.size)*KT)}function PT(n){let i=0,l=0;for(let s=0,c=n.length;s<c;s++)i=n.charCodeAt(s),i<128?l+=1:i<2048?l+=2:i<55296||i>=57344?l+=3:(s++,l+=4);return l}function wv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function FT(n){let i="";for(let l in n)n.hasOwnProperty(l)&&(i.length&&(i+="&"),i+=encodeURIComponent(l)+"="+encodeURIComponent(n[l]));return i}function ZT(n){let i={},l=n.split("&");for(let s=0,c=l.length;s<c;s++){let f=l[s].split("=");i[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return i}class JT extends Error{constructor(i,l,s){super(i),this.description=l,this.context=s,this.type="TransportError"}}class If extends Dt{constructor(i){super(),this.writable=!1,Lo(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,l,s){return super.emitReserved("error",new JT(i,l,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const l=Jf(i,this.socket.binaryType);this.onPacket(l)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,l={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(l)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const l=FT(i);return l.length?"?"+l:""}}class IT extends If{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const l=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||l()})),this.writable||(s++,this.once("drain",function(){--s||l()}))}else l()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const l=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};BT(i,this.socket.binaryType).forEach(l),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,jT(i,l=>{this.doWrite(l,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",l=this.query||{};return this.opts.timestampRequests!==!1&&(l[this.opts.timestampParam]=wv()),!this.supportsBinary&&!l.sid&&(l.b64=1),this.createUri(i,l)}}let Ev=!1;try{Ev=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const $T=Ev;function WT(){}class eR extends IT{constructor(i){if(super(i),typeof location<"u"){const l=location.protocol==="https:";let s=location.port;s||(s=l?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,l){const s=this.request({method:"POST",data:i});s.on("success",l),s.on("error",(c,f)=>{this.onError("xhr post error",c,f)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(l,s)=>{this.onError("xhr poll error",l,s)}),this.pollXhr=i}}let Ur=class To extends Dt{constructor(i,l,s){super(),this.createRequest=i,Lo(this,s),this._opts=s,this._method=s.method||"GET",this._uri=l,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var i;const l=Sv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");l.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(l);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&s.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var c;s.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=To.requestsCount++,To.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=WT,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete To.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ur.requestsCount=0;Ur.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ey);else if(typeof addEventListener=="function"){const n="onpagehide"in Qn?"pagehide":"unload";addEventListener(n,ey,!1)}}function ey(){for(let n in Ur.requests)Ur.requests.hasOwnProperty(n)&&Ur.requests[n].abort()}const tR=(function(){const n=xv({xdomain:!1});return n&&n.responseType!==null})();class nR extends eR{constructor(i){super(i);const l=i&&i.forceBase64;this.supportsBinary=tR&&!l}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Ur(xv,this.uri(),i)}}function xv(n){const i=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||$T))return new XMLHttpRequest}catch{}if(!i)try{return new Qn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Tv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class aR extends If{get name(){return"websocket"}doOpen(){const i=this.uri(),l=this.opts.protocols,s=Tv?{}:Sv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,l,s)}catch(c){return this.emitReserved("error",c)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let l=0;l<i.length;l++){const s=i[l],c=l===i.length-1;Zf(s,this.supportsBinary,f=>{try{this.doWrite(s,f)}catch{}c&&Uo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",l=this.query||{};return this.opts.timestampRequests&&(l[this.opts.timestampParam]=wv()),this.supportsBinary||(l.b64=1),this.createUri(i,l)}}const sf=Qn.WebSocket||Qn.MozWebSocket;class iR extends aR{createSocket(i,l,s){return Tv?new sf(i,l,s):l?new sf(i,l):new sf(i)}doWrite(i,l){this.ws.send(l)}}class rR extends If{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const l=HT(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=i.readable.pipeThrough(l).getReader(),c=qT();c.readable.pipeTo(i.writable),this._writer=c.writable.getWriter();const f=()=>{s.read().then(({done:p,value:g})=>{p||(this.onPacket(g),f())}).catch(p=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let l=0;l<i.length;l++){const s=i[l],c=l===i.length-1;this._writer.write(s).then(()=>{c&&Uo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const lR={websocket:iR,webtransport:rR,polling:nR},sR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,oR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function xf(n){if(n.length>8e3)throw"URI too long";const i=n,l=n.indexOf("["),s=n.indexOf("]");l!=-1&&s!=-1&&(n=n.substring(0,l)+n.substring(l,s).replace(/:/g,";")+n.substring(s,n.length));let c=sR.exec(n||""),f={},d=14;for(;d--;)f[oR[d]]=c[d]||"";return l!=-1&&s!=-1&&(f.source=i,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=uR(f,f.path),f.queryKey=cR(f,f.query),f}function uR(n,i){const l=/\/{2,9}/g,s=i.replace(l,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function cR(n,i){const l={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,c,f){c&&(l[c]=f)}),l}const Tf=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ro=[];Tf&&addEventListener("offline",()=>{Ro.forEach(n=>n())},!1);class pi extends Dt{constructor(i,l){if(super(),this.binaryType=VT,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(l=i,i=null),i){const s=xf(i);l.hostname=s.host,l.secure=s.protocol==="https"||s.protocol==="wss",l.port=s.port,s.query&&(l.query=s.query)}else l.host&&(l.hostname=xf(l.host).host);Lo(this,l),this.secure=l.secure!=null?l.secure:typeof location<"u"&&location.protocol==="https:",l.hostname&&!l.port&&(l.port=this.secure?"443":"80"),this.hostname=l.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=l.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},l.transports.forEach(s=>{const c=s.prototype.name;this.transports.push(c),this._transportsByName[c]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},l),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=ZT(this.opts.query)),Tf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ro.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const l=Object.assign({},this.opts.query);l.EIO=bv,l.transport=i,this.id&&(l.sid=this.id);const s=Object.assign({},this.opts,{query:l,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&pi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const l=this.createTransport(i);l.open(),this.setTransport(l)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",l=>this._onClose("transport close",l))}onOpen(){this.readyState="open",pi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const l=new Error("server error");l.code=i.data,this._onError(l);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let l=1;for(let s=0;s<this.writeBuffer.length;s++){const c=this.writeBuffer[s].data;if(c&&(l+=XT(c)),s>0&&l>this._maxPayload)return this.writeBuffer.slice(0,s);l+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,Uo(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,l,s){return this._sendPacket("message",i,l,s),this}send(i,l,s){return this._sendPacket("message",i,l,s),this}_sendPacket(i,l,s,c){if(typeof l=="function"&&(c=l,l=void 0),typeof s=="function"&&(c=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const f={type:i,data:l,options:s};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),c&&this.once("flush",c),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},l=()=>{this.off("upgrade",l),this.off("upgradeError",l),i()},s=()=>{this.once("upgrade",l),this.once("upgradeError",l)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():i()}):this.upgrading?s():i()),this}_onError(i){if(pi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Tf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Ro.indexOf(this._offlineEventListener);s!==-1&&Ro.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,l),this.writeBuffer=[],this._prevBufferLen=0}}}pi.protocol=bv;class fR extends pi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let l=this.createTransport(i),s=!1;pi.priorWebsocketSuccess=!1;const c=()=>{s||(l.send([{type:"ping",data:"probe"}]),l.once("packet",y=>{if(!s)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",l),!l)return;pi.priorWebsocketSuccess=l.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(l),l.send([{type:"upgrade"}]),this.emitReserved("upgrade",l),l=null,this.upgrading=!1,this.flush())})}else{const E=new Error("probe error");E.transport=l.name,this.emitReserved("upgradeError",E)}}))};function f(){s||(s=!0,b(),l.close(),l=null)}const d=y=>{const E=new Error("probe error: "+y);E.transport=l.name,f(),this.emitReserved("upgradeError",E)};function p(){d("transport closed")}function g(){d("socket closed")}function m(y){l&&y.name!==l.name&&f()}const b=()=>{l.removeListener("open",c),l.removeListener("error",d),l.removeListener("close",p),this.off("close",g),this.off("upgrading",m)};l.once("open",c),l.once("error",d),l.once("close",p),this.once("close",g),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||l.open()},200):l.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const l=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&l.push(i[s]);return l}}let dR=class extends fR{constructor(i,l={}){const s=typeof i=="object"?i:l;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(c=>lR[c]).filter(c=>!!c)),super(i,s)}};function hR(n,i="",l){let s=n;l=l||typeof location<"u"&&location,n==null&&(n=l.protocol+"//"+l.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=l.protocol+n:n=l.host+n),/^(https?|wss?):\/\//.test(n)||(typeof l<"u"?n=l.protocol+"//"+n:n="https://"+n),s=xf(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const f=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+f+":"+s.port+i,s.href=s.protocol+"://"+f+(l&&l.port===s.port?"":":"+s.port),s}const mR=typeof ArrayBuffer=="function",pR=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Rv=Object.prototype.toString,gR=typeof Blob=="function"||typeof Blob<"u"&&Rv.call(Blob)==="[object BlobConstructor]",yR=typeof File=="function"||typeof File<"u"&&Rv.call(File)==="[object FileConstructor]";function $f(n){return mR&&(n instanceof ArrayBuffer||pR(n))||gR&&n instanceof Blob||yR&&n instanceof File}function _o(n,i){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let l=0,s=n.length;l<s;l++)if(_o(n[l]))return!0;return!1}if($f(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return _o(n.toJSON(),!0);for(const l in n)if(Object.prototype.hasOwnProperty.call(n,l)&&_o(n[l]))return!0;return!1}function vR(n){const i=[],l=n.data,s=n;return s.data=Rf(l,i),s.attachments=i.length,{packet:s,buffers:i}}function Rf(n,i){if(!n)return n;if($f(n)){const l={_placeholder:!0,num:i.length};return i.push(n),l}else if(Array.isArray(n)){const l=new Array(n.length);for(let s=0;s<n.length;s++)l[s]=Rf(n[s],i);return l}else if(typeof n=="object"&&!(n instanceof Date)){const l={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(l[s]=Rf(n[s],i));return l}return n}function bR(n,i){return n.data=_f(n.data,i),delete n.attachments,n}function _f(n,i){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<i.length)return i[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let l=0;l<n.length;l++)n[l]=_f(n[l],i);else if(typeof n=="object")for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(n[l]=_f(n[l],i));return n}const SR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Fe;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Fe||(Fe={}));class wR{constructor(i){this.replacer=i}encode(i){return(i.type===Fe.EVENT||i.type===Fe.ACK)&&_o(i)?this.encodeAsBinary({type:i.type===Fe.EVENT?Fe.BINARY_EVENT:Fe.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let l=""+i.type;return(i.type===Fe.BINARY_EVENT||i.type===Fe.BINARY_ACK)&&(l+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(l+=i.nsp+","),i.id!=null&&(l+=i.id),i.data!=null&&(l+=JSON.stringify(i.data,this.replacer)),l}encodeAsBinary(i){const l=vR(i),s=this.encodeAsString(l.packet),c=l.buffers;return c.unshift(s),c}}class Wf extends Dt{constructor(i){super(),this.reviver=i}add(i){let l;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");l=this.decodeString(i);const s=l.type===Fe.BINARY_EVENT;s||l.type===Fe.BINARY_ACK?(l.type=s?Fe.EVENT:Fe.ACK,this.reconstructor=new ER(l),l.attachments===0&&super.emitReserved("decoded",l)):super.emitReserved("decoded",l)}else if($f(i)||i.base64)if(this.reconstructor)l=this.reconstructor.takeBinaryData(i),l&&(this.reconstructor=null,super.emitReserved("decoded",l));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let l=0;const s={type:Number(i.charAt(0))};if(Fe[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Fe.BINARY_EVENT||s.type===Fe.BINARY_ACK){const f=l+1;for(;i.charAt(++l)!=="-"&&l!=i.length;);const d=i.substring(f,l);if(d!=Number(d)||i.charAt(l)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(i.charAt(l+1)==="/"){const f=l+1;for(;++l&&!(i.charAt(l)===","||l===i.length););s.nsp=i.substring(f,l)}else s.nsp="/";const c=i.charAt(l+1);if(c!==""&&Number(c)==c){const f=l+1;for(;++l;){const d=i.charAt(l);if(d==null||Number(d)!=d){--l;break}if(l===i.length)break}s.id=Number(i.substring(f,l+1))}if(i.charAt(++l)){const f=this.tryParse(i.substr(l));if(Wf.isPayloadValid(s.type,f))s.data=f;else throw new Error("invalid payload")}return s}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,l){switch(i){case Fe.CONNECT:return ty(l);case Fe.DISCONNECT:return l===void 0;case Fe.CONNECT_ERROR:return typeof l=="string"||ty(l);case Fe.EVENT:case Fe.BINARY_EVENT:return Array.isArray(l)&&(typeof l[0]=="number"||typeof l[0]=="string"&&SR.indexOf(l[0])===-1);case Fe.ACK:case Fe.BINARY_ACK:return Array.isArray(l)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ER{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const l=bR(this.reconPack,this.buffers);return this.finishedReconstruction(),l}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ty(n){return Object.prototype.toString.call(n)==="[object Object]"}const xR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Wf,Encoder:wR,get PacketType(){return Fe}},Symbol.toStringTag,{value:"Module"}));function Wn(n,i,l){return n.on(i,l),function(){n.off(i,l)}}const TR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class _v extends Dt{constructor(i,l,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=l,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Wn(i,"open",this.onopen.bind(this)),Wn(i,"packet",this.onpacket.bind(this)),Wn(i,"error",this.onerror.bind(this)),Wn(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...l){var s,c,f;if(TR.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(l.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(l),this;const d={type:Fe.EVENT,data:l};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof l[l.length-1]=="function"){const b=this.ids++,y=l.pop();this._registerAckCallback(b,y),d.id=b}const p=(c=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||c===void 0?void 0:c.writable,g=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!p||(g?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(i,l){var s;const c=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(c===void 0){this.acks[i]=l;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===i&&this.sendBuffer.splice(p,1);l.call(this,new Error("operation has timed out"))},c),d=(...p)=>{this.io.clearTimeoutFn(f),l.apply(this,p)};d.withError=!0,this.acks[i]=d}emitWithAck(i,...l){return new Promise((s,c)=>{const f=(d,p)=>d?c(d):s(p);f.withError=!0,l.push(f),this.emit(i,...l)})}_addToQueue(i){let l;typeof i[i.length-1]=="function"&&(l=i.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((c,...f)=>(this._queue[0],c!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),l&&l(c)):(this._queue.shift(),l&&l(null,...f)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const l=this._queue[0];l.pending&&!i||(l.pending=!0,l.tryCount++,this.flags=l.flags,this.emit.apply(this,l.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:Fe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,l){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,l),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(s=>String(s.id)===i)){const s=this.acks[i];delete this.acks[i],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case Fe.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Fe.EVENT:case Fe.BINARY_EVENT:this.onevent(i);break;case Fe.ACK:case Fe.BINARY_ACK:this.onack(i);break;case Fe.DISCONNECT:this.ondisconnect();break;case Fe.CONNECT_ERROR:this.destroy();const s=new Error(i.data.message);s.data=i.data.data,this.emitReserved("connect_error",s);break}}onevent(i){const l=i.data||[];i.id!=null&&l.push(this.ack(i.id)),this.connected?this.emitEvent(l):this.receiveBuffer.push(Object.freeze(l))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const l=this._anyListeners.slice();for(const s of l)s.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const l=this;let s=!1;return function(...c){s||(s=!0,l.packet({type:Fe.ACK,id:i,data:c}))}}onack(i){const l=this.acks[i.id];typeof l=="function"&&(delete this.acks[i.id],l.withError&&i.data.unshift(null),l.apply(this,i.data))}onconnect(i,l){this.id=i,this.recovered=l&&this._pid===l,this._pid=l,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Fe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const l=this._anyListeners;for(let s=0;s<l.length;s++)if(i===l[s])return l.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const l=this._anyOutgoingListeners;for(let s=0;s<l.length;s++)if(i===l[s])return l.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const l=this._anyOutgoingListeners.slice();for(const s of l)s.apply(this,i.data)}}}function qr(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}qr.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),l=Math.floor(i*this.jitter*n);n=(Math.floor(i*10)&1)==0?n-l:n+l}return Math.min(n,this.max)|0};qr.prototype.reset=function(){this.attempts=0};qr.prototype.setMin=function(n){this.ms=n};qr.prototype.setMax=function(n){this.max=n};qr.prototype.setJitter=function(n){this.jitter=n};class Cf extends Dt{constructor(i,l){var s;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(l=i,i=void 0),l=l||{},l.path=l.path||"/socket.io",this.opts=l,Lo(this,l),this.reconnection(l.reconnection!==!1),this.reconnectionAttempts(l.reconnectionAttempts||1/0),this.reconnectionDelay(l.reconnectionDelay||1e3),this.reconnectionDelayMax(l.reconnectionDelayMax||5e3),this.randomizationFactor((s=l.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new qr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(l.timeout==null?2e4:l.timeout),this._readyState="closed",this.uri=i;const c=l.parser||xR;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=l.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var l;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(l=this.backoff)===null||l===void 0||l.setMin(i),this)}randomizationFactor(i){var l;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(l=this.backoff)===null||l===void 0||l.setJitter(i),this)}reconnectionDelayMax(i){var l;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(l=this.backoff)===null||l===void 0||l.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new dR(this.uri,this.opts);const l=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const c=Wn(l,"open",function(){s.onopen(),i&&i()}),f=p=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",p),i?i(p):this.maybeReconnectOnOpen()},d=Wn(l,"error",f);if(this._timeout!==!1){const p=this._timeout,g=this.setTimeoutFn(()=>{c(),f(new Error("timeout")),l.close()},p);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(c),this.subs.push(d),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Wn(i,"ping",this.onping.bind(this)),Wn(i,"data",this.ondata.bind(this)),Wn(i,"error",this.onerror.bind(this)),Wn(i,"close",this.onclose.bind(this)),Wn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(l){this.onclose("parse error",l)}}ondecoded(i){Uo(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,l){let s=this.nsps[i];return s?this._autoConnect&&!s.active&&s.connect():(s=new _v(this,i,l),this.nsps[i]=s),s}_destroy(i){const l=Object.keys(this.nsps);for(const s of l)if(this.nsps[s].active)return;this._close()}_packet(i){const l=this.encoder.encode(i);for(let s=0;s<l.length;s++)this.engine.write(l[s],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,l){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,l),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const l=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(c=>{c?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",c)):i.onreconnect()}))},l);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Ll={};function Co(n,i){typeof n=="object"&&(i=n,n=void 0),i=i||{};const l=hR(n,i.path||"/socket.io"),s=l.source,c=l.id,f=l.path,d=Ll[c]&&f in Ll[c].nsps,p=i.forceNew||i["force new connection"]||i.multiplex===!1||d;let g;return p?g=new Cf(s,i):(Ll[c]||(Ll[c]=new Cf(s,i)),g=Ll[c]),l.query&&!i.query&&(i.query=l.queryKey),g.socket(l.path,i)}Object.assign(Co,{Manager:Cf,Socket:_v,io:Co,connect:Co});const bo="/events",$R={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",INPUT:"input",RESIZE:"resize",TERMINAL_INPUT:"terminal:input",TERMINAL_RESIZE:"terminal:resize"},hi={SESSION_STDOUT:"session:stdout",SESSION_PATCH:"session:patch",SESSION_EXIT:"session:exit",SESSION_COMPLETED:"session:completed",SESSION_ID:"session:sessionId",SESSION_ERROR:"session:error",TASK_UPDATED:"task:updated",TASK_DELETED:"task:deleted",TERMINAL_STDOUT:"terminal:stdout",TERMINAL_EXIT:"terminal:exit",TERMINAL_SUBSCRIBED:"terminal:subscribed",TERMINAL_UNSUBSCRIBED:"terminal:unsubscribed",WORKSPACE_SETUP_PROGRESS:"workspace:setup_progress",WORKSPACE_COMMIT_MESSAGE_UPDATED:"workspace:commit_message_updated",WORKSPACE_HIBERNATED:"workspace:hibernated",WORKSPACE_GIT_CHANGED:"workspace:git_changed",TEAM_RUN_INVALIDATED:"team-run:invalidated"};class RR{socket=null;baseUrl;visibilityHandler=null;constructor(){this.baseUrl=""}getSocket(){return this.socket||(this.socket=Co(`${this.baseUrl}${bo}`,{autoConnect:!1,transports:["websocket"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:1e4}),this.socket.on("connect",()=>{console.log(`[Socket] Connected to ${bo} t=${Date.now()}`)}),this.socket.on("disconnect",i=>{console.log(`[Socket] Disconnected from ${bo}: t=${Date.now()}`,i)}),this.socket.on("connect_error",i=>{console.error(`[Socket] Connection error on ${bo}: t=${Date.now()}`,i.message)})),this.socket}connect(){const i=this.getSocket();return i.connected||i.connect(),this.visibilityHandler||(this.visibilityHandler=()=>{document.visibilityState==="visible"&&this.socket&&!this.socket.connected&&(console.log("[Socket] Page became visible, socket disconnected — reconnecting"),this.socket.connect())},document.addEventListener("visibilitychange",this.visibilityHandler)),i}disconnect(){this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.socket&&(this.socket.disconnect(),this.socket=null)}isConnected(){return this.socket?.connected??!1}}const Xl=new RR;function Cv(n,i,l){const s=f=>Ao(f.queryKey,l),c=n.getQueriesData({predicate:s});return n.setQueriesData({predicate:s},f=>{if(!f||!Array.isArray(f.data))return f;const d=f.data.filter(p=>p.id!==i);return d.length===f.data.length?f:{...f,data:d,total:Math.max(0,f.total-(f.data.length-d.length))}}),n.removeQueries({queryKey:Ne.tasks.detail(i),exact:!0}),n.removeQueries({queryKey:Ne.tasks.body(i),exact:!0}),c}function Ao(n,i){return!Array.isArray(n)||n[0]!=="tasks"||n[1]!=="list"?!1:i?n[2]===i:!0}function _R(n,i){for(const[l,s]of i)n.setQueryData(l,s)}function WR(n,i){const l={};return i?.status!=null&&(l.status=i.status),i?.page!=null&&(l.page=String(i.page)),i?.limit!=null&&(l.limit=String(i.limit)),Ba({queryKey:Ne.tasks.list(n,i),queryFn:()=>lt.get(`/projects/${n}/tasks`,{params:l}),enabled:!!n})}function e2(n,i=!0){return Ba({queryKey:Ne.tasks.body(n),queryFn:()=>lt.get(`/tasks/${n}/body`),enabled:!!n&&i})}function t2(){const n=gt();return qt({mutationFn:({id:i,status:l})=>lt.patch(`/tasks/${i}/status`,{status:l}),onSuccess:i=>{n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.tasks.detail(i.id)})}})}function n2(){const n=gt();return qt({mutationFn:i=>lt.delete(`/tasks/${i}`),onMutate:async i=>(await n.cancelQueries({queryKey:Ne.tasks.all}),{snapshots:Cv(n,i)}),onError:(i,l,s)=>{s?.snapshots&&_R(n,s.snapshots)},onSuccess:()=>{n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.projects.all})}})}function a2(){const n=gt();return qt({mutationFn:i=>lt.post(`/tasks/${i}/retry`,{}),onSuccess:i=>{n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.workspaces.all}),n.invalidateQueries({queryKey:Ne.tasks.detail(i.id)}),n.invalidateQueries({queryKey:Ne.tasks.body(i.id)})}})}function CR(){const n=gt();T.useEffect(()=>{const i=Xl.connect(),l=()=>{n.invalidateQueries({queryKey:Ne.tasks.all})},s=async f=>{await n.cancelQueries({predicate:d=>Ao(d.queryKey,f.projectId)}),n.invalidateQueries({predicate:d=>Ao(d.queryKey,f.projectId)}),n.invalidateQueries({queryKey:Ne.tasks.detail(f.taskId)})},c=f=>{Cv(n,f.taskId,f.projectId),n.invalidateQueries({predicate:d=>Ao(d.queryKey,f.projectId)}),n.invalidateQueries({queryKey:Ne.projects.all})};return i.on("connect",l),i.on(hi.TASK_UPDATED,s),i.on(hi.TASK_DELETED,c),()=>{i.off("connect",l),i.off(hi.TASK_UPDATED,s),i.off(hi.TASK_DELETED,c)}},[n])}const Me={all:["team-runs"],memberPresets:["member-presets"],memberPresetDetail:n=>["member-presets","detail",n],teamTemplates:["team-templates"],teamTemplateDetail:n=>["team-templates","detail",n],task:n=>["team-runs","task",n],detail:n=>["team-runs","detail",n],messages:n=>["team-runs","messages",n],messageDetail:(n,i)=>["team-runs","messages",n,i],workRequests:n=>["team-runs","work-requests",n],invocations:n=>["team-runs","invocations",n]},Av=5e3;function Ov(n,i){const l=n??[],s=l.findIndex(c=>c.id===i.id);return s>=0?l.map((c,f)=>f===s?i:c):[...l,i]}function ny(n,i){return!n||n.id!==i.teamRunId?n:{...n,messages:Ov(n.messages,i)}}function Mv(n,i){const l=n.getQueryData(Me.detail(i));if(l?.taskId)return l.taskId;const s=n.getQueriesData({queryKey:Me.all});for(const[,c]of s)if(c?.id===i&&c.taskId)return c.taskId}function Hr(n,i){const l=Mv(n,i);n.invalidateQueries({queryKey:Me.all}),n.invalidateQueries({queryKey:Me.detail(i)}),n.invalidateQueries({queryKey:Me.workRequests(i)}),n.invalidateQueries({queryKey:Me.invocations(i)}),n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.workspaces.all}),l&&(n.invalidateQueries({queryKey:Ne.tasks.detail(l)}),n.invalidateQueries({queryKey:Me.task(l)}),n.invalidateQueries({queryKey:Ne.workspaces.list(l)}))}function i2(){return Ba({queryKey:Me.memberPresets,queryFn:()=>lt.get("/member-presets")})}function r2(){const n=gt();return qt({mutationFn:i=>lt.post("/member-presets",i),onSuccess:()=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function l2(){const n=gt();return qt({mutationFn:({id:i,data:l})=>lt.patch(`/member-presets/${i}`,l),onSuccess:(i,l)=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.memberPresetDetail(l.id)}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function s2(){const n=gt();return qt({mutationFn:i=>lt.delete(`/member-presets/${i}`),onSuccess:()=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function o2(){return Ba({queryKey:Me.teamTemplates,queryFn:()=>lt.get("/team-templates")})}function u2(){const n=gt();return qt({mutationFn:i=>lt.post("/team-templates",i),onSuccess:()=>{n.invalidateQueries({queryKey:Me.teamTemplates})}})}function c2(){const n=gt();return qt({mutationFn:({id:i,data:l})=>lt.patch(`/team-templates/${i}`,l),onSuccess:(i,l)=>{n.invalidateQueries({queryKey:Me.teamTemplates}),n.invalidateQueries({queryKey:Me.teamTemplateDetail(l.id)})}})}function f2(){const n=gt();return qt({mutationFn:i=>lt.delete(`/team-templates/${i}`),onSuccess:()=>{n.invalidateQueries({queryKey:Me.teamTemplates})}})}function d2(){const n=gt();return qt({mutationFn:({taskId:i,...l})=>lt.post(`/tasks/${i}/team-runs`,l),onSuccess:(i,l)=>{n.setQueryData(Me.task(l.taskId),i),n.setQueryData(Me.detail(i.id),i),n.setQueryData(Me.messages(i.id),i.messages??[]),n.setQueryData(Me.workRequests(i.id),i.workRequests??[]),n.setQueryData(Me.invocations(i.id),i.invocations??[]),n.invalidateQueries({queryKey:Me.task(l.taskId)}),n.invalidateQueries({queryKey:Me.all}),n.invalidateQueries({queryKey:Ne.tasks.all}),n.invalidateQueries({queryKey:Ne.tasks.detail(l.taskId)}),n.invalidateQueries({queryKey:Ne.workspaces.all}),n.invalidateQueries({queryKey:Ne.workspaces.list(l.taskId)})},onError:(i,l)=>{n.invalidateQueries({queryKey:Me.task(l.taskId)}),n.invalidateQueries({queryKey:Me.all})}})}function h2(n){return Ba({queryKey:Me.task(n),queryFn:async()=>{try{return await lt.get(`/tasks/${n}/team-run`)}catch(i){if(i instanceof Xf&&i.status===404)return null;throw i}},enabled:!!n,retry:!1,refetchInterval:i=>i.state.data?Av:!1})}function m2(n){return Ba({queryKey:Me.messages(n),queryFn:async()=>{try{return await lt.get(`/team-runs/${n}/messages`)}catch(i){if(i instanceof Xf&&i.status===404)return[];throw i}},enabled:!!n,retry:!1,refetchInterval:Av})}function p2(n,i,l=!1){return Ba({queryKey:Me.messageDetail(n,i),queryFn:()=>lt.get(`/team-runs/${n}/messages/${i}`),enabled:!!(n&&i&&l),retry:!1})}function g2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/${n}/messages`,l),onSuccess:l=>{i.setQueryData(Me.messages(n),c=>Ov(c,l)),i.setQueryData(Me.detail(n),c=>ny(c,l));const s=Mv(i,n);s&&i.setQueryData(Me.task(s),c=>ny(c,l)),i.invalidateQueries({queryKey:Me.all}),i.invalidateQueries({queryKey:["tasks"]}),i.invalidateQueries({queryKey:Ne.workspaces.all})}})}function y2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/${n}/members`,l),onSuccess:()=>{Hr(i,n)}})}function v2(n){const i=gt();return qt({mutationFn:({memberId:l,data:s})=>lt.patch(`/team-runs/${n}/members/${l}`,s),onSuccess:()=>{Hr(i,n)}})}function b2(n){const i=gt();return qt({mutationFn:({memberId:l,stopActive:s=!0,cancelQueued:c=!0})=>lt.post(`/team-runs/${n}/members/${l}/remove`,{stopActive:s,cancelQueued:c}),onSuccess:()=>{Hr(i,n)}})}function S2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/work-requests/${l}/approve`),onSuccess:()=>{Hr(i,n)}})}function w2(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/work-requests/${l}/reject`),onSuccess:()=>{Hr(i,n)}})}function E2(n){const i=gt();return qt({mutationFn:({memberId:l,cancelQueued:s})=>lt.post(`/team-runs/${n}/members/${l}/stop`,{cancelQueued:s}),onSuccess:()=>{Hr(i,n)}})}function ua(n,i){return n.scopes.includes(i)}function AR(){const n=gt();T.useEffect(()=>{const i=Xl.connect(),l=f=>{if(!f){n.invalidateQueries({queryKey:Me.all});return}n.invalidateQueries({queryKey:Me.detail(f.teamRunId)}),(ua(f,"team-run")||ua(f,"team-members"))&&n.invalidateQueries({queryKey:Me.all}),ua(f,"room-messages")&&n.invalidateQueries({queryKey:Me.messages(f.teamRunId)}),ua(f,"work-requests")&&n.invalidateQueries({queryKey:Me.workRequests(f.teamRunId)}),ua(f,"agent-invocations")&&n.invalidateQueries({queryKey:Me.invocations(f.teamRunId)}),f.taskId&&n.invalidateQueries({queryKey:Me.task(f.taskId)}),f.taskId&&(ua(f,"task")||ua(f,"team-run"))&&n.invalidateQueries({queryKey:Ne.tasks.detail(f.taskId)}),f.projectId&&(ua(f,"task")||ua(f,"team-run"))&&n.invalidateQueries({queryKey:Ne.tasks.list(f.projectId)}),ua(f,"workspaces")&&(n.invalidateQueries({queryKey:Ne.workspaces.all}),f.taskId&&n.invalidateQueries({queryKey:Ne.workspaces.list(f.taskId)}))},s=()=>l(),c=f=>l(f);return i.on("connect",s),i.on(hi.TEAM_RUN_INVALIDATED,c),()=>{i.off("connect",s),i.off(hi.TEAM_RUN_INVALIDATED,c)}},[n])}const OR=Iy(n=>({visibleContext:null,setVisibleContext:i=>n({visibleContext:i})}));function MR(n){n.invalidateQueries({queryKey:Ne.git.all,refetchType:"none"}),n.invalidateQueries({queryKey:["workspaces","gitStatus"],refetchType:"none"}),n.invalidateQueries({queryKey:["workspaces","diff"],refetchType:"none"})}function DR(n,i){i.workingDir&&(n.invalidateQueries({queryKey:Ne.git.changes(i.workingDir),refetchType:"none"}),n.invalidateQueries({queryKey:Ne.git.log(i.workingDir),refetchType:"none"})),i.workspaceId&&n.invalidateQueries({queryKey:Ne.workspaces.gitStatus(i.workspaceId),refetchType:"none"})}function ay(n,i,l){if(!(!i?.workspaceId||!i?.workingDir)){if(!l||l.workspaceId!==i.workspaceId||l.workingDir!==i.workingDir){DR(n,i);return}if(l.tab==="changes"){n.invalidateQueries({queryKey:Ne.git.changes(i.workingDir)}),n.invalidateQueries({queryKey:Ne.workspaces.gitStatus(i.workspaceId)}),n.invalidateQueries({queryKey:Ne.git.log(i.workingDir),refetchType:"none"});return}n.invalidateQueries({queryKey:Ne.git.log(i.workingDir)}),n.invalidateQueries({queryKey:Ne.git.changes(i.workingDir),refetchType:"none"}),n.invalidateQueries({queryKey:Ne.workspaces.gitStatus(i.workspaceId),refetchType:"none"})}}function NR(){const n=gt(),i=OR(l=>l.visibleContext);T.useEffect(()=>{const l=Xl.connect(),s=()=>{MR(n),i&&ay(n,{workspaceId:i.workspaceId,workingDir:i.workingDir},i)},c=f=>{ay(n,f,i)};return l.on("connect",s),l.on(hi.WORKSPACE_GIT_CHANGED,c),()=>{l.off("connect",s),l.off(hi.WORKSPACE_GIT_CHANGED,c)}},[n,i])}function kR(){return CR(),AR(),NR(),null}function zR(){return T.useEffect(()=>(Xl.connect(),()=>Xl.disconnect()),[]),q.jsx(yS,{client:i1,children:q.jsxs(hx,{children:[q.jsx(kR,{}),q.jsx(NT,{}),q.jsx(a1,{position:"top-center",toastOptions:{className:"text-sm",style:{fontFamily:"inherit"},classNames:{error:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",success:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",default:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg"}}})]})})}const UR="/api/tunnel/bootstrap";async function LR(){const n=new URL(window.location.href),i=n.searchParams.get("token");if(!i)return;const l=await fetch(`${UR}?token=${encodeURIComponent(i)}`,{method:"POST",credentials:"same-origin"});if(!l.ok)throw new Error(`Tunnel bootstrap failed (${l.status})`);n.searchParams.delete("token"),window.history.replaceState({},"",n.toString())}async function jR(){try{await LR()}catch(n){console.error("[Tunnel] Failed to bootstrap tunnel session",n)}Pb.createRoot(document.getElementById("root")).render(q.jsx(T.StrictMode,{children:q.jsx(zR,{})}))}jR();export{uS as $,c2 as A,Pg as B,f2 as C,JR as D,nT as E,Yg as F,yy as G,Xl as H,hi as I,$R as J,JE as K,Fy as L,ZR as M,FR as N,pT as O,HE as P,Vy as Q,Aw as R,mT as S,ql as T,dx as U,XE as V,iy as W,ex as X,GE as Y,VR as Z,$E as _,lx as a,ng as a0,qR as a1,BR as a2,Lr as a3,Lt as a4,Oo as a5,sy as a6,vS as a7,wS as a8,RS as a9,WR as aA,n2 as aB,t2 as aC,tT as aD,tv as aE,Iy as aF,ES as aa,xS as ab,tn as ac,CS as ad,ag as ae,_S as af,TS as ag,AS as ah,ee as ai,S2 as aj,w2 as ak,E2 as al,p2 as am,ea as an,y2 as ao,v2 as ap,b2 as aq,Xf as ar,OR as as,d2 as at,g2 as au,h2 as av,m2 as aw,e2 as ax,a2 as ay,Me as az,QR as b,sx as c,YR as d,KR as e,GR as f,mn as g,yi as h,Ba as i,q as j,gt as k,qt as l,lt as m,PR as n,XR as o,_t as p,Ne as q,T as r,i2 as s,XS as t,Pf as u,o2 as v,r2 as w,l2 as x,s2 as y,u2 as z};
13
+ Please change the parent <Route path="${J}"> to <Route path="${J==="/"?"*":`${J}/*`}">.`)}let x=Fi(),N;N=x;let L=N.pathname||"/",B=L;if(b!=="/"){let J=b.replace(/^\//,"").split("/");B="/"+L.replace(/^\//,"").split("/").slice(J.length).join("/")}let K=ci(n,{pathname:B});return Dt(y||K!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Dt(K==null||K[K.length-1].route.element!==void 0||K[K.length-1].route.Component!==void 0||K[K.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),jw(K&&K.map(J=>Object.assign({},J,{params:Object.assign({},g,J.params),pathname:ca([b,f.encodeLocation?f.encodeLocation(J.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:J.pathname]),pathnameBase:J.pathnameBase==="/"?b:ca([b,f.encodeLocation?f.encodeLocation(J.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:J.pathnameBase])})),d,l,s,c)}function Nw(){let n=Hw(),i=Kl(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},i),l?T.createElement("pre",{style:c},l):null,d)}var Dw=T.createElement(Nw,null),Vy=class extends T.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const l=Tw(n.digest);l&&(n=l)}let i=n!==void 0?T.createElement(ta.Provider,{value:this.props.routeContext},T.createElement(Qf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?T.createElement(kw,{error:n},i):i}};Vy.contextType=Ly;var Wc=new WeakMap;function kw({children:n,error:i}){let{basename:l}=T.useContext(Gn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let s=Ew(i.digest);if(s){let c=Wc.get(i);if(c)throw c;let f=Ty(s.location,l);if(Ey&&!Wc.get(i))if(f.isExternal||s.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:s.replace}));throw Wc.set(i,d),d}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function zw({routeContext:n,match:i,children:l}){let s=T.useContext(Xi);return s&&s.static&&s.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=i.route.id),T.createElement(ta.Provider,{value:n},l)}function jw(n,i=[],l=null,s=null,c=null){if(n==null){if(!l)return null;if(l.errors)n=l.matches;else if(i.length===0&&!l.initialized&&l.matches.length>0)n=l.matches;else return null}let f=n,d=l?.errors;if(d!=null){let b=f.findIndex(y=>y.route.id&&d?.[y.route.id]!==void 0);Ue(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let p=!1,g=-1;if(l)for(let b=0;b<f.length;b++){let y=f[b];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=b),y.route.id){let{loaderData:x,errors:N}=l,L=y.route.loader&&!x.hasOwnProperty(y.route.id)&&(!N||N[y.route.id]===void 0);if(y.route.lazy||L){p=!0,g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}let m=l&&s?(b,y)=>{s(b,{location:l.location,params:l.matches?.[0]?.params??{},unstable_pattern:Fl(l.matches),errorInfo:y})}:void 0;return f.reduceRight((b,y,x)=>{let N,L=!1,B=null,K=null;l&&(N=d&&y.route.id?d[y.route.id]:void 0,B=y.route.errorElement||Dw,p&&(g<0&&x===0?(Yy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,K=null):g===x&&(L=!0,K=y.route.hydrateFallbackElement||null)));let G=i.concat(f.slice(0,x+1)),J=()=>{let $;return N?$=B:L?$=K:y.route.Component?$=T.createElement(y.route.Component,null):y.route.element?$=y.route.element:$=b,T.createElement(zw,{match:y,routeContext:{outlet:b,matches:G,isDataRoute:l!=null},children:$})};return l&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?T.createElement(Vy,{location:l.location,revalidation:l.revalidation,component:B,error:N,children:J(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:m}):J()},null)}function Vf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lw(n){let i=T.useContext(Xi);return Ue(i,Vf(n)),i}function Uw(n){let i=T.useContext(Zl);return Ue(i,Vf(n)),i}function Bw(n){let i=T.useContext(ta);return Ue(i,Vf(n)),i}function Yf(n){let i=Bw(n),l=i.matches[i.matches.length-1];return Ue(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function qw(){return Yf("useRouteId")}function Hw(){let n=T.useContext(Qf),i=Uw("useRouteError"),l=Yf("useRouteError");return n!==void 0?n:i.errors?.[l]}function Qw(){let{router:n}=Lw("useNavigate"),i=Yf("useNavigate"),l=T.useRef(!1);return Hy(()=>{l.current=!0}),T.useCallback(async(c,f={})=>{Dt(l.current,qy),l.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:i,...f}))},[n,i])}var Ag={};function Yy(n,i,l){!i&&!Ag[n]&&(Ag[n]=!0,Dt(!1,l))}var Og={};function Mg(n,i){!n&&!Og[i]&&(Og[i]=!0,console.warn(i))}var Vw="useOptimistic",Ng=Vb[Vw],Yw=()=>{};function Gw(n){return Ng?Ng(n):[n,Yw]}function Kw(n){let i={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&Dt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:T.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&Dt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:T.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&Dt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:T.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),i}var Pw=["HydrateFallback","hydrateFallbackElement"],Xw=class{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",n(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",i(l))}})}};function Fw({router:n,flushSync:i,onError:l,unstable_useTransitions:s}){s=bw()||s;let[f,d]=T.useState(n.state),[p,g]=Gw(f),[m,b]=T.useState(),[y,x]=T.useState({isTransitioning:!1}),[N,L]=T.useState(),[B,K]=T.useState(),[G,J]=T.useState(),$=T.useRef(new Map),ye=T.useCallback((Y,{deletedFetchers:oe,newErrors:Ae,flushSync:Ce,viewTransitionOpts:Te})=>{Ae&&l&&Object.values(Ae).forEach(Le=>l(Le,{location:Y.location,params:Y.matches[0]?.params??{},unstable_pattern:Fl(Y.matches)})),Y.fetchers.forEach((Le,we)=>{Le.data!==void 0&&$.current.set(we,Le.data)}),oe.forEach(Le=>$.current.delete(Le)),Mg(Ce===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let je=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(Mg(Te==null||je,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Te||!je){i&&Ce?i(()=>d(Y)):s===!1?d(Y):T.startTransition(()=>{s===!0&&g(Le=>Dg(Le,Y)),d(Y)});return}if(i&&Ce){i(()=>{B&&(N?.resolve(),B.skipTransition()),x({isTransitioning:!0,flushSync:!0,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation})});let Le=n.window.document.startViewTransition(()=>{i(()=>d(Y))});Le.finished.finally(()=>{i(()=>{L(void 0),K(void 0),b(void 0),x({isTransitioning:!1})})}),i(()=>K(Le));return}B?(N?.resolve(),B.skipTransition(),J({state:Y,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation})):(b(Y),x({isTransitioning:!0,flushSync:!1,currentLocation:Te.currentLocation,nextLocation:Te.nextLocation}))},[n.window,i,B,N,s,g,l]);T.useLayoutEffect(()=>n.subscribe(ye),[n,ye]),T.useEffect(()=>{y.isTransitioning&&!y.flushSync&&L(new Xw)},[y]),T.useEffect(()=>{if(N&&m&&n.window){let Y=m,oe=N.promise,Ae=n.window.document.startViewTransition(async()=>{s===!1?d(Y):T.startTransition(()=>{s===!0&&g(Ce=>Dg(Ce,Y)),d(Y)}),await oe});Ae.finished.finally(()=>{L(void 0),K(void 0),b(void 0),x({isTransitioning:!1})}),K(Ae)}},[m,N,n.window,s,g]),T.useEffect(()=>{N&&m&&p.location.key===m.location.key&&N.resolve()},[N,B,p.location,m]),T.useEffect(()=>{!y.isTransitioning&&G&&(b(G.state),x({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}),J(void 0))},[y.isTransitioning,G]);let he=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:Y=>n.navigate(Y),push:(Y,oe,Ae)=>n.navigate(Y,{state:oe,preventScrollReset:Ae?.preventScrollReset}),replace:(Y,oe,Ae)=>n.navigate(Y,{replace:!0,state:oe,preventScrollReset:Ae?.preventScrollReset})}),[n]),me=n.basename||"/",A=T.useMemo(()=>({router:n,navigator:he,static:!1,basename:me,onError:l}),[n,he,me,l]);return T.createElement(T.Fragment,null,T.createElement(Xi.Provider,{value:A},T.createElement(Zl.Provider,{value:p},T.createElement(Uy.Provider,{value:$.current},T.createElement(Hf.Provider,{value:y},T.createElement($w,{basename:me,location:p.location,navigationType:p.historyAction,navigator:he,unstable_useTransitions:s},T.createElement(Zw,{routes:n.routes,future:n.future,state:p,onError:l})))))),null)}function Dg(n,i){return{...n,navigation:i.navigation.state!=="idle"?i.navigation:n.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:n.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:n.actionData,fetchers:i.fetchers}}var Zw=T.memo(Jw);function Jw({routes:n,future:i,state:l,onError:s}){return Mw(n,void 0,l,s,i)}function Iw(n){return Aw(n.context)}function $w({basename:n="/",children:i=null,location:l,navigationType:s="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){Ue(!Jl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),g=T.useMemo(()=>({basename:p,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[p,c,f,d]);typeof l=="string"&&(l=gi(l));let{pathname:m="/",search:b="",hash:y="",state:x=null,key:N="default"}=l,L=T.useMemo(()=>{let B=Vn(m,p);return B==null?null:{location:{pathname:B,search:b,hash:y,state:x,key:N},navigationType:s}},[p,m,b,y,x,N,s]);return Dt(L!=null,`<Router basename="${p}"> is not able to match the URL "${m}${b}${y}" because it does not start with the basename, so the <Router> won't render anything.`),L==null?null:T.createElement(Gn.Provider,{value:g},T.createElement(ko.Provider,{children:i,value:L}))}var wo="get",xo="application/x-www-form-urlencoded";function zo(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Ww(n){return zo(n)&&n.tagName.toLowerCase()==="button"}function ex(n){return zo(n)&&n.tagName.toLowerCase()==="form"}function tx(n){return zo(n)&&n.tagName.toLowerCase()==="input"}function nx(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function ax(n,i){return n.button===0&&(!i||i==="_self")&&!nx(n)}var mo=null;function ix(){if(mo===null)try{new FormData(document.createElement("form"),0),mo=!1}catch{mo=!0}return mo}var rx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ef(n){return n!=null&&!rx.has(n)?(Dt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xo}"`),null):n}function lx(n,i){let l,s,c,f,d;if(ex(n)){let p=n.getAttribute("action");s=p?Vn(p,i):null,l=n.getAttribute("method")||wo,c=ef(n.getAttribute("enctype"))||xo,f=new FormData(n)}else if(Ww(n)||tx(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||p.getAttribute("action");if(s=g?Vn(g,i):null,l=n.getAttribute("formmethod")||p.getAttribute("method")||wo,c=ef(n.getAttribute("formenctype"))||ef(p.getAttribute("enctype"))||xo,f=new FormData(p,n),!ix()){let{name:m,type:b,value:y}=n;if(b==="image"){let x=m?`${m}.`:"";f.append(`${x}x`,"0"),f.append(`${x}y`,"0")}else m&&f.append(m,y)}}else{if(zo(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=wo,s=null,c=xo,d=n}return f&&c==="text/plain"&&(d=f,f=void 0),{action:s,method:l.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Gf(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function sx(n,i,l,s){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return l?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${s}`:c.pathname=`${c.pathname}.${s}`:c.pathname==="/"?c.pathname=`_root.${s}`:i&&Vn(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${s}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${s}`,c}async function ox(n,i){if(n.id in i)return i[n.id];try{let l=await import(n.module);return i[n.id]=l,l}catch(l){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ux(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function cx(n,i,l){let s=await Promise.all(n.map(async c=>{let f=i.routes[c.route.id];if(f){let d=await ox(f,l);return d.links?d.links():[]}return[]}));return mx(s.flat(1).filter(ux).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function kg(n,i,l,s,c,f){let d=(g,m)=>l[m]?g.route.id!==l[m].route.id:!0,p=(g,m)=>l[m].pathname!==g.pathname||l[m].route.path?.endsWith("*")&&l[m].params["*"]!==g.params["*"];return f==="assets"?i.filter((g,m)=>d(g,m)||p(g,m)):f==="data"?i.filter((g,m)=>{let b=s.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(d(g,m)||p(g,m))return!0;if(g.route.shouldRevalidate){let y=g.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function fx(n,i,{includeHydrateFallback:l}={}){return dx(n.map(s=>{let c=i.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),l&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function dx(n){return[...new Set(n)]}function hx(n){let i={},l=Object.keys(n).sort();for(let s of l)i[s]=n[s];return i}function mx(n,i){let l=new Set;return new Set(i),n.reduce((s,c)=>{let f=JSON.stringify(hx(c));return l.has(f)||(l.add(f),s.push({key:f,link:c})),s},[])}function Gy(){let n=T.useContext(Xi);return Gf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function px(){let n=T.useContext(Zl);return Gf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Kf=T.createContext(void 0);Kf.displayName="FrameworkContext";function Ky(){let n=T.useContext(Kf);return Gf(n,"You must render this element inside a <HydratedRouter> element"),n}function gx(n,i){let l=T.useContext(Kf),[s,c]=T.useState(!1),[f,d]=T.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:b,onTouchStart:y}=i,x=T.useRef(null);T.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let B=G=>{G.forEach(J=>{d(J.isIntersecting)})},K=new IntersectionObserver(B,{threshold:.5});return x.current&&K.observe(x.current),()=>{K.disconnect()}}},[n]),T.useEffect(()=>{if(s){let B=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(B)}}},[s]);let N=()=>{c(!0)},L=()=>{c(!1),d(!1)};return l?n!=="intent"?[f,x,{}]:[f,x,{onFocus:zl(p,N),onBlur:zl(g,L),onMouseEnter:zl(m,N),onMouseLeave:zl(b,L),onTouchStart:zl(y,N)}]:[!1,x,{}]}function zl(n,i){return l=>{n&&n(l),l.defaultPrevented||i(l)}}function yx({page:n,...i}){let{router:l}=Gy(),s=T.useMemo(()=>ci(l.routes,n,l.basename),[l.routes,n,l.basename]);return s?T.createElement(bx,{page:n,matches:s,...i}):null}function vx(n){let{manifest:i,routeModules:l}=Ky(),[s,c]=T.useState([]);return T.useEffect(()=>{let f=!1;return cx(n,i,l).then(d=>{f||c(d)}),()=>{f=!0}},[n,i,l]),s}function bx({page:n,matches:i,...l}){let s=Fi(),{future:c,manifest:f,routeModules:d}=Ky(),{basename:p}=Gy(),{loaderData:g,matches:m}=px(),b=T.useMemo(()=>kg(n,i,m,f,s,"data"),[n,i,m,f,s]),y=T.useMemo(()=>kg(n,i,m,f,s,"assets"),[n,i,m,f,s]),x=T.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let B=new Set,K=!1;if(i.forEach(J=>{let $=f.routes[J.route.id];!$||!$.hasLoader||(!b.some(ye=>ye.route.id===J.route.id)&&J.route.id in g&&d[J.route.id]?.shouldRevalidate||$.hasClientLoader?K=!0:B.add(J.route.id))}),B.size===0)return[];let G=sx(n,p,c.unstable_trailingSlashAwareDataRequests,"data");return K&&B.size>0&&G.searchParams.set("_routes",i.filter(J=>B.has(J.route.id)).map(J=>J.route.id).join(",")),[G.pathname+G.search]},[p,c.unstable_trailingSlashAwareDataRequests,g,s,f,b,i,n,d]),N=T.useMemo(()=>fx(y,f),[y,f]),L=vx(y);return T.createElement(T.Fragment,null,x.map(B=>T.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...l})),N.map(B=>T.createElement("link",{key:B,rel:"modulepreload",href:B,...l})),L.map(({key:B,link:K})=>T.createElement("link",{key:B,nonce:l.nonce,...K,crossOrigin:K.crossOrigin??l.crossOrigin})))}function Sx(...n){return i=>{n.forEach(l=>{typeof l=="function"?l(i):l!=null&&(l.current=i)})}}var wx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wx&&(window.__reactRouterVersion="7.13.0")}catch{}function xx(n,i){return FS({basename:i?.basename,getContext:i?.getContext,future:i?.future,history:cS({window:i?.window}),hydrationData:Ex(),routes:n,mapRouteProperties:Kw,hydrationRouteProperties:Pw,dataStrategy:i?.dataStrategy,patchRoutesOnNavigation:i?.patchRoutesOnNavigation,window:i?.window,unstable_instrumentations:i?.unstable_instrumentations}).initialize()}function Ex(){let n=window?.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:Tx(n.errors)}),n}function Tx(n){if(!n)return null;let i=Object.entries(n),l={};for(let[s,c]of i)if(c&&c.__type==="RouteErrorResponse")l[s]=new Xl(c.status,c.statusText,c.data,c.internal===!0);else if(c&&c.__type==="Error"){if(c.__subType){let f=window[c.__subType];if(typeof f=="function")try{let d=new f(c.message);d.stack="",l[s]=d}catch{}}if(l[s]==null){let f=new Error(c.message);f.stack="",l[s]=f}}else l[s]=c;return l}var Py=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xy=T.forwardRef(function({onClick:i,discover:l="render",prefetch:s="none",relative:c,reloadDocument:f,replace:d,state:p,target:g,to:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:x,...N},L){let{basename:B,unstable_useTransitions:K}=T.useContext(Gn),G=typeof m=="string"&&Py.test(m),J=Ty(m,B);m=J.to;let $=Rw(m,{relative:c}),[ye,he,me]=gx(s,N),A=Ax(m,{replace:d,state:p,target:g,preventScrollReset:b,relative:c,viewTransition:y,unstable_defaultShouldRevalidate:x,unstable_useTransitions:K});function Y(Ae){i&&i(Ae),Ae.defaultPrevented||A(Ae)}let oe=T.createElement("a",{...N,...me,href:J.absoluteURL||$,onClick:J.isExternal||f?i:Y,ref:Sx(L,he),target:g,"data-discover":!G&&l==="render"?"true":void 0});return ye&&!G?T.createElement(T.Fragment,null,oe,T.createElement(yx,{page:$})):oe});Xy.displayName="Link";var Rx=T.forwardRef(function({"aria-current":i="page",caseSensitive:l=!1,className:s="",end:c=!1,style:f,to:d,viewTransition:p,children:g,...m},b){let y=Il(d,{relative:m.relative}),x=Fi(),N=T.useContext(Zl),{navigator:L,basename:B}=T.useContext(Gn),K=N!=null&&kx(y)&&p===!0,G=L.encodeLocation?L.encodeLocation(y).pathname:y.pathname,J=x.pathname,$=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;l||(J=J.toLowerCase(),$=$?$.toLowerCase():null,G=G.toLowerCase()),$&&B&&($=Vn($,B)||$);const ye=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let he=J===G||!c&&J.startsWith(G)&&J.charAt(ye)==="/",me=$!=null&&($===G||!c&&$.startsWith(G)&&$.charAt(G.length)==="/"),A={isActive:he,isPending:me,isTransitioning:K},Y=he?i:void 0,oe;typeof s=="function"?oe=s(A):oe=[s,he?"active":null,me?"pending":null,K?"transitioning":null].filter(Boolean).join(" ");let Ae=typeof f=="function"?f(A):f;return T.createElement(Xy,{...m,"aria-current":Y,className:oe,ref:b,style:Ae,to:d,viewTransition:p},typeof g=="function"?g(A):g)});Rx.displayName="NavLink";var _x=T.forwardRef(({discover:n="render",fetcherKey:i,navigate:l,reloadDocument:s,replace:c,state:f,method:d=wo,action:p,onSubmit:g,relative:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:x,...N},L)=>{let{unstable_useTransitions:B}=T.useContext(Gn),K=Nx(),G=Dx(p,{relative:m}),J=d.toLowerCase()==="get"?"get":"post",$=typeof p=="string"&&Py.test(p),ye=he=>{if(g&&g(he),he.defaultPrevented)return;he.preventDefault();let me=he.nativeEvent.submitter,A=me?.getAttribute("formmethod")||d,Y=()=>K(me||he.currentTarget,{fetcherKey:i,method:A,navigate:l,replace:c,state:f,relative:m,preventScrollReset:b,viewTransition:y,unstable_defaultShouldRevalidate:x});B&&l!==!1?T.startTransition(()=>Y()):Y()};return T.createElement("form",{ref:L,method:J,action:G,onSubmit:s?g:ye,...N,"data-discover":!$&&n==="render"?"true":void 0})});_x.displayName="Form";function Cx(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fy(n){let i=T.useContext(Xi);return Ue(i,Cx(n)),i}function Ax(n,{target:i,replace:l,state:s,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let m=Qy(),b=Fi(),y=Il(n,{relative:f});return T.useCallback(x=>{if(ax(x,i)){x.preventDefault();let N=l!==void 0?l:fa(b)===fa(y),L=()=>m(n,{replace:N,state:s,preventScrollReset:c,relative:f,viewTransition:d,unstable_defaultShouldRevalidate:p});g?T.startTransition(()=>L()):L()}},[b,m,y,l,s,i,n,c,f,d,p,g])}var Ox=0,Mx=()=>`__${String(++Ox)}__`;function Nx(){let{router:n}=Fy("useSubmit"),{basename:i}=T.useContext(Gn),l=qw(),s=n.fetch,c=n.navigate;return T.useCallback(async(f,d={})=>{let{action:p,method:g,encType:m,formData:b,body:y}=lx(f,i);if(d.navigate===!1){let x=d.fetcherKey||Mx();await s(x,l,d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:y,formMethod:d.method||g,formEncType:d.encType||m,flushSync:d.flushSync})}else await c(d.action||p,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:y,formMethod:d.method||g,formEncType:d.encType||m,replace:d.replace,state:d.state,fromRouteId:l,flushSync:d.flushSync,viewTransition:d.viewTransition})},[s,c,i,l])}function Dx(n,{relative:i}={}){let{basename:l}=T.useContext(Gn),s=T.useContext(ta);Ue(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...Il(n||".",{relative:i})},d=Fi();if(n==null){f.search=d.search;let p=new URLSearchParams(f.search),g=p.getAll("index");if(g.some(b=>b==="")){p.delete("index"),g.filter(y=>y).forEach(y=>p.append("index",y));let b=p.toString();f.search=b?`?${b}`:""}}return(!n||n===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(f.pathname=f.pathname==="/"?l:ca([l,f.pathname])),fa(f)}function kx(n,{relative:i}={}){let l=T.useContext(Hf);Ue(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Fy("useViewTransitionState"),c=Il(n,{relative:i});if(!l.isTransitioning)return!1;let f=Vn(l.currentLocation.pathname,s)||l.currentLocation.pathname,d=Vn(l.nextLocation.pathname,s)||l.nextLocation.pathname;return No(c.pathname,d)!=null||No(c.pathname,f)!=null}function zx(n){return T.createElement(Fw,{flushSync:gy.flushSync,...n})}const Zy=(...n)=>n.filter((i,l,s)=>!!i&&i.trim()!==""&&s.indexOf(i)===l).join(" ").trim();const jx=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Lx=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,l,s)=>s?s.toUpperCase():l.toLowerCase());const zg=n=>{const i=Lx(n);return i.charAt(0).toUpperCase()+i.slice(1)};var Ux={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Bx=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};const qx=T.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:d,...p},g)=>T.createElement("svg",{ref:g,...Ux,width:i,height:i,stroke:n,strokeWidth:s?Number(l)*24/Number(i):l,className:Zy("lucide",c),...!f&&!Bx(p)&&{"aria-hidden":"true"},...p},[...d.map(([m,b])=>T.createElement(m,b)),...Array.isArray(f)?f:[f]]));const yi=(n,i)=>{const l=T.forwardRef(({className:s,...c},f)=>T.createElement(qx,{ref:f,iconNode:i,className:Zy(`lucide-${jx(zg(n))}`,`lucide-${n}`,s),...c}));return l.displayName=zg(n),l};const Hx=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Qx=yi("bell",Hx);const Vx=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],Yx=yi("cable",Vx);const Gx=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Kx=yi("cpu",Gx);const Px=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],Xx=yi("folder-git-2",Px);const Fx=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],Zx=yi("languages",Fx);const Jx=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ix=yi("settings",Jx);const $x=[["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"}]],Wx=yi("users",$x);const eE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],tE=yi("x",eE),jg=n=>{let i;const l=new Set,s=(m,b)=>{const y=typeof m=="function"?m(i):m;if(!Object.is(y,i)){const x=i;i=b??(typeof y!="object"||y===null)?y:Object.assign({},i,y),l.forEach(N=>N(i,x))}},c=()=>i,p={setState:s,getState:c,getInitialState:()=>g,subscribe:m=>(l.add(m),()=>l.delete(m))},g=i=n(s,c,p);return p},nE=(n=>n?jg(n):jg),aE=n=>n;function iE(n,i=aE){const l=ee.useSyncExternalStore(n.subscribe,ee.useCallback(()=>i(n.getState()),[n,i]),ee.useCallback(()=>i(n.getInitialState()),[n,i]));return ee.useDebugValue(l),l}const Lg=n=>{const i=nE(n),l=s=>iE(i,s);return Object.assign(l,i),l},Jy=(n=>n?Lg(n):Lg),ql=Jy(n=>({sidebarOpen:!0,theme:"system",settingsOpen:!1,settingsTab:"general",toggleSidebar:()=>n(i=>({sidebarOpen:!i.sidebarOpen})),setSidebarOpen:i=>n({sidebarOpen:i}),setTheme:i=>n({theme:i}),openSettings:i=>n({settingsOpen:!0,...i?{settingsTab:i}:{}}),closeSettings:()=>n({settingsOpen:!1}),setSettingsTab:i=>n({settingsTab:i})})),rE="/api";class lE{baseUrl;constructor(i){this.baseUrl=i}async request(i,l={}){const{params:s,...c}=l;let f=`${this.baseUrl}${i}`;if(s){const g=new URLSearchParams(s);f+=`?${g.toString()}`}const d={...c.headers};c.body!==void 0&&(d["Content-Type"]="application/json");const p=await fetch(f,{...c,headers:d});if(!p.ok){const g=await p.json().catch(()=>({}));throw new Pf(p.status,typeof g.message=="string"?g.message:typeof g.error=="string"?g.error:"Request failed",g)}if(p.status!==204)return p.json()}get(i,l){return this.request(i,{...l,method:"GET"})}post(i,l,s){return this.request(i,{...s,method:"POST",body:l?JSON.stringify(l):void 0})}put(i,l,s){return this.request(i,{...s,method:"PUT",body:l?JSON.stringify(l):void 0})}patch(i,l,s){return this.request(i,{...s,method:"PATCH",body:l?JSON.stringify(l):void 0})}delete(i,l){return this.request(i,{...l,method:"DELETE"})}}class Pf extends Error{status;details;constructor(i,l,s={}){super(l),this.name="ApiError",this.status=i,this.details=s}}const lt=new lE(rE),De={projects:{all:["projects"],list:n=>["projects","list",n],detail:n=>["projects","detail",n]},tasks:{all:["tasks"],list:(n,i)=>["tasks","list",n,i],detail:n=>["tasks","detail",n],body:n=>["tasks","body",n],stats:n=>["tasks","stats",n]},workspaces:{all:["workspaces"],list:n=>["workspaces","list",n],detail:n=>["workspaces","detail",n],diff:n=>["workspaces","diff",n],gitStatus:n=>["workspaces","gitStatus",n]},previews:{all:["previews"],status:n=>["previews","status",n]},sessions:{all:["sessions"],detail:n=>["sessions","detail",n]},conversations:{all:["conversations"],list:n=>["conversations","list",n],detail:n=>["conversations","detail",n]},files:{all:["files"],tree:(n,i)=>["files","tree",n,i],content:(n,i)=>["files","content",n,i]},git:{all:["git"],changes:n=>["git","changes",n],diff:(n,i,l)=>["git","diff",n,i,l],log:n=>["git","log",n],commitFiles:(n,i)=>["git","commitFiles",n,i],commitDiff:(n,i,l)=>["git","commitDiff",n,i,l]},profiles:{all:["profiles"],defaults:["profiles","defaults"],agent:n=>["profiles","agent",n],variant:(n,i)=>["profiles","variant",n,i]},providers:{all:["providers"],detail:n=>["providers","detail",n]},tunnel:{status:["tunnel","status"]},notifications:{settings:["notifications","settings"]},appSettings:{detail:["app-settings"]},system:{cursorAgentModels:["system","cursor-agent-models"],mcpConfig:["system","mcp-config"],slashCommandCatalog:(n,i)=>["system","slash-command-catalog",n??null,i??null],skillCatalog:(n,i)=>["system","skill-catalog",n??null,i??null]}};function sE(){return Ba({queryKey:De.appSettings.detail,queryFn:()=>lt.get("/app-settings")})}function oE(){const n=gt();return qt({mutationFn:i=>lt.put("/app-settings",i),onSuccess:()=>{n.invalidateQueries({queryKey:De.appSettings.detail})}})}function eR(){return Ba({queryKey:[...De.appSettings.detail,"commit-message-defaults"],queryFn:()=>lt.get("/app-settings/commit-message-defaults")})}const uE={"zh-CN":{Settings:"设置",General:"通用",Back:"返回","Loading...":"加载中...","No options":"暂无选项","Processing...":"处理中...",Confirm:"确认",Cancel:"取消",Start:"开始","Starting...":"启动中...","General Settings":"通用设置","Display Language":"显示语言","Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.":"选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。",English:"English","Simplified Chinese":"简体中文","Language setting":"语言设置","Language setting could not be saved":"语言设置保存失败","Browse and select a Git repository, or type a path and press Enter":"浏览并选择一个 Git 仓库,或输入路径后按 Enter","Browse and select a directory, or type a path and press Enter":"浏览并选择一个目录,或输入路径后按 Enter","Select Current":"选择当前目录","Agent 配置":"Agent 配置",项目配置:"项目配置",通知:"通知",通用:"通用","AI Agent Task Management Dashboard":"AI Agent 任务管理面板","Project Management":"项目管理","Manage your AI agent projects":"管理你的 AI Agent 项目","View Projects":"查看项目","Task Board":"任务看板",Tasks:"任务","Kanban-style task management":"Kanban 风格的任务管理","Open Board":"打开看板",Workspace:"工作区","Git worktree isolated environments":"Git Worktree 隔离环境","Manage Workspaces":"管理工作区","Move to":"移动到","Delete Task":"删除任务","Drop into {title}":"放入 {title}","Drop here":"拖到此处","No tasks":"暂无任务","All Projects":"所有项目",Projects:"项目","Select View":"选择视图","Create New Project...":"创建新项目...","New Task":"新任务","New Project":"新项目",Search:"搜索","Search tasks...":"搜索任务...","Search conversations...":"搜索对话...","Recent tasks":"近期任务","Recent conversations":"最近对话","No matching tasks":"没有匹配的任务","No matching conversations":"没有匹配的对话","{count} tasks":"{count} 个任务","Clear filter":"清除筛选",Review:"待审查",Running:"进行中",Pending:"待开始",Done:"已完成",Cancelled:"已取消",Starting:"启动中",Completed:"已完成",Stopped:"已停止",Changes:"变更",History:"历史",Conversation:"对话",Conversations:"对话","New Conversation":"新对话","No conversations":"暂无对话","Conversation not found":"对话不存在","Delete this conversation?":"删除这个对话?","Ask a question...":"问一个问题...",Editor:"编辑器",Terminal:"终端",Preview:"预览","Coming soon...":"即将推出...",Modified:"已修改",Added:"已新增",Deleted:"已删除",Delete:"删除",Renamed:"已重命名","Loading diff...":"正在加载差异...","Failed to load diff.":"加载差异失败。","No diff content available.":"没有可显示的差异内容。","No workspace selected.":"未选择工作区。","Loading changes...":"正在加载变更...","Failed to load changes.":"加载变更失败。","No pending changes":"暂无待处理变更",Uncommitted:"未提交",Committed:"已提交","Select a file to view diff":"选择一个文件以查看差异","{count}s ago":"{count} 秒前","{count}m ago":"{count} 分钟前","{count}h ago":"{count} 小时前","{count}d ago":"{count} 天前","Loading files...":"正在加载文件列表...","No files changed":"没有文件变更","Loading history...":"正在加载历史记录...","Failed to load history.":"加载历史记录失败。","No commit history":"暂无提交历史","Load more":"加载更多","Select a commit to view changes":"选择一个提交以查看变更","Zoom out":"缩小","Reset zoom":"重置缩放","Zoom in":"放大","Fit to view":"适应视图","Failed to load image.":"加载图片失败。","Close tab":"关闭标签页",Close:"关闭","Expand file tree":"展开文件树","No open files":"暂无打开文件",Saving:"保存中",Unsaved:"未保存","Select a file from the tree to open.":"从文件树中选择一个文件以打开。","Loading file...":"正在加载文件...","Failed to load file":"加载文件失败","Failed to load":"加载失败","Failed to start. Please try again.":"启动失败,请重试",Files:"文件","No working directory":"未选择工作目录","Refresh file tree":"刷新文件树","Collapse file tree":"收起文件树","Shell {count}":"终端 {count}","New Terminal":"新终端","No terminals open":"暂无打开终端",Disconnected:"未连接","Connecting...":"连接中...",Connected:"已连接","No active session":"暂无活动会话","Create a workspace and start a session to see terminal output.":"创建工作区并启动会话后即可查看终端输出。","Process exited with code {code}":"进程已退出,退出码 {code}","Error: {message}":"错误: {message}","Session: {id}":"会话: {id}","Tunnel active":"隧道已启用","Share via tunnel":"通过隧道分享","Tunnel Active":"隧道已启用","Tunnel healthy":"隧道健康","Tunnel needs attention":"隧道需要注意","Tunnel unavailable":"隧道不可用","Tunnel starting":"隧道启动中","Tunnel is off":"隧道未开启","Checking tunnel health":"正在检查隧道健康","Observing original link":"正在观察原链接","Local service unavailable":"本地服务不可用","Tunnel process exited":"隧道进程已退出","Tunnel error":"隧道错误","New link generated":"新链接已生成","Use Agent Tower on your phone":"在手机上使用 Agent Tower","After enabling the tunnel, you can scan a QR code with your phone to visit this Agent Tower instance, assign tasks, and check agent status.":"开启隧道后,可以用手机扫码访问本机的 Agent Tower,用手机派任务、查看 Agent 状态。","Enable phone access":"开启手机访问","Starting tunnel...":"正在开启隧道...","Start a temporary Quick Tunnel when you need to share this Agent Tower session.":"需要分享当前 Agent Tower 会话时,可以启动一个临时 Quick Tunnel。","The Cloudflare tunnel is running and the local Agent Tower health check passed.":"Cloudflare 隧道正在运行,且本地 Agent Tower 健康检查已通过。","The Cloudflare tunnel is running. Agent Tower is waiting for the first local health check.":"Cloudflare 隧道正在运行,Agent Tower 正在等待首次本地健康检查。","The original public URL is currently unreachable. Agent Tower is watching for it to recover and will not generate a new link automatically.":"原公网链接当前不可访问。Agent Tower 正在观察它是否恢复,不会自动生成新链接。","The local Agent Tower target is not responding, so the tunnel cannot be considered healthy.":"本地 Agent Tower 目标没有响应,因此隧道不能视为健康。","The tunnel process has exited. The old Quick Tunnel link is unlikely to recover.":"隧道进程已退出,旧 Quick Tunnel 链接大概率无法恢复。","The tunnel reported an error. Check the diagnostics before generating a new link.":"隧道报告了错误。生成新链接前请先查看诊断信息。","A new Quick Tunnel link was generated. The old link and token are no longer valid.":"已生成新的 Quick Tunnel 链接。旧链接和 token 已失效。","Agent Tower is asking Cloudflare Quick Tunnel for a temporary public URL.":"Agent Tower 正在向 Cloudflare Quick Tunnel 申请临时公网链接。","Last checked":"上次检查","Last healthy":"上次健康",Never:"从未","Agent Tower is keeping the same URL and waiting for Cloudflare Quick Tunnel to recover.":"Agent Tower 会保留同一个 URL,并等待 Cloudflare Quick Tunnel 自行恢复。","The previous tunnel link and token are no longer valid.":"之前的隧道链接和 token 已不再有效。","Generating a new link will invalidate the current link. People using the old URL must receive the new one.":"生成新链接会使当前链接失效。正在使用旧 URL 的人需要收到新链接。","Regenerate link":"重新生成链接","Generating...":"生成中...","Token protected":"受 Token 保护","Copy shareable link":"复制分享链接","No tunnel link available":"暂无可用隧道链接","Hide token":"隐藏 Token","Show token":"显示 Token","Copy token":"复制 Token","Stopping...":"停止中...","Stop Tunnel":"停止隧道","Create & Start":"创建并启动","Create TeamRun":"创建 TeamRun","Creating TeamRun...":"正在创建 TeamRun...","Team Status":"团队状态","Team mode":"团队模式","Review reason":"审查原因",Members:"成员","No members":"暂无成员",Queue:"队列","No queued work requests":"暂无排队中的工作请求","Active invocations":"活动调用","No active invocations":"暂无活动调用","Recently completed":"最近完成","No completed invocations":"暂无已完成调用","New session per request":"每次新会话","Resume last session":"复用上次会话",Latest:"最新","Invocation history":"调用历史","No invocation history":"暂无调用历史","No invocations yet":"暂无调用记录","All members idle":"所有成员空闲",Log:"日志",Details:"详情",Workspaces:"工作区",Owner:"所有者",Parent:"父级",Selected:"已选",Select:"选择","View workspace":"查看工作区",Invocation:"调用",Session:"会话","View log":"查看日志","View details":"查看详情","Team room":"团队房间","No room messages yet":"暂无房间消息",Messages:"消息","Work requests":"工作请求","Active work":"进行中的工作",Working:"正在工作","Queued...":"排队中...","Waiting reply...":"等待回复...",running:"进行中",queued:"排队",waiting:"等待",ended:"已结束",Elapsed:"耗时",Failed:"失败","Session ended":"会话已结束","Failed to send room message":"发送房间消息失败",selected:"已选择","Back to bottom":"回到底部","Expand full message":"展开全部","Collapse message":"收起","Invocation details":"调用详情","Back to room":"返回群聊","Pending approval":"待审批","Tool Calls":"工具调用","No pending approvals":"暂无待审批项",Requester:"发起者",User:"用户",System:"系统","Waiting room reply":"等待房间回复",Queued:"排队中",Idle:"空闲","Queue if busy":"忙碌时排队","Cancel current if busy":"忙碌时取消当前并开始","Cancel queued":"取消排队",Approve:"批准",Approving:"批准中...",Reject:"拒绝",Rejecting:"拒绝中...",Cancelling:"取消中...","Failed to update work request":"更新工作请求失败","Failed to cancel work request":"取消工作请求失败",Stop:"停止","Stop running work?":"停止正在运行的工作?","Stop only":"仅停止","Stop + clear queue":"停止并清空队列",Stopping:"停止中...","Failed to stop member work":"停止成员工作失败",Yes:"是",No:"否","Creating Task...":"正在创建任务...","Creating Workspace...":"正在创建工作区...","Creating Session...":"正在创建会话...","Starting Agent...":"正在启动 Agent...","启动 Agent 失败":"Failed to start Agent","重试启动 Agent":"Retry Start Agent","Create New Project":"创建新项目","Creating...":"创建中...","Checking...":"检查中...",Create:"创建","Create Project":"创建项目","Initialize Git repository?":"初始化 Git 仓库?","Initialize and Create":"初始化并创建","This directory is empty and does not have Git version control yet. Agent Tower can initialize Git and create the initial commit before creating the project.":"该目录为空且尚未启用 Git 版本管理。Agent Tower 可以先初始化 Git 并创建初始提交,然后再创建项目。","The selected directory is not a Git repository and is not empty. Initialize Git manually and make an initial commit, then create the project.":"所选目录不是 Git 仓库且不为空。请手动初始化 Git 并完成首次提交,然后再创建项目。","Selected path is not a valid directory":"所选路径不是有效目录","Could not check repository path":"无法检查仓库路径","Project Name":"项目名称","e.g., Agent Tower":"例如:Agent Tower","Repository Path":"仓库路径","Create New Task":"创建新任务",Execution:"执行方式","Solo Agent":"Solo Agent",Project:"项目",Provider:"Provider",Agent:"Agent","Select project...":"选择项目...","Select provider...":"选择 Provider...","Task Title":"任务标题","e.g., Implement login flow":"例如:实现登录流程",Description:"描述","Optional...":"可选...","Optional description...":"可选描述...","Drop files here":"将文件拖到这里","Attach files":"添加文件","or paste files":"或粘贴文件","or paste/drag files":"或粘贴/拖拽文件","Drag to resize":"拖动以调整大小","Failed to create task":"创建任务失败","Failed to create project":"创建项目失败","Select a task from the sidebar to view logs, monitor execution, or interact with an agent.":"从侧边栏选择一个任务,以查看日志、监控执行过程,或与 Agent 交互。","Open in IDE":"在 IDE 中打开","Toggle Workspace":"切换工作区面板","More actions":"更多操作","No description":"暂无描述","Setup ({current}/{total}): {command}":"Setup({current}/{total}):{command}","Loading logs...":"正在加载日志...","Waiting for agent output...":"等待 Agent 输出...","No logs recorded for this session.":"当前会话暂无日志记录。","Scroll to bottom":"滚动到底部","Send failed. Please try again.":"发送失败,请重试","Drop files here...":"将文件拖到这里...","Continue conversation...":"继续对话...","Message Agent...":"给 Agent 发送消息...","Upload file":"上传文件","Uploading...":"上传中...",Send:"发送","Describe your task...":"描述你的任务...","Switch to TeamRun":"切换到 TeamRun","Switch to Solo Agent":"切换到单 Agent"," (unavailable)":"(不可用)","Manage Team Members":"管理团队成员","Add member":"添加成员","Save member":"保存成员","Edit member":"编辑成员","Remove member":"移除成员",Remove:"移除","Member added":"成员已添加","Member updated":"成员已更新","Member removed":"成员已移除","Failed to save member":"保存成员失败","Failed to remove member":"移除成员失败","Name, provider, and role prompt are required":"名称、Provider 和角色提示词不能为空","No active members":"暂无活跃成员","Add member from preset":"从预设添加成员","Choose a saved preset to add a ready-to-run member snapshot.":"选择已保存的预设,添加一个可直接工作的成员快照。","Custom member":"自定义成员",Custom:"自定义","Use preset":"使用预设",Preset:"预设","Select a member":"选择成员","Choose a member on the left to edit its future TeamRun configuration.":"从左侧选择成员,编辑其后续 TeamRun 配置。","Provider, role, workspace, and session changes apply to future work only.":"Provider、角色、工作区和会话变更只影响后续工作。","Create a one-off member snapshot for this TeamRun.":"为当前 TeamRun 创建一次性的成员快照。","Create a custom member for this TeamRun, or add presets from Team Collaboration Settings.":"可以为当前 TeamRun 创建自定义成员,或先在团队协作设置中添加预设。","Remove this member from future TeamRun work?":"将该成员从后续 TeamRun 工作中移除?",Name:"名称",Aliases:"别名",Avatar:"头像","Workspace policy":"工作区策略","Trigger policy":"触发策略","Session policy":"会话策略","Queue policy":"队列策略","Role prompt":"角色提示词",Capabilities:"能力","Comma separated":"用逗号分隔","No member presets":"暂无成员预设",active:"活跃",working:"工作中"},en:{设置:"Settings",通用:"General",返回:"Back","加载中...":"Loading...",暂无选项:"No options","处理中...":"Processing...",确认:"Confirm",取消:"Cancel",工具调用:"Tool Calls","失败 {count}":"Failed {count}",通用设置:"General Settings",显示语言:"Display Language","选择界面语言。设置会保存到本地 Agent Tower 数据库,并在重新打开后继续生效。":"Choose the interface language. The setting is saved to the local Agent Tower database and will still apply after restart.",简体中文:"Simplified Chinese",语言设置:"Language setting",语言设置保存失败:"Language setting could not be saved","Agent 配置":"Agent Settings",项目配置:"Project Settings",通知:"Notifications","MCP 配置":"MCP Config","复制下面的 JSON 到支持 MCP 的客户端配置中。桌面打包版使用 App 内置 runtime,不需要全局安装 agent-tower。":"Copy this JSON into an MCP-capable client config. The packaged desktop app uses the bundled runtime and does not require a global agent-tower install.",复制配置:"Copy Config","MCP 配置已复制":"MCP config copied","复制 MCP 配置失败":"Failed to copy MCP config","MCP 配置加载失败":"Failed to load MCP config","无需全局 CLI":"No global CLI needed","桌面打包 runtime":"Desktop packaged runtime","工作区 runtime":"Workspace runtime","当前版本只生成通用 MCP 配置,不会自动修改 Claude、Codex 或其他第三方客户端配置文件。":"This version only generates generic MCP config and does not modify Claude, Codex, or other third-party client config files automatically.","暂无项目,请先创建项目":"No projects yet. Create one first.",选择项目:"Select Project","选择项目...":"Select project...",自动复制文件:"Auto-copy Files","创建 worktree 时自动从主仓库复制的文件或目录。支持 glob 模式。":"Files or directories to copy from the main repository when creating a worktree. Glob patterns are supported.","适用于不在 git 管理中但启动必需的文件,如 .env、node_modules、数据库文件等":"Useful for required startup files that are not tracked by git, such as .env, node_modules, or database files.","Setup 脚本":"Setup Script","创建 worktree 后自动执行的命令,每行一条,按顺序执行。":"Commands to run automatically after creating the worktree, one per line in order.","命令在 worktree 目录下执行,单条命令超时 5 分钟,失败不会阻断后续命令":"Commands run inside the worktree directory. Each command times out after 5 minutes, and a failure does not block later commands.",常用命令:"Quick Commands","在终端中可快速执行的命令,不会自动运行。":"Commands that can be run quickly in the terminal. They are not executed automatically.","保存中...":"Saving...",保存:"Save",有未保存的更改:"You have unsaved changes",系统通知:"System Notifications",任务完成时弹出桌面通知:"Show a desktop notification when a task finishes.",第三方通知:"Third-party Notifications",选择一个第三方渠道接收通知:"Choose a third-party channel to receive notifications.",无:"None",飞书:"Feishu",测试发送:"Send Test",发送成功:"Sent successfully",发送失败:"Send failed","跳转地址(用于生成任务链接)":"Base URL (used to generate task links)",'通知卡片中的"查看任务"按钮将跳转到 {path}':'The "View Task" button in the notification card will open {path}',通知模板:"Notification Templates","支持变量: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}":"Supported variables: {taskTitle}, {taskId}, {projectId}, {projectName}, {status}",标题模板:"Title Template",内容模板:"Body Template",'✅ "{taskTitle}" 已完成,等待审查':'✅ "{taskTitle}" is complete and ready for review',保存所有更改:"Save All Changes","启动失败: {message}":"Start failed: {message}",未知错误:"Unknown error",会话已停止:"Session stopped","Agent 交互演示":"Agent Interaction Demo","选择 Agent":"Select Agent","输入你的问题或任务...":"Enter your question or task...","启动中...":"Starting...",开始:"Start",对话:"Conversation",已连接:"Connected","连接中...":"Connecting...",未连接:"Disconnected",停止:"Stop","选择 Agent 并输入问题开始对话":"Select an agent and enter a prompt to start chatting.",你:"You","发送后续消息...":"Send a follow-up message...",发送:"Send",新会话:"New Session",未选择:"Not selected",连接:"Connection","Profiles 设置":"Profile Settings","配置变体 (Profile Variant)":"Profile Variant",输入任务:"Task Input","等待 Agent 响应...":"Waiting for agent output...","发送消息给 Agent...":"Send a message to the agent...","启动失败,请重试":"Failed to start. Please try again.",启动:"Start","创建工作空间...":"Creating workspace...","创建会话...":"Creating session...","启动 Agent...":"Starting agent...","启动 Agent":"Start Agent","选择 Provider":"Select Provider"," (不可用)":" (Unavailable)",任务描述:"Task Description","描述你想让 Agent 完成的任务...":"Describe the task you want the agent to complete...","输入文件路径...":"Enter a file path...",添加:"Add",添加此目录:"Add this directory",名称:"Name",命令:"Command",切换渠道:"Switch Provider","(默认)":"(Default)","留空为 auto;或直接输入模型 ID(与 cursor-agent --model 一致)":"Leave empty for auto, or enter a model ID directly (same as cursor-agent --model).","正在加载 cursor-agent 模型列表…":"Loading cursor-agent model list...",收起列表:"Collapse List","从本机 cursor-agent 选择({count} 个)":"Choose from local cursor-agent ({count})","筛选模型…":"Filter models...","默认 (auto)":"Default (auto)",无匹配项:"No matches",请求失败:"Request failed","无法从本机加载模型列表({error})。仍可手动输入;或在安装 cursor-agent 的机器上运行":"Could not load models from the local machine ({error}). You can still enter one manually, or run","查看 ID。":"to inspect available IDs.","JSON 格式错误":"Invalid JSON format","删除 Profile Variant":"Delete Profile Variant","确定删除 {agentType} / {variant}?":"Delete {agentType} / {variant}?",新增:"New",内置:"Built-in","新增 Variant — {agentType}":"New Variant — {agentType}","编辑 {variant}":"Edit {variant}","Variant 名称":"Variant Name","例如: CUSTOM":"e.g. CUSTOM","配置 (JSON)":"Configuration (JSON)","状态变更失败,该操作不被允许":"Status change failed. This action is not allowed.","Git 操作":"Git Operations",删除任务:"Delete Task","Setup 完成":"Setup complete","Setup 失败: {error}":"Setup failed: {error}","尚未启动 Agent":"No agent started yet","选择一个 Agent 来执行此任务":"Choose an agent to execute this task.","选择一个 Agent 来执行此任务,Agent 将自动创建工作空间并开始工作。":"Choose an agent to execute this task. The agent will create a workspace automatically and start working.",回到底部:"Back to Bottom","代码已合并,以上为历史沟通记录":"The code has been merged. The conversation above is historical.","启动新 Agent":"Start New Agent","确认删除任务「{title}」?此操作不可撤销。":'Delete task "{title}"? This action cannot be undone.',删除:"Delete","正在运行的 Agent 将被停止":"The running agent will be stopped.",分支上未合并的变更将丢失:"Unmerged changes on the branch will be lost.","关联的工作目录(worktree)将被清理":"The associated worktree directory will be cleaned up.","{opLabel} 冲突 — {count} 个文件":"{opLabel} conflicts — {count} files",中止操作:"Abort Operation",解决冲突:"Resolve Conflicts","解决 {opLabel} 冲突":"Resolve {opLabel} Conflicts","在 IDE 中打开":"Open in IDE","发送中...":"Sending...","AI 辅助解决":"Resolve with AI","冲突文件({count})":"Conflicted Files ({count})","选择 Session(AI 辅助解决)":"Choose Session (Resolve with AI)","选择一个 Session...":"Select a session...","没有可用的 Session,请在 IDE 中手动解决冲突。":"No session is available. Please resolve the conflicts manually in your IDE.","TeamRun 模式下会把处理冲突请求发送到 Team Room,由团队调度处理。":"In TeamRun mode, the conflict request will be sent to Team Room for team scheduling.","已发送到 Team Room":"Sent to Team Room",快捷命令:"Quick Commands",待办:"Todos","上下文: {used} / {max} tokens":"Context: {used} / {max} tokens","已使用: {used} tokens":"Used: {used} tokens",可用:"Available",不可用:"Unavailable",该类型暂无运行配置:"No runtime configuration is available for this type.","追加 Prompt":"Append Prompt","追加到每次 prompt 末尾的文本":"Text appended to the end of every prompt.",跳过权限确认:"Skip Permission Confirmation",模型:"Model",强制执行:"Force Execution",跳过所有确认和沙盒:"Skip All Confirmations and Sandbox",Profile:"Profile","~/.codex/config.toml 中的 profile 名称":"Profile name in ~/.codex/config.toml",是:"Yes",否:"No",覆盖:"Overwrite",跳过:"Skip","JSON 语法错误":"Invalid JSON syntax","TOML 语法错误: {message}":"Invalid TOML syntax: {message}","编辑 Provider":"Edit Provider","新建 Provider":"New Provider","例如: Claude Code (官方)":"e.g. Claude Code (Official)","Agent 类型":"Agent Type","选择 Agent 类型":"Select Agent Type","设为该类型的默认 Provider":"Set as the default provider for this agent type",运行配置:"Runtime Configuration",环境变量:"Environment Variables","注入到 Agent 进程的环境变量。Codex 的":"Environment variables injected into the agent process. Codex","指定的是变量名,实际值需在此处设置。":"specifies the variable name in env_key, and the actual value must be set here.","变量名,如 AZURE_OPENAI_API_KEY":"Variable name, e.g. AZURE_OPENAI_API_KEY",值:"Value",添加变量:"Add Variable","CLI 原生配置 (config.toml)":"Native CLI Config (config.toml)","CLI 原生配置 (settings.json)":"Native CLI Config (settings.json)","直接填写 Codex":"Enter a Codex","格式的配置片段,通过":"configuration snippet directly and inject it via","参数注入。不会修改你的":". It will not modify your","文件。":"file.","对应 Claude Code 的":"This corresponds to Claude Code",通过:"and is injected through","参数注入。在":". Configure","中设置 ANTHROPIC_API_KEY、ANTHROPIC_BASE_URL 等。":"inside env, such as ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL.","导出 Provider 备份":"Export Provider Backup","导出中...":"Exporting...",导出备份:"Export Backup","导出的备份文件将包含完整的 Provider 配置,包括环境变量、CLI settings 等敏感信息。任何拿到文件的人都可能直接使用这些 Provider。":"The exported backup file contains the full provider configuration, including sensitive information such as environment variables and CLI settings. Anyone with this file may be able to use those providers directly.","这个功能用于备份和迁移,不用于分享配置。":"This feature is for backup and migration, not for sharing configuration.","导出内容只包含用户层配置:自定义 Provider,以及对内置 Provider 的覆盖。":"The export only contains user-level configuration: custom providers and overrides of built-in providers.","我已知晓该备份文件包含敏感信息,只会保存在安全位置。":"I understand that this backup contains sensitive information and will only store it in a secure location.","导入 Provider 备份":"Import Provider Backup","导入中...":"Importing...","确认导入 {count} 项":"Import {count} item(s)","导出时间:{value}":"Exported at: {value}","模式:完整备份(含敏感信息)":"Mode: Full backup (contains sensitive data)","文件内 Provider 数量:{count}":"Providers in file: {count}","将覆盖当前已有的 Provider:{name}":"This will overwrite the existing provider: {name}","当前同 ID Provider 配置一致,本次不会重复写入。":"The provider with the same ID is already identical. It will not be written again.","当前不存在同 ID Provider,将直接新增。":"No provider with the same ID exists. It will be created directly.","系统内置 Provider 不可删除":"Built-in providers cannot be deleted.","已恢复默认 Provider 配置":"Default provider configuration restored.","Provider 已删除":"Provider deleted.","删除 Provider 失败":"Failed to delete provider.","Provider 备份已导出":"Provider backup exported.","导出 Provider 备份失败":"Failed to export provider backup.","备份文件不是有效的 JSON":"The backup file is not valid JSON.",导入预览失败:"Failed to preview import.","导入完成,当前配置无需变更":"Import complete. No changes were needed.","导入完成:新增 {create},覆盖 {overwrite},跳过 {skip}":"Import complete: created {create}, overwritten {overwrite}, skipped {skip}","导入 Provider 备份失败":"Failed to import provider backup.","Provider 配置":"Provider Configuration","管理 AI Agent 的连接配置和运行参数":"Manage AI agent connection settings and runtime parameters.",导入备份:"Import Backup","暂无 Provider 配置":"No providers configured yet.",默认:"Default","CLI 配置:":"CLI Config:",已配置:"Configured","环境变量:":"Environment Variables:",编辑:"Edit",删除自定义覆盖并恢复默认:"Delete custom override and restore default","恢复默认 Provider":"Restore Default Provider",'确定删除 "{name}" 的自定义覆盖,并恢复系统默认配置?':'Delete the custom override for "{name}" and restore the system default configuration?','确定删除 "{name}"?此操作不可撤销。':'Delete "{name}"? This action cannot be undone.',恢复默认:"Restore Default","{count} 个未提交变更":"{count} uncommitted changes","{count} 个冲突文件":"{count} conflicted files",变基进行中:"Rebase in progress",合并进行中:"Merge in progress","领先 {count} 个提交":"{count} commits ahead","落后 {count} 个提交":"{count} commits behind",已是最新:"Up to date","工作区有未提交的变更,请先让 Agent 提交或手动处理后再执行 Rebase / Merge 操作。":"The workspace has uncommitted changes. Ask the agent to commit them or handle them manually before running Rebase / Merge.",变基失败:"Rebase failed",合并失败:"Merge failed",确认合并:"Confirm Merge","加载分支状态...":"Loading branch status...","变基中...":"Rebasing...","变基 (Rebase)":"Rebase","将当前分支变基到最新的 {targetBranch}":"Rebase the current branch onto the latest {targetBranch}","合并 (Merge)":"Merge","合并中...":"Merging...","Squash merge 到 {targetBranch}":"Squash merge into {targetBranch}",提交消息:"Commit Message","输入提交消息...":"Enter commit message...",留空将使用默认消息:"Leave blank to use the default message.","Git Commit Message":"Git Commit Message","配置自动生成 commit message 时使用的 Agent 渠道和提示词。":"Configure the agent provider and prompt used for auto-generating commit messages.","Agent 渠道":"Agent Provider",跟随任务:"Follow Task",'"跟随任务"表示使用当前任务所用的 Agent 渠道。选择具体渠道可使用更经济的模型。':'"Follow Task" uses the same provider as the current task. Select a specific provider to use a more cost-effective model.',提示词模板:"Prompt Template","自定义生成 commit message 的提示词。留空则使用内置默认模板。":"Custom prompt for generating commit messages. Leave empty to use the built-in default template.",保存失败:"Save failed",已保存:"Saved",已创建:"Created",创建:"Create",单人:"Solo",团队:"Team",团队协作:"Team Collaboration",团队协作设置:"Team Collaboration Settings","管理成员预设与团队模板。":"Manage member presets and team templates.",成员预设:"Member Presets",团队模板:"Team Templates","点击列表项可编辑。":"Click an item to edit it.",当前没有成员预设:"No member presets yet.",当前没有团队模板:"No team templates yet.",创建新成员预设:"Create a new member preset",编辑成员预设:"Edit member preset",创建新团队模板:"Create a new team template",编辑团队模板:"Edit team template",成员预设名称:"Member preset name",成员预设别名:"Member preset aliases",成员预设头像:"Member preset avatar",成员预设角色提示词:"Member preset role prompt",团队模板名称:"Team template name",别名:"Aliases",头像:"Avatar",角色提示词:"Role Prompt",可用能力:"Capabilities",工作区策略:"Workspace Policy",触发策略:"Trigger Policy",共享:"Shared",独占:"Dedicated",仅提及:"Mention only",所有用户消息:"All user messages",读房间:"Read room",发房间消息:"Post room message",提及成员:"Mention members",停止成员工作:"Stop member work",标记可审查:"Mark ready for review",读文件:"Read files",写文件:"Write files",运行命令:"Run commands","读 diff":"Read diff",合并工作区:"Merge workspace","{count} 个成员":"{count} member(s)","Provider 列表加载失败":"Failed to load providers","Provider 列表加载失败,无法创建或修改成员预设。":"Failed to load providers. Member presets cannot be created or updated.",成员预设加载失败:"Failed to load member presets",团队模板加载失败:"Failed to load team templates","请稍后重试。":"Please try again later.",重试:"Retry","暂无可用 Provider,请先在 Agent 配置中创建。":"No available provider. Create one in Agent Settings first.","alice, a, reviewer":"alice, a, reviewer","选择顺序即保存顺序。":"Selection order is the saved order.",已选成员:"Selected Members","上移下移后即为保存顺序。":"Use up/down to change the saved order.",尚未选择成员预设:"No member presets selected yet.","先创建成员预设,再配置团队模板。":"Create member presets first, then configure a team template.",删除失败:"Delete failed",上移:"Move up",下移:"Move down","创建 TeamRun":"Create TeamRun",TeamRun:"TeamRun",模式:"Mode",执行模式:"Execution mode","TeamRun 模式":"TeamRun mode",确认模式:"Confirm mode",自动模式:"Auto mode","默认使用自动模式,团队消息会直接排队执行。":"Auto mode is the default. Team messages are queued for execution directly.","模板成员会先加入,随后按顺序追加所选成员。":"Template members are added first, then the selected members are appended in order.","请选择至少一个团队模板或成员预设。":"Select at least one team template or member preset.","该任务已经存在 TeamRun。请刷新后再试。":"This task already has a TeamRun. Refresh and try again.","创建 TeamRun 失败":"Failed to create TeamRun","TeamRun 创建失败,请检查团队配置后重试":"TeamRun creation failed. Please check team config and retry.","前往 /settings/team 创建":"Go to /settings/team to create one","欢迎使用 Agent Tower":"Welcome to Agent Tower","需要我帮你做点什么?":"What can I help you with?","描述任务,选择 Agent 或团队,即刻开始":"Describe a task, pick an Agent or team, and start right away","描述一个任务,AI Agent 将为你开始工作":"Describe a task and an AI agent will start working on it.","TeamRun 协作配置":"TeamRun Configuration",团队协作配置:"Team Collaboration Config","切换回单 Agent":"Switch to Solo Agent",追加成员:"Additional Members","{count} 个追加成员":"{count} additional member(s)",去创建:"Create",请选择团队模板或追加成员:"Select a team template or add members",收起:"Collapse","没有可用项目,请先创建或恢复项目":"No available projects. Please create or restore a project first.","任务已创建,但启动 Agent 失败,可在详情中重试":"Task created, but failed to start Agent. You can retry from the task detail.",冲突:"Conflict",变基中:"Rebasing",合并中:"Merging","{count} 未提交":"{count} uncommitted","落后 {count}":"Behind {count}",可合并:"Mergeable",查看变更详情:"View changes","分支落后 {count} 个提交,建议先执行变基 (Rebase) 同步最新代码。":"The branch is {count} commits behind. Consider rebasing to sync the latest code.","合并到 {target}":"Merge into {target}",需要先变基同步最新代码:"Rebase required to sync latest code",请先处理未提交变更:"Handle uncommitted changes first","中止中...":"Aborting...","正在检查工作区状态...":"Checking workspace status...",当前分支还没有任何变更:"No changes on this branch yet",调整工作区宽度:"Resize workspace panel","{files} 个文件 · {lines} 行":"{files} files · {lines} lines",更新:"Update",合并:"Merge","{count} 个本地改动未处理,需要先整理后再继续":"{count} local changes pending — clean them up before continuing","{count} 个文件存在冲突,需要处理后继续":"{count} files have conflicts — resolve them to continue","正在同步源分支更新...":"Syncing updates from source branch...","正在提交变更...":"Submitting changes...","源分支 {branch} 有 {count} 个更新":"Source branch {branch} has {count} updates","{count} 个文件变更,可以安全提交":"{count} file changes, safe to submit",同步更新:"Sync updates","正在同步...":"Syncing...",提交变更:"Submit changes",需要先同步源分支更新:"Sync source branch updates first","更新失败,请稍后重试":"Update failed. Please try again later.","提交失败,请稍后重试":"Submit failed. Please try again later.","正在提交...":"Submitting...",确认提交:"Confirm Submit",请描述本次修改的内容:"Describe the changes in this submission","建议以 feat、fix、docs、refactor、chore 开头,保持提交记录清晰。feat 新增功能,fix 修复问题,docs 文档更新,refactor 代码重构,chore 日常维护。":"Start with feat (new feature), fix (bug fix), docs (documentation), refactor (restructure), or chore (maintenance) to keep the history clean.",需要先处理本地改动:"Handle local changes first",处理冲突:"Resolve conflicts","正在撤销...":"Undoing...",撤销操作:"Undo operation",确认后会停止当前工作并取消队列:"Confirming will stop the current work and clear the queue",每次新会话:"New session per request",复用上次会话:"Resume last session",仅自己队列:"Own queue only",全队列待处理:"Team pending queue",代码审查:"Review","{count} 个文件":"{count} files",未选择工作区:"No workspace selected",没有可显示的差异内容:"No diff content available","还有 {count} 行变更被折叠,点击展开全部":"{count} more lines collapsed — click to expand all","正在加载差异...":"Loading diff...",差异加载失败:"Failed to load diff",变更加载失败:"Failed to load changes",没有匹配筛选条件的文件:"No files match the filter",该提交没有文件变更:"No file changes in this commit",没有待审查的变更:"No changes to review",未提交:"Uncommitted",已提交:"Committed","筛选文件...":"Filter files...",无匹配文件:"No matching files",暂无变更文件:"No changed files",提交记录:"Commits",全部变更:"All changes","正在加载提交记录...":"Loading commits...",暂无提交记录:"No commits yet",加载更多提交:"Load more commits","正在加载...":"Loading..."}},Iy=T.createContext(null);function cE(n){return n?n==="en"?"en":n==="zh-CN"?"zh-CN":null:null}function fE(){return typeof navigator>"u"||navigator.language.toLowerCase().startsWith("zh")?"zh-CN":"en"}function dE(n,i){if(!i)return n;let l=n;for(const[s,c]of Object.entries(i))l=l.replaceAll(`{${s}}`,String(c??""));return l}let Sf="zh-CN";function $y(n,i,l){const s=uE[n]?.[i]??i;return dE(s,l)}function hE(n,i){return $y(Sf,n,i)}function mE({children:n}){const i=T.useRef(fE()),[l,s]=T.useState(i.current),{data:c}=sE(),f=oE(),d=T.useRef(!1),p=T.useCallback(b=>{Sf=b,s(b),document.documentElement.lang=b},[]);T.useEffect(()=>{const b=cE(c?.locale)??i.current;p(b),c&&c.locale===null&&!d.current&&(d.current=!0,f.mutate({locale:b}))},[c,p,f]);const g=T.useCallback(b=>{const y=Sf;p(b),f.mutate({locale:b},{onError:()=>{p(y),X1.error(hE("语言设置保存失败"))}})},[p,f]),m=T.useMemo(()=>({locale:l,setLocale:g,t:(b,y)=>$y(l,b,y)}),[l,g]);return _.jsx(Iy.Provider,{value:m,children:n})}function Wy(){const n=T.useContext(Iy);if(!n)throw new Error("useI18n must be used within I18nProvider");return n}function ev(n){var i,l,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(i=0;i<c;i++)n[i]&&(l=ev(n[i]))&&(s&&(s+=" "),s+=l)}else for(l in n)n[l]&&(s&&(s+=" "),s+=l);return s}function tv(){for(var n,i,l=0,s="",c=arguments.length;l<c;l++)(n=arguments[l])&&(i=ev(n))&&(s&&(s+=" "),s+=i);return s}const pE=(n,i)=>{const l=new Array(n.length+i.length);for(let s=0;s<n.length;s++)l[s]=n[s];for(let s=0;s<i.length;s++)l[n.length+s]=i[s];return l},gE=(n,i)=>({classGroupId:n,validator:i}),nv=(n=new Map,i=null,l)=>({nextPart:n,validators:i,classGroupId:l}),Do="-",Ug=[],yE="arbitrary..",vE=n=>{const i=SE(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return bE(d);const p=d.split(Do),g=p[0]===""&&p.length>1?1:0;return av(p,g,i)},getConflictingClassGroupIds:(d,p)=>{if(p){const g=s[d],m=l[d];return g?m?pE(m,g):g:m||Ug}return l[d]||Ug}}},av=(n,i,l)=>{if(n.length-i===0)return l.classGroupId;const c=n[i],f=l.nextPart.get(c);if(f){const m=av(n,i+1,f);if(m)return m}const d=l.validators;if(d===null)return;const p=i===0?n.join(Do):n.slice(i).join(Do),g=d.length;for(let m=0;m<g;m++){const b=d[m];if(b.validator(p))return b.classGroupId}},bE=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),l=i.indexOf(":"),s=i.slice(0,l);return s?yE+s:void 0})(),SE=n=>{const{theme:i,classGroups:l}=n;return wE(l,i)},wE=(n,i)=>{const l=nv();for(const s in n){const c=n[s];Xf(c,l,s,i)}return l},Xf=(n,i,l,s)=>{const c=n.length;for(let f=0;f<c;f++){const d=n[f];xE(d,i,l,s)}},xE=(n,i,l,s)=>{if(typeof n=="string"){EE(n,i,l);return}if(typeof n=="function"){TE(n,i,l,s);return}RE(n,i,l,s)},EE=(n,i,l)=>{const s=n===""?i:iv(i,n);s.classGroupId=l},TE=(n,i,l,s)=>{if(_E(n)){Xf(n(s),i,l,s);return}i.validators===null&&(i.validators=[]),i.validators.push(gE(l,n))},RE=(n,i,l,s)=>{const c=Object.entries(n),f=c.length;for(let d=0;d<f;d++){const[p,g]=c[d];Xf(g,iv(i,p),l,s)}},iv=(n,i)=>{let l=n;const s=i.split(Do),c=s.length;for(let f=0;f<c;f++){const d=s[f];let p=l.nextPart.get(d);p||(p=nv(),l.nextPart.set(d,p)),l=p}return l},_E=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,CE=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,l=Object.create(null),s=Object.create(null);const c=(f,d)=>{l[f]=d,i++,i>n&&(i=0,s=l,l=Object.create(null))};return{get(f){let d=l[f];if(d!==void 0)return d;if((d=s[f])!==void 0)return c(f,d),d},set(f,d){f in l?l[f]=d:c(f,d)}}},wf="!",Bg=":",AE=[],qg=(n,i,l,s,c)=>({modifiers:n,hasImportantModifier:i,baseClassName:l,maybePostfixModifierPosition:s,isExternal:c}),OE=n=>{const{prefix:i,experimentalParseClassName:l}=n;let s=c=>{const f=[];let d=0,p=0,g=0,m;const b=c.length;for(let B=0;B<b;B++){const K=c[B];if(d===0&&p===0){if(K===Bg){f.push(c.slice(g,B)),g=B+1;continue}if(K==="/"){m=B;continue}}K==="["?d++:K==="]"?d--:K==="("?p++:K===")"&&p--}const y=f.length===0?c:c.slice(g);let x=y,N=!1;y.endsWith(wf)?(x=y.slice(0,-1),N=!0):y.startsWith(wf)&&(x=y.slice(1),N=!0);const L=m&&m>g?m-g:void 0;return qg(f,N,x,L)};if(i){const c=i+Bg,f=s;s=d=>d.startsWith(c)?f(d.slice(c.length)):qg(AE,!1,d,void 0,!0)}if(l){const c=s;s=f=>l({className:f,parseClassName:c})}return s},ME=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((l,s)=>{i.set(l,1e6+s)}),l=>{const s=[];let c=[];for(let f=0;f<l.length;f++){const d=l[f],p=d[0]==="[",g=i.has(d);p||g?(c.length>0&&(c.sort(),s.push(...c),c=[]),s.push(d)):c.push(d)}return c.length>0&&(c.sort(),s.push(...c)),s}},NE=n=>({cache:CE(n.cacheSize),parseClassName:OE(n),sortModifiers:ME(n),...vE(n)}),DE=/\s+/,kE=(n,i)=>{const{parseClassName:l,getClassGroupId:s,getConflictingClassGroupIds:c,sortModifiers:f}=i,d=[],p=n.trim().split(DE);let g="";for(let m=p.length-1;m>=0;m-=1){const b=p[m],{isExternal:y,modifiers:x,hasImportantModifier:N,baseClassName:L,maybePostfixModifierPosition:B}=l(b);if(y){g=b+(g.length>0?" "+g:g);continue}let K=!!B,G=s(K?L.substring(0,B):L);if(!G){if(!K){g=b+(g.length>0?" "+g:g);continue}if(G=s(L),!G){g=b+(g.length>0?" "+g:g);continue}K=!1}const J=x.length===0?"":x.length===1?x[0]:f(x).join(":"),$=N?J+wf:J,ye=$+G;if(d.indexOf(ye)>-1)continue;d.push(ye);const he=c(G,K);for(let me=0;me<he.length;++me){const A=he[me];d.push($+A)}g=b+(g.length>0?" "+g:g)}return g},zE=(...n)=>{let i=0,l,s,c="";for(;i<n.length;)(l=n[i++])&&(s=rv(l))&&(c&&(c+=" "),c+=s);return c},rv=n=>{if(typeof n=="string")return n;let i,l="";for(let s=0;s<n.length;s++)n[s]&&(i=rv(n[s]))&&(l&&(l+=" "),l+=i);return l},jE=(n,...i)=>{let l,s,c,f;const d=g=>{const m=i.reduce((b,y)=>y(b),n());return l=NE(m),s=l.cache.get,c=l.cache.set,f=p,p(g)},p=g=>{const m=s(g);if(m)return m;const b=kE(g,l);return c(g,b),b};return f=d,(...g)=>f(zE(...g))},LE=[],jt=n=>{const i=l=>l[n]||LE;return i.isThemeGetter=!0,i},lv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,UE=/^\d+\/\d+$/,BE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,HE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,QE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mr=n=>UE.test(n),ze=n=>!!n&&!Number.isNaN(Number(n)),ui=n=>!!n&&Number.isInteger(Number(n)),tf=n=>n.endsWith("%")&&ze(n.slice(0,-1)),La=n=>BE.test(n),YE=()=>!0,GE=n=>qE.test(n)&&!HE.test(n),ov=()=>!1,KE=n=>QE.test(n),PE=n=>VE.test(n),XE=n=>!le(n)&&!se(n),FE=n=>Br(n,fv,ov),le=n=>lv.test(n),Vi=n=>Br(n,dv,GE),nf=n=>Br(n,WE,ze),Hg=n=>Br(n,uv,ov),ZE=n=>Br(n,cv,PE),po=n=>Br(n,hv,KE),se=n=>sv.test(n),jl=n=>qr(n,dv),JE=n=>qr(n,eT),Qg=n=>qr(n,uv),IE=n=>qr(n,fv),$E=n=>qr(n,cv),go=n=>qr(n,hv,!0),Br=(n,i,l)=>{const s=lv.exec(n);return s?s[1]?i(s[1]):l(s[2]):!1},qr=(n,i,l=!1)=>{const s=sv.exec(n);return s?s[1]?i(s[1]):l:!1},uv=n=>n==="position"||n==="percentage",cv=n=>n==="image"||n==="url",fv=n=>n==="length"||n==="size"||n==="bg-size",dv=n=>n==="length",WE=n=>n==="number",eT=n=>n==="family-name",hv=n=>n==="shadow",tT=()=>{const n=jt("color"),i=jt("font"),l=jt("text"),s=jt("font-weight"),c=jt("tracking"),f=jt("leading"),d=jt("breakpoint"),p=jt("container"),g=jt("spacing"),m=jt("radius"),b=jt("shadow"),y=jt("inset-shadow"),x=jt("text-shadow"),N=jt("drop-shadow"),L=jt("blur"),B=jt("perspective"),K=jt("aspect"),G=jt("ease"),J=jt("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],he=()=>[...ye(),se,le],me=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],Y=()=>[se,le,g],oe=()=>[Mr,"full","auto",...Y()],Ae=()=>[ui,"none","subgrid",se,le],Ce=()=>["auto",{span:["full",ui,se,le]},ui,se,le],Te=()=>[ui,"auto",se,le],je=()=>["auto","min","max","fr",se,le],Le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],we=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...Y()],F=()=>[Mr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],H=()=>[n,se,le],ge=()=>[...ye(),Qg,Hg,{position:[se,le]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",IE,FE,{size:[se,le]}],Q=()=>[tf,jl,Vi],q=()=>["","none","full",m,se,le],Z=()=>["",ze,jl,Vi],te=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[ze,tf,Qg,Hg],Re=()=>["","none",L,se,le],Ve=()=>["none",ze,se,le],Ht=()=>["none",ze,se,le],$t=()=>[ze,se,le],Je=()=>[Mr,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[La],breakpoint:[La],color:[YE],container:[La],"drop-shadow":[La],ease:["in","out","in-out"],font:[XE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[La],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[La],shadow:[La],spacing:["px",ze],text:[La],"text-shadow":[La],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mr,le,se,K]}],container:["container"],columns:[{columns:[ze,le,se,p]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:he()}],overflow:[{overflow:me()}],"overflow-x":[{"overflow-x":me()}],"overflow-y":[{"overflow-y":me()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:oe()}],"inset-x":[{"inset-x":oe()}],"inset-y":[{"inset-y":oe()}],start:[{start:oe()}],end:[{end:oe()}],top:[{top:oe()}],right:[{right:oe()}],bottom:[{bottom:oe()}],left:[{left:oe()}],visibility:["visible","invisible","collapse"],z:[{z:[ui,"auto",se,le]}],basis:[{basis:[Mr,"full","auto",p,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,Mr,"auto","initial","none",le]}],grow:[{grow:["",ze,se,le]}],shrink:[{shrink:["",ze,se,le]}],order:[{order:[ui,"first","last","none",se,le]}],"grid-cols":[{"grid-cols":Ae()}],"col-start-end":[{col:Ce()}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":Ae()}],"row-start-end":[{row:Ce()}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":je()}],"auto-rows":[{"auto-rows":je()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...Le(),"normal"]}],"justify-items":[{"justify-items":[...we(),"normal"]}],"justify-self":[{"justify-self":["auto",...we()]}],"align-content":[{content:["normal",...Le()]}],"align-items":[{items:[...we(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...we(),{baseline:["","last"]}]}],"place-content":[{"place-content":Le()}],"place-items":[{"place-items":[...we(),"baseline"]}],"place-self":[{"place-self":["auto",...we()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[p,"screen",...F()]}],"min-w":[{"min-w":[p,"screen","none",...F()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[d]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",l,jl,Vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,se,nf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",tf,le]}],"font-family":[{font:[JE,le,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,se,le]}],"line-clamp":[{"line-clamp":[ze,"none",se,nf]}],leading:[{leading:[f,...Y()]}],"list-image":[{"list-image":["none",se,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",se,Vi]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[ze,"auto",se,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ui,se,le],radial:["",se,le],conic:[ui,se,le]},$E,ZE]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,se,le]}],"outline-w":[{outline:["",ze,jl,Vi]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",b,go,po]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",y,go,po]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[ze,Vi]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",x,go,po]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[ze,se,le]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[se,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":ye()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,le]}],filter:[{filter:["","none",se,le]}],blur:[{blur:Re()}],brightness:[{brightness:[ze,se,le]}],contrast:[{contrast:[ze,se,le]}],"drop-shadow":[{"drop-shadow":["","none",N,go,po]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",ze,se,le]}],"hue-rotate":[{"hue-rotate":[ze,se,le]}],invert:[{invert:["",ze,se,le]}],saturate:[{saturate:[ze,se,le]}],sepia:[{sepia:["",ze,se,le]}],"backdrop-filter":[{"backdrop-filter":["","none",se,le]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[ze,se,le]}],"backdrop-contrast":[{"backdrop-contrast":[ze,se,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,se,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,se,le]}],"backdrop-invert":[{"backdrop-invert":["",ze,se,le]}],"backdrop-opacity":[{"backdrop-opacity":[ze,se,le]}],"backdrop-saturate":[{"backdrop-saturate":[ze,se,le]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,se,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",se,le]}],ease:[{ease:["linear","initial",G,se,le]}],delay:[{delay:[ze,se,le]}],animate:[{animate:["none",J,se,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[B,se,le]}],"perspective-origin":[{"perspective-origin":he()}],rotate:[{rotate:Ve()}],"rotate-x":[{"rotate-x":Ve()}],"rotate-y":[{"rotate-y":Ve()}],"rotate-z":[{"rotate-z":Ve()}],scale:[{scale:Ht()}],"scale-x":[{"scale-x":Ht()}],"scale-y":[{"scale-y":Ht()}],"scale-z":[{"scale-z":Ht()}],"scale-3d":["scale-3d"],skew:[{skew:$t()}],"skew-x":[{"skew-x":$t()}],"skew-y":[{"skew-y":$t()}],transform:[{transform:[se,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:he()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Je()}],"translate-x":[{"translate-x":Je()}],"translate-y":[{"translate-y":Je()}],"translate-z":[{"translate-z":Je()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,le]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[ze,jl,Vi,nf]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},nT=jE(tT);function mn(...n){return nT(tv(n))}function af(n){let i=0;for(const l of n){const s=l.codePointAt(0);s>=19968&&s<=40959||s>=13312&&s<=19903||s>=65280&&s<=65376||s>=12288&&s<=12351?i+=2:i+=1}return i}function tR(n,i){if(af(n)<=i)return n;const l=i-1,s=Math.ceil(l/2),c=Math.floor(l/2);let f="",d=0;for(const b of n){const y=af(b);if(d+y>s)break;f+=b,d+=y}const p=[...n];let g="",m=0;for(let b=p.length-1;b>=0;b--){const y=af(p[b]);if(m+y>c)break;g=p[b]+g,m+=y}return f+"…"+g}let jr=0;function aT(){jr++,jr===1&&(document.body.style.overflow="hidden")}function Vg(){jr=Math.max(0,jr-1),jr===0&&(document.body.style.overflow="")}function iT(){return jr}const Yg=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Gg=tv,rT=(n,i)=>l=>{var s;if(i?.variants==null)return Gg(n,l?.class,l?.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(m=>{const b=l?.[m],y=f?.[m];if(b===null)return null;const x=Yg(b)||Yg(y);return c[m][x]}),p=l&&Object.entries(l).reduce((m,b)=>{let[y,x]=b;return x===void 0||(m[y]=x),m},{}),g=i==null||(s=i.compoundVariants)===null||s===void 0?void 0:s.reduce((m,b)=>{let{class:y,className:x,...N}=b;return Object.entries(N).every(L=>{let[B,K]=L;return Array.isArray(K)?K.includes({...f,...p}[B]):{...f,...p}[B]===K})?[...m,y,x]:m},[]);return Gg(n,d,g,l?.class,l?.className)};function Kg(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function lT(...n){return i=>{let l=!1;const s=n.map(c=>{const f=Kg(c,i);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<s.length;c++){const f=s[c];typeof f=="function"?f():Kg(n[c],null)}}}}function sT(n){const i=uT(n),l=T.forwardRef((s,c)=>{const{children:f,...d}=s,p=T.Children.toArray(f),g=p.find(fT);if(g){const m=g.props.children,b=p.map(y=>y===g?T.Children.count(m)>1?T.Children.only(null):T.isValidElement(m)?m.props.children:null:y);return _.jsx(i,{...d,ref:c,children:T.isValidElement(m)?T.cloneElement(m,void 0,b):null})}return _.jsx(i,{...d,ref:c,children:f})});return l.displayName=`${n}.Slot`,l}var oT=sT("Slot");function uT(n){const i=T.forwardRef((l,s)=>{const{children:c,...f}=l;if(T.isValidElement(c)){const d=hT(c),p=dT(f,c.props);return c.type!==T.Fragment&&(p.ref=s?lT(s,d):d),T.cloneElement(c,p)}return T.Children.count(c)>1?T.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var cT=Symbol("radix.slottable");function fT(n){return T.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===cT}function dT(n,i){const l={...i};for(const s in i){const c=n[s],f=i[s];/^on[A-Z]/.test(s)?c&&f?l[s]=(...p)=>{const g=f(...p);return c(...p),g}:c&&(l[s]=c):s==="style"?l[s]={...c,...f}:s==="className"&&(l[s]=[c,f].filter(Boolean).join(" "))}return{...n,...l}}function hT(n){let i=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning;return l?n.ref:(i=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=i&&"isReactWarning"in i&&i.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}const mT=rT("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Pg({className:n,variant:i="default",size:l="default",asChild:s=!1,...c}){const f=s?oT:"button";return _.jsx(f,{"data-slot":"button","data-variant":i,"data-size":l,className:mn(mT({variant:i,size:l,className:n})),...c})}function _t({className:n,...i}){return _.jsx("div",{"data-slot":"skeleton","aria-hidden":"true",className:mn("animate-pulse rounded-md bg-muted motion-reduce:animate-none",n),...i})}function pT({children:n,className:i}){return _.jsx("div",{className:mn("mx-auto w-full max-w-4xl px-5 py-5 sm:px-8 sm:py-6",i),children:n})}function nR({title:n,description:i,actions:l,className:s}){return _.jsxs("div",{className:mn("mb-5 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",s),children:[_.jsxs("div",{className:"min-w-0",children:[_.jsx("h2",{className:"text-xl font-semibold tracking-tight text-foreground",children:n}),i&&_.jsx("p",{className:"mt-1 text-[13px] leading-relaxed text-muted-foreground",children:i})]}),l&&_.jsx("div",{className:"flex flex-wrap items-center gap-2 shrink-0",children:l})]})}function aR({children:n,className:i}){return _.jsx("h3",{className:mn("text-[12px] font-semibold uppercase tracking-wide text-muted-foreground",i),children:n})}function iR({label:n,description:i,icon:l,children:s,align:c="start",controlWidth:f="fixed",className:d}){return _.jsxs("div",{className:mn("flex flex-col gap-3 py-5 sm:flex-row sm:justify-between sm:gap-8",c==="center"?"sm:items-center":"sm:items-start",d),children:[_.jsxs("div",{className:"flex min-w-0 items-start gap-3 sm:max-w-[360px]",children:[l&&_.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground","aria-hidden":"true",children:_.jsx(l,{size:15})}),_.jsxs("div",{className:"min-w-0",children:[_.jsx("div",{className:"text-[13px] font-medium text-foreground",children:n}),i&&_.jsx("p",{className:"mt-0.5 text-xs leading-relaxed text-muted-foreground",children:i})]})]}),_.jsx("div",{className:mn("shrink-0",f==="fixed"?"w-full sm:w-[260px]":"w-auto"),children:s})]})}function rR({label:n,description:i,children:l,className:s,htmlFor:c}){return _.jsxs("div",{className:mn("space-y-1.5",s),children:[_.jsxs("div",{children:[_.jsx("label",{htmlFor:c,className:"block text-[13px] font-medium text-foreground",children:n}),i&&_.jsx("p",{className:"text-xs leading-relaxed text-muted-foreground",children:i})]}),l]})}function lR({icon:n,message:i,action:l,className:s}){return _.jsxs("div",{className:mn("rounded-xl border border-dashed border-border bg-muted/30 py-14 text-center",s),children:[n&&_.jsx(n,{size:48,strokeWidth:1.25,className:"mx-auto mb-3 text-muted-foreground/40","aria-hidden":"true"}),_.jsx("p",{className:"text-sm text-muted-foreground",children:i}),l&&_.jsx("div",{className:"mt-4 flex justify-center",children:l})]})}function sR({saving:n,onSave:i,onCancel:l,className:s}){const{t:c}=Wy();return _.jsx("div",{className:mn("sticky bottom-0 z-10 -mx-5 border-t border-border/60 bg-background/90 px-5 py-3 backdrop-blur sm:-mx-8 sm:px-8",s),children:_.jsxs("div",{className:"flex items-center justify-between gap-3",children:[_.jsx("span",{className:"text-xs text-muted-foreground",children:c("有未保存的更改")}),_.jsxs("div",{className:"flex items-center gap-2",children:[l&&_.jsx(Pg,{size:"sm",variant:"ghost",onClick:l,disabled:n,children:c("取消")}),_.jsx(Pg,{size:"sm",onClick:i,disabled:n,children:c(n?"保存中...":"保存")})]})]})})}function gT({rows:n=3}){return _.jsxs("div",{role:"status","aria-label":"Loading",children:[_.jsx(_t,{className:"h-7 w-36"}),_.jsx("div",{className:"mt-6 divide-y divide-border/60",children:Array.from({length:n}).map((i,l)=>_.jsxs("div",{className:"flex items-start justify-between gap-8 py-5",children:[_.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[_.jsx(_t,{className:"h-4 w-32"}),_.jsx(_t,{className:"h-3 w-64 max-w-full"})]}),_.jsx(_t,{className:"h-9 w-[260px] shrink-0 rounded-lg"})]},l))})]})}function oR(){return _.jsxs("div",{role:"status","aria-label":"Loading",children:[_.jsx(_t,{className:"h-7 w-36"}),_.jsxs("div",{className:"mt-6 grid gap-5 lg:grid-cols-[240px_minmax(0,1fr)]",children:[_.jsx("div",{className:"space-y-1",children:Array.from({length:5}).map((n,i)=>_.jsxs("div",{className:"flex items-center gap-3 rounded-lg px-3 py-2.5",children:[_.jsx(_t,{className:"h-2 w-2 rounded-full"}),_.jsxs("div",{className:"flex-1 space-y-1.5",children:[_.jsx(_t,{className:"h-3.5 w-3/4"}),_.jsx(_t,{className:"h-2.5 w-1/2"})]})]},i))}),_.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[_.jsxs("div",{className:"flex items-start justify-between gap-4",children:[_.jsxs("div",{className:"space-y-2",children:[_.jsx(_t,{className:"h-5 w-44"}),_.jsx(_t,{className:"h-3 w-28"})]}),_.jsx(_t,{className:"h-8 w-24 rounded-md"})]}),_.jsxs("div",{className:"mt-8 space-y-3",children:[_.jsx(_t,{className:"h-3 w-20"}),_.jsx(_t,{className:"h-24 w-full rounded-lg"}),_.jsx(_t,{className:"h-3 w-20"}),_.jsx(_t,{className:"h-16 w-full rounded-lg"})]})]})]})]})}function uR({cards:n=6}){return _.jsxs("div",{role:"status","aria-label":"Loading",children:[_.jsxs("div",{className:"flex items-center justify-between gap-4",children:[_.jsx(_t,{className:"h-7 w-36"}),_.jsx(_t,{className:"h-8 w-44 rounded-lg"})]}),_.jsx("div",{className:"mt-6 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:Array.from({length:n}).map((i,l)=>_.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-border bg-card p-4",children:[_.jsx(_t,{className:"h-10 w-10 shrink-0 rounded-full"}),_.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[_.jsx(_t,{className:"h-4 w-2/3"}),_.jsx(_t,{className:"h-3 w-1/2"}),_.jsx(_t,{className:"h-3 w-3/4"})]})]},l))})]})}const yT=T.lazy(()=>Yn(()=>import("./GeneralSettingsPage-CFc1CWWl.js"),__vite__mapDeps([0,1,2,3,4,5])).then(n=>({default:n.GeneralSettingsPage}))),vT=T.lazy(()=>Yn(()=>import("./ProviderSettingsPage-G7pPagR6.js"),__vite__mapDeps([6,5,7,8,9,1,2,3,10,4,11,12,13,14,15,16,17,18,19,20])).then(n=>({default:n.ProviderSettingsPage}))),bT=T.lazy(()=>Yn(()=>import("./TeamSettingsPage-CC_QgVbE.js"),__vite__mapDeps([21,7,8,1,2,3,22,5,16,18,23])).then(n=>({default:n.TeamSettingsPage}))),ST=T.lazy(()=>Yn(()=>import("./ProjectSettingsPage-Cj46vZYF.js"),__vite__mapDeps([24,25,26,12,27,28,3,18,8,15,16,20])).then(n=>({default:n.ProjectSettingsPage}))),wT=T.lazy(()=>Yn(()=>import("./NotificationSettingsPage-Dsn-5Uft.js"),__vite__mapDeps([29,1,2,3,9,10,30,27,28])).then(n=>({default:n.NotificationSettingsPage}))),xT=T.lazy(()=>Yn(()=>import("./McpSettingsPage-BujDKp8T.js"),__vite__mapDeps([31,27,32,3])).then(n=>({default:n.McpSettingsPage}))),ET=T.lazy(()=>Yn(()=>import("./ProfileSettingsPage-CuhQBP_t.js"),__vite__mapDeps([33,34,8,7,9,4,35,2,18,19])).then(n=>({default:n.ProfileSettingsPage}))),Xg=[{id:"general",label:"通用",icon:Zx},{id:"agents",label:"Agent 配置",icon:Kx},{id:"team",label:"团队协作",icon:Wx},{id:"projects",label:"项目配置",icon:Xx},{id:"notifications",label:"通知",icon:Qx},{id:"mcp",label:"MCP 配置",icon:Yx}];function TT({tab:n}){switch(n){case"general":return _.jsx(yT,{});case"agents":return _.jsx(vT,{});case"team":return _.jsx(bT,{});case"projects":return _.jsx(ST,{});case"notifications":return _.jsx(wT,{});case"mcp":return _.jsx(xT,{});case"agents-legacy":return _.jsx(ET,{})}}function RT(){return _.jsx(pT,{children:_.jsx(gT,{rows:3})})}function _T(){const{t:n}=Wy(),i=ql(m=>m.settingsOpen),l=ql(m=>m.settingsTab),s=ql(m=>m.closeSettings),c=ql(m=>m.setSettingsTab),[f,d]=T.useState(!1),p=T.useRef(!1),g=T.useRef(null);return T.useEffect(()=>{if(i)d(!0),p.current||(aT(),p.current=!0),requestAnimationFrame(()=>g.current?.focus());else{const m=setTimeout(()=>d(!1),200);return p.current&&(Vg(),p.current=!1),()=>clearTimeout(m)}},[i]),T.useEffect(()=>()=>{p.current&&(Vg(),p.current=!1)},[]),T.useEffect(()=>{if(!i)return;const m=b=>{b.key==="Escape"&&iT()===1&&s()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[i,s]),!f&&!i?null:_.jsxs("div",{className:mn("fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6 transition-opacity duration-200 motion-reduce:transition-none",i?"opacity-100":"opacity-0 pointer-events-none"),children:[_.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm",onClick:s,"aria-hidden":"true"}),_.jsxs("div",{ref:g,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":n("设置"),className:mn("relative flex w-full max-w-[1100px] flex-col overflow-hidden rounded-2xl bg-background shadow-[0_12px_16px_-4px_rgba(36,36,36,0.08)] ring-1 ring-foreground/5 transform transition-all duration-200 outline-none motion-reduce:transition-none","h-[min(calc(100vh-1.5rem),840px)] sm:h-[min(calc(100vh-3rem),840px)]",i?"scale-100 translate-y-0":"scale-[0.97] translate-y-1"),children:[_.jsxs("div",{className:"flex shrink-0 items-center justify-between border-b border-border/60 bg-muted/40 px-5 py-3 sm:px-6",children:[_.jsxs("div",{className:"flex items-center gap-2.5",children:[_.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-lg bg-primary text-primary-foreground","aria-hidden":"true",children:_.jsx(Ix,{size:14})}),_.jsx("h2",{className:"text-[15px] font-semibold text-foreground",children:n("设置")})]}),_.jsx("button",{onClick:s,"aria-label":n("取消"),className:"flex h-7 w-7 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",children:_.jsx(tE,{size:15})})]}),_.jsx("div",{className:"sm:hidden flex shrink-0 border-b border-border/60 bg-background overflow-x-auto scrollbar-none",role:"tablist",children:Xg.map(m=>_.jsxs("button",{role:"tab","aria-selected":l===m.id,onClick:()=>c(m.id),className:mn("flex items-center gap-1.5 px-4 py-2.5 text-xs whitespace-nowrap transition-colors border-b-2 -mb-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-inset",l===m.id?"border-primary text-foreground font-medium":"border-transparent text-muted-foreground hover:text-foreground"),children:[_.jsx(m.icon,{size:13,"aria-hidden":"true"}),_.jsx("span",{children:n(m.label)})]},m.id))}),_.jsxs("div",{className:"flex flex-1 min-h-0",children:[_.jsx("nav",{"aria-label":n("设置"),className:"hidden sm:flex w-[180px] shrink-0 flex-col gap-0.5 border-r border-border/60 bg-muted/30 p-3 overflow-y-auto scrollbar-app-thin",children:Xg.map(m=>_.jsxs("button",{"aria-current":l===m.id?"page":void 0,onClick:()=>c(m.id),className:mn("flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-[13px] transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",l===m.id?"bg-background text-foreground font-medium shadow-[0_1px_2px_rgba(0,0,0,0.05)] ring-1 ring-foreground/[0.04]":"text-muted-foreground hover:text-foreground hover:bg-background/60"),children:[_.jsx(m.icon,{size:15,className:"shrink-0","aria-hidden":"true"}),_.jsx("span",{children:n(m.label)})]},m.id))}),_.jsx("div",{className:"flex-1 min-w-0 overflow-y-auto scrollbar-app-thin bg-background",children:_.jsx(T.Suspense,{fallback:_.jsx(RT,{}),children:_.jsx(TT,{tab:l})})})]})]})]})}function CT(){return _.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[_.jsx(Iw,{}),_.jsx(_T,{})]})}const AT="/assets/agent-tower-logo-COx9gy77.png",OT=`
14
+ @media (prefers-reduced-motion: reduce) {
15
+ .loading-anim-area,
16
+ .loading-anim-area * {
17
+ animation-duration: 0.01ms !important;
18
+ animation-iteration-count: 1 !important;
19
+ transition-duration: 0.01ms !important;
20
+ }
21
+ }
22
+ `;function MT(){return _.jsxs("div",{className:"flex flex-col items-center gap-4",children:[_.jsxs("div",{className:"relative w-10 h-10 loading-anim-area",children:[_.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",className:"w-10 h-10 text-primary",children:[_.jsx("path",{d:"M12 2L2 7L12 12L22 7L12 2Z",fill:"currentColor",className:"animate-pulse motion-reduce:animate-none"}),_.jsx("path",{d:"M2 17L12 22L22 17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-40"}),_.jsx("path",{d:"M2 12L12 17L22 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-60"})]}),_.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:_.jsx("div",{className:"w-2 h-2 rounded-full bg-primary animate-ping motion-reduce:animate-none opacity-40"})})]}),_.jsx("span",{className:"text-sm text-muted-foreground animate-pulse motion-reduce:animate-none",children:"Loading"})]})}function NT(){return _.jsxs("div",{className:"flex flex-col items-center gap-4",children:[_.jsx("div",{className:"flex items-end gap-1 h-8 loading-anim-area",children:[0,1,2,3,4].map(n=>_.jsx("div",{className:"w-1.5 bg-primary/80 rounded-full",style:{animation:`stackRise 1.2s ease-in-out ${n*.15}s infinite`,height:"8px"}},n))}),_.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),_.jsx("style",{children:`
23
+ @keyframes stackRise {
24
+ 0%, 100% { height: 8px; opacity: 0.4; }
25
+ 50% { height: 28px; opacity: 1; }
26
+ }
27
+ @media (prefers-reduced-motion: reduce) {
28
+ @keyframes stackRise {
29
+ 0%, 100% { height: 16px; opacity: 0.7; }
30
+ }
31
+ }
32
+ `})]})}function DT(){return _.jsxs("div",{className:"flex flex-col items-center gap-4",children:[_.jsxs("div",{className:"relative w-10 h-10 loading-anim-area",children:[_.jsx("div",{className:"absolute inset-0 border-2 border-border rounded-full"}),_.jsx("div",{className:"absolute inset-0 border-2 border-transparent border-t-primary rounded-full",style:{animation:"orbitSpin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite"}}),_.jsx("div",{className:"absolute inset-[6px] border border-border/60 rounded-full"}),_.jsx("div",{className:"absolute inset-[6px] border border-transparent border-b-primary/60 rounded-full",style:{animation:"orbitSpin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse"}})]}),_.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),_.jsx("style",{children:`
33
+ @keyframes orbitSpin {
34
+ to { transform: rotate(360deg); }
35
+ }
36
+ @media (prefers-reduced-motion: reduce) {
37
+ @keyframes orbitSpin {
38
+ to { transform: rotate(0deg); }
39
+ }
40
+ }
41
+ `})]})}function kT(){return _.jsxs("div",{className:"flex flex-col items-center gap-4",children:[_.jsxs("div",{className:"flex items-center gap-0.5 px-4 py-2 bg-primary rounded-lg loading-anim-area",children:[_.jsx("span",{className:"text-primary-foreground text-xs font-mono tracking-wider",children:"loading"}),_.jsx("span",{className:"inline-block w-[7px] h-4 bg-primary-foreground/80 ml-0.5",style:{animation:"termBlink 1s steps(1) infinite"}})]}),_.jsx("style",{children:`
42
+ @keyframes termBlink {
43
+ 0%, 50% { opacity: 1; }
44
+ 51%, 100% { opacity: 0; }
45
+ }
46
+ @media (prefers-reduced-motion: reduce) {
47
+ @keyframes termBlink {
48
+ 0%, 100% { opacity: 0.8; }
49
+ }
50
+ }
51
+ `})]})}function zT(){return _.jsxs("div",{className:"flex flex-col items-center gap-4",children:[_.jsx("div",{className:"flex items-center gap-2 loading-anim-area",children:[0,1,2].map(n=>_.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-primary",style:{animation:`dotWave 1.4s ease-in-out ${n*.2}s infinite`}},n))}),_.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),_.jsx("style",{children:`
52
+ @keyframes dotWave {
53
+ 0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
54
+ 40% { transform: scale(1); opacity: 1; }
55
+ }
56
+ @media (prefers-reduced-motion: reduce) {
57
+ @keyframes dotWave {
58
+ 0%, 100% { transform: scale(1); opacity: 0.7; }
59
+ }
60
+ }
61
+ `})]})}function jT(){return _.jsxs("div",{className:"flex flex-col items-center gap-4",children:[_.jsx("div",{className:"relative w-10 h-10 loading-anim-area",children:[0,1,2].map(n=>_.jsx("div",{className:"absolute rounded-md border border-border bg-background",style:{width:`${28-n*4}px`,height:`${28-n*4}px`,left:`${6+n*2}px`,top:`${6+n*2}px`,animation:`layerShift 2s ease-in-out ${n*.3}s infinite`,boxShadow:"0 1px 2px rgba(0,0,0,0.05)"}},n))}),_.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),_.jsx("style",{children:`
62
+ @keyframes layerShift {
63
+ 0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
64
+ 25% { transform: translate(-3px, -3px) rotate(-2deg); opacity: 0.8; }
65
+ 50% { transform: translate(0, -4px) rotate(0deg); opacity: 1; }
66
+ 75% { transform: translate(3px, -3px) rotate(2deg); opacity: 0.8; }
67
+ }
68
+ @media (prefers-reduced-motion: reduce) {
69
+ @keyframes layerShift {
70
+ 0%, 100% { transform: none; opacity: 0.8; }
71
+ }
72
+ }
73
+ `})]})}function LT(){return _.jsxs("div",{className:"flex flex-col items-center gap-4",children:[_.jsx("div",{className:"w-32 h-1 bg-border rounded-full overflow-hidden loading-anim-area",children:_.jsx("div",{className:"h-full bg-primary rounded-full",style:{animation:"progressBeam 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite"}})}),_.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),_.jsx("style",{children:`
74
+ @keyframes progressBeam {
75
+ 0% { width: 0%; margin-left: 0%; }
76
+ 50% { width: 60%; margin-left: 20%; }
77
+ 100% { width: 0%; margin-left: 100%; }
78
+ }
79
+ @media (prefers-reduced-motion: reduce) {
80
+ @keyframes progressBeam {
81
+ 0%, 100% { width: 40%; margin-left: 30%; }
82
+ }
83
+ }
84
+ `})]})}function UT(){return _.jsxs("div",{className:"flex flex-col items-center gap-4",children:[_.jsx("div",{className:"flex gap-2 loading-anim-area",children:[0,1,2].map(n=>_.jsxs("div",{className:"flex flex-col gap-1.5 w-16",children:[_.jsx("div",{className:"h-2 rounded-full bg-border",style:{animation:`shimmer 1.8s ease-in-out ${n*.2}s infinite`}}),[0,1].map(i=>_.jsx("div",{className:"h-6 rounded bg-muted",style:{animation:`shimmer 1.8s ease-in-out ${(n*2+i)*.15}s infinite`}},i))]},n))}),_.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),_.jsx("style",{children:`
85
+ @keyframes shimmer {
86
+ 0%, 100% { opacity: 0.4; }
87
+ 50% { opacity: 1; }
88
+ }
89
+ @media (prefers-reduced-motion: reduce) {
90
+ @keyframes shimmer {
91
+ 0%, 100% { opacity: 0.7; }
92
+ }
93
+ }
94
+ `})]})}function BT(){return _.jsxs("div",{className:"flex flex-col items-center gap-4",children:[_.jsx("div",{className:"relative w-10 h-10 loading-anim-area",children:_.jsxs("svg",{viewBox:"0 0 40 40",className:"w-10 h-10",children:[_.jsx("circle",{cx:"20",cy:"20",r:"16",fill:"none",stroke:"var(--border)",strokeWidth:"2"}),_.jsx("circle",{cx:"20",cy:"20",r:"16",fill:"none",stroke:"var(--primary)",strokeWidth:"2",strokeDasharray:"25 75",strokeLinecap:"round",style:{animation:"glyphRotate 1.2s linear infinite"},transform:"rotate(-90 20 20)"}),_.jsx("path",{d:"M20 10L14 16L20 22L26 16Z",fill:"var(--primary)",opacity:"0.8",style:{animation:"glyphFade 1.2s ease-in-out infinite"}})]})}),_.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading"}),_.jsx("style",{children:`
95
+ @keyframes glyphRotate {
96
+ to { stroke-dashoffset: -100; }
97
+ }
98
+ @keyframes glyphFade {
99
+ 0%, 100% { opacity: 0.4; transform: scale(0.9); }
100
+ 50% { opacity: 0.9; transform: scale(1); }
101
+ }
102
+ @media (prefers-reduced-motion: reduce) {
103
+ @keyframes glyphRotate {
104
+ to { stroke-dashoffset: 0; }
105
+ }
106
+ @keyframes glyphFade {
107
+ 0%, 100% { opacity: 0.8; transform: scale(1); }
108
+ }
109
+ }
110
+ `})]})}function mv({size:n="md"}){const i=n==="lg"?{container:"w-20 h-20",img:"w-16 h-16"}:{container:"w-12 h-12",img:"w-10 h-10"};return _.jsxs("div",{className:"flex flex-col items-center",children:[_.jsx("div",{className:`flex items-center justify-center ${i.container} loading-anim-area`,children:_.jsx("img",{src:AT,alt:"Agent Tower",className:`${i.img} object-contain rounded-xl`,style:{animation:"charcoalBreathe 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"}})}),_.jsx("style",{children:`
111
+ @keyframes charcoalBreathe {
112
+ 0%, 100% { transform: scale(1); opacity: 0.85; }
113
+ 50% { transform: scale(1.08); opacity: 1; }
114
+ }
115
+ @media (prefers-reduced-motion: reduce) {
116
+ @keyframes charcoalBreathe {
117
+ 0%, 100% { transform: scale(1); opacity: 1; }
118
+ }
119
+ }
120
+ `})]})}const cR=[{id:"tower-pulse",name:"Tower Pulse",description:"Agent Tower 品牌图标配合脉冲光点,传达「系统就绪中」的品牌感。",component:MT},{id:"stack-rise",name:"Stack Rise",description:"五根柱状条交错升降,暗喻任务编排队列,节奏感强。",component:NT},{id:"orbit-ring",name:"Orbit Ring",description:"双层同心圆环反向旋转,精密工具质感,不浮夸。",component:DT},{id:"terminal-cursor",name:"Terminal Cursor",description:"终端风格光标闪烁,与 Agent Tower 终端协作场景直接呼应。",component:kT},{id:"dot-wave",name:"Dot Wave",description:"三点波浪脉动,极简克制,适合工具型产品的默认加载。",component:zT},{id:"layer-shift",name:"Layer Shift",description:"三层卡片微幅浮动,模拟看板层叠翻页,呼应任务管理语境。",component:jT},{id:"progress-beam",name:"Progress Beam",description:"水平光束往复滑过进度条,线性进度隐喻,不阻断视线。",component:LT},{id:"skeleton-board",name:"Skeleton Board",description:"三列骨架屏微闪,预示看板布局,减少布局跳变。",component:UT},{id:"glyph-rotate",name:"Glyph Rotate",description:"圆环进度弧 + 中心菱形符号呼吸,兼具进度指示与品牌印记。",component:BT},{id:"charcoal-breathe",name:"Charcoal Breathe",description:"Charcoal 圆角色块呼吸缩放,内嵌 Tower 图标,品牌存在感最强。",component:mv}];function Nr(){return _.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background",children:[_.jsx("style",{children:OT}),_.jsx(mv,{size:"lg"})]})}const qT=T.lazy(()=>Yn(()=>import("./ProjectKanbanPage-DiEo6BK_.js"),__vite__mapDeps([36,11,12,2,13,7,8,37,38,14,3,27,22,5,18,39,26,25,28,30,35,23,1,32,17,16,20,40])).then(n=>({default:n.ProjectKanbanPage}))),Fg=T.lazy(()=>Yn(()=>import("./ConversationPage-BXDIbwTR.js"),__vite__mapDeps([41,11,12,2,13,39,3,38,14,27,22,5,18,26,30,16])).then(n=>({default:n.ConversationPage}))),HT=T.lazy(()=>Yn(()=>import("./DemoPage-BeL28u5_.js"),[]).then(n=>({default:n.DemoPage}))),QT=T.lazy(()=>Yn(()=>import("./AgentDemoPage-Cc1sKLmE.js"),__vite__mapDeps([42,39,2,3,11,12,13,37,34,23])).then(n=>({default:n.AgentDemoPage}))),VT=T.lazy(()=>Yn(()=>import("./LoadingPreviewPage-CRwEvHz_.js"),[]).then(n=>({default:n.LoadingPreviewPage}))),YT=new Set(["general","agents","team","projects","notifications","mcp","agents-legacy"]);function Zg(){const n=Qy(),{tab:i}=Ow();return T.useEffect(()=>{const l=i&&YT.has(i)?i:"general";ql.getState().openSettings(l),n("/",{replace:!0})},[n,i]),null}const GT=xx([{path:"/",element:_.jsx(CT,{}),children:[{index:!0,element:_.jsx(T.Suspense,{fallback:_.jsx(Nr,{}),children:_.jsx(qT,{})})},{path:"conversations",element:_.jsx(T.Suspense,{fallback:_.jsx(Nr,{}),children:_.jsx(Fg,{})})},{path:"conversations/:conversationId",element:_.jsx(T.Suspense,{fallback:_.jsx(Nr,{}),children:_.jsx(Fg,{})})},{path:"demo",element:_.jsx(T.Suspense,{fallback:_.jsx(Nr,{}),children:_.jsx(HT,{})})},{path:"agent-demo",element:_.jsx(T.Suspense,{fallback:_.jsx(Nr,{}),children:_.jsx(QT,{})})},{path:"loading-preview",element:_.jsx(T.Suspense,{fallback:_.jsx(Nr,{}),children:_.jsx(VT,{})})},{path:"settings",element:_.jsx(Zg,{})},{path:"settings/:tab",element:_.jsx(Zg,{})}]}]);function KT(){return _.jsx(zx,{router:GT})}const da=Object.create(null);da.open="0";da.close="1";da.ping="2";da.pong="3";da.message="4";da.upgrade="5";da.noop="6";const Eo=Object.create(null);Object.keys(da).forEach(n=>{Eo[da[n]]=n});const xf={type:"error",data:"parser error"},pv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",gv=typeof ArrayBuffer=="function",yv=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Ff=({type:n,data:i},l,s)=>pv&&i instanceof Blob?l?s(i):Jg(i,s):gv&&(i instanceof ArrayBuffer||yv(i))?l?s(i):Jg(new Blob([i]),s):s(da[n]+(i||"")),Jg=(n,i)=>{const l=new FileReader;return l.onload=function(){const s=l.result.split(",")[1];i("b"+(s||""))},l.readAsDataURL(n)};function Ig(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let rf;function PT(n,i){if(pv&&n.data instanceof Blob)return n.data.arrayBuffer().then(Ig).then(i);if(gv&&(n.data instanceof ArrayBuffer||yv(n.data)))return i(Ig(n.data));Ff(n,!1,l=>{rf||(rf=new TextEncoder),i(rf.encode(l))})}const $g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<$g.length;n++)Hl[$g.charCodeAt(n)]=n;const XT=n=>{let i=n.length*.75,l=n.length,s,c=0,f,d,p,g;n[n.length-1]==="="&&(i--,n[n.length-2]==="="&&i--);const m=new ArrayBuffer(i),b=new Uint8Array(m);for(s=0;s<l;s+=4)f=Hl[n.charCodeAt(s)],d=Hl[n.charCodeAt(s+1)],p=Hl[n.charCodeAt(s+2)],g=Hl[n.charCodeAt(s+3)],b[c++]=f<<2|d>>4,b[c++]=(d&15)<<4|p>>2,b[c++]=(p&3)<<6|g&63;return m},FT=typeof ArrayBuffer=="function",Zf=(n,i)=>{if(typeof n!="string")return{type:"message",data:vv(n,i)};const l=n.charAt(0);return l==="b"?{type:"message",data:ZT(n.substring(1),i)}:Eo[l]?n.length>1?{type:Eo[l],data:n.substring(1)}:{type:Eo[l]}:xf},ZT=(n,i)=>{if(FT){const l=XT(n);return vv(l,i)}else return{base64:!0,data:n}},vv=(n,i)=>i==="blob"?n instanceof Blob?n:new Blob([n]):n instanceof ArrayBuffer?n:n.buffer,bv="",JT=(n,i)=>{const l=n.length,s=new Array(l);let c=0;n.forEach((f,d)=>{Ff(f,!1,p=>{s[d]=p,++c===l&&i(s.join(bv))})})},IT=(n,i)=>{const l=n.split(bv),s=[];for(let c=0;c<l.length;c++){const f=Zf(l[c],i);if(s.push(f),f.type==="error")break}return s};function $T(){return new TransformStream({transform(n,i){PT(n,l=>{const s=l.length;let c;if(s<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,s);else if(s<65536){c=new Uint8Array(3);const f=new DataView(c.buffer);f.setUint8(0,126),f.setUint16(1,s)}else{c=new Uint8Array(9);const f=new DataView(c.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(c[0]|=128),i.enqueue(c),i.enqueue(l)})}})}let lf;function yo(n){return n.reduce((i,l)=>i+l.length,0)}function vo(n,i){if(n[0].length===i)return n.shift();const l=new Uint8Array(i);let s=0;for(let c=0;c<i;c++)l[c]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),l}function WT(n,i){lf||(lf=new TextDecoder);const l=[];let s=0,c=-1,f=!1;return new TransformStream({transform(d,p){for(l.push(d);;){if(s===0){if(yo(l)<1)break;const g=vo(l,1);f=(g[0]&128)===128,c=g[0]&127,c<126?s=3:c===126?s=1:s=2}else if(s===1){if(yo(l)<2)break;const g=vo(l,2);c=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),s=3}else if(s===2){if(yo(l)<8)break;const g=vo(l,8),m=new DataView(g.buffer,g.byteOffset,g.length),b=m.getUint32(0);if(b>Math.pow(2,21)-1){p.enqueue(xf);break}c=b*Math.pow(2,32)+m.getUint32(4),s=3}else{if(yo(l)<c)break;const g=vo(l,c);p.enqueue(Zf(f?g:lf.decode(g),i)),s=0}if(c===0||c>n){p.enqueue(xf);break}}}})}const Sv=4;function Nt(n){if(n)return e2(n)}function e2(n){for(var i in Nt.prototype)n[i]=Nt.prototype[i];return n}Nt.prototype.on=Nt.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this};Nt.prototype.once=function(n,i){function l(){this.off(n,l),i.apply(this,arguments)}return l.fn=i,this.on(n,l),this};Nt.prototype.off=Nt.prototype.removeListener=Nt.prototype.removeAllListeners=Nt.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var l=this._callbacks["$"+n];if(!l)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,c=0;c<l.length;c++)if(s=l[c],s===i||s.fn===i){l.splice(c,1);break}return l.length===0&&delete this._callbacks["$"+n],this};Nt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),l=this._callbacks["$"+n],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(l){l=l.slice(0);for(var s=0,c=l.length;s<c;++s)l[s].apply(this,i)}return this};Nt.prototype.emitReserved=Nt.prototype.emit;Nt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Nt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const jo=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,l)=>l(i,0),Qn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),t2="arraybuffer";function wv(n,...i){return i.reduce((l,s)=>(n.hasOwnProperty(s)&&(l[s]=n[s]),l),{})}const n2=Qn.setTimeout,a2=Qn.clearTimeout;function Lo(n,i){i.useNativeTimers?(n.setTimeoutFn=n2.bind(Qn),n.clearTimeoutFn=a2.bind(Qn)):(n.setTimeoutFn=Qn.setTimeout.bind(Qn),n.clearTimeoutFn=Qn.clearTimeout.bind(Qn))}const i2=1.33;function r2(n){return typeof n=="string"?l2(n):Math.ceil((n.byteLength||n.size)*i2)}function l2(n){let i=0,l=0;for(let s=0,c=n.length;s<c;s++)i=n.charCodeAt(s),i<128?l+=1:i<2048?l+=2:i<55296||i>=57344?l+=3:(s++,l+=4);return l}function xv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function s2(n){let i="";for(let l in n)n.hasOwnProperty(l)&&(i.length&&(i+="&"),i+=encodeURIComponent(l)+"="+encodeURIComponent(n[l]));return i}function o2(n){let i={},l=n.split("&");for(let s=0,c=l.length;s<c;s++){let f=l[s].split("=");i[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return i}class u2 extends Error{constructor(i,l,s){super(i),this.description=l,this.context=s,this.type="TransportError"}}class Jf extends Nt{constructor(i){super(),this.writable=!1,Lo(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,l,s){return super.emitReserved("error",new u2(i,l,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const l=Zf(i,this.socket.binaryType);this.onPacket(l)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,l={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(l)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const l=s2(i);return l.length?"?"+l:""}}class c2 extends Jf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const l=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||l()})),this.writable||(s++,this.once("drain",function(){--s||l()}))}else l()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const l=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};IT(i,this.socket.binaryType).forEach(l),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,JT(i,l=>{this.doWrite(l,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",l=this.query||{};return this.opts.timestampRequests!==!1&&(l[this.opts.timestampParam]=xv()),!this.supportsBinary&&!l.sid&&(l.b64=1),this.createUri(i,l)}}let Ev=!1;try{Ev=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const f2=Ev;function d2(){}class h2 extends c2{constructor(i){if(super(i),typeof location<"u"){const l=location.protocol==="https:";let s=location.port;s||(s=l?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,l){const s=this.request({method:"POST",data:i});s.on("success",l),s.on("error",(c,f)=>{this.onError("xhr post error",c,f)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(l,s)=>{this.onError("xhr poll error",l,s)}),this.pollXhr=i}}let Lr=class To extends Nt{constructor(i,l,s){super(),this.createRequest=i,Lo(this,s),this._opts=s,this._method=s.method||"GET",this._uri=l,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var i;const l=wv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");l.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(l);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&s.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var c;s.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=To.requestsCount++,To.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=d2,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete To.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Lr.requestsCount=0;Lr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Wg);else if(typeof addEventListener=="function"){const n="onpagehide"in Qn?"pagehide":"unload";addEventListener(n,Wg,!1)}}function Wg(){for(let n in Lr.requests)Lr.requests.hasOwnProperty(n)&&Lr.requests[n].abort()}const m2=(function(){const n=Tv({xdomain:!1});return n&&n.responseType!==null})();class p2 extends h2{constructor(i){super(i);const l=i&&i.forceBase64;this.supportsBinary=m2&&!l}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Lr(Tv,this.uri(),i)}}function Tv(n){const i=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||f2))return new XMLHttpRequest}catch{}if(!i)try{return new Qn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Rv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class g2 extends Jf{get name(){return"websocket"}doOpen(){const i=this.uri(),l=this.opts.protocols,s=Rv?{}:wv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,l,s)}catch(c){return this.emitReserved("error",c)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let l=0;l<i.length;l++){const s=i[l],c=l===i.length-1;Ff(s,this.supportsBinary,f=>{try{this.doWrite(s,f)}catch{}c&&jo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",l=this.query||{};return this.opts.timestampRequests&&(l[this.opts.timestampParam]=xv()),this.supportsBinary||(l.b64=1),this.createUri(i,l)}}const sf=Qn.WebSocket||Qn.MozWebSocket;class y2 extends g2{createSocket(i,l,s){return Rv?new sf(i,l,s):l?new sf(i,l):new sf(i)}doWrite(i,l){this.ws.send(l)}}class v2 extends Jf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const l=WT(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=i.readable.pipeThrough(l).getReader(),c=$T();c.readable.pipeTo(i.writable),this._writer=c.writable.getWriter();const f=()=>{s.read().then(({done:p,value:g})=>{p||(this.onPacket(g),f())}).catch(p=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let l=0;l<i.length;l++){const s=i[l],c=l===i.length-1;this._writer.write(s).then(()=>{c&&jo(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const b2={websocket:y2,webtransport:v2,polling:p2},S2=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,w2=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ef(n){if(n.length>8e3)throw"URI too long";const i=n,l=n.indexOf("["),s=n.indexOf("]");l!=-1&&s!=-1&&(n=n.substring(0,l)+n.substring(l,s).replace(/:/g,";")+n.substring(s,n.length));let c=S2.exec(n||""),f={},d=14;for(;d--;)f[w2[d]]=c[d]||"";return l!=-1&&s!=-1&&(f.source=i,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=x2(f,f.path),f.queryKey=E2(f,f.query),f}function x2(n,i){const l=/\/{2,9}/g,s=i.replace(l,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function E2(n,i){const l={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,c,f){c&&(l[c]=f)}),l}const Tf=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ro=[];Tf&&addEventListener("offline",()=>{Ro.forEach(n=>n())},!1);class pi extends Nt{constructor(i,l){if(super(),this.binaryType=t2,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(l=i,i=null),i){const s=Ef(i);l.hostname=s.host,l.secure=s.protocol==="https"||s.protocol==="wss",l.port=s.port,s.query&&(l.query=s.query)}else l.host&&(l.hostname=Ef(l.host).host);Lo(this,l),this.secure=l.secure!=null?l.secure:typeof location<"u"&&location.protocol==="https:",l.hostname&&!l.port&&(l.port=this.secure?"443":"80"),this.hostname=l.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=l.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},l.transports.forEach(s=>{const c=s.prototype.name;this.transports.push(c),this._transportsByName[c]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},l),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=o2(this.opts.query)),Tf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ro.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const l=Object.assign({},this.opts.query);l.EIO=Sv,l.transport=i,this.id&&(l.sid=this.id);const s=Object.assign({},this.opts,{query:l,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&pi.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const l=this.createTransport(i);l.open(),this.setTransport(l)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",l=>this._onClose("transport close",l))}onOpen(){this.readyState="open",pi.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const l=new Error("server error");l.code=i.data,this._onError(l);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let l=1;for(let s=0;s<this.writeBuffer.length;s++){const c=this.writeBuffer[s].data;if(c&&(l+=r2(c)),s>0&&l>this._maxPayload)return this.writeBuffer.slice(0,s);l+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,jo(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,l,s){return this._sendPacket("message",i,l,s),this}send(i,l,s){return this._sendPacket("message",i,l,s),this}_sendPacket(i,l,s,c){if(typeof l=="function"&&(c=l,l=void 0),typeof s=="function"&&(c=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const f={type:i,data:l,options:s};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),c&&this.once("flush",c),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},l=()=>{this.off("upgrade",l),this.off("upgradeError",l),i()},s=()=>{this.once("upgrade",l),this.once("upgradeError",l)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():i()}):this.upgrading?s():i()),this}_onError(i){if(pi.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Tf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Ro.indexOf(this._offlineEventListener);s!==-1&&Ro.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,l),this.writeBuffer=[],this._prevBufferLen=0}}}pi.protocol=Sv;class T2 extends pi{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let l=this.createTransport(i),s=!1;pi.priorWebsocketSuccess=!1;const c=()=>{s||(l.send([{type:"ping",data:"probe"}]),l.once("packet",y=>{if(!s)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",l),!l)return;pi.priorWebsocketSuccess=l.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(l),l.send([{type:"upgrade"}]),this.emitReserved("upgrade",l),l=null,this.upgrading=!1,this.flush())})}else{const x=new Error("probe error");x.transport=l.name,this.emitReserved("upgradeError",x)}}))};function f(){s||(s=!0,b(),l.close(),l=null)}const d=y=>{const x=new Error("probe error: "+y);x.transport=l.name,f(),this.emitReserved("upgradeError",x)};function p(){d("transport closed")}function g(){d("socket closed")}function m(y){l&&y.name!==l.name&&f()}const b=()=>{l.removeListener("open",c),l.removeListener("error",d),l.removeListener("close",p),this.off("close",g),this.off("upgrading",m)};l.once("open",c),l.once("error",d),l.once("close",p),this.once("close",g),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||l.open()},200):l.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const l=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&l.push(i[s]);return l}}let R2=class extends T2{constructor(i,l={}){const s=typeof i=="object"?i:l;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(c=>b2[c]).filter(c=>!!c)),super(i,s)}};function _2(n,i="",l){let s=n;l=l||typeof location<"u"&&location,n==null&&(n=l.protocol+"//"+l.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=l.protocol+n:n=l.host+n),/^(https?|wss?):\/\//.test(n)||(typeof l<"u"?n=l.protocol+"//"+n:n="https://"+n),s=Ef(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const f=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+f+":"+s.port+i,s.href=s.protocol+"://"+f+(l&&l.port===s.port?"":":"+s.port),s}const C2=typeof ArrayBuffer=="function",A2=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,_v=Object.prototype.toString,O2=typeof Blob=="function"||typeof Blob<"u"&&_v.call(Blob)==="[object BlobConstructor]",M2=typeof File=="function"||typeof File<"u"&&_v.call(File)==="[object FileConstructor]";function If(n){return C2&&(n instanceof ArrayBuffer||A2(n))||O2&&n instanceof Blob||M2&&n instanceof File}function _o(n,i){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let l=0,s=n.length;l<s;l++)if(_o(n[l]))return!0;return!1}if(If(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return _o(n.toJSON(),!0);for(const l in n)if(Object.prototype.hasOwnProperty.call(n,l)&&_o(n[l]))return!0;return!1}function N2(n){const i=[],l=n.data,s=n;return s.data=Rf(l,i),s.attachments=i.length,{packet:s,buffers:i}}function Rf(n,i){if(!n)return n;if(If(n)){const l={_placeholder:!0,num:i.length};return i.push(n),l}else if(Array.isArray(n)){const l=new Array(n.length);for(let s=0;s<n.length;s++)l[s]=Rf(n[s],i);return l}else if(typeof n=="object"&&!(n instanceof Date)){const l={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(l[s]=Rf(n[s],i));return l}return n}function D2(n,i){return n.data=_f(n.data,i),delete n.attachments,n}function _f(n,i){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<i.length)return i[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let l=0;l<n.length;l++)n[l]=_f(n[l],i);else if(typeof n=="object")for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(n[l]=_f(n[l],i));return n}const k2=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Fe;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Fe||(Fe={}));class z2{constructor(i){this.replacer=i}encode(i){return(i.type===Fe.EVENT||i.type===Fe.ACK)&&_o(i)?this.encodeAsBinary({type:i.type===Fe.EVENT?Fe.BINARY_EVENT:Fe.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let l=""+i.type;return(i.type===Fe.BINARY_EVENT||i.type===Fe.BINARY_ACK)&&(l+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(l+=i.nsp+","),i.id!=null&&(l+=i.id),i.data!=null&&(l+=JSON.stringify(i.data,this.replacer)),l}encodeAsBinary(i){const l=N2(i),s=this.encodeAsString(l.packet),c=l.buffers;return c.unshift(s),c}}class $f extends Nt{constructor(i){super(),this.reviver=i}add(i){let l;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");l=this.decodeString(i);const s=l.type===Fe.BINARY_EVENT;s||l.type===Fe.BINARY_ACK?(l.type=s?Fe.EVENT:Fe.ACK,this.reconstructor=new j2(l),l.attachments===0&&super.emitReserved("decoded",l)):super.emitReserved("decoded",l)}else if(If(i)||i.base64)if(this.reconstructor)l=this.reconstructor.takeBinaryData(i),l&&(this.reconstructor=null,super.emitReserved("decoded",l));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let l=0;const s={type:Number(i.charAt(0))};if(Fe[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Fe.BINARY_EVENT||s.type===Fe.BINARY_ACK){const f=l+1;for(;i.charAt(++l)!=="-"&&l!=i.length;);const d=i.substring(f,l);if(d!=Number(d)||i.charAt(l)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(i.charAt(l+1)==="/"){const f=l+1;for(;++l&&!(i.charAt(l)===","||l===i.length););s.nsp=i.substring(f,l)}else s.nsp="/";const c=i.charAt(l+1);if(c!==""&&Number(c)==c){const f=l+1;for(;++l;){const d=i.charAt(l);if(d==null||Number(d)!=d){--l;break}if(l===i.length)break}s.id=Number(i.substring(f,l+1))}if(i.charAt(++l)){const f=this.tryParse(i.substr(l));if($f.isPayloadValid(s.type,f))s.data=f;else throw new Error("invalid payload")}return s}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,l){switch(i){case Fe.CONNECT:return ey(l);case Fe.DISCONNECT:return l===void 0;case Fe.CONNECT_ERROR:return typeof l=="string"||ey(l);case Fe.EVENT:case Fe.BINARY_EVENT:return Array.isArray(l)&&(typeof l[0]=="number"||typeof l[0]=="string"&&k2.indexOf(l[0])===-1);case Fe.ACK:case Fe.BINARY_ACK:return Array.isArray(l)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class j2{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const l=D2(this.reconPack,this.buffers);return this.finishedReconstruction(),l}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function ey(n){return Object.prototype.toString.call(n)==="[object Object]"}const L2=Object.freeze(Object.defineProperty({__proto__:null,Decoder:$f,Encoder:z2,get PacketType(){return Fe}},Symbol.toStringTag,{value:"Module"}));function ea(n,i,l){return n.on(i,l),function(){n.off(i,l)}}const U2=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Cv extends Nt{constructor(i,l,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=l,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[ea(i,"open",this.onopen.bind(this)),ea(i,"packet",this.onpacket.bind(this)),ea(i,"error",this.onerror.bind(this)),ea(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...l){var s,c,f;if(U2.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(l.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(l),this;const d={type:Fe.EVENT,data:l};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof l[l.length-1]=="function"){const b=this.ids++,y=l.pop();this._registerAckCallback(b,y),d.id=b}const p=(c=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||c===void 0?void 0:c.writable,g=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!p||(g?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(i,l){var s;const c=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(c===void 0){this.acks[i]=l;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===i&&this.sendBuffer.splice(p,1);l.call(this,new Error("operation has timed out"))},c),d=(...p)=>{this.io.clearTimeoutFn(f),l.apply(this,p)};d.withError=!0,this.acks[i]=d}emitWithAck(i,...l){return new Promise((s,c)=>{const f=(d,p)=>d?c(d):s(p);f.withError=!0,l.push(f),this.emit(i,...l)})}_addToQueue(i){let l;typeof i[i.length-1]=="function"&&(l=i.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((c,...f)=>(this._queue[0],c!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),l&&l(c)):(this._queue.shift(),l&&l(null,...f)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const l=this._queue[0];l.pending&&!i||(l.pending=!0,l.tryCount++,this.flags=l.flags,this.emit.apply(this,l.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:Fe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,l){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,l),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(s=>String(s.id)===i)){const s=this.acks[i];delete this.acks[i],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case Fe.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Fe.EVENT:case Fe.BINARY_EVENT:this.onevent(i);break;case Fe.ACK:case Fe.BINARY_ACK:this.onack(i);break;case Fe.DISCONNECT:this.ondisconnect();break;case Fe.CONNECT_ERROR:this.destroy();const s=new Error(i.data.message);s.data=i.data.data,this.emitReserved("connect_error",s);break}}onevent(i){const l=i.data||[];i.id!=null&&l.push(this.ack(i.id)),this.connected?this.emitEvent(l):this.receiveBuffer.push(Object.freeze(l))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const l=this._anyListeners.slice();for(const s of l)s.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const l=this;let s=!1;return function(...c){s||(s=!0,l.packet({type:Fe.ACK,id:i,data:c}))}}onack(i){const l=this.acks[i.id];typeof l=="function"&&(delete this.acks[i.id],l.withError&&i.data.unshift(null),l.apply(this,i.data))}onconnect(i,l){this.id=i,this.recovered=l&&this._pid===l,this._pid=l,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Fe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const l=this._anyListeners;for(let s=0;s<l.length;s++)if(i===l[s])return l.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const l=this._anyOutgoingListeners;for(let s=0;s<l.length;s++)if(i===l[s])return l.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const l=this._anyOutgoingListeners.slice();for(const s of l)s.apply(this,i.data)}}}function Hr(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Hr.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),l=Math.floor(i*this.jitter*n);n=(Math.floor(i*10)&1)==0?n-l:n+l}return Math.min(n,this.max)|0};Hr.prototype.reset=function(){this.attempts=0};Hr.prototype.setMin=function(n){this.ms=n};Hr.prototype.setMax=function(n){this.max=n};Hr.prototype.setJitter=function(n){this.jitter=n};class Cf extends Nt{constructor(i,l){var s;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(l=i,i=void 0),l=l||{},l.path=l.path||"/socket.io",this.opts=l,Lo(this,l),this.reconnection(l.reconnection!==!1),this.reconnectionAttempts(l.reconnectionAttempts||1/0),this.reconnectionDelay(l.reconnectionDelay||1e3),this.reconnectionDelayMax(l.reconnectionDelayMax||5e3),this.randomizationFactor((s=l.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Hr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(l.timeout==null?2e4:l.timeout),this._readyState="closed",this.uri=i;const c=l.parser||L2;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=l.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var l;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(l=this.backoff)===null||l===void 0||l.setMin(i),this)}randomizationFactor(i){var l;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(l=this.backoff)===null||l===void 0||l.setJitter(i),this)}reconnectionDelayMax(i){var l;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(l=this.backoff)===null||l===void 0||l.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new R2(this.uri,this.opts);const l=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const c=ea(l,"open",function(){s.onopen(),i&&i()}),f=p=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",p),i?i(p):this.maybeReconnectOnOpen()},d=ea(l,"error",f);if(this._timeout!==!1){const p=this._timeout,g=this.setTimeoutFn(()=>{c(),f(new Error("timeout")),l.close()},p);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(c),this.subs.push(d),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(ea(i,"ping",this.onping.bind(this)),ea(i,"data",this.ondata.bind(this)),ea(i,"error",this.onerror.bind(this)),ea(i,"close",this.onclose.bind(this)),ea(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(l){this.onclose("parse error",l)}}ondecoded(i){jo(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,l){let s=this.nsps[i];return s?this._autoConnect&&!s.active&&s.connect():(s=new Cv(this,i,l),this.nsps[i]=s),s}_destroy(i){const l=Object.keys(this.nsps);for(const s of l)if(this.nsps[s].active)return;this._close()}_packet(i){const l=this.encoder.encode(i);for(let s=0;s<l.length;s++)this.engine.write(l[s],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,l){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,l),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const l=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(c=>{c?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",c)):i.onreconnect()}))},l);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Ll={};function Co(n,i){typeof n=="object"&&(i=n,n=void 0),i=i||{};const l=_2(n,i.path||"/socket.io"),s=l.source,c=l.id,f=l.path,d=Ll[c]&&f in Ll[c].nsps,p=i.forceNew||i["force new connection"]||i.multiplex===!1||d;let g;return p?g=new Cf(s,i):(Ll[c]||(Ll[c]=new Cf(s,i)),g=Ll[c]),l.query&&!i.query&&(i.query=l.queryKey),g.socket(l.path,i)}Object.assign(Co,{Manager:Cf,Socket:Cv,io:Co,connect:Co});const bo="/events",dR={SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",INPUT:"input",RESIZE:"resize",TERMINAL_INPUT:"terminal:input",TERMINAL_RESIZE:"terminal:resize"},hi={SESSION_STDOUT:"session:stdout",SESSION_PATCH:"session:patch",SESSION_EXIT:"session:exit",SESSION_COMPLETED:"session:completed",SESSION_ID:"session:sessionId",SESSION_ERROR:"session:error",TASK_UPDATED:"task:updated",TASK_DELETED:"task:deleted",TERMINAL_STDOUT:"terminal:stdout",TERMINAL_EXIT:"terminal:exit",TERMINAL_SUBSCRIBED:"terminal:subscribed",TERMINAL_UNSUBSCRIBED:"terminal:unsubscribed",WORKSPACE_SETUP_PROGRESS:"workspace:setup_progress",WORKSPACE_COMMIT_MESSAGE_UPDATED:"workspace:commit_message_updated",WORKSPACE_HIBERNATED:"workspace:hibernated",WORKSPACE_GIT_CHANGED:"workspace:git_changed",TEAM_RUN_INVALIDATED:"team-run:invalidated"};class B2{socket=null;baseUrl;visibilityHandler=null;constructor(){this.baseUrl=""}getSocket(){return this.socket||(this.socket=Co(`${this.baseUrl}${bo}`,{autoConnect:!1,transports:["websocket"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:1e4}),this.socket.on("connect",()=>{console.log(`[Socket] Connected to ${bo} t=${Date.now()}`)}),this.socket.on("disconnect",i=>{console.log(`[Socket] Disconnected from ${bo}: t=${Date.now()}`,i)}),this.socket.on("connect_error",i=>{console.error(`[Socket] Connection error on ${bo}: t=${Date.now()}`,i.message)})),this.socket}connect(){const i=this.getSocket();return i.connected||i.connect(),this.visibilityHandler||(this.visibilityHandler=()=>{document.visibilityState==="visible"&&this.socket&&!this.socket.connected&&(console.log("[Socket] Page became visible, socket disconnected — reconnecting"),this.socket.connect())},document.addEventListener("visibilitychange",this.visibilityHandler)),i}disconnect(){this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.socket&&(this.socket.disconnect(),this.socket=null)}isConnected(){return this.socket?.connected??!1}}const Pl=new B2;function Av(n,i,l){const s=f=>Ao(f.queryKey,l),c=n.getQueriesData({predicate:s});return n.setQueriesData({predicate:s},f=>{if(!f||!Array.isArray(f.data))return f;const d=f.data.filter(p=>p.id!==i);return d.length===f.data.length?f:{...f,data:d,total:Math.max(0,f.total-(f.data.length-d.length))}}),n.removeQueries({queryKey:De.tasks.detail(i),exact:!0}),n.removeQueries({queryKey:De.tasks.body(i),exact:!0}),c}function Ao(n,i){return!Array.isArray(n)||n[0]!=="tasks"||n[1]!=="list"?!1:i?n[2]===i:!0}function q2(n,i){for(const[l,s]of i)n.setQueryData(l,s)}function hR(n,i){const l={};return i?.status!=null&&(l.status=i.status),i?.page!=null&&(l.page=String(i.page)),i?.limit!=null&&(l.limit=String(i.limit)),Ba({queryKey:De.tasks.list(n,i),queryFn:()=>lt.get(`/projects/${n}/tasks`,{params:l}),enabled:!!n})}function mR(n,i=!0){return Ba({queryKey:De.tasks.body(n),queryFn:()=>lt.get(`/tasks/${n}/body`),enabled:!!n&&i})}function pR(){const n=gt();return qt({mutationFn:({id:i,status:l})=>lt.patch(`/tasks/${i}/status`,{status:l}),onSuccess:i=>{n.invalidateQueries({queryKey:De.tasks.all}),n.invalidateQueries({queryKey:De.tasks.detail(i.id)})}})}function gR(){const n=gt();return qt({mutationFn:i=>lt.delete(`/tasks/${i}`),onMutate:async i=>(await n.cancelQueries({queryKey:De.tasks.all}),{snapshots:Av(n,i)}),onError:(i,l,s)=>{s?.snapshots&&q2(n,s.snapshots)},onSuccess:()=>{n.invalidateQueries({queryKey:De.tasks.all}),n.invalidateQueries({queryKey:De.projects.all})}})}function yR(){const n=gt();return qt({mutationFn:i=>lt.post(`/tasks/${i}/retry`,{}),onSuccess:i=>{n.invalidateQueries({queryKey:De.tasks.all}),n.invalidateQueries({queryKey:De.workspaces.all}),n.invalidateQueries({queryKey:De.tasks.detail(i.id)}),n.invalidateQueries({queryKey:De.tasks.body(i.id)})}})}function H2(){const n=gt();T.useEffect(()=>{const i=Pl.connect(),l=()=>{n.invalidateQueries({queryKey:De.tasks.all})},s=async f=>{await n.cancelQueries({predicate:d=>Ao(d.queryKey,f.projectId)}),n.invalidateQueries({predicate:d=>Ao(d.queryKey,f.projectId)}),n.invalidateQueries({queryKey:De.tasks.detail(f.taskId)})},c=f=>{Av(n,f.taskId,f.projectId),n.invalidateQueries({predicate:d=>Ao(d.queryKey,f.projectId)}),n.invalidateQueries({queryKey:De.projects.all})};return i.on("connect",l),i.on(hi.TASK_UPDATED,s),i.on(hi.TASK_DELETED,c),()=>{i.off("connect",l),i.off(hi.TASK_UPDATED,s),i.off(hi.TASK_DELETED,c)}},[n])}const Me={all:["team-runs"],memberPresets:["member-presets"],memberPresetDetail:n=>["member-presets","detail",n],teamTemplates:["team-templates"],teamTemplateDetail:n=>["team-templates","detail",n],task:n=>["team-runs","task",n],detail:n=>["team-runs","detail",n],messages:n=>["team-runs","messages",n],messageDetail:(n,i)=>["team-runs","messages",n,i],workRequests:n=>["team-runs","work-requests",n],invocations:n=>["team-runs","invocations",n]},Ov=5e3;function Mv(n,i){const l=n??[],s=l.findIndex(c=>c.id===i.id);return s>=0?l.map((c,f)=>f===s?i:c):[...l,i]}function ty(n,i){return!n||n.id!==i.teamRunId?n:{...n,messages:Mv(n.messages,i)}}function Nv(n,i){const l=n.getQueryData(Me.detail(i));if(l?.taskId)return l.taskId;const s=n.getQueriesData({queryKey:Me.all});for(const[,c]of s)if(c?.id===i&&c.taskId)return c.taskId}function Qr(n,i){const l=Nv(n,i);n.invalidateQueries({queryKey:Me.all}),n.invalidateQueries({queryKey:Me.detail(i)}),n.invalidateQueries({queryKey:Me.workRequests(i)}),n.invalidateQueries({queryKey:Me.invocations(i)}),n.invalidateQueries({queryKey:De.tasks.all}),n.invalidateQueries({queryKey:De.workspaces.all}),l&&(n.invalidateQueries({queryKey:De.tasks.detail(l)}),n.invalidateQueries({queryKey:Me.task(l)}),n.invalidateQueries({queryKey:De.workspaces.list(l)}))}function vR(){return Ba({queryKey:Me.memberPresets,queryFn:()=>lt.get("/member-presets")})}function bR(){const n=gt();return qt({mutationFn:i=>lt.post("/member-presets",i),onSuccess:()=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function SR(){const n=gt();return qt({mutationFn:({id:i,data:l})=>lt.patch(`/member-presets/${i}`,l),onSuccess:(i,l)=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.memberPresetDetail(l.id)}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function wR(){const n=gt();return qt({mutationFn:i=>lt.delete(`/member-presets/${i}`),onSuccess:()=>{n.invalidateQueries({queryKey:Me.memberPresets}),n.invalidateQueries({queryKey:Me.teamTemplates})}})}function xR(){return Ba({queryKey:Me.teamTemplates,queryFn:()=>lt.get("/team-templates")})}function ER(){const n=gt();return qt({mutationFn:i=>lt.post("/team-templates",i),onSuccess:()=>{n.invalidateQueries({queryKey:Me.teamTemplates})}})}function TR(){const n=gt();return qt({mutationFn:({id:i,data:l})=>lt.patch(`/team-templates/${i}`,l),onSuccess:(i,l)=>{n.invalidateQueries({queryKey:Me.teamTemplates}),n.invalidateQueries({queryKey:Me.teamTemplateDetail(l.id)})}})}function RR(){const n=gt();return qt({mutationFn:i=>lt.delete(`/team-templates/${i}`),onSuccess:()=>{n.invalidateQueries({queryKey:Me.teamTemplates})}})}function _R(){const n=gt();return qt({mutationFn:({taskId:i,...l})=>lt.post(`/tasks/${i}/team-runs`,l),onSuccess:(i,l)=>{n.setQueryData(Me.task(l.taskId),i),n.setQueryData(Me.detail(i.id),i),n.setQueryData(Me.messages(i.id),i.messages??[]),n.setQueryData(Me.workRequests(i.id),i.workRequests??[]),n.setQueryData(Me.invocations(i.id),i.invocations??[]),n.invalidateQueries({queryKey:Me.task(l.taskId)}),n.invalidateQueries({queryKey:Me.all}),n.invalidateQueries({queryKey:De.tasks.all}),n.invalidateQueries({queryKey:De.tasks.detail(l.taskId)}),n.invalidateQueries({queryKey:De.workspaces.all}),n.invalidateQueries({queryKey:De.workspaces.list(l.taskId)})},onError:(i,l)=>{n.invalidateQueries({queryKey:Me.task(l.taskId)}),n.invalidateQueries({queryKey:Me.all})}})}function CR(n){return Ba({queryKey:Me.task(n),queryFn:async()=>{try{return await lt.get(`/tasks/${n}/team-run`)}catch(i){if(i instanceof Pf&&i.status===404)return null;throw i}},enabled:!!n,retry:!1,refetchInterval:i=>i.state.data?Ov:!1})}function AR(n){return Ba({queryKey:Me.messages(n),queryFn:async()=>{try{return await lt.get(`/team-runs/${n}/messages`)}catch(i){if(i instanceof Pf&&i.status===404)return[];throw i}},enabled:!!n,retry:!1,refetchInterval:Ov})}function OR(n,i,l=!1){return Ba({queryKey:Me.messageDetail(n,i),queryFn:()=>lt.get(`/team-runs/${n}/messages/${i}`),enabled:!!(n&&i&&l),retry:!1})}function MR(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/${n}/messages`,l),onSuccess:l=>{i.setQueryData(Me.messages(n),c=>Mv(c,l)),i.setQueryData(Me.detail(n),c=>ty(c,l));const s=Nv(i,n);s&&i.setQueryData(Me.task(s),c=>ty(c,l)),i.invalidateQueries({queryKey:Me.all}),i.invalidateQueries({queryKey:["tasks"]}),i.invalidateQueries({queryKey:De.workspaces.all})}})}function NR(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/${n}/members`,l),onSuccess:()=>{Qr(i,n)}})}function DR(n){const i=gt();return qt({mutationFn:({memberId:l,data:s})=>lt.patch(`/team-runs/${n}/members/${l}`,s),onSuccess:()=>{Qr(i,n)}})}function kR(n){const i=gt();return qt({mutationFn:({memberId:l,stopActive:s=!0,cancelQueued:c=!0})=>lt.post(`/team-runs/${n}/members/${l}/remove`,{stopActive:s,cancelQueued:c}),onSuccess:()=>{Qr(i,n)}})}function zR(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/work-requests/${l}/approve`),onSuccess:()=>{Qr(i,n)}})}function jR(n){const i=gt();return qt({mutationFn:l=>lt.post(`/team-runs/work-requests/${l}/reject`),onSuccess:()=>{Qr(i,n)}})}function LR(n){const i=gt();return qt({mutationFn:({memberId:l,cancelQueued:s})=>lt.post(`/team-runs/${n}/members/${l}/stop`,{cancelQueued:s}),onSuccess:()=>{Qr(i,n)}})}function ua(n,i){return n.scopes.includes(i)}function Q2(){const n=gt();T.useEffect(()=>{const i=Pl.connect(),l=f=>{if(!f){n.invalidateQueries({queryKey:Me.all});return}n.invalidateQueries({queryKey:Me.detail(f.teamRunId)}),(ua(f,"team-run")||ua(f,"team-members"))&&n.invalidateQueries({queryKey:Me.all}),ua(f,"room-messages")&&n.invalidateQueries({queryKey:Me.messages(f.teamRunId)}),ua(f,"work-requests")&&n.invalidateQueries({queryKey:Me.workRequests(f.teamRunId)}),ua(f,"agent-invocations")&&n.invalidateQueries({queryKey:Me.invocations(f.teamRunId)}),f.taskId&&n.invalidateQueries({queryKey:Me.task(f.taskId)}),f.taskId&&(ua(f,"task")||ua(f,"team-run"))&&n.invalidateQueries({queryKey:De.tasks.detail(f.taskId)}),f.projectId&&(ua(f,"task")||ua(f,"team-run"))&&n.invalidateQueries({queryKey:De.tasks.list(f.projectId)}),ua(f,"workspaces")&&(n.invalidateQueries({queryKey:De.workspaces.all}),f.taskId&&n.invalidateQueries({queryKey:De.workspaces.list(f.taskId)}))},s=()=>l(),c=f=>l(f);return i.on("connect",s),i.on(hi.TEAM_RUN_INVALIDATED,c),()=>{i.off("connect",s),i.off(hi.TEAM_RUN_INVALIDATED,c)}},[n])}const V2=Jy(n=>({visibleContext:null,setVisibleContext:i=>n({visibleContext:i})}));function Y2(n){n.invalidateQueries({queryKey:De.git.all,refetchType:"none"}),n.invalidateQueries({queryKey:["workspaces","gitStatus"],refetchType:"none"}),n.invalidateQueries({queryKey:["workspaces","diff"],refetchType:"none"})}function G2(n,i){i.workingDir&&(n.invalidateQueries({queryKey:De.git.changes(i.workingDir),refetchType:"none"}),n.invalidateQueries({queryKey:De.git.log(i.workingDir),refetchType:"none"})),i.workspaceId&&n.invalidateQueries({queryKey:De.workspaces.gitStatus(i.workspaceId),refetchType:"none"})}function ny(n,i,l){if(!(!i?.workspaceId||!i?.workingDir)){if(!l||l.workspaceId!==i.workspaceId||l.workingDir!==i.workingDir){G2(n,i);return}if(l.tab==="changes"){n.invalidateQueries({queryKey:De.git.changes(i.workingDir)}),n.invalidateQueries({queryKey:De.workspaces.gitStatus(i.workspaceId)}),n.invalidateQueries({queryKey:De.git.log(i.workingDir),refetchType:"none"});return}n.invalidateQueries({queryKey:De.git.log(i.workingDir)}),n.invalidateQueries({queryKey:De.git.changes(i.workingDir),refetchType:"none"}),n.invalidateQueries({queryKey:De.workspaces.gitStatus(i.workspaceId),refetchType:"none"})}}function K2(){const n=gt(),i=V2(l=>l.visibleContext);T.useEffect(()=>{const l=Pl.connect(),s=()=>{Y2(n),i&&ny(n,{workspaceId:i.workspaceId,workingDir:i.workingDir},i)},c=f=>{ny(n,f,i)};return l.on("connect",s),l.on(hi.WORKSPACE_GIT_CHANGED,c),()=>{l.off("connect",s),l.off(hi.WORKSPACE_GIT_CHANGED,c)}},[n,i])}function P2(){return H2(),Q2(),K2(),null}function X2(){return T.useEffect(()=>(Pl.connect(),()=>Pl.disconnect()),[]),_.jsx(v1,{client:rS,children:_.jsxs(mE,{children:[_.jsx(P2,{}),_.jsx(KT,{}),_.jsx(iS,{position:"top-center",toastOptions:{className:"text-sm",style:{fontFamily:"inherit"},classNames:{error:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",success:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg",default:"!bg-neutral-900 !text-neutral-100 !border-neutral-800 !shadow-lg"}}})]})})}const F2="/api/tunnel/bootstrap";async function Z2(){const n=new URL(window.location.href),i=n.searchParams.get("token");if(!i)return;const l=await fetch(`${F2}?token=${encodeURIComponent(i)}`,{method:"POST",credentials:"same-origin"});if(!l.ok)throw new Error(`Tunnel bootstrap failed (${l.status})`);n.searchParams.delete("token"),window.history.replaceState({},"",n.toString())}async function J2(){try{await Z2()}catch(n){console.error("[Tunnel] Failed to bootstrap tunnel session",n)}Fb.createRoot(document.getElementById("root")).render(_.jsx(T.StrictMode,{children:_.jsx(X2,{})}))}J2();export{tR as $,TR as A,Pg as B,Kx as C,RR as D,uR as E,aT as F,Vg as G,gy as H,Pl as I,hi as J,dR as K,cR as L,Xy as M,Ix as N,oR as O,sR as P,gT as Q,OT as R,pT as S,Qx as T,Qy as U,Ow as V,ql as W,tE as X,hE as Y,Xx as Z,ay as _,sE as a,AT as a0,Wx as a1,c1 as a2,tg as a3,$2 as a4,I2 as a5,Ur as a6,Lt as a7,Oo as a8,ly as a9,mR as aA,yR as aB,Me as aC,hR as aD,gR as aE,pR as aF,nT as aG,tv as aH,Jy as aI,b1 as aa,x1 as ab,_1 as ac,E1 as ad,T1 as ae,tn as af,A1 as ag,ng as ah,C1 as ai,R1 as aj,O1 as ak,ee as al,zR as am,jR as an,LR as ao,OR as ap,Yn as aq,NR as ar,DR as as,kR as at,Pf as au,V2 as av,_R as aw,MR as ax,CR as ay,AR as az,eR as b,oE as c,nR as d,iR as e,aR as f,mn as g,yi as h,Ba as i,_ as j,gt as k,qt as l,lt as m,lR as n,rR as o,_t as p,De as q,T as r,vR as s,X1 as t,Wy as u,xR as v,bR as w,SR as x,wR as y,ER as z};