@straiffi/archon 1.13.2 → 1.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/client/assets/{ActivityView-BUI6n3Xm.js → ActivityView-DRD09JTc.js} +1 -1
  2. package/dist/client/assets/{ApprovalRequestPanel-BLQpUi-k.js → ApprovalRequestPanel-CRfb4jzF.js} +1 -1
  3. package/dist/client/assets/{ConversationMarkdown-D82tqKzW.js → ConversationMarkdown-D8iVeRE1.js} +3 -3
  4. package/dist/client/assets/DemonstrationDialog-D01TLRCK.js +1 -0
  5. package/dist/client/assets/GitHubActionsDialog-BmIcsS_L.js +1 -0
  6. package/dist/client/assets/{IconDocument-CePtRoIw.js → IconDocument-DINFwIj-.js} +1 -1
  7. package/dist/client/assets/IconGitHubActions-CjswQj_b.js +1 -0
  8. package/dist/client/assets/{IconPlay-clLSJ5aH.js → IconPlay-B8gyjngb.js} +1 -1
  9. package/dist/client/assets/IconStop-BN5mT2U1.js +1 -0
  10. package/dist/client/assets/{IconX-TosfRQdR.js → IconX-sSpA2ejo.js} +1 -1
  11. package/dist/client/assets/{LifecycleProvider-DrROQ0mW.js → LifecycleProvider-ei6VLwTM.js} +1 -1
  12. package/dist/client/assets/{LifecycleTimelineDialog-BzLUSgQH.js → LifecycleTimelineDialog-C0H6bvI5.js} +1 -1
  13. package/dist/client/assets/MediaPreviewDialog-B5yPPi0T.js +1 -0
  14. package/dist/client/assets/VerificationDialog-Cke3OC3c.js +4 -0
  15. package/dist/client/assets/{WorkspaceReviewModal-B5nSkK2I.js → WorkspaceReviewModal-CLcm4NoU.js} +7 -7
  16. package/dist/client/assets/{arc-DLm4ZDPa.js → arc-BR2KXlwD.js} +1 -1
  17. package/dist/client/assets/architecture-7EHR7CIX-DTZWkxfd.js +1 -0
  18. package/dist/client/assets/{architectureDiagram-3BPJPVTR-CpuAmBUP.js → architectureDiagram-3BPJPVTR-Pkhiqt5r.js} +1 -1
  19. package/dist/client/assets/{artifactPresentation-B2cVmrHY.js → artifactPresentation-CY7_iPcf.js} +1 -1
  20. package/dist/client/assets/{badge-D4QSKcZA.js → badge-Bnvptskz.js} +1 -1
  21. package/dist/client/assets/{blockDiagram-GPEHLZMM-w0sI3yUo.js → blockDiagram-GPEHLZMM-ruvMsQHK.js} +1 -1
  22. package/dist/client/assets/bootstrap-CKROdR45.js +98 -0
  23. package/dist/client/assets/bootstrap-CX5EVEtc.css +2 -0
  24. package/dist/client/assets/{c4Diagram-AAUBKEIU-B7IcliPY.js → c4Diagram-AAUBKEIU-D1brmJbD.js} +1 -1
  25. package/dist/client/assets/channel-B01NDmbu.js +1 -0
  26. package/dist/client/assets/{chunk-2J33WTMH-CD1KJm7N.js → chunk-2J33WTMH-CLreEKG8.js} +1 -1
  27. package/dist/client/assets/{chunk-3OPIFGDE-CWNDFW47.js → chunk-3OPIFGDE-DCODI-Rc.js} +1 -1
  28. package/dist/client/assets/{chunk-4BX2VUAB-j6qim-YB.js → chunk-4BX2VUAB-BEdmpAM4.js} +1 -1
  29. package/dist/client/assets/{chunk-4EGX6M5U-C7opoYrE.js → chunk-4EGX6M5U-C5SHZY5t.js} +1 -1
  30. package/dist/client/assets/{chunk-55IACEB6-4YpmINBj.js → chunk-55IACEB6-B_T45HbU.js} +1 -1
  31. package/dist/client/assets/{chunk-5DO6E6H7-B44Az2Vm.js → chunk-5DO6E6H7-BvRtJG-b.js} +1 -1
  32. package/dist/client/assets/{chunk-5ZQYHXKU-CAmg-Amo.js → chunk-5ZQYHXKU-Czv3sEec.js} +1 -1
  33. package/dist/client/assets/{chunk-727SXJPM-QT6vkxfw.js → chunk-727SXJPM-CUS5BAia.js} +1 -1
  34. package/dist/client/assets/{chunk-AQP2D5EJ-C5J_PkKZ.js → chunk-AQP2D5EJ-DuU68eY2.js} +1 -1
  35. package/dist/client/assets/{chunk-BR22UD5L-BeGGfGKP.js → chunk-BR22UD5L-CMbA_7zi.js} +1 -1
  36. package/dist/client/assets/{chunk-BSJP7CBP-cLht0MXH.js → chunk-BSJP7CBP-D9C1bNga.js} +1 -1
  37. package/dist/client/assets/{chunk-CSCIHK7Q-CgdjKrdr.js → chunk-CSCIHK7Q-BFj36ajn.js} +2 -2
  38. package/dist/client/assets/{chunk-FHYWG6QK-DPU-Vm7B.js → chunk-FHYWG6QK-DpLqOkK7.js} +1 -1
  39. package/dist/client/assets/{chunk-FMBD7UC4-D0714kyI.js → chunk-FMBD7UC4-B_i-fBOm.js} +1 -1
  40. package/dist/client/assets/{chunk-KSCS5N6A-DNsbWXPN.js → chunk-KSCS5N6A-iU27-eSU.js} +1 -1
  41. package/dist/client/assets/{chunk-L5ZTLDWV-D7HoN5ML.js → chunk-L5ZTLDWV-Dkr_XhvY.js} +1 -1
  42. package/dist/client/assets/{chunk-LZXEDZCA-BzMkcBOY.js → chunk-LZXEDZCA-CvWOZMMQ.js} +2 -2
  43. package/dist/client/assets/{chunk-MPE355IW-CpGJ_GQ8.js → chunk-MPE355IW-Bm6LdhAi.js} +1 -1
  44. package/dist/client/assets/{chunk-MZUSXYTE-CkH88bj3.js → chunk-MZUSXYTE-v7h2c1h1.js} +1 -1
  45. package/dist/client/assets/{chunk-N66VUXT2-DTStVk4C.js → chunk-N66VUXT2-CX1fso4R.js} +1 -1
  46. package/dist/client/assets/{chunk-ND2GUHAM-_4lXPs4v.js → chunk-ND2GUHAM-BkfiFlFO.js} +1 -1
  47. package/dist/client/assets/{chunk-NZK2D7GU-4vnXS7O-.js → chunk-NZK2D7GU-Ci8pOVdE.js} +1 -1
  48. package/dist/client/assets/{chunk-O5CBEL6O-BRXaTllh.js → chunk-O5CBEL6O-DQWScC0A.js} +1 -1
  49. package/dist/client/assets/{chunk-PUPMXCY4-CLXvBvAX.js → chunk-PUPMXCY4-9anN8Uz5.js} +1 -1
  50. package/dist/client/assets/chunk-QZHKN3VN-CJfHEZGy.js +1 -0
  51. package/dist/client/assets/{chunk-UIBZB4QT-tZrOU_9W.js → chunk-UIBZB4QT-DIG38ead.js} +1 -1
  52. package/dist/client/assets/{chunk-WCWK7LTN-KPm7BsrY.js → chunk-WCWK7LTN-Doy8-Vhx.js} +1 -1
  53. package/dist/client/assets/chunk-WU5MYG2G-NCbD6q3J.js +1 -0
  54. package/dist/client/assets/{chunk-XPW4576I-wD8YVX6M.js → chunk-XPW4576I-DXkP_JdL.js} +1 -1
  55. package/dist/client/assets/classDiagram-4FO5ZUOK-D_Jv2gIy.js +1 -0
  56. package/dist/client/assets/classDiagram-v2-Q7XG4LA2-CcxVBrx5.js +1 -0
  57. package/dist/client/assets/{cose-bilkent-S5V4N54A-3J7dPSP2.js → cose-bilkent-S5V4N54A-HrZ-5MDk.js} +1 -1
  58. package/dist/client/assets/{dagre-BM42HDAG-FWdldae4.js → dagre-BM42HDAG-DRbkGBBP.js} +1 -1
  59. package/dist/client/assets/{dagre-KM9_oZrv.js → dagre-pjdcQX-8.js} +1 -1
  60. package/dist/client/assets/{diagram-2AECGRRQ-BumhjLsb.js → diagram-2AECGRRQ-D_TKwNab.js} +1 -1
  61. package/dist/client/assets/{diagram-5GNKFQAL-Cb33KbTb.js → diagram-5GNKFQAL-DqgxdJ2S.js} +1 -1
  62. package/dist/client/assets/{diagram-KO2AKTUF-BlOjzhnN.js → diagram-KO2AKTUF-DC36WkSM.js} +1 -1
  63. package/dist/client/assets/{diagram-LMA3HP47-CHwtw61J.js → diagram-LMA3HP47-CfgPkQ74.js} +1 -1
  64. package/dist/client/assets/{diagram-OG6HWLK6-CGVINNIx.js → diagram-OG6HWLK6-BecH_4Uu.js} +1 -1
  65. package/dist/client/assets/{erDiagram-TEJ5UH35-U0syd0R8.js → erDiagram-TEJ5UH35-gVKjPSTy.js} +1 -1
  66. package/dist/client/assets/eventmodeling-FCH6USID-CpYTyxuZ.js +1 -0
  67. package/dist/client/assets/{flowDiagram-I6XJVG4X-DxBd0T98.js → flowDiagram-I6XJVG4X-BI4w94Db.js} +1 -1
  68. package/dist/client/assets/{ganttDiagram-6RSMTGT7-CtZJykQf.js → ganttDiagram-6RSMTGT7-CEwscd0z.js} +1 -1
  69. package/dist/client/assets/gitGraph-WXDBUCRP-Z83aCG2F.js +1 -0
  70. package/dist/client/assets/{gitGraphDiagram-PVQCEYII-r4iyFj98.js → gitGraphDiagram-PVQCEYII-BzYnzfZU.js} +1 -1
  71. package/dist/client/assets/{index-CdbmiAlF.js → index-C2JPbj12.js} +2 -2
  72. package/dist/client/assets/info-J43DQDTF-BedCRFEx.js +1 -0
  73. package/dist/client/assets/{infoDiagram-5YYISTIA-DkgQtYrf.js → infoDiagram-5YYISTIA-CPYAdvo1.js} +1 -1
  74. package/dist/client/assets/{IconLoader-D1xRRX9B.js → input-AZAw9vJs.js} +3 -3
  75. package/dist/client/assets/{ishikawaDiagram-YF4QCWOH-3CITKdXW.js → ishikawaDiagram-YF4QCWOH-Ctpfd7Fa.js} +1 -1
  76. package/dist/client/assets/{journeyDiagram-JHISSGLW-DRxIgjvH.js → journeyDiagram-JHISSGLW-CmpICCRR.js} +1 -1
  77. package/dist/client/assets/{kanban-definition-UN3LZRKU-FyHviky4.js → kanban-definition-UN3LZRKU-BvrG2MaR.js} +1 -1
  78. package/dist/client/assets/{line-CtX9AQrF.js → line-BuEChOFl.js} +1 -1
  79. package/dist/client/assets/{linear-DAl7bclq.js → linear-CnfNbUsu.js} +1 -1
  80. package/dist/client/assets/{mermaid-parser.core-CCjwz4zI.js → mermaid-parser.core-Cc66WWhM.js} +2 -2
  81. package/dist/client/assets/{mermaid.core-BrPCXQ_-.js → mermaid.core-01K66m6d.js} +3 -3
  82. package/dist/client/assets/{mindmap-definition-RKZ34NQL-KN_4OT4O.js → mindmap-definition-RKZ34NQL-BuyfpCKJ.js} +1 -1
  83. package/dist/client/assets/{ordinal-BqEhkPyh.js → ordinal-v4prQcuq.js} +1 -1
  84. package/dist/client/assets/packet-YPE3B663-BYqLN6U1.js +1 -0
  85. package/dist/client/assets/pie-LRSECV5Y-Do8rN5H2.js +1 -0
  86. package/dist/client/assets/{pieDiagram-4H26LBE5-COG0VOTI.js → pieDiagram-4H26LBE5-CgGRmchd.js} +1 -1
  87. package/dist/client/assets/{quadrantDiagram-W4KKPZXB-B_EXaE5F.js → quadrantDiagram-W4KKPZXB-BbiyoZff.js} +1 -1
  88. package/dist/client/assets/radar-GUYGQ44K-CsSj531M.js +1 -0
  89. package/dist/client/assets/{realtimeContextBase-7GM4HUov.js → realtimeContextBase-DZt86QHH.js} +1 -1
  90. package/dist/client/assets/{requirementDiagram-4Y6WPE33-B2q4x9QC.js → requirementDiagram-4Y6WPE33-BlYwYv8f.js} +1 -1
  91. package/dist/client/assets/{sankeyDiagram-5OEKKPKP-DDm6ZbE7.js → sankeyDiagram-5OEKKPKP-Bp_j3oV6.js} +1 -1
  92. package/dist/client/assets/{sequenceDiagram-3UESZ5HK-rhRn0IfH.js → sequenceDiagram-3UESZ5HK-DqC_KQou.js} +1 -1
  93. package/dist/client/assets/{stateDiagram-AJRCARHV-BvW4JPLu.js → stateDiagram-AJRCARHV-BrG7IGOM.js} +1 -1
  94. package/dist/client/assets/stateDiagram-v2-BHNVJYJU-rcRVsbsd.js +1 -0
  95. package/dist/client/assets/{tabActivation-CyuKtcl3.js → tabActivation-8_2uxVyZ.js} +1 -1
  96. package/dist/client/assets/{timeline-definition-PNZ67QCA-L9zYQso9.js → timeline-definition-PNZ67QCA-BDe3IkOy.js} +1 -1
  97. package/dist/client/assets/treeView-BLDUP644-BKfPh_cj.js +1 -0
  98. package/dist/client/assets/treemap-LRROVOQU-LOA1qPfa.js +1 -0
  99. package/dist/client/assets/{vennDiagram-CIIHVFJN-DgR_mHYj.js → vennDiagram-CIIHVFJN-DECIVR7V.js} +1 -1
  100. package/dist/client/assets/wardley-L42UT6IY-Cskczdw0.js +1 -0
  101. package/dist/client/assets/{wardleyDiagram-YWT4CUSO-CGyXvCpC.js → wardleyDiagram-YWT4CUSO-Bx3AJaN9.js} +1 -1
  102. package/dist/client/assets/{xychartDiagram-2RQKCTM6-r7Cs3EPg.js → xychartDiagram-2RQKCTM6-152u9kKH.js} +1 -1
  103. package/dist/client/index.html +1 -1
  104. package/dist/server/db.js +2 -0
  105. package/dist/server/db.js.map +1 -1
  106. package/dist/server/index.js +2 -0
  107. package/dist/server/index.js.map +1 -1
  108. package/dist/server/lib/executionRuns.js +1 -0
  109. package/dist/server/lib/executionRuns.js.map +1 -1
  110. package/dist/server/lib/integrations/githubActionsDismissal.js +18 -0
  111. package/dist/server/lib/integrations/githubActionsDismissal.js.map +1 -0
  112. package/dist/server/lib/integrations/githubActionsDismissalRoutes.js +28 -0
  113. package/dist/server/lib/integrations/githubActionsDismissalRoutes.js.map +1 -0
  114. package/dist/server/lib/integrations/githubActionsSessions.js +3 -0
  115. package/dist/server/lib/integrations/githubActionsSessions.js.map +1 -1
  116. package/package.json +1 -1
  117. package/dist/client/assets/DemonstrationDialog-7SZhZFOL.js +0 -1
  118. package/dist/client/assets/GitHubActionsDialog-DkqbUlig.js +0 -1
  119. package/dist/client/assets/IconGitHubActions-Cv492Ebx.js +0 -1
  120. package/dist/client/assets/IconStop-BLAfFOPH.js +0 -1
  121. package/dist/client/assets/VerificationDialog-1yHfx-wA.js +0 -4
  122. package/dist/client/assets/architecture-7EHR7CIX-BOD0E418.js +0 -1
  123. package/dist/client/assets/bootstrap-CKpfFcGm.js +0 -97
  124. package/dist/client/assets/bootstrap-D_E9KrRf.css +0 -2
  125. package/dist/client/assets/channel-Fotke1Kp.js +0 -1
  126. package/dist/client/assets/chunk-QZHKN3VN-CqiyA9aj.js +0 -1
  127. package/dist/client/assets/chunk-WU5MYG2G-D_ijPbiv.js +0 -1
  128. package/dist/client/assets/classDiagram-4FO5ZUOK-BrrVv3qj.js +0 -1
  129. package/dist/client/assets/classDiagram-v2-Q7XG4LA2-CN553QTp.js +0 -1
  130. package/dist/client/assets/eventmodeling-FCH6USID-FL7NzS0V.js +0 -1
  131. package/dist/client/assets/gitGraph-WXDBUCRP-EVJUD9sy.js +0 -1
  132. package/dist/client/assets/info-J43DQDTF-ZaEaI3nN.js +0 -1
  133. package/dist/client/assets/packet-YPE3B663-B48GA82s.js +0 -1
  134. package/dist/client/assets/pie-LRSECV5Y-yjxDIzfa.js +0 -1
  135. package/dist/client/assets/radar-GUYGQ44K-DHhlAE_N.js +0 -1
  136. package/dist/client/assets/stateDiagram-v2-BHNVJYJU-Dv4glvR0.js +0 -1
  137. package/dist/client/assets/treeView-BLDUP644-tkSf2sjH.js +0 -1
  138. package/dist/client/assets/treemap-LRROVOQU-d_NYOcwt.js +0 -1
  139. package/dist/client/assets/wardley-L42UT6IY-DWTbPrAt.js +0 -1
  140. /package/dist/client/assets/{array-BwJyW1Dp.js → array-DqLCdDFv.js} +0 -0
  141. /package/dist/client/assets/{chunk-NNHCCRGN-aoK3dxcc.js → chunk-NNHCCRGN-R8lmejY6.js} +0 -0
  142. /package/dist/client/assets/{cytoscape.esm-GKcJVh1-.js → cytoscape.esm-DwdZnGOm.js} +0 -0
  143. /package/dist/client/assets/{defaultLocale-kiwRz9Au.js → defaultLocale-CrJzLgRD.js} +0 -0
  144. /package/dist/client/assets/{dist-DFYFtMst.js → dist-DsfB3EIl.js} +0 -0
  145. /package/dist/client/assets/{graphlib-CGnxpMsl.js → graphlib-CAISHZh4.js} +0 -0
  146. /package/dist/client/assets/{init-CKZirZ49.js → init-C0r9Gk5G.js} +0 -0
  147. /package/dist/client/assets/{katex-CzE2uFQ0.js → katex-BlgnTlTx.js} +0 -0
  148. /package/dist/client/assets/{path-B0d9ncVi.js → path-DIKpVbHL.js} +0 -0
  149. /package/dist/client/assets/{rough.esm-JX0wREDd.js → rough.esm-BWqoIFNR.js} +0 -0
  150. /package/dist/client/assets/{src-8KvjbQeR.js → src-HpmPWpNc.js} +0 -0
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-BNv3lrIs.js";import{A as t,B as n,E as r,F as i,L as a,M as o,O as s,T as c,U as l,X as u,Y as d,j as f,k as p,nt as m,u as h,z as g}from"./IconX-sSpA2ejo.js";import{i as _}from"./input-AZAw9vJs.js";var v=e(n(),1),y=e(m(),1),b=a();function x(e){let t=e+`CollectionProvider`,[n,r]=f(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=y.useRef(null),i=y.useRef(new Map).current;return(0,b.jsx)(a,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=t;let c=e+`CollectionSlot`,l=i(c),u=y.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,b.jsx)(l,{ref:g(t,o(c,n).collectionRef),children:r})});u.displayName=c;let d=e+`CollectionItemSlot`,p=`data-radix-collection-item`,m=i(d),h=y.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=y.useRef(null),s=g(t,a),c=o(d,n);return y.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),(0,b.jsx)(m,{[p]:``,ref:s,children:r})});h.displayName=d;function _(t){let n=o(e+`CollectionConsumer`,t);return y.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:s,Slot:u,ItemSlot:h},_,r]}var S=y.createContext(void 0);function C(e){let t=y.useContext(S);return e||t||`ltr`}var w=[`top`,`right`,`bottom`,`left`],T=Math.min,E=Math.max,D=Math.round,O=Math.floor,k=e=>({x:e,y:e}),A={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function j(e,t,n){return E(e,T(t,n))}function M(e,t){return typeof e==`function`?e(t):e}function N(e){return e.split(`-`)[0]}function P(e){return e.split(`-`)[1]}function F(e){return e===`x`?`y`:`x`}function I(e){return e===`y`?`height`:`width`}function L(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function R(e){return F(L(e))}function z(e,t,n){n===void 0&&(n=!1);let r=P(e),i=R(e),a=I(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=H(o)),[o,H(o)]}function B(e){let t=H(e);return[V(e),t,V(t)]}function V(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ee=[`left`,`right`],te=[`right`,`left`],ne=[`top`,`bottom`],re=[`bottom`,`top`];function ie(e,t,n){switch(e){case`top`:case`bottom`:return n?t?te:ee:t?ee:te;case`left`:case`right`:return t?ne:re;default:return[]}}function ae(e,t,n,r){let i=P(e),a=ie(N(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(V)))),a}function H(e){let t=N(e);return A[t]+e.slice(t.length)}function oe(e){return{top:0,right:0,bottom:0,left:0,...e}}function se(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:oe(e)}function ce(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function le(e,t,n){let{reference:r,floating:i}=e,a=L(t),o=R(t),s=I(o),c=N(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(P(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ue(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=M(t,e),p=se(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ce(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ce(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var de=50,fe=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ue},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=le(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<de&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=le(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},pe=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=M(e,t)||{};if(l==null)return{};let d=se(u),f={x:n,y:r},p=R(i),m=I(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,E=C/2-h[m]/2-1,D=T(d[_],E),O=T(d[v],E),k=D,A=C-h[m]-O,N=C/2-h[m]/2+w,F=j(k,N,A),L=!c.arrow&&P(i)!=null&&N!==F&&a.reference[m]/2-(N<k?D:O)-h[m]/2<0,z=L?N<k?N-k:N-A:0;return{[p]:f[p]+z,data:{[p]:F,centerOffset:N-F-z,...L&&{alignmentOffset:z}},reset:L}}}),me=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=M(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=N(r),_=L(o),v=N(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[H(o)]:B(o)),x=p!==`none`;!d&&x&&b.push(...ae(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=z(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==L(t))||T.every(e=>L(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=L(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function he(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ge(e){return w.some(t=>e[t]>=0)}var _e=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=M(e,t);switch(i){case`referenceHidden`:{let e=he(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ge(e)}}}case`escaped`:{let e=he(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ge(e)}}}default:return{}}}}},ve=new Set([`left`,`top`]);async function ye(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=N(n),s=P(n),c=L(n)===`y`,l=ve.has(o)?-1:1,u=a&&c?-1:1,d=M(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var be=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ye(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},xe=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=M(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=L(N(i)),p=F(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=j(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=j(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Se=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=M(e,t),u={x:n,y:r},d=L(i),f=F(d),p=u[f],m=u[d],h=M(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ve.has(N(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ce=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=M(e,t),u=await o.detectOverflow(t,l),d=N(i),f=P(i),p=L(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=T(h-u[g],v),x=T(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=E(u.left,0),t=E(u.right,0),n=E(u.top,0),r=E(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:E(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:E(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let D=await o.getDimensions(s.floating);return m!==D.width||h!==D.height?{reset:{rects:!0}}:{}}}};function we(){return typeof window<`u`}function U(e){return Te(e)?(e.nodeName||``).toLowerCase():`#document`}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function G(e){return((Te(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Te(e){return we()?e instanceof Node||e instanceof W(e).Node:!1}function K(e){return we()?e instanceof Element||e instanceof W(e).Element:!1}function q(e){return we()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function Ee(e){return!we()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function De(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Oe(e){return/^(table|td|th)$/.test(U(e))}function ke(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ae=/transform|translate|scale|rotate|perspective|filter/,je=/paint|layout|strict|content/,J=e=>!!e&&e!==`none`,Me;function Ne(e){let t=K(e)?X(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!Fe()&&(J(t.backdropFilter)||J(t.filter))||Ae.test(t.willChange||``)||je.test(t.contain||``)}function Pe(e){let t=Z(e);for(;q(t)&&!Y(t);){if(Ne(t))return t;if(ke(t))return null;t=Z(t)}return null}function Fe(){return Me??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Me}function Y(e){return/^(html|body|#document)$/.test(U(e))}function X(e){return W(e).getComputedStyle(e)}function Ie(e){return K(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(U(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ee(e)&&e.host||G(e);return Ee(t)?t.host:t}function Le(e){let t=Z(e);return Y(t)?e.ownerDocument?e.ownerDocument.body:e.body:q(t)&&De(t)?t:Le(t)}function Re(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Le(e),i=r===e.ownerDocument?.body,a=W(r);if(i){let e=ze(a);return t.concat(a,a.visualViewport||[],De(r)?r:[],e&&n?Re(e):[])}else return t.concat(r,Re(r,[],n))}function ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Be(e){let t=X(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=q(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=D(n)!==a||D(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ve(e){return K(e)?e:e.contextElement}function Q(e){let t=Ve(e);if(!q(t))return k(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Be(t),o=(a?D(n.width):n.width)/r,s=(a?D(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var He=k(0);function Ue(e){let t=W(e);return!Fe()||!t.visualViewport?He:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function We(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==W(e)?!1:t}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ve(e),o=k(1);t&&(r?K(r)&&(o=Q(r)):o=Q(e));let s=We(a,n,r)?Ue(a):k(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=W(a),t=r&&K(r)?W(r):r,n=e,i=ze(n);for(;i&&r&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=X(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=W(i),i=ze(n)}}return ce({width:u,height:d,x:c,y:l})}function Ge(e,t){let n=Ie(e).scrollLeft;return t?t.left+n:$(G(e)).left+n}function Ke(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ge(e,n),y:n.top+t.scrollTop}}function qe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=G(r),s=t?ke(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=k(1),u=k(0),d=q(r);if((d||!d&&!a)&&((U(r)!==`body`||De(o))&&(c=Ie(r)),d)){let e=$(r);l=Q(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ke(o,c):k(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Je(e){return Array.from(e.getClientRects())}function Ye(e){let t=G(e),n=Ie(e),r=e.ownerDocument.body,i=E(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=E(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ge(e),s=-n.scrollTop;return X(r).direction===`rtl`&&(o+=E(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Xe=25;function Ze(e,t){let n=W(e),r=G(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Fe();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ge(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Xe&&(a-=o)}else l<=Xe&&(a+=l);return{width:a,height:o,x:s,y:c}}function Qe(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=q(e)?Q(e):k(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function $e(e,t,n){let r;if(t===`viewport`)r=Ze(e,n);else if(t===`document`)r=Ye(G(e));else if(K(t))r=Qe(t,n);else{let n=Ue(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ce(r)}function et(e,t){let n=Z(e);return n===t||!K(n)||Y(n)?!1:X(n).position===`fixed`||et(n,t)}function tt(e,t){let n=t.get(e);if(n)return n;let r=Re(e,[],!1).filter(e=>K(e)&&U(e)!==`body`),i=null,a=X(e).position===`fixed`,o=a?Z(e):e;for(;K(o)&&!Y(o);){let t=X(o),n=Ne(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||De(o)&&!n&&et(e,o))?r=r.filter(e=>e!==o):i=t,o=Z(o)}return t.set(e,r),r}function nt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ke(t)?[]:tt(t,this._c):[].concat(n),r],o=$e(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=$e(t,a[e],i);s=E(n.top,s),c=T(n.right,c),l=T(n.bottom,l),u=E(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function rt(e){let{width:t,height:n}=Be(e);return{width:t,height:n}}function it(e,t,n){let r=q(t),i=G(t),a=n===`fixed`,o=$(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=k(0);function l(){c.x=Ge(i)}if(r||!r&&!a)if((U(t)!==`body`||De(i))&&(s=Ie(t)),r){let e=$(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Ke(i,s):k(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function at(e){return X(e).position===`static`}function ot(e,t){if(!q(e)||X(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function st(e,t){let n=W(e);if(ke(e))return n;if(!q(e)){let t=Z(e);for(;t&&!Y(t);){if(K(t)&&!at(t))return t;t=Z(t)}return n}let r=ot(e,t);for(;r&&Oe(r)&&at(r);)r=ot(r,t);return r&&Y(r)&&at(r)&&!Ne(r)?n:r||Pe(e)||n}var ct=async function(e){let t=this.getOffsetParent||st,n=this.getDimensions,r=await n(e.floating);return{reference:it(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lt(e){return X(e).direction===`rtl`}var ut={convertOffsetParentRelativeRectToViewportRelativeRect:qe,getDocumentElement:G,getClippingRect:nt,getOffsetParent:st,getElementRects:ct,getClientRects:Je,getDimensions:rt,getScale:Q,isElement:K,isRTL:lt};function dt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ft(e,t){let n=null,r,i=G(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=O(d),h=O(i.clientWidth-(u+f)),g=O(i.clientHeight-(d+p)),_=O(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:E(0,T(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!dt(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function pt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ve(e),u=i||a?[...l?Re(l):[],...t?Re(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?ft(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!dt(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var mt=be,ht=xe,gt=me,_t=Ce,vt=_e,yt=pe,bt=Se,xt=(e,t,n)=>{let r=new Map,i={platform:ut,...n},a={...i.platform,_c:r};return fe(e,t,{...i,platform:a})},St=typeof document<`u`?y.useLayoutEffect:function(){};function Ct(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ct(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Ct(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function wt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tt(e,t){let n=wt(e);return Math.round(t*n)/n}function Et(e){let t=y.useRef(e);return St(()=>{t.current=e}),t}function Dt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=y.useState(r);Ct(f,r)||p(r);let[m,h]=y.useState(null),[g,_]=y.useState(null),b=y.useCallback(e=>{e!==w.current&&(w.current=e,h(e))},[]),x=y.useCallback(e=>{e!==T.current&&(T.current=e,_(e))},[]),S=a||m,C=o||g,w=y.useRef(null),T=y.useRef(null),E=y.useRef(u),D=c!=null,O=Et(c),k=Et(i),A=Et(l),j=y.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),xt(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!Ct(E.current,t)&&(E.current=t,v.flushSync(()=>{d(t)}))})},[f,t,n,k,A]);St(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let M=y.useRef(!1);St(()=>(M.current=!0,()=>{M.current=!1}),[]),St(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=y.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=y.useMemo(()=>({reference:S,floating:C}),[S,C]),F=y.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=Tt(P.floating,u.x),r=Tt(P.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...wt(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:j,refs:N,elements:P,floatingStyles:F}),[u,j,N,P,F])}var Ot=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:yt({element:r.current,padding:i}).fn(n):r?yt({element:r,padding:i}).fn(n):{}}}},kt=(e,t)=>{let n=mt(e);return{name:n.name,fn:n.fn,options:[e,t]}},At=(e,t)=>{let n=ht(e);return{name:n.name,fn:n.fn,options:[e,t]}},jt=(e,t)=>({fn:bt(e).fn,options:[e,t]}),Mt=(e,t)=>{let n=gt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nt=(e,t)=>{let n=_t(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pt=(e,t)=>{let n=vt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ft=(e,t)=>{let n=Ot(e);return{name:n.name,fn:n.fn,options:[e,t]}},It=`Arrow`,Lt=y.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,b.jsx)(o.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,b.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Lt.displayName=It;var Rt=Lt,zt=`Popper`,[Bt,Vt]=f(zt),[Ht,Ut]=Bt(zt),Wt=e=>{let{__scopePopper:t,children:n}=e,[r,i]=y.useState(null);return(0,b.jsx)(Ht,{scope:t,anchor:r,onAnchorChange:i,children:n})};Wt.displayName=zt;var Gt=`PopperAnchor`,Kt=y.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=Ut(Gt,n),s=y.useRef(null),c=g(t,s),l=y.useRef(null);return y.useEffect(()=>{let e=l.current;l.current=r?.current||s.current,e!==l.current&&a.onAnchorChange(l.current)}),r?null:(0,b.jsx)(o.div,{...i,ref:c})});Kt.displayName=Gt;var qt=`PopperContent`,[Jt,Yt]=Bt(qt),Xt=y.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m=`partial`,hideWhenDetached:h=!1,updatePositionStrategy:v=`optimized`,onPlaced:x,...S}=e,C=Ut(qt,n),[w,T]=y.useState(null),E=g(t,e=>T(e)),[D,O]=y.useState(null),k=_(D),A=k?.width??0,j=k?.height??0,M=r+(a===`center`?``:`-`+a),N=typeof f==`number`?f:{top:0,right:0,bottom:0,left:0,...f},P=Array.isArray(d)?d:[d],F=P.length>0,I={padding:N,boundary:P.filter(en),altBoundary:F},{refs:L,floatingStyles:R,placement:z,isPositioned:B,middlewareData:V}=Dt({strategy:`fixed`,placement:M,whileElementsMounted:(...e)=>pt(...e,{animationFrame:v===`always`}),elements:{reference:C.anchor},middleware:[kt({mainAxis:i+j,alignmentAxis:s}),u&&At({mainAxis:!0,crossAxis:!1,limiter:m===`partial`?jt():void 0,...I}),u&&Mt({...I}),Nt({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),D&&Ft({element:D,padding:l}),tn({arrowWidth:A,arrowHeight:j}),h&&Pt({strategy:`referenceHidden`,...I})]}),[ee,te]=nn(z),ne=c(x);p(()=>{B&&ne?.()},[B,ne]);let re=V.arrow?.x,ie=V.arrow?.y,ae=V.arrow?.centerOffset!==0,[H,oe]=y.useState();return p(()=>{w&&oe(window.getComputedStyle(w).zIndex)},[w]),(0,b.jsx)(`div`,{ref:L.setFloating,"data-radix-popper-content-wrapper":``,style:{...R,transform:B?R.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:H,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(` `),...V.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,b.jsx)(Jt,{scope:n,placedSide:ee,onArrowChange:O,arrowX:re,arrowY:ie,shouldHideArrow:ae,children:(0,b.jsx)(o.div,{"data-side":ee,"data-align":te,...S,ref:E,style:{...S.style,animation:B?void 0:`none`}})})})});Xt.displayName=qt;var Zt=`PopperArrow`,Qt={top:`bottom`,right:`left`,bottom:`top`,left:`right`},$t=y.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Yt(Zt,n),a=Qt[i.placedSide];return(0,b.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,b.jsx)(Rt,{...r,ref:t,style:{...r.style,display:`block`}})})});$t.displayName=Zt;function en(e){return e!==null}var tn=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=nn(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function nn(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var rn=Wt,an=Kt,on=Xt,sn=$t,cn=`rovingFocusGroup.onEntryFocus`,ln={bubbles:!1,cancelable:!0},un=`RovingFocusGroup`,[dn,fn,pn]=x(un),[mn,hn]=f(un,[pn]),[gn,_n]=mn(un),vn=y.forwardRef((e,t)=>(0,b.jsx)(dn.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(dn.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,b.jsx)(yn,{...e,ref:t})})}));vn.displayName=un;var yn=y.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:m=!1,...h}=e,_=y.useRef(null),v=g(n,_),x=C(l),[S,w]=s({prop:u,defaultProp:d??null,onChange:f,caller:un}),[T,E]=y.useState(!1),D=c(p),O=fn(r),k=y.useRef(!1),[A,j]=y.useState(0);return y.useEffect(()=>{let e=_.current;if(e)return e.addEventListener(cn,D),()=>e.removeEventListener(cn,D)},[D]),(0,b.jsx)(gn,{scope:r,orientation:i,dir:x,loop:a,currentTabStopId:S,onItemFocus:y.useCallback(e=>w(e),[w]),onItemShiftTab:y.useCallback(()=>E(!0),[]),onFocusableItemAdd:y.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:y.useCallback(()=>j(e=>e-1),[]),children:(0,b.jsx)(o.div,{tabIndex:T||A===0?-1:0,"data-orientation":i,...h,ref:v,style:{outline:`none`,...e.style},onMouseDown:t(e.onMouseDown,()=>{k.current=!0}),onFocus:t(e.onFocus,e=>{let t=!k.current;if(e.target===e.currentTarget&&t&&!T){let t=new CustomEvent(cn,ln);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);Tn([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),m)}}k.current=!1}),onBlur:t(e.onBlur,()=>E(!1))})})}),bn=`RovingFocusGroupItem`,xn=y.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,focusable:a=!0,active:s=!1,tabStopId:c,children:l,...u}=e,d=r(),f=c||d,p=_n(bn,i),m=p.currentTabStopId===f,h=fn(i),{onFocusableItemAdd:g,onFocusableItemRemove:_,currentTabStopId:v}=p;return y.useEffect(()=>{if(a)return g(),()=>_()},[a,g,_]),(0,b.jsx)(dn.ItemSlot,{scope:i,id:f,focusable:a,active:s,children:(0,b.jsx)(o.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...u,ref:n,onMouseDown:t(e.onMouseDown,e=>{a?p.onItemFocus(f):e.preventDefault()}),onFocus:t(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:t(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=wn(e,p.orientation,p.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?En(n,r+1):n.slice(r+1)}setTimeout(()=>Tn(n))}}),children:typeof l==`function`?l({isCurrentTabStop:m,hasTabStop:v!=null}):l})})});xn.displayName=bn;var Sn={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Cn(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function wn(e,t,n){let r=Cn(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Sn[r]}function Tn(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function En(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Dn=vn,On=xn,kn=h(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),An=h(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),jn=h(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),Mn=({className:e})=>(0,b.jsx)(kn,{"aria-hidden":`true`,className:e}),Nn=e=>e&&e.match(/filename="?([^";]+)"?/i)?.[1]?.trim()||`project-archon-memory-v7.json`,Pn=e=>u(l(`/projects`),{signal:e,cache:`no-store`}),Fn=e=>u(l(`/projects`),{method:`POST`,body:e,fallbackErrorMessage:`Unable to create the project right now.`}),In=(e,t)=>u(l(`/projects/${e}`),{method:`PATCH`,body:t,fallbackErrorMessage:`Unable to update the project right now.`}),Ln=e=>u(l(`/projects/${e}/create-initial-commit`),{method:`POST`,fallbackErrorMessage:`Unable to create the initial commit right now.`}),Rn=e=>d(l(`/projects/${e}`),{method:`DELETE`,fallbackErrorMessage:`Unable to delete the project right now.`}),zn=e=>d(l(`/projects/${e}/open-ide`),{method:`POST`,fallbackErrorMessage:`Unable to open the project IDE right now.`}),Bn=(e,t)=>u(l(`/projects/${e}/branches`),{signal:t,fallbackErrorMessage:`Unable to load project branches right now.`}),Vn=(e,t)=>u(l(`/projects/${e}/target`),{method:`POST`,body:t,fallbackErrorMessage:`Unable to update the project target right now.`}),Hn=e=>u(l(`/projects/auto-config`),{method:`POST`,body:e,fallbackErrorMessage:`Unable to infer project settings right now.`}),Un=()=>u(l(`/projects/browse-repo-path`),{method:`POST`,fallbackErrorMessage:`Unable to open the folder picker right now.`}),Wn=e=>u(l(`/projects/validate-repo-path`),{method:`POST`,body:e,fallbackErrorMessage:`Unable to validate the repository path right now.`}),Gn=(e,t,n={})=>{let r=new URL(l(`/projects/${e}/file-suggestions`));return r.searchParams.set(`q`,t),n.ticketId&&r.searchParams.set(`ticket_id`,n.ticketId),u(r.toString(),{signal:n.signal,fallbackErrorMessage:`Unable to load project file suggestions right now.`})},Kn=(e,t,n={})=>u(l(`/projects/${e}/branch${n.refreshRemote?`?refresh_remote=true`:``}`),{signal:t,fallbackErrorMessage:`Unable to load the current branch right now.`}),qn=(e,t)=>u(l(`/projects/${e}/branch-identity`),{signal:t}),Jn=e=>u(l(`/projects/${e}/git-pull`),{method:`POST`,fallbackErrorMessage:`Unable to sync the current branch right now.`}),Yn=(e,t)=>u(l(`/projects/${e}/git-rebase-continue`),{method:`POST`,body:t,fallbackErrorMessage:`Unable to continue the current rebase right now.`}),Xn=e=>u(l(`/projects/${e}/rebase-staged-diff`),{fallbackErrorMessage:`Unable to load the staged rebase diff right now.`}),Zn=(e,t)=>u(l(`/projects/${e}/git-rebase-skip`),{method:`POST`,body:t,fallbackErrorMessage:`Unable to skip the current rebase step right now.`}),Qn=(e,t={})=>u(l(`/projects/${e}/git-rebase`),{method:`POST`,body:t,fallbackErrorMessage:`Unable to rebase the current branch right now.`}),$n=e=>u(l(`/projects/${e}/git-abort`),{method:`POST`,fallbackErrorMessage:`Unable to abort the current git operation right now.`}),er=e=>u(l(`/projects/${e}/diff`),{fallbackErrorMessage:`Unable to load the diff right now.`}),tr=(e,t,n)=>{let r=new URL(l(`/projects/${e}/committed-diff`));return t&&r.searchParams.set(`commit`,t),u(r.toString(),{signal:n,fallbackErrorMessage:`Unable to load committed changes right now.`})},nr=(e,t)=>u(l(`/projects/${e}/memories`),{signal:t,fallbackErrorMessage:`Unable to load project memories right now.`}),rr=(e,t,n)=>u(l(`/projects/${e}/memory/agent-runs/${t}/selection`),{signal:n,fallbackErrorMessage:`Unable to load memory used for this run.`}),ir=(e,t,n,r,i)=>{let a=new URL(l(`/projects/${e}/memory/items/${t}/${n}/${r}`));return i.cursor&&a.searchParams.set(`cursor`,i.cursor),i.limit!=null&&a.searchParams.set(`limit`,String(i.limit)),a.toString()},ar=(e,t,n,r={})=>u(ir(e,t,n,`usage`,r),{signal:r.signal,fallbackErrorMessage:`Unable to load recent memory usage.`}),or=(e,t,n,r={})=>u(ir(e,t,n,`history`,r),{signal:r.signal,fallbackErrorMessage:`Unable to load memory history.`}),sr=(e,t={})=>{let n=new URL(l(`/projects/${e}/git-status`));return t.refreshRemote&&n.searchParams.set(`refresh_remote`,`true`),u(n.toString(),{signal:t.signal,fallbackErrorMessage:`Unable to load git status right now.`})},cr=e=>u(l(`/projects/${e}/git-commits`),{fallbackErrorMessage:`Unable to load local commits right now.`}),lr=(e,t)=>u(l(`/projects/${e}/git-commit`),{method:`POST`,body:t,fallbackErrorMessage:`Unable to create the commit right now.`}),ur=(e,t)=>u(l(`/projects/${e}/git-commit-message`),{method:`POST`,body:t,fallbackErrorMessage:`Unable to generate a commit message right now.`}),dr=(e,t={})=>u(l(`/projects/${e}/git-push`),{method:`POST`,...t.forceWithLease?{body:{force_with_lease:!0}}:{},fallbackErrorMessage:`Unable to push the branch right now.`}),fr=(e,t)=>u(l(`/projects/${e}/pull-request`),{method:`POST`,body:t,fallbackErrorMessage:`Unable to create the pull request right now.`}),pr=(e,t)=>u(l(`/projects/${e}/pull-request-description`),{method:`POST`,body:t,fallbackErrorMessage:`Unable to generate the pull request description right now.`}),mr=e=>u(l(`/projects/${e}/git-undo-latest`),{method:`POST`,fallbackErrorMessage:`Unable to undo the latest local commit right now.`}),hr=(e,t)=>u(l(`/projects/${e}/git-squash`),{method:`POST`,body:{message:t},fallbackErrorMessage:`Unable to squash local commits right now.`}),gr=(e,t)=>u(l(`/projects/${e}/memories`),{method:`POST`,body:t,fallbackErrorMessage:`Unable to create the project memory right now.`}),_r=(e,t,n)=>u(l(`/projects/${e}/memories/${t}`),{method:`PATCH`,body:n,fallbackErrorMessage:`Unable to update the project memory right now.`}),vr=(e,t)=>u(l(`/projects/${e}/memories/${t}/archive`),{method:`POST`,fallbackErrorMessage:`Unable to archive the project memory right now.`}),yr=(e,t,n=!1)=>u(l(`/projects/${e}/memories/${t}/restore`),{method:`POST`,body:{confirm_conflicts:n},fallbackErrorMessage:`Unable to restore the project memory right now.`}),br=(e,t,n)=>u(l(`/projects/${e}/memories/${t}/supersede`),{method:`POST`,body:{replacement_decision_id:n},fallbackErrorMessage:`Unable to supersede the project memory right now.`}),xr=(e,t)=>u(l(`/projects/${e}/context`),{signal:t,fallbackErrorMessage:`Unable to load project context right now.`}),Sr=e=>u(l(`/projects/${e}/context/scan`),{method:`POST`,fallbackErrorMessage:`Unable to start the project context scan right now.`}),Cr=(e,t={})=>{let n=new URLSearchParams;return t.cursor&&n.set(`cursor`,t.cursor),t.limit!=null&&n.set(`limit`,String(t.limit)),u(l(`/projects/${e}/context/scans${n.size>0?`?${n.toString()}`:``}`),{signal:t.signal,fallbackErrorMessage:`Unable to load project context scan history right now.`})},wr=(e,t,n)=>u(l(`/projects/${e}/context/scans/${encodeURIComponent(t)}`),{signal:n,fallbackErrorMessage:`Unable to load project context scan details right now.`}),Tr=(e,t)=>u(l(`/projects/${e}/context/artifacts`),{signal:t,fallbackErrorMessage:`Unable to load project context artifacts right now.`}),Er=(e,t,n)=>u(l(`/projects/${e}/memory/relevant?ticket_id=${encodeURIComponent(t)}`),{signal:n,fallbackErrorMessage:`Unable to load relevant project memory right now.`}),Dr=(e,t,n,r,i)=>u(l(t?`/projects/${e}/memory/suggestions?ticket_id=${encodeURIComponent(t)}`:r?`/projects/${e}/memory/suggestions?chat_session_id=${encodeURIComponent(r)}`:i?`/projects/${e}/memory/suggestions?spec_session_id=${encodeURIComponent(i)}`:`/projects/${e}/memory/suggestions`),{signal:n,fallbackErrorMessage:`Unable to load project memory suggestions right now.`}),Or=(e,t,n,r=!1)=>u(l(`/projects/${e}/memories/${t}/accept`),{method:`POST`,body:{...n,confirm_conflicts:r},fallbackErrorMessage:`Unable to accept the project memory right now.`}),kr=(e,t,n)=>u(l(`/projects/${e}/memories/${t}/dismiss`),{method:`POST`,body:n?{reason:n}:void 0,fallbackErrorMessage:`Unable to dismiss the project memory right now.`}),Ar=(e,t,n,r)=>u(l(`/projects/${e}/memories/${t}/apply-to-existing`),{method:`POST`,body:{memory_id:n,...r},fallbackErrorMessage:`Unable to apply the project memory right now.`}),jr=(e,t,n,r)=>u(l(`/projects/${e}/memory/suggestions/${t}/supersede`),{method:`POST`,body:{decision_id:n,...r},fallbackErrorMessage:`Unable to supersede the project decision right now.`}),Mr=async e=>{let t=await d(l(`/projects/${e}/memory/export`),{fallbackErrorMessage:`Unable to export project memory right now.`});return{filename:Nn(t.headers.get(`Content-Disposition`)),archive:await t.json()}},Nr=(e,t)=>u(l(`/projects/${e}/memory/import`),{method:`POST`,body:t,fallbackErrorMessage:`Unable to import project memory right now.`}),Pr=({className:e})=>(0,b.jsx)(An,{"aria-hidden":`true`,className:e}),Fr=({className:e})=>(0,b.jsx)(jn,{"aria-hidden":`true`,className:e});export{_r as $,Er as A,Pn as B,xr as C,sr as D,cr as E,Gn as F,yr as G,Jn as H,nr as I,br as J,Zn as K,or as L,Bn as M,Tr as N,rr as O,Cr as P,In as Q,Dr as R,tr as S,er as T,dr as U,zn as V,Qn as W,Sr as X,jr as Y,mr as Z,Mr as _,Ar as a,Dn as at,Kn as b,Un as c,sn as ct,Fn as d,Vt as dt,Vn as et,Ln as f,C as ft,kr as g,Rn as h,Or as i,On as it,Nr as j,Xn as k,lr as l,on as lt,fr as m,Pr as n,Mn as nt,vr as o,hn as ot,gr as p,x as pt,hr as q,$n as r,kn as rt,Hn as s,an as st,Fr as t,Wn as tt,Yn as u,rn as ut,ur as v,wr as w,qn as x,pr as y,ar as z};
@@ -42,4 +42,4 @@ import{a as e,r as t,t as n}from"./chunk-BNv3lrIs.js";var r=n((e=>{var t=Symbol.
42
42
 
43
43
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
44
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},sr=`DialogDescriptionWarning`,cr=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ar(sr).contentName}}.`;return h.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},lr=Pn,ur=In,dr=Bn,fr=Hn,pr=Kn,mr=Zn,hr=$n,gr=tr,_r=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},vr=(e,t)=>({classGroupId:e,validator:t}),yr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),br=`-`,xr=[],Sr=`arbitrary..`,Cr=e=>{let t=Er(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Tr(e);let n=e.split(br);return wr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?_r(i,t):t:i||xr}return n[e]||xr}}},wr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=wr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(br):e.slice(t).join(br),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Tr=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Sr+r:void 0})(),Er=e=>{let{theme:t,classGroups:n}=e;return Dr(n,t)},Dr=(e,t)=>{let n=yr();for(let r in e){let i=e[r];Or(i,n,r,t)}return n},Or=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];kr(i,t,n,r)}},kr=(e,t,n,r)=>{if(typeof e==`string`){Ar(e,t,n);return}if(typeof e==`function`){jr(e,t,n,r);return}Mr(e,t,n,r)},Ar=(e,t,n)=>{let r=e===``?t:Nr(t,e);r.classGroupId=n},jr=(e,t,n,r)=>{if(Pr(e)){Or(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(vr(n,e))},Mr=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Or(o,Nr(t,a),n,r)}},Nr=(e,t)=>{let n=e,r=t.split(br),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=yr(),n.nextPart.set(t,i)),n=i}return n},Pr=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Fr=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Ir=`!`,Lr=`:`,Rr=[],zr=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Br=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Lr){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Ir)?(c=s.slice(0,-1),l=!0):s.startsWith(Ir)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return zr(t,l,c,u)};if(t){let e=t+Lr,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):zr(Rr,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Vr=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Hr=e=>({cache:Fr(e.cacheSize),parseClassName:Br(e),sortModifiers:Vr(e),...Cr(e)}),Ur=/\s+/,Wr=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Ur),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Ir:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Gr=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Kr(n))&&(i&&(i+=` `),i+=r);return i},Kr=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Kr(e[r]))&&(n&&(n+=` `),n+=t);return n},qr=(e,...t)=>{let n,r,i,a,o=o=>(n=Hr(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Wr(e,n);return i(e,a),a};return a=o,(...e)=>a(Gr(...e))},Jr=[],H=e=>{let t=t=>t[e]||Jr;return t.isThemeGetter=!0,t},Yr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$r=/\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$/,ei=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ti=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ni=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>Zr.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),ri=e=>e.endsWith(`%`)&&W(e.slice(0,-1)),K=e=>Qr.test(e),ii=()=>!0,ai=e=>$r.test(e)&&!ei.test(e),oi=()=>!1,si=e=>ti.test(e),ci=e=>ni.test(e),li=e=>!q(e)&&!J(e),ui=e=>Ti(e,ki,oi),q=e=>Yr.test(e),di=e=>Ti(e,Ai,ai),fi=e=>Ti(e,ji,W),pi=e=>Ti(e,Ni,ii),mi=e=>Ti(e,Mi,oi),hi=e=>Ti(e,Di,oi),gi=e=>Ti(e,Oi,ci),_i=e=>Ti(e,Pi,si),J=e=>Xr.test(e),vi=e=>Ei(e,Ai),yi=e=>Ei(e,Mi),bi=e=>Ei(e,Di),xi=e=>Ei(e,ki),Si=e=>Ei(e,Oi),Ci=e=>Ei(e,Pi,!0),wi=e=>Ei(e,Ni,!0),Ti=(e,t,n)=>{let r=Yr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ei=(e,t,n=!1)=>{let r=Xr.exec(e);return r?r[1]?t(r[1]):n:!1},Di=e=>e===`position`||e===`percentage`,Oi=e=>e===`image`||e===`url`,ki=e=>e===`length`||e===`size`||e===`bg-size`,Ai=e=>e===`length`,ji=e=>e===`number`,Mi=e=>e===`family-name`,Ni=e=>e===`number`||e===`weight`,Pi=e=>e===`shadow`,Fi=qr(()=>{let e=H(`color`),t=H(`font`),n=H(`text`),r=H(`font-weight`),i=H(`tracking`),a=H(`leading`),o=H(`breakpoint`),s=H(`container`),c=H(`spacing`),l=H(`radius`),u=H(`shadow`),d=H(`inset-shadow`),f=H(`text-shadow`),p=H(`drop-shadow`),m=H(`blur`),h=H(`perspective`),g=H(`aspect`),_=H(`ease`),v=H(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,q,c],T=()=>[U,`full`,`auto`,...w()],E=()=>[G,`none`,`subgrid`,J,q],ee=()=>[`auto`,{span:[`full`,G,J,q]},G,J,q],D=()=>[G,`auto`,J,q],te=()=>[`auto`,`min`,`max`,`fr`,J,q],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[U,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[U,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[U,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,J,q],ae=()=>[...b(),bi,hi,{position:[J,q]}],M=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,xi,ui,{size:[J,q]}],se=()=>[ri,vi,di],N=()=>[``,`none`,`full`,l,J,q],P=()=>[``,W,vi,di],F=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[W,ri,bi,hi],le=()=>[``,`none`,m,J,q],ue=()=>[`none`,W,J,q],de=()=>[`none`,W,J,q],fe=()=>[W,J,q],pe=()=>[U,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[K],breakpoint:[K],color:[ii],container:[K],"drop-shadow":[K],ease:[`in`,`out`,`in-out`],font:[li],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[K],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[K],shadow:[K],spacing:[`px`,W],text:[K],"text-shadow":[K],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,U,q,J,g]}],container:[`container`],columns:[{columns:[W,q,J,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[G,`auto`,J,q]}],basis:[{basis:[U,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[W,U,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,W,J,q]}],shrink:[{shrink:[``,W,J,q]}],order:[{order:[G,`first`,`last`,`none`,J,q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,vi,di]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,wi,pi]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ri,q]}],"font-family":[{font:[yi,mi,t]}],"font-features":[{"font-features":[q]}],"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:[i,J,q]}],"line-clamp":[{"line-clamp":[W,`none`,J,fi]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,J,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...F(),`wavy`]}],"text-decoration-thickness":[{decoration:[W,`from-font`,`auto`,J,di]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[W,`auto`,J,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,q]}],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`,J,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},G,J,q],radial:[``,J,q],conic:[G,J,q]},Si,gi]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...F(),`hidden`,`none`]}],"divide-style":[{divide:[...F(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...F(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[W,J,q]}],"outline-w":[{outline:[``,W,vi,di]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,Ci,_i]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ci,_i]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[W,di]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,Ci,_i]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[W,J,q]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,q]}],filter:[{filter:[``,`none`,J,q]}],blur:[{blur:le()}],brightness:[{brightness:[W,J,q]}],contrast:[{contrast:[W,J,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ci,_i]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,W,J,q]}],"hue-rotate":[{"hue-rotate":[W,J,q]}],invert:[{invert:[``,W,J,q]}],saturate:[{saturate:[W,J,q]}],sepia:[{sepia:[``,W,J,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,q]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[W,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[W,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,W,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,J,q]}],"backdrop-invert":[{"backdrop-invert":[``,W,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[W,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[W,J,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,W,J,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,J,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[W,`initial`,J,q]}],ease:[{ease:[`linear`,`initial`,_,J,q]}],delay:[{delay:[W,J,q]}],animate:[{animate:[`none`,v,J,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[J,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"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`,J,q]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,J,q]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[W,vi,di,fi]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]}}),Ii=(...e)=>Fi(ne(e)),Li=A(`inline-flex shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-xl border text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`border-primary/60 bg-primary text-primary-foreground shadow-[0_8px_24px_rgba(108,63,217,0.28)] hover:bg-primary/92 hover:border-primary/70`,outline:`border-border bg-card/80 text-foreground hover:bg-accent hover:text-accent-foreground`,secondary:`border-border bg-secondary text-secondary-foreground hover:bg-secondary/85`,ghost:`border-transparent bg-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground`,destructive:`border-red-500/30 bg-destructive/15 text-red-200 hover:bg-destructive/25`,success:`border-emerald-300/80 bg-emerald-400 text-[#07130d] shadow-[0_10px_30px_rgba(16,185,129,0.28)] hover:border-emerald-200 hover:bg-emerald-300`,warning:`border-amber-500/30 bg-amber-500/12 text-amber-200 hover:bg-amber-500/20`,link:`border-transparent px-0 text-primary underline-offset-4 hover:underline`},size:{default:`h-10 px-4`,xs:`h-7 px-2.5 text-xs`,sm:`h-8 px-3 text-sm`,lg:`h-11 px-5 text-sm`,icon:`size-10`,"icon-xs":`size-7 [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-11`}},defaultVariants:{variant:`default`,size:`default`}}),Ri=({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i})=>(0,P.jsx)(r?ce:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:Ii(Li({variant:t,size:n,className:e})),...i}),Y=Object.create(null);Y.open=`0`,Y.close=`1`,Y.ping=`2`,Y.pong=`3`,Y.message=`4`,Y.upgrade=`5`,Y.noop=`6`;var zi=Object.create(null);Object.keys(Y).forEach(e=>{zi[Y[e]]=e});var Bi={type:`error`,data:`parser error`},Vi=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,Hi=typeof ArrayBuffer==`function`,Ui=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Wi=({type:e,data:t},n,r)=>Vi&&t instanceof Blob?n?r(t):Gi(t,r):Hi&&(t instanceof ArrayBuffer||Ui(t))?n?r(t):Gi(new Blob([t]),r):r(Y[e]+(t||``)),Gi=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function Ki(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var qi;function Ji(e,t){if(Vi&&e.data instanceof Blob)return e.data.arrayBuffer().then(Ki).then(t);if(Hi&&(e.data instanceof ArrayBuffer||Ui(e.data)))return t(Ki(e.data));Wi(e,!1,e=>{qi||=new TextEncoder,t(qi.encode(e))})}var Yi=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Xi=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)Xi[Yi.charCodeAt(e)]=e;var Zi=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=Xi[e.charCodeAt(r)],o=Xi[e.charCodeAt(r+1)],s=Xi[e.charCodeAt(r+2)],c=Xi[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},Qi=typeof ArrayBuffer==`function`,$i=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:ta(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:ea(e.substring(1),t)}:zi[n]?e.length>1?{type:zi[n],data:e.substring(1)}:{type:zi[n]}:Bi},ea=(e,t)=>Qi?ta(Zi(e),t):{base64:!0,data:e},ta=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},na=``,ra=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{Wi(e,!1,e=>{r[a]=e,++i===n&&t(r.join(na))})})},ia=(e,t)=>{let n=e.split(na),r=[];for(let e=0;e<n.length;e++){let i=$i(n[e],t);if(r.push(i),i.type===`error`)break}return r};function aa(){return new TransformStream({transform(e,t){Ji(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var oa;function sa(e){return e.reduce((e,t)=>e+t.length,0)}function ca(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function la(e,t){oa||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(sa(n)<1)break;let e=ca(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(sa(n)<2)break;let e=ca(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(sa(n)<8)break;let e=ca(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(Bi);break}i=a*2**32+t.getUint32(4),r=3}else{if(sa(n)<i)break;let e=ca(n,i);s.enqueue($i(a?e:oa.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(Bi);break}}}})}function X(e){if(e)return ua(e)}function ua(e){for(var t in X.prototype)e[t]=X.prototype[t];return e}X.prototype.on=X.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},X.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},X.prototype.off=X.prototype.removeListener=X.prototype.removeAllListeners=X.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},X.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},X.prototype.emitReserved=X.prototype.emit,X.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},X.prototype.hasListeners=function(e){return!!this.listeners(e).length};var da=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Z=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),fa=`arraybuffer`;function pa(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var ma=Z.setTimeout,ha=Z.clearTimeout;function ga(e,t){t.useNativeTimers?(e.setTimeoutFn=ma.bind(Z),e.clearTimeoutFn=ha.bind(Z)):(e.setTimeoutFn=Z.setTimeout.bind(Z),e.clearTimeoutFn=Z.clearTimeout.bind(Z))}var _a=1.33;function va(e){return typeof e==`string`?ya(e):Math.ceil((e.byteLength||e.size)*_a)}function ya(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function ba(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function xa(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function Sa(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var Ca=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},wa=class extends X{constructor(e){super(),this.writable=!1,ga(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new Ca(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=$i(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_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(e){let t=xa(e);return t.length?`?`+t:``}},Ta=class extends wa{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){ia(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,ra(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=ba()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},Ea=!1;try{Ea=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var Da=Ea;function Oa(){}var ka=class extends Ta{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},Aa=class e extends X{constructor(e,t,n){super(),this.createRequest=e,ga(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=pa(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(this._xhr===void 0||this._xhr===null)){if(this._xhr.onreadystatechange=Oa,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(Aa.requestsCount=0,Aa.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,ja);else if(typeof addEventListener==`function`){let e=`onpagehide`in Z?`pagehide`:`unload`;addEventListener(e,ja,!1)}}function ja(){for(let e in Aa.requests)Aa.requests.hasOwnProperty(e)&&Aa.requests[e].abort()}var Ma=(function(){let e=Pa({xdomain:!1});return e&&e.responseType!==null})(),Na=class extends ka{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Ma&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Aa(Pa,this.uri(),e)}};function Pa(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||Da))return new XMLHttpRequest}catch{}if(!t)try{return new Z[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var Fa=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,Ia=class extends wa{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=Fa?{}:pa(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;Wi(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&da(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=ba()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},La=Z.WebSocket||Z.MozWebSocket,Ra={websocket:class extends Ia{createSocket(e,t,n){return Fa?new La(e,t,n):t?new La(e,t):new La(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends wa{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=la(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=aa();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&da(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:Na},za=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ba=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function Va(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=za.exec(e||``),a={},o=14;for(;o--;)a[Ba[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=Ha(a,a.path),a.queryKey=Ua(a,a.query),a}function Ha(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function Ua(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var Wa=typeof addEventListener==`function`&&typeof removeEventListener==`function`,Ga=[];Wa&&addEventListener(`offline`,()=>{Ga.forEach(e=>e())},!1);var Ka=class e extends X{constructor(e,t){if(super(),this.binaryType=fa,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=Va(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Va(t.host).host);ga(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),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},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=Sa(this.opts.query)),Wa&&(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`})},Ga.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data);break}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),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){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=va(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,da(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){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(),Wa&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=Ga.indexOf(this._offlineEventListener);e!==-1&&Ga.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};Ka.protocol=4;var qa=class extends Ka{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Ka.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;Ka.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},Ja=class extends qa{constructor(e,t={}){let n=typeof e==`object`?e:t;(!n.transports||n.transports&&typeof n.transports[0]==`string`)&&(n.transports=(n.transports||[`polling`,`websocket`,`webtransport`]).map(e=>Ra[e]).filter(e=>!!e)),super(e,n)}};Ja.protocol;function Ya(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=Va(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var Xa=typeof ArrayBuffer==`function`,Za=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Qa=Object.prototype.toString,$a=typeof Blob==`function`||typeof Blob<`u`&&Qa.call(Blob)===`[object BlobConstructor]`,eo=typeof File==`function`||typeof File<`u`&&Qa.call(File)===`[object FileConstructor]`;function to(e){return Xa&&(e instanceof ArrayBuffer||Za(e))||$a&&e instanceof Blob||eo&&e instanceof File}function no(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(no(e[t]))return!0;return!1}if(to(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return no(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&no(e[t]))return!0;return!1}function ro(e){let t=[],n=e.data,r=e;return r.data=io(n,t),r.attachments=t.length,{packet:r,buffers:t}}function io(e,t){if(!e)return e;if(to(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=io(e[r],t);return n}else if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=io(e[r],t));return n}return e}function ao(e,t){return e.data=oo(e.data,t),delete e.attachments,e}function oo(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=oo(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=oo(e[n],t));return e}var so=t({Decoder:()=>uo,Encoder:()=>lo,PacketType:()=>Q,isPacketValid:()=>vo,protocol:()=>5}),co=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],Q;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})(Q||={});var lo=class{constructor(e){this.replacer=e}encode(e){return(e.type===Q.EVENT||e.type===Q.ACK)&&no(e)?this.encodeAsBinary({type:e.type===Q.EVENT?Q.BINARY_EVENT:Q.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===Q.BINARY_EVENT||e.type===Q.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=ro(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},uo=class e extends X{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===Q.BINARY_EVENT;n||t.type===Q.BINARY_ACK?(t.type=n?Q.EVENT:Q.ACK,this.reconstructor=new fo(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(to(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(Q[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===Q.BINARY_EVENT||r.type===Q.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!mo(a)||a<0)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&!(t.charAt(n)===`,`||n===t.length););r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case Q.CONNECT:return go(t);case Q.DISCONNECT:return t===void 0;case Q.CONNECT_ERROR:return typeof t==`string`||go(t);case Q.EVENT:case Q.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&co.indexOf(t[0])===-1);case Q.ACK:case Q.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},fo=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=ao(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function po(e){return typeof e==`string`}var mo=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function ho(e){return e===void 0||mo(e)}function go(e){return Object.prototype.toString.call(e)===`[object Object]`}function _o(e,t){switch(e){case Q.CONNECT:return t===void 0||go(t);case Q.DISCONNECT:return t===void 0;case Q.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&co.indexOf(t[0])===-1);case Q.ACK:return Array.isArray(t);case Q.CONNECT_ERROR:return typeof t==`string`||go(t);default:return!1}}function vo(e){return po(e.nsp)&&ho(e.id)&&_o(e.type,e.data)}function $(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var yo=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),bo=class extends X{constructor(e,t,n){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=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[$(e,`open`,this.onopen.bind(this)),$(e,`packet`,this.onpacket.bind(this)),$(e,`error`,this.onerror.bind(this)),$(e,`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(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(yo.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:Q.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Q.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Q.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,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 Q.EVENT:case Q.BINARY_EVENT:this.onevent(e);break;case Q.ACK:case Q.BINARY_ACK:this.onack(e);break;case Q.DISCONNECT:this.ondisconnect();break;case Q.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:Q.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Q.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function xo(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}xo.prototype.duration=function(){var e=this.ms*this.factor**+ this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},xo.prototype.reset=function(){this.attempts=0},xo.prototype.setMin=function(e){this.ms=e},xo.prototype.setMax=function(e){this.max=e},xo.prototype.setJitter=function(e){this.jitter=e};var So=class extends X{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,ga(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new xo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||so;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new Ja(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=$(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=$(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push($(e,`ping`,this.onping.bind(this)),$(e,`data`,this.ondata.bind(this)),$(e,`error`,this.onerror.bind(this)),$(e,`close`,this.onclose.bind(this)),$(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){da(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new bo(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},Co={};function wo(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=Ya(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=Co[i]&&a in Co[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new So(r,t):(Co[i]||(Co[i]=new So(r,t)),c=Co[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(wo,{Manager:So,Socket:bo,io:wo,connect:wo});var To=Symbol.for(`archon.desktopSocketState`),Eo=globalThis,Do=Eo[To]??{};Eo[To]=Do;var Oo=(e=g)=>wo(e),ko=()=>(Do.socket??=Oo(),Do.socket),Ao=new Proxy({},{get:(e,t)=>{let n=ko(),r=Reflect.get(n,t,n);return typeof r==`function`?r.bind(n):r},set:(e,t,n)=>Reflect.set(ko(),t,n)}),jo=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Mo=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),No=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Po=e=>{let t=No(e);return t.charAt(0).toUpperCase()+t.slice(1)},Fo={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`},Io=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Lo=(0,h.createContext)({}),Ro=()=>(0,h.useContext)(Lo),zo=(0,h.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Ro()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,h.createElement)(`svg`,{ref:c,...Fo,width:t??l??Fo.width,height:t??l??Fo.height,stroke:e??f,strokeWidth:m,className:jo(`lucide`,p,i),...!a&&!Io(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,h.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Bo=(e,t)=>{let n=(0,h.forwardRef)(({className:n,...r},i)=>(0,h.createElement)(zo,{ref:i,iconNode:t,className:jo(`lucide-${Mo(Po(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Po(e),n},Vo=Bo(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Ho=e=>(0,P.jsx)(lr,{"data-slot":`dialog`,...e}),Uo=e=>(0,P.jsx)(ur,{"data-slot":`dialog-trigger`,...e}),Wo=e=>(0,P.jsx)(dr,{"data-slot":`dialog-portal`,...e}),Go=e=>(0,P.jsx)(gr,{"data-slot":`dialog-close`,...e}),Ko=({className:e,...t})=>(0,P.jsx)(fr,{"data-slot":`dialog-overlay`,"data-archon-modal":`true`,className:Ii(`fixed inset-0 isolate z-50 bg-black/70 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t}),qo=({className:e,children:t,showCloseButton:n=!0,overlayClassName:r,...i})=>(0,P.jsxs)(Wo,{children:[(0,P.jsx)(Ko,{className:r}),(0,P.jsxs)(pr,{"data-slot":`dialog-content`,"data-archon-modal":`true`,className:Ii(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-2xl border border-border bg-card p-6 text-sm text-card-foreground shadow-2xl shadow-black/30 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...i,children:[t,n&&(0,P.jsx)(gr,{"data-slot":`dialog-close`,asChild:!0,children:(0,P.jsxs)(Ri,{variant:`ghost`,className:`absolute top-4 right-4`,size:`icon-sm`,children:[(0,P.jsx)(Vo,{}),(0,P.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]}),Jo=({className:e,...t})=>(0,P.jsx)(`div`,{"data-slot":`dialog-header`,className:Ii(`flex flex-col gap-1.5`,e),...t}),Yo=({className:e,showCloseButton:t=!1,children:n,...r})=>(0,P.jsxs)(`div`,{"data-slot":`dialog-footer`,className:Ii(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,P.jsx)(gr,{asChild:!0,children:(0,P.jsx)(Ri,{variant:`outline`,children:`Close`})})]}),Xo=({className:e,...t})=>(0,P.jsx)(mr,{"data-slot":`dialog-title`,className:Ii(`font-heading text-base leading-none font-medium`,e),...t}),Zo=({className:e,...t})=>(0,P.jsx)(hr,{"data-slot":`dialog-description`,className:Ii(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t}),Qo=({className:e})=>(0,P.jsx)(Vo,{"aria-hidden":`true`,className:e});export{m as $,R as A,ie as B,Xe as C,we as D,Ae as E,F,v as G,_ as H,ue as I,x as J,C as K,se as L,L as M,me as N,be as O,ce as P,b as Q,ae as R,ct as S,je as T,y as U,A as V,D as W,T as X,w as Y,ee as Z,dr as _,Zo as a,bn as b,Xo as c,Ao as d,p as et,wo as f,fr as g,pr as h,qo as i,ge as j,ve as k,Uo as l,Ii as m,Ho as n,i as nt,Yo as o,Ri as p,S as q,Go as r,Jo as s,Qo as t,u as tt,Bo as u,lr as v,ze as w,ut as x,kn as y,M as z};
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},sr=`DialogDescriptionWarning`,cr=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ar(sr).contentName}}.`;return h.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},lr=Pn,ur=In,dr=Bn,fr=Hn,pr=Kn,mr=Zn,hr=$n,gr=tr,_r=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},vr=(e,t)=>({classGroupId:e,validator:t}),yr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),br=`-`,xr=[],Sr=`arbitrary..`,Cr=e=>{let t=Er(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Tr(e);let n=e.split(br);return wr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?_r(i,t):t:i||xr}return n[e]||xr}}},wr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=wr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(br):e.slice(t).join(br),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Tr=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Sr+r:void 0})(),Er=e=>{let{theme:t,classGroups:n}=e;return Dr(n,t)},Dr=(e,t)=>{let n=yr();for(let r in e){let i=e[r];Or(i,n,r,t)}return n},Or=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];kr(i,t,n,r)}},kr=(e,t,n,r)=>{if(typeof e==`string`){Ar(e,t,n);return}if(typeof e==`function`){jr(e,t,n,r);return}Mr(e,t,n,r)},Ar=(e,t,n)=>{let r=e===``?t:Nr(t,e);r.classGroupId=n},jr=(e,t,n,r)=>{if(Pr(e)){Or(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(vr(n,e))},Mr=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Or(o,Nr(t,a),n,r)}},Nr=(e,t)=>{let n=e,r=t.split(br),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=yr(),n.nextPart.set(t,i)),n=i}return n},Pr=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Fr=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Ir=`!`,Lr=`:`,Rr=[],zr=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Br=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Lr){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Ir)?(c=s.slice(0,-1),l=!0):s.startsWith(Ir)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return zr(t,l,c,u)};if(t){let e=t+Lr,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):zr(Rr,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Vr=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Hr=e=>({cache:Fr(e.cacheSize),parseClassName:Br(e),sortModifiers:Vr(e),...Cr(e)}),Ur=/\s+/,Wr=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(Ur),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Ir:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Gr=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Kr(n))&&(i&&(i+=` `),i+=r);return i},Kr=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Kr(e[r]))&&(n&&(n+=` `),n+=t);return n},qr=(e,...t)=>{let n,r,i,a,o=o=>(n=Hr(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Wr(e,n);return i(e,a),a};return a=o,(...e)=>a(Gr(...e))},Jr=[],H=e=>{let t=t=>t[e]||Jr;return t.isThemeGetter=!0,t},Yr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$r=/\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$/,ei=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ti=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ni=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>Zr.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),ri=e=>e.endsWith(`%`)&&W(e.slice(0,-1)),K=e=>Qr.test(e),ii=()=>!0,ai=e=>$r.test(e)&&!ei.test(e),oi=()=>!1,si=e=>ti.test(e),ci=e=>ni.test(e),li=e=>!q(e)&&!J(e),ui=e=>Ti(e,ki,oi),q=e=>Yr.test(e),di=e=>Ti(e,Ai,ai),fi=e=>Ti(e,ji,W),pi=e=>Ti(e,Ni,ii),mi=e=>Ti(e,Mi,oi),hi=e=>Ti(e,Di,oi),gi=e=>Ti(e,Oi,ci),_i=e=>Ti(e,Pi,si),J=e=>Xr.test(e),vi=e=>Ei(e,Ai),yi=e=>Ei(e,Mi),bi=e=>Ei(e,Di),xi=e=>Ei(e,ki),Si=e=>Ei(e,Oi),Ci=e=>Ei(e,Pi,!0),wi=e=>Ei(e,Ni,!0),Ti=(e,t,n)=>{let r=Yr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ei=(e,t,n=!1)=>{let r=Xr.exec(e);return r?r[1]?t(r[1]):n:!1},Di=e=>e===`position`||e===`percentage`,Oi=e=>e===`image`||e===`url`,ki=e=>e===`length`||e===`size`||e===`bg-size`,Ai=e=>e===`length`,ji=e=>e===`number`,Mi=e=>e===`family-name`,Ni=e=>e===`number`||e===`weight`,Pi=e=>e===`shadow`,Fi=qr(()=>{let e=H(`color`),t=H(`font`),n=H(`text`),r=H(`font-weight`),i=H(`tracking`),a=H(`leading`),o=H(`breakpoint`),s=H(`container`),c=H(`spacing`),l=H(`radius`),u=H(`shadow`),d=H(`inset-shadow`),f=H(`text-shadow`),p=H(`drop-shadow`),m=H(`blur`),h=H(`perspective`),g=H(`aspect`),_=H(`ease`),v=H(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,q,c],T=()=>[U,`full`,`auto`,...w()],E=()=>[G,`none`,`subgrid`,J,q],ee=()=>[`auto`,{span:[`full`,G,J,q]},G,J,q],D=()=>[G,`auto`,J,q],te=()=>[`auto`,`min`,`max`,`fr`,J,q],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[U,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[U,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[U,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,J,q],ae=()=>[...b(),bi,hi,{position:[J,q]}],M=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,xi,ui,{size:[J,q]}],se=()=>[ri,vi,di],N=()=>[``,`none`,`full`,l,J,q],P=()=>[``,W,vi,di],F=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[W,ri,bi,hi],le=()=>[``,`none`,m,J,q],ue=()=>[`none`,W,J,q],de=()=>[`none`,W,J,q],fe=()=>[W,J,q],pe=()=>[U,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[K],breakpoint:[K],color:[ii],container:[K],"drop-shadow":[K],ease:[`in`,`out`,`in-out`],font:[li],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[K],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[K],shadow:[K],spacing:[`px`,W],text:[K],"text-shadow":[K],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,U,q,J,g]}],container:[`container`],columns:[{columns:[W,q,J,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[G,`auto`,J,q]}],basis:[{basis:[U,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[W,U,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,W,J,q]}],shrink:[{shrink:[``,W,J,q]}],order:[{order:[G,`first`,`last`,`none`,J,q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,vi,di]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,wi,pi]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,ri,q]}],"font-family":[{font:[yi,mi,t]}],"font-features":[{"font-features":[q]}],"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:[i,J,q]}],"line-clamp":[{"line-clamp":[W,`none`,J,fi]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,J,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...F(),`wavy`]}],"text-decoration-thickness":[{decoration:[W,`from-font`,`auto`,J,di]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[W,`auto`,J,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,q]}],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`,J,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},G,J,q],radial:[``,J,q],conic:[G,J,q]},Si,gi]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...F(),`hidden`,`none`]}],"divide-style":[{divide:[...F(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...F(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[W,J,q]}],"outline-w":[{outline:[``,W,vi,di]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,Ci,_i]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ci,_i]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[W,di]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,Ci,_i]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[W,J,q]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,q]}],filter:[{filter:[``,`none`,J,q]}],blur:[{blur:le()}],brightness:[{brightness:[W,J,q]}],contrast:[{contrast:[W,J,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ci,_i]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,W,J,q]}],"hue-rotate":[{"hue-rotate":[W,J,q]}],invert:[{invert:[``,W,J,q]}],saturate:[{saturate:[W,J,q]}],sepia:[{sepia:[``,W,J,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,q]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[W,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[W,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,W,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,J,q]}],"backdrop-invert":[{"backdrop-invert":[``,W,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[W,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[W,J,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,W,J,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,J,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[W,`initial`,J,q]}],ease:[{ease:[`linear`,`initial`,_,J,q]}],delay:[{delay:[W,J,q]}],animate:[{animate:[`none`,v,J,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[J,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"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`,J,q]}],"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":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,J,q]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[W,vi,di,fi]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]}}),Ii=(...e)=>Fi(ne(e)),Li=A(`inline-flex shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-xl border text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`border-primary/60 bg-primary text-primary-foreground shadow-[0_8px_24px_rgba(108,63,217,0.28)] hover:bg-primary/92 hover:border-primary/70`,outline:`border-border bg-card/80 text-foreground hover:bg-accent hover:text-accent-foreground`,secondary:`border-border bg-secondary text-secondary-foreground hover:bg-secondary/85`,ghost:`border-transparent bg-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground`,destructive:`border-red-500/30 bg-destructive/15 text-red-200 hover:bg-destructive/25`,success:`border-emerald-300/80 bg-emerald-400 text-[#07130d] shadow-[0_10px_30px_rgba(16,185,129,0.28)] hover:border-emerald-200 hover:bg-emerald-300`,warning:`border-amber-500/30 bg-amber-500/12 text-amber-200 hover:bg-amber-500/20`,link:`border-transparent px-0 text-sky-300 underline-offset-4 hover:text-sky-200 hover:underline`},size:{default:`h-10 px-4`,xs:`h-7 px-2.5 text-xs`,sm:`h-8 px-3 text-sm`,lg:`h-11 px-5 text-sm`,icon:`size-10`,"icon-xs":`size-7 [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-11`}},defaultVariants:{variant:`default`,size:`default`}}),Ri=({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i})=>(0,P.jsx)(r?ce:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:Ii(Li({variant:t,size:n,className:e})),...i}),Y=Object.create(null);Y.open=`0`,Y.close=`1`,Y.ping=`2`,Y.pong=`3`,Y.message=`4`,Y.upgrade=`5`,Y.noop=`6`;var zi=Object.create(null);Object.keys(Y).forEach(e=>{zi[Y[e]]=e});var Bi={type:`error`,data:`parser error`},Vi=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,Hi=typeof ArrayBuffer==`function`,Ui=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Wi=({type:e,data:t},n,r)=>Vi&&t instanceof Blob?n?r(t):Gi(t,r):Hi&&(t instanceof ArrayBuffer||Ui(t))?n?r(t):Gi(new Blob([t]),r):r(Y[e]+(t||``)),Gi=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function Ki(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var qi;function Ji(e,t){if(Vi&&e.data instanceof Blob)return e.data.arrayBuffer().then(Ki).then(t);if(Hi&&(e.data instanceof ArrayBuffer||Ui(e.data)))return t(Ki(e.data));Wi(e,!1,e=>{qi||=new TextEncoder,t(qi.encode(e))})}var Yi=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Xi=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)Xi[Yi.charCodeAt(e)]=e;var Zi=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=Xi[e.charCodeAt(r)],o=Xi[e.charCodeAt(r+1)],s=Xi[e.charCodeAt(r+2)],c=Xi[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},Qi=typeof ArrayBuffer==`function`,$i=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:ta(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:ea(e.substring(1),t)}:zi[n]?e.length>1?{type:zi[n],data:e.substring(1)}:{type:zi[n]}:Bi},ea=(e,t)=>Qi?ta(Zi(e),t):{base64:!0,data:e},ta=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},na=``,ra=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{Wi(e,!1,e=>{r[a]=e,++i===n&&t(r.join(na))})})},ia=(e,t)=>{let n=e.split(na),r=[];for(let e=0;e<n.length;e++){let i=$i(n[e],t);if(r.push(i),i.type===`error`)break}return r};function aa(){return new TransformStream({transform(e,t){Ji(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var oa;function sa(e){return e.reduce((e,t)=>e+t.length,0)}function ca(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function la(e,t){oa||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(sa(n)<1)break;let e=ca(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(sa(n)<2)break;let e=ca(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(sa(n)<8)break;let e=ca(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(Bi);break}i=a*2**32+t.getUint32(4),r=3}else{if(sa(n)<i)break;let e=ca(n,i);s.enqueue($i(a?e:oa.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(Bi);break}}}})}function X(e){if(e)return ua(e)}function ua(e){for(var t in X.prototype)e[t]=X.prototype[t];return e}X.prototype.on=X.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},X.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},X.prototype.off=X.prototype.removeListener=X.prototype.removeAllListeners=X.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},X.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},X.prototype.emitReserved=X.prototype.emit,X.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},X.prototype.hasListeners=function(e){return!!this.listeners(e).length};var da=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Z=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),fa=`arraybuffer`;function pa(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var ma=Z.setTimeout,ha=Z.clearTimeout;function ga(e,t){t.useNativeTimers?(e.setTimeoutFn=ma.bind(Z),e.clearTimeoutFn=ha.bind(Z)):(e.setTimeoutFn=Z.setTimeout.bind(Z),e.clearTimeoutFn=Z.clearTimeout.bind(Z))}var _a=1.33;function va(e){return typeof e==`string`?ya(e):Math.ceil((e.byteLength||e.size)*_a)}function ya(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function ba(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function xa(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function Sa(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var Ca=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},wa=class extends X{constructor(e){super(),this.writable=!1,ga(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new Ca(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=$i(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_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(e){let t=xa(e);return t.length?`?`+t:``}},Ta=class extends wa{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){ia(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,ra(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=ba()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},Ea=!1;try{Ea=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var Da=Ea;function Oa(){}var ka=class extends Ta{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},Aa=class e extends X{constructor(e,t,n){super(),this.createRequest=e,ga(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=pa(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(this._xhr===void 0||this._xhr===null)){if(this._xhr.onreadystatechange=Oa,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(Aa.requestsCount=0,Aa.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,ja);else if(typeof addEventListener==`function`){let e=`onpagehide`in Z?`pagehide`:`unload`;addEventListener(e,ja,!1)}}function ja(){for(let e in Aa.requests)Aa.requests.hasOwnProperty(e)&&Aa.requests[e].abort()}var Ma=(function(){let e=Pa({xdomain:!1});return e&&e.responseType!==null})(),Na=class extends ka{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Ma&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Aa(Pa,this.uri(),e)}};function Pa(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||Da))return new XMLHttpRequest}catch{}if(!t)try{return new Z[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var Fa=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,Ia=class extends wa{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=Fa?{}:pa(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;Wi(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&da(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=ba()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},La=Z.WebSocket||Z.MozWebSocket,Ra={websocket:class extends Ia{createSocket(e,t,n){return Fa?new La(e,t,n):t?new La(e,t):new La(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends wa{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=la(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=aa();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&da(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:Na},za=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ba=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function Va(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=za.exec(e||``),a={},o=14;for(;o--;)a[Ba[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=Ha(a,a.path),a.queryKey=Ua(a,a.query),a}function Ha(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function Ua(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var Wa=typeof addEventListener==`function`&&typeof removeEventListener==`function`,Ga=[];Wa&&addEventListener(`offline`,()=>{Ga.forEach(e=>e())},!1);var Ka=class e extends X{constructor(e,t){if(super(),this.binaryType=fa,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=Va(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Va(t.host).host);ga(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),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},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=Sa(this.opts.query)),Wa&&(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`})},Ga.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data);break}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),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){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=va(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,da(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){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(),Wa&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=Ga.indexOf(this._offlineEventListener);e!==-1&&Ga.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};Ka.protocol=4;var qa=class extends Ka{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Ka.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;Ka.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},Ja=class extends qa{constructor(e,t={}){let n=typeof e==`object`?e:t;(!n.transports||n.transports&&typeof n.transports[0]==`string`)&&(n.transports=(n.transports||[`polling`,`websocket`,`webtransport`]).map(e=>Ra[e]).filter(e=>!!e)),super(e,n)}};Ja.protocol;function Ya(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=Va(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var Xa=typeof ArrayBuffer==`function`,Za=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Qa=Object.prototype.toString,$a=typeof Blob==`function`||typeof Blob<`u`&&Qa.call(Blob)===`[object BlobConstructor]`,eo=typeof File==`function`||typeof File<`u`&&Qa.call(File)===`[object FileConstructor]`;function to(e){return Xa&&(e instanceof ArrayBuffer||Za(e))||$a&&e instanceof Blob||eo&&e instanceof File}function no(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(no(e[t]))return!0;return!1}if(to(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return no(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&no(e[t]))return!0;return!1}function ro(e){let t=[],n=e.data,r=e;return r.data=io(n,t),r.attachments=t.length,{packet:r,buffers:t}}function io(e,t){if(!e)return e;if(to(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=io(e[r],t);return n}else if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=io(e[r],t));return n}return e}function ao(e,t){return e.data=oo(e.data,t),delete e.attachments,e}function oo(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=oo(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=oo(e[n],t));return e}var so=t({Decoder:()=>uo,Encoder:()=>lo,PacketType:()=>Q,isPacketValid:()=>vo,protocol:()=>5}),co=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],Q;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})(Q||={});var lo=class{constructor(e){this.replacer=e}encode(e){return(e.type===Q.EVENT||e.type===Q.ACK)&&no(e)?this.encodeAsBinary({type:e.type===Q.EVENT?Q.BINARY_EVENT:Q.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===Q.BINARY_EVENT||e.type===Q.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=ro(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},uo=class e extends X{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===Q.BINARY_EVENT;n||t.type===Q.BINARY_ACK?(t.type=n?Q.EVENT:Q.ACK,this.reconstructor=new fo(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(to(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(Q[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===Q.BINARY_EVENT||r.type===Q.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!mo(a)||a<0)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&!(t.charAt(n)===`,`||n===t.length););r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case Q.CONNECT:return go(t);case Q.DISCONNECT:return t===void 0;case Q.CONNECT_ERROR:return typeof t==`string`||go(t);case Q.EVENT:case Q.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&co.indexOf(t[0])===-1);case Q.ACK:case Q.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},fo=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=ao(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function po(e){return typeof e==`string`}var mo=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function ho(e){return e===void 0||mo(e)}function go(e){return Object.prototype.toString.call(e)===`[object Object]`}function _o(e,t){switch(e){case Q.CONNECT:return t===void 0||go(t);case Q.DISCONNECT:return t===void 0;case Q.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&co.indexOf(t[0])===-1);case Q.ACK:return Array.isArray(t);case Q.CONNECT_ERROR:return typeof t==`string`||go(t);default:return!1}}function vo(e){return po(e.nsp)&&ho(e.id)&&_o(e.type,e.data)}function $(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var yo=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),bo=class extends X{constructor(e,t,n){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=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[$(e,`open`,this.onopen.bind(this)),$(e,`packet`,this.onpacket.bind(this)),$(e,`error`,this.onerror.bind(this)),$(e,`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(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(yo.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:Q.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Q.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Q.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,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 Q.EVENT:case Q.BINARY_EVENT:this.onevent(e);break;case Q.ACK:case Q.BINARY_ACK:this.onack(e);break;case Q.DISCONNECT:this.ondisconnect();break;case Q.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:Q.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Q.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function xo(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}xo.prototype.duration=function(){var e=this.ms*this.factor**+ this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},xo.prototype.reset=function(){this.attempts=0},xo.prototype.setMin=function(e){this.ms=e},xo.prototype.setMax=function(e){this.max=e},xo.prototype.setJitter=function(e){this.jitter=e};var So=class extends X{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,ga(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new xo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||so;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new Ja(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=$(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=$(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push($(e,`ping`,this.onping.bind(this)),$(e,`data`,this.ondata.bind(this)),$(e,`error`,this.onerror.bind(this)),$(e,`close`,this.onclose.bind(this)),$(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){da(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new bo(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},Co={};function wo(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=Ya(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=Co[i]&&a in Co[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new So(r,t):(Co[i]||(Co[i]=new So(r,t)),c=Co[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(wo,{Manager:So,Socket:bo,io:wo,connect:wo});var To=Symbol.for(`archon.desktopSocketState`),Eo=globalThis,Do=Eo[To]??{};Eo[To]=Do;var Oo=(e=g)=>wo(e),ko=()=>(Do.socket??=Oo(),Do.socket),Ao=new Proxy({},{get:(e,t)=>{let n=ko(),r=Reflect.get(n,t,n);return typeof r==`function`?r.bind(n):r},set:(e,t,n)=>Reflect.set(ko(),t,n)}),jo=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Mo=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),No=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Po=e=>{let t=No(e);return t.charAt(0).toUpperCase()+t.slice(1)},Fo={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`},Io=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Lo=(0,h.createContext)({}),Ro=()=>(0,h.useContext)(Lo),zo=(0,h.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=Ro()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,h.createElement)(`svg`,{ref:c,...Fo,width:t??l??Fo.width,height:t??l??Fo.height,stroke:e??f,strokeWidth:m,className:jo(`lucide`,p,i),...!a&&!Io(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,h.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Bo=(e,t)=>{let n=(0,h.forwardRef)(({className:n,...r},i)=>(0,h.createElement)(zo,{ref:i,iconNode:t,className:jo(`lucide-${Mo(Po(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Po(e),n},Vo=Bo(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Ho=e=>(0,P.jsx)(lr,{"data-slot":`dialog`,...e}),Uo=e=>(0,P.jsx)(ur,{"data-slot":`dialog-trigger`,...e}),Wo=e=>(0,P.jsx)(dr,{"data-slot":`dialog-portal`,...e}),Go=e=>(0,P.jsx)(gr,{"data-slot":`dialog-close`,...e}),Ko=({className:e,...t})=>(0,P.jsx)(fr,{"data-slot":`dialog-overlay`,"data-archon-modal":`true`,className:Ii(`fixed inset-0 isolate z-50 bg-black/70 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t}),qo=({className:e,children:t,showCloseButton:n=!0,overlayClassName:r,...i})=>(0,P.jsxs)(Wo,{children:[(0,P.jsx)(Ko,{className:r}),(0,P.jsxs)(pr,{"data-slot":`dialog-content`,"data-archon-modal":`true`,className:Ii(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-2xl border border-border bg-card p-6 text-sm text-card-foreground shadow-2xl shadow-black/30 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...i,children:[t,n&&(0,P.jsx)(gr,{"data-slot":`dialog-close`,asChild:!0,children:(0,P.jsxs)(Ri,{variant:`ghost`,className:`absolute top-4 right-4`,size:`icon-sm`,children:[(0,P.jsx)(Vo,{}),(0,P.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]}),Jo=({className:e,...t})=>(0,P.jsx)(`div`,{"data-slot":`dialog-header`,className:Ii(`flex flex-col gap-1.5`,e),...t}),Yo=({className:e,showCloseButton:t=!1,children:n,...r})=>(0,P.jsxs)(`div`,{"data-slot":`dialog-footer`,className:Ii(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,P.jsx)(gr,{asChild:!0,children:(0,P.jsx)(Ri,{variant:`outline`,children:`Close`})})]}),Xo=({className:e,...t})=>(0,P.jsx)(mr,{"data-slot":`dialog-title`,className:Ii(`font-heading text-base leading-none font-medium`,e),...t}),Zo=({className:e,...t})=>(0,P.jsx)(hr,{"data-slot":`dialog-description`,className:Ii(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t}),Qo=({className:e})=>(0,P.jsx)(Vo,{"aria-hidden":`true`,className:e});export{m as $,R as A,ie as B,Xe as C,we as D,Ae as E,F,v as G,_ as H,ue as I,x as J,C as K,se as L,L as M,me as N,be as O,ce as P,b as Q,ae as R,ct as S,je as T,y as U,A as V,D as W,T as X,w as Y,ee as Z,dr as _,Zo as a,bn as b,Xo as c,Ao as d,p as et,wo as f,fr as g,pr as h,qo as i,ge as j,ve as k,Uo as l,Ii as m,Ho as n,i as nt,Yo as o,Ri as p,S as q,Go as r,Jo as s,Qo as t,u as tt,Bo as u,lr as v,ze as w,ut as x,kn as y,M as z};