@omnitron-dev/omnitron 0.3.3 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/bin/pnpmfile-sdk.mjs +6 -1
  2. package/bin/sdk.mjs +6 -2
  3. package/dist/BUILD.json +2 -2
  4. package/dist/cli/omnitron.js +54 -14
  5. package/dist/cli/omnitron.js.map +1 -1
  6. package/dist/commands/infra.d.ts +8 -2
  7. package/dist/commands/infra.d.ts.map +1 -1
  8. package/dist/commands/infra.js +52 -59
  9. package/dist/commands/infra.js.map +1 -1
  10. package/dist/commands/node.d.ts.map +1 -1
  11. package/dist/commands/node.js +8 -1
  12. package/dist/commands/node.js.map +1 -1
  13. package/dist/commands/release-store.d.ts.map +1 -1
  14. package/dist/commands/release-store.js +6 -9
  15. package/dist/commands/release-store.js.map +1 -1
  16. package/dist/commands/release.d.ts +4 -1
  17. package/dist/commands/release.d.ts.map +1 -1
  18. package/dist/commands/release.js +125 -5
  19. package/dist/commands/release.js.map +1 -1
  20. package/dist/commands/stack.d.ts +1 -1
  21. package/dist/commands/stack.d.ts.map +1 -1
  22. package/dist/commands/stack.js +19 -9
  23. package/dist/commands/stack.js.map +1 -1
  24. package/dist/config/saved.d.ts +3 -0
  25. package/dist/config/saved.d.ts.map +1 -1
  26. package/dist/config/saved.js +1 -0
  27. package/dist/config/saved.js.map +1 -1
  28. package/dist/config/types.d.ts +4 -0
  29. package/dist/config/types.d.ts.map +1 -1
  30. package/dist/daemon/daemon.d.ts.map +1 -1
  31. package/dist/daemon/daemon.js +30 -6
  32. package/dist/daemon/daemon.js.map +1 -1
  33. package/dist/daemon/daemon.rpc-service.d.ts +0 -26
  34. package/dist/daemon/daemon.rpc-service.d.ts.map +1 -1
  35. package/dist/daemon/daemon.rpc-service.js +23 -114
  36. package/dist/daemon/daemon.rpc-service.js.map +1 -1
  37. package/dist/daemon/execution-client.d.ts +1 -1
  38. package/dist/daemon/execution-client.d.ts.map +1 -1
  39. package/dist/daemon/execution-client.js +17 -13
  40. package/dist/daemon/execution-client.js.map +1 -1
  41. package/dist/daemon/startup-config.d.ts +1 -0
  42. package/dist/daemon/startup-config.d.ts.map +1 -1
  43. package/dist/infrastructure/container-runtime.d.ts +8 -0
  44. package/dist/infrastructure/container-runtime.d.ts.map +1 -1
  45. package/dist/infrastructure/container-runtime.js +5 -0
  46. package/dist/infrastructure/container-runtime.js.map +1 -1
  47. package/dist/infrastructure/infrastructure.service.d.ts +5 -0
  48. package/dist/infrastructure/infrastructure.service.d.ts.map +1 -1
  49. package/dist/infrastructure/infrastructure.service.js +18 -8
  50. package/dist/infrastructure/infrastructure.service.js.map +1 -1
  51. package/dist/infrastructure/presets/postgres.js +1 -1
  52. package/dist/infrastructure/presets/postgres.js.map +1 -1
  53. package/dist/infrastructure/presets/registry.d.ts.map +1 -1
  54. package/dist/infrastructure/presets/registry.js +11 -19
  55. package/dist/infrastructure/presets/registry.js.map +1 -1
  56. package/dist/infrastructure/stack-infra-manager.d.ts +4 -0
  57. package/dist/infrastructure/stack-infra-manager.d.ts.map +1 -1
  58. package/dist/infrastructure/stack-infra-manager.js +38 -4
  59. package/dist/infrastructure/stack-infra-manager.js.map +1 -1
  60. package/dist/mcp/tool-groups/infra.tools.d.ts.map +1 -1
  61. package/dist/mcp/tool-groups/infra.tools.js +4 -1
  62. package/dist/mcp/tool-groups/infra.tools.js.map +1 -1
  63. package/dist/orchestrator/app-name.d.ts +33 -0
  64. package/dist/orchestrator/app-name.d.ts.map +1 -0
  65. package/dist/orchestrator/app-name.js +68 -0
  66. package/dist/orchestrator/app-name.js.map +1 -0
  67. package/dist/orchestrator/orchestrator.service.d.ts +1 -26
  68. package/dist/orchestrator/orchestrator.service.d.ts.map +1 -1
  69. package/dist/orchestrator/orchestrator.service.js +10 -89
  70. package/dist/orchestrator/orchestrator.service.js.map +1 -1
  71. package/dist/project/stack-diagnosis.d.ts.map +1 -1
  72. package/dist/project/stack-diagnosis.js +2 -3
  73. package/dist/project/stack-diagnosis.js.map +1 -1
  74. package/dist/release/artifact-store.d.ts +42 -7
  75. package/dist/release/artifact-store.d.ts.map +1 -1
  76. package/dist/release/artifact-store.js +176 -62
  77. package/dist/release/artifact-store.js.map +1 -1
  78. package/dist/release/configured-store.d.ts +6 -0
  79. package/dist/release/configured-store.d.ts.map +1 -0
  80. package/dist/release/configured-store.js +54 -0
  81. package/dist/release/configured-store.js.map +1 -0
  82. package/dist/release/load.d.ts +3 -0
  83. package/dist/release/load.d.ts.map +1 -1
  84. package/dist/release/load.js +8 -2
  85. package/dist/release/load.js.map +1 -1
  86. package/dist/services/infrastructure.rpc-service.d.ts +6 -2
  87. package/dist/services/infrastructure.rpc-service.d.ts.map +1 -1
  88. package/dist/services/infrastructure.rpc-service.js +43 -12
  89. package/dist/services/infrastructure.rpc-service.js.map +1 -1
  90. package/dist/services/node-deploy-lease.d.ts +4 -1
  91. package/dist/services/node-deploy-lease.d.ts.map +1 -1
  92. package/dist/services/node-deploy-lease.js +29 -4
  93. package/dist/services/node-deploy-lease.js.map +1 -1
  94. package/dist/services/node-manager.service.d.ts +5 -25
  95. package/dist/services/node-manager.service.d.ts.map +1 -1
  96. package/dist/services/node-manager.service.js +150 -139
  97. package/dist/services/node-manager.service.js.map +1 -1
  98. package/dist/services/project.service.d.ts +6 -0
  99. package/dist/services/project.service.d.ts.map +1 -1
  100. package/dist/services/project.service.js +89 -9
  101. package/dist/services/project.service.js.map +1 -1
  102. package/dist/services/release.rpc-service.d.ts +2 -1
  103. package/dist/services/release.rpc-service.d.ts.map +1 -1
  104. package/dist/services/release.rpc-service.js +19 -3
  105. package/dist/services/release.rpc-service.js.map +1 -1
  106. package/dist/services/release.service.d.ts +24 -11
  107. package/dist/services/release.service.d.ts.map +1 -1
  108. package/dist/services/release.service.js +162 -39
  109. package/dist/services/release.service.js.map +1 -1
  110. package/dist/services/remote-deployer.service.d.ts +1 -1
  111. package/dist/services/remote-deployer.service.d.ts.map +1 -1
  112. package/dist/services/remote-deployer.service.js.map +1 -1
  113. package/dist/services/secrets.service.d.ts +6 -0
  114. package/dist/services/secrets.service.d.ts.map +1 -1
  115. package/dist/services/secrets.service.js +95 -51
  116. package/dist/services/secrets.service.js.map +1 -1
  117. package/dist/shared/dto/nodes.d.ts +2 -0
  118. package/dist/shared/dto/nodes.d.ts.map +1 -1
  119. package/dist/shared/dto/project.d.ts +1 -1
  120. package/dist/shared/dto/project.d.ts.map +1 -1
  121. package/dist/shared/dto/releases.d.ts +8 -1
  122. package/dist/shared/dto/releases.d.ts.map +1 -1
  123. package/dist/shared/dto/services.d.ts +18 -1
  124. package/dist/shared/dto/services.d.ts.map +1 -1
  125. package/dist/shared/dto/services.js.map +1 -1
  126. package/dist/shared/release-reading.d.ts +6 -0
  127. package/dist/shared/release-reading.d.ts.map +1 -1
  128. package/dist/shared/release-reading.js +42 -0
  129. package/dist/shared/release-reading.js.map +1 -1
  130. package/package.json +16 -16
  131. package/webapp/dist/BUILD.json +2 -2
  132. package/webapp/dist/assets/{access-48hkC2-P.js → access-BvKK9dEv.js} +1 -1
  133. package/webapp/dist/assets/{access-jWkHxGc7.js → access-DUjabwNX.js} +1 -1
  134. package/webapp/dist/assets/{alerts-CuPQ9YQJ.js → alerts-CzN6OqX5.js} +1 -1
  135. package/webapp/dist/assets/{apps-Drio028B.js → apps-G_Lm6m4F.js} +1 -1
  136. package/webapp/dist/assets/{audit-npSFJECe.js → audit-CLMpdBzG.js} +1 -1
  137. package/webapp/dist/assets/{containers-Bl8gAyZX.js → containers-BsFwprq4.js} +1 -1
  138. package/webapp/dist/assets/{dashboard-UHlet3H9.js → dashboard-BN7rKE5n.js} +1 -1
  139. package/webapp/dist/assets/{dashboard-builder-67PZFqhE.js → dashboard-builder-BXFxWjXP.js} +1 -1
  140. package/webapp/dist/assets/deploy-progress-CUUwlYtQ.js +1 -0
  141. package/webapp/dist/assets/deploy-release-dialog-58lGZDNk.js +1 -0
  142. package/webapp/dist/assets/deployments-DEzjHerg.js +1 -0
  143. package/webapp/dist/assets/detail-CBn9pjJU.js +2 -0
  144. package/webapp/dist/assets/{detail-CYS81K6Y.js → detail-Dj3gxaH0.js} +1 -1
  145. package/webapp/dist/assets/{detail-B4TiBfxU.js → detail-pXPk4O0E.js} +1 -1
  146. package/webapp/dist/assets/index-Bo9An3pJ.js +1 -0
  147. package/webapp/dist/assets/{logs-BqHOufk8.js → logs-DrsBbLfb.js} +1 -1
  148. package/webapp/dist/assets/{metrics-QIQaF7iS.js → metrics-D5cDZTEo.js} +1 -1
  149. package/webapp/dist/assets/{mui-y44PQOfG.js → mui-59N0OVRa.js} +1 -1
  150. package/webapp/dist/assets/{mui-C_hromOc.js → mui-D5m7fDCh.js} +1 -1
  151. package/webapp/dist/assets/{mui-BIz4LSVs.js → mui-Db5J-QUd.js} +1 -1
  152. package/webapp/dist/assets/{mui-B1jrje6Z.js → mui-dLCwWoMw.js} +1 -1
  153. package/webapp/dist/assets/{nodes-BJPk02vv.js → nodes-CwwZZuu4.js} +1 -1
  154. package/webapp/dist/assets/{pipelines-T6Ch9LTw.js → pipelines-BrfTjf6Y.js} +1 -1
  155. package/webapp/dist/assets/project.store-DuCgv6Eq.js +1 -0
  156. package/webapp/dist/assets/{projects-YoBzcQ24.js → projects-TBAdpCeX.js} +1 -1
  157. package/webapp/dist/assets/{realtime.store-CBDO4Abj.js → realtime.store-hfxZD2DU.js} +1 -1
  158. package/webapp/dist/assets/release-bits-BJ6i23y0.js +1 -0
  159. package/webapp/dist/assets/release-build-panel-BNXkwNE1.js +1 -0
  160. package/webapp/dist/assets/release-deployment-state-gN8ZT3aq.js +1 -0
  161. package/webapp/dist/assets/releases-CXXKUh-v.js +2 -0
  162. package/webapp/dist/assets/{stack-start-notice-BVnMOwRQ.js → stack-start-notice-D-AH_bzn.js} +1 -1
  163. package/webapp/dist/assets/{stacks-IZ1mfizi.js → stacks-WY_ynkON.js} +1 -1
  164. package/webapp/dist/assets/{system-info-BFKNM-hf.js → system-info-DXMwo6gl.js} +1 -1
  165. package/webapp/dist/assets/{topology-CPey5dP6.js → topology-C_Qp1RqW.js} +1 -1
  166. package/webapp/dist/assets/{use-stack-context-UkBsF-l7.js → use-stack-context-8yaHaN8L.js} +1 -1
  167. package/webapp/dist/assets/{webapp-D-UhjFhS.js → webapp-BO_WoB_z.js} +3 -3
  168. package/webapp/dist/console-version.json +1 -1
  169. package/webapp/dist/index.html +12 -12
  170. package/webapp/dist/assets/deploy-release-dialog-BOXcD5Wo.js +0 -1
  171. package/webapp/dist/assets/deployments-qV20Ak0P.js +0 -1
  172. package/webapp/dist/assets/detail-B85-Wees.js +0 -2
  173. package/webapp/dist/assets/index-uq8Dkk4c.js +0 -1
  174. package/webapp/dist/assets/project.store--G5pIF-J.js +0 -1
  175. package/webapp/dist/assets/release-bits-B2a_wbft.js +0 -1
  176. package/webapp/dist/assets/release-build-panel-BQmIdKW9.js +0 -1
  177. package/webapp/dist/assets/release-deployment-state-DRrEI2pP.js +0 -1
  178. package/webapp/dist/assets/release-wire-f2VuBoBF.js +0 -1
  179. package/webapp/dist/assets/releases-Bp3CDgmo.js +0 -2
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/terminal-QWBau-Us.js","assets/rolldown-runtime-CNOWq4Kh.js","assets/react-BN8qLIAi.js","assets/client-DFnuv2z3.js","assets/services-BddvcFi8.js","assets/mui-BTN91yBK.js","assets/mui-agG5dued.js","assets/mui-CdB_p2lt.js","assets/mui-BXSXx9c9.js","assets/mui-Cd711nOk.js","assets/mui-AnEgAVjz.js","assets/mui-BwsIrivo.js","assets/popper-m_9b0JRf.js","assets/controls-C5W8gHU4.js","assets/mui-DyT2n1lx.js","assets/use-copy-to-clipboard-BWYpToS3.js","assets/store-bqUBn2A4.js","assets/react-CEuifcaQ.js","assets/operation-status-Bm1x1wTz.js","assets/page-breadcrumbs-fR7Jmpp4.js","assets/terminal-input-b7f2VoE_.js","assets/shell-command-C3pXf1vi.js","assets/tabs-k5NPGLnJ.js","assets/terminal-BrP-ENHg.css","assets/files-DigwXndm.js","assets/model-ZEXEHm0l.js","assets/use-polled-resource-B22hhr5L.js","assets/console-keyboard-D3YCA0yU.js","assets/icons-OboZgWSt.js","assets/preload-helper-DzCYNvzR.js","assets/table-viewport-Bp4pq-c_.js","assets/confirm-dialog-BbGsAz7_.js","assets/sign-in-9q-Nfy83.js","assets/alert-uBG6r9NW.js","assets/omnitron-logo-koMCbsCv.js","assets/dashboard-UHlet3H9.js","assets/project.store--G5pIF-J.js","assets/storage-CKXnhqkt.js","assets/realtime.store-CBDO4Abj.js","assets/app-address-BCXfN59F.js","assets/constants-CyhngVXh.js","assets/formatters-RnRy4bXm.js","assets/use-stack-context-UkBsF-l7.js","assets/metric-series-WxePniyw.js","assets/comparison-bars-BtC0dHjF.js","assets/card-DkH32gMY.js","assets/apps-Drio028B.js","assets/dayjs.min-DHwAvH5f.js","assets/mui-B1jrje6Z.js","assets/mui-6ssfcZcz.js","assets/mui-C_hromOc.js","assets/mui-BIz4LSVs.js","assets/mui-y44PQOfG.js","assets/access-48hkC2-P.js","assets/table-BOWT6Y9d.js","assets/search-input-C0MHI8vO.js","assets/stack-health-status-BIv2C10x.js","assets/detail-B4TiBfxU.js","assets/chart-BpGXlCJc.js","assets/skeleton-BmWDJWF9.js","assets/log-level-filter-Bcn31D1F.js","assets/event-fields-CiyqrRO8.js","assets/logs-BqHOufk8.js","assets/log-location-DuBjh6HQ.js","assets/topology-CPey5dP6.js","assets/label-B1SF0RTL.js","assets/shared-styles-C0vN3I7_.js","assets/metric-chart-M-kI-XOt.js","assets/topology-metadata-dialog-BivuU2y6.js","assets/topology-DLioOiRN.css","assets/alerts-CuPQ9YQJ.js","assets/alert-expression-CSblScoa.js","assets/admin-data-table-BKSDI8sU.js","assets/settled-pair-B-wgSZl6.js","assets/containers-Bl8gAyZX.js","assets/deployments-qV20Ak0P.js","assets/release-wire-f2VuBoBF.js","assets/metrics-QIQaF7iS.js","assets/settings-B3egRvbI.js","assets/auth-CcgjP7hR.js","assets/alert-notify-settings-C_CHZrFm.js","assets/pipelines-T6Ch9LTw.js","assets/traces-By0rdfDC.js","assets/dashboard-builder-67PZFqhE.js","assets/error-boundary-CLLI8PWw.js","assets/empty-content-7jOFhG4C.js","assets/daemon-memory-BiEtr9jr.js","assets/stacks-IZ1mfizi.js","assets/sync-reading-CN0jPKAg.js","assets/deploy-release-dialog-BOXcD5Wo.js","assets/release-bits-B2a_wbft.js","assets/stack-start-notice-BVnMOwRQ.js","assets/detail-CYS81K6Y.js","assets/release-deployment-state-DRrEI2pP.js","assets/system-info-BFKNM-hf.js","assets/nodes-BJPk02vv.js","assets/snackbar-DSPmjMyi.js","assets/projects-YoBzcQ24.js","assets/audit-npSFJECe.js","assets/access-jWkHxGc7.js","assets/releases-Bp3CDgmo.js","assets/release-build-panel-BQmIdKW9.js","assets/detail-B85-Wees.js"])))=>i.map(i=>d[i]);
2
- import{i as e,n as t,t as n}from"./rolldown-runtime-CNOWq4Kh.js";import{i as r,n as i,t as a}from"./react-BN8qLIAi.js";import{B as o,F as s,I as c,L as l,N as u,P as d,R as f,V as p,c as m,h,l as g,n as _,y as v,z as y}from"./client-DFnuv2z3.js";import{a as b,f as x,p as S,s as C}from"./mui-agG5dued.js";import{Jt as w,Ut as ee,Vt as T,Wt as te,Xt as ne,Yt as re,qt as E}from"./mui-BTN91yBK.js";import{Lt as ie,Nt as ae,Pt as oe,Rt as se,_n as ce,a as le,bn as ue,dn as de,gn as fe,n as pe,o as me,r as he,t as ge,un as _e,xn as ve}from"./mui-CdB_p2lt.js";import{$ as ye,At as be,Ct as xe,Dt as Se,F as Ce,H as we,I as Te,L as Ee,M as De,Mt as Oe,Ot as ke,R as Ae,St as je,V as D,b as Me,bt as Ne,ct as Pe,dt as Fe,et as Ie,ft as Le,i as Re,j as ze,jt as Be,kt as Ve,n as He,nt as Ue,r as We,st as Ge,t as Ke,tt as qe,wt as Je,xt as Ye,y as Xe,yt as Ze}from"./mui-BXSXx9c9.js";import{B as Qe,E as $e,F as et,I as tt,N as nt,P as rt,T as it,U as at,W as ot,_ as st,m as ct,p as lt,v as ut,z as dt}from"./mui-Cd711nOk.js";import{E as ft,F as pt,I as mt,M as ht,Q as gt,S as _t,St as vt,T as yt,Z as bt,_t as xt,at as St,b as Ct,d as wt,dt as Tt,f as Et,ft as Dt,g as Ot,gt as kt,h as At,ht as jt,it as Mt,j as Nt,l as Pt,m as Ft,n as It,nt as Lt,ot as Rt,p as zt,rt as Bt,t as Vt,tt as Ht,u as Ut,vt as Wt,x as Gt,xt as Kt,y as qt}from"./mui-AnEgAVjz.js";import{C as Jt,F as Yt,I as Xt,L as Zt,N as O,P as Qt,R as $t,_ as en,d as tn,f as nn,i as rn,m as an,p as on,r as sn,v as cn,w as ln}from"./mui-BwsIrivo.js";import{d as un,l as dn,p as fn,u as pn}from"./mui-B1jrje6Z.js";import{n as mn,r as hn,t as gn}from"./context-FIuwpd9_.js";import{A as _n,C as vn,D as yn,E as bn,M as k,N as xn,O as Sn,S as Cn,T as wn,_ as Tn,a as En,b as Dn,c as On,f as kn,g as An,h as jn,j as Mn,k as Nn,l as Pn,m as Fn,n as In,s as Ln,t as Rn,u as zn,v as Bn,w as Vn,x as Hn,y as Un}from"./controls-C5W8gHU4.js";import{a as Wn,i as Gn,r as Kn,t as qn}from"./alert-uBG6r9NW.js";import{n as Jn,t as Yn}from"./react-CEuifcaQ.js";import{n as Xn,t as Zn}from"./snackbar-DSPmjMyi.js";import{n as Qn,t as $n}from"./error-boundary-CLLI8PWw.js";import{a as er,c as tr,i as nr,l as rr,o as ir,r as ar,s as or,t as sr,u as cr}from"./access-48hkC2-P.js";import{a as lr,n as ur,t as dr}from"./store-bqUBn2A4.js";import{n as fr,t as pr}from"./use-polled-resource-B22hhr5L.js";import{i as A,l as mr,n as hr,r as gr,t as _r,u as vr}from"./project.store--G5pIF-J.js";import{n as yr,t as br}from"./realtime.store-CBDO4Abj.js";import{a as xr,d as Sr}from"./app-address-BCXfN59F.js";import{a as Cr,n as wr,o as Tr,r as Er,t as Dr}from"./omnitron-logo-koMCbsCv.js";import{a as Or,i as kr,n as Ar,o as jr,t as Mr}from"./console-keyboard-D3YCA0yU.js";import{A as Nr,C as Pr,E as Fr,F as Ir,G as Lr,H as Rr,K as zr,L as Br,N as Vr,O as Hr,Q as Ur,R as Wr,S as Gr,V as Kr,Z as qr,_ as Jr,d as Yr,f as Xr,j as Zr,m as Qr,n as $r,r as ei,s as ti,t as ni,u as ri,w as ii}from"./icons-OboZgWSt.js";import{n as ai,t as oi}from"./label-B1SF0RTL.js";import{n as si,t as ci}from"./shared-styles-C0vN3I7_.js";import{a as li,i as ui,o as di}from"./alert-notify-settings-C_CHZrFm.js";import{n as fi,t as j}from"./preload-helper-DzCYNvzR.js";function pi(){return(pi=t((()=>{(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})()})))()}var mi=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(n,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),hi=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(n,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),gi=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(n,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),_i=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isBetween=r()})(n,(function(){return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i||=`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}}))})),vi=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(n,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),yi=n(((e,t)=>{var n;function r(e,t){var n=[],r=0;function i(e){return n.push(e),t}function a(){return n[r++]}return{tokenize:function(t){return t.replace(e,i)},detokenize:function(e){return e.replace(RegExp(`(`+t+`)`,`g`),a)}}}function i(){var e="`COMMENT`",t=`[^\\u0020-\\u007e]`,n=`(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)`,i=`(?:[0-9]*\\.[0-9]+|[0-9]+)`,a=`(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)`,o=`direction\\s*:\\s*`,s=`[!#$%&*-~]`,c=`['"]?\\s*`,l=`(^|[^a-zA-Z])`,u=`[^\\}]*?`,d=`\\/\\*\\!?\\s*@noflip\\s*\\*\\/`,f=`\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/`,p=`(?:`+n+`|\\\\[^\\r\\n\\f0-9a-f])`,m=`(?:[_a-z]|`+t+`|`+p+`)`,h=`(?:[_a-z0-9-]|`+t+`|`+p+`)`,g=`-?`+m+h+`*`,_=i+`(?:\\s*`+a+`|`+g+`)?`,v=`((?:-?`+_+`)|(?:inherit|auto))`,y=`(?:calc\\((?:`+(`(?:(?:\\(|\\)|\\t| )|`+(`(?:-?`+i+`(?:\\s*`+a+`)?)`)+`|(?:\\+|\\-|\\*|\\/)){3,}`)+`)\\))`,b=`((?:-?`+_+`)|(?:inherit|auto)|`+y+`)`,x=`((?:margin|padding|border-width)\\s*:\\s*)`,S=`((?:-color|border-style)\\s*:\\s*)`,C=`(#?`+h+`+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))`,w=`(?:`+s+`|`+t+`|`+p+`)*?`,ee=`(?![a-zA-Z])`,T=`(?!(`+h+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+e+`)*?{)`,te=`(?!`+w+c+`\\))`,ne=`(?=`+w+c+`\\))`,re=`(\\s*(?:!important\\s*)?[;}])`,E=/`TMP`/g,ie=/`TMPLTR`/g,ae=/`TMPRTL`/g,oe=new RegExp(f,`gi`),se=RegExp(`(`+d+T+`[^;}]+;?)`,`gi`),ce=RegExp(`(`+d+u+`})`,`gi`),le=RegExp(`(`+o+`)ltr`,`gi`),ue=RegExp(`(`+o+`)rtl`,`gi`),de=RegExp(l+`(left)`+ee+te+T,`gi`),fe=RegExp(l+`(right)`+ee+te+T,`gi`),pe=RegExp(l+`(left)`+ne,`gi`),me=RegExp(l+`(right)`+ne,`gi`),he=/(:dir\( *)ltr( *\))/g,ge=/(:dir\( *)rtl( *\))/g,_e=RegExp(l+`(ltr)`+ne,`gi`),ve=RegExp(l+`(rtl)`+ne,`gi`),ye=RegExp(l+`([ns]?)e-resize`,`gi`),be=RegExp(l+`([ns]?)w-resize`,`gi`),xe=RegExp(x+b+`(\\s+)`+b+`(\\s+)`+b+`(\\s+)`+b+re,`gi`),Se=RegExp(S+C+`(\\s+)`+C+`(\\s+)`+C+`(\\s+)`+C+re,`gi`),Ce=RegExp(`(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)(`+_+`)`,`gi`),we=RegExp(`(background-position-x\\s*:\\s*)(-?`+i+`%)`,`gi`),Te=RegExp(`(border-radius\\s*:\\s*)`+v+`(?:(?:\\s+`+v+`)(?:\\s+`+v+`)?(?:\\s+`+v+`)?)?(?:(?:(?:\\s*\\/\\s*)`+v+`)(?:\\s+`+v+`)?(?:\\s+`+v+`)?(?:\\s+`+v+`)?)?`+re,`gi`),Ee=RegExp(`(box-shadow\\s*:\\s*(?:inset\\s*)?)`+v,`gi`),De=RegExp(`(text-shadow\\s*:\\s*)`+v+`(\\s*)`+C,`gi`),Oe=RegExp(`(text-shadow\\s*:\\s*)`+C+`(\\s*)`+v,`gi`),ke=RegExp(`(text-shadow\\s*:\\s*)`+v,`gi`),Ae=RegExp(`(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)`+v+`(\\s*\\))`,`gi`),je=RegExp(`(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)`+v+`((?:\\s*,\\s*`+v+`){0,2}\\s*\\))`,`gi`);function D(e,t,n){var r,i;return t.split(`(`).length>t.split(`)`).length?e:(n.slice(-1)===`%`&&(r=n.indexOf(`.`),r===-1?n=100-parseFloat(n)+`%`:(i=n.length-r-2,n=100-parseFloat(n),n=n.toFixed(i)+`%`)),t+n)}function Me(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(` `)}function Ne(e,t){var n,r=[].slice.call(arguments),i=r.slice(2,6).filter(function(e){return e}),a=r.slice(6,10).filter(function(e){return e}),o=r[10]||``;return n=a.length?Me(i)+` / `+Me(a):Me(i),t+n+o}function Pe(e){return parseFloat(e)===0?e:e[0]===`-`?e.slice(1):`-`+e}function Fe(e,t,n){return t+Pe(n)}function Ie(e,t,n,r,i){return t+n+Pe(r)+i}function Le(e,t,n,r,i){return t+n+r+Pe(i)}return{transform:function(t,n){var i=new r(se,"`NOFLIP_SINGLE`"),a=new r(ce,"`NOFLIP_CLASS`"),o=new r(oe,e);return t=o.tokenize(a.tokenize(i.tokenize(t.replace("`",`%60`)))),n.transformDirInUrl&&(t=t.replace(he,"$1`TMPLTR`$2").replace(ge,"$1`TMPRTL`$2").replace(_e,"$1`TMP`").replace(ve,`$1ltr`).replace(E,`rtl`).replace(ie,`ltr`).replace(ae,`rtl`)),n.transformEdgeInUrl&&(t=t.replace(pe,"$1`TMP`").replace(me,`$1left`).replace(E,`right`)),t=t.replace(le,"$1`TMP`").replace(ue,`$1ltr`).replace(E,`rtl`).replace(de,"$1`TMP`").replace(fe,`$1left`).replace(E,`right`).replace(ye,"$1$2`TMP`").replace(be,`$1$2e-resize`).replace(E,`w-resize`).replace(Te,Ne).replace(Ee,Fe).replace(De,Le).replace(Oe,Le).replace(ke,Fe).replace(Ae,Ie).replace(je,Ie).replace(xe,`$1$2$3$8$5$6$7$4$9`).replace(Se,`$1$2$3$8$5$6$7$4$9`).replace(Ce,D).replace(we,D),t=i.detokenize(a.detokenize(o.detokenize(t))),t}}}n=new i,t!==void 0&&t.exports?e.transform=function(e,t,r){var i;return typeof t==`object`?i=t:(i={},typeof t==`boolean`&&(i.transformDirInUrl=t),typeof r==`boolean`&&(i.transformEdgeInUrl=r)),n.transform(e,i)}:typeof window<`u`&&(window.cssjanus=n)})),bi,xi,Si,Ci;function wi(){return(wi=t((()=>{bi=`comm`,xi=`rule`,Si=`decl`,Ci=`@import`})))()}function Ti(e){return e.trim()}function Ei(e,t,n){return e.replace(t,n)}function Di(e,t){return e.charCodeAt(t)|0}function Oi(e,t,n){return e.slice(t,n)}function ki(e){return e.length}function Ai(e){return e.length}function ji(e,t){return t.push(e),e}var Mi,Ni;function Pi(){return(Pi=t((()=>{Mi=Math.abs,Ni=String.fromCharCode})))()}function Fi(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Zi,column:Qi,length:o,return:``,siblings:s}}function Ii(){return M}function Li(){return M=ea>0?Di(ta,--ea):0,Qi--,M===10&&(Qi=1,Zi--),M}function Ri(){return M=ea<$i?Di(ta,ea++):0,Qi++,M===10&&(Qi=1,Zi++),M}function zi(){return Di(ta,ea)}function Bi(){return ea}function Vi(e,t){return Oi(ta,e,t)}function Hi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ui(e){return Zi=Qi=1,$i=ki(ta=e),ea=0,[]}function Wi(e){return ta=``,e}function Gi(e){return Ti(Vi(ea-1,Ji(e===91?e+2:e===40?e+1:e)))}function Ki(e){for(;(M=zi())&&M<33;)Ri();return Hi(e)>2||Hi(M)>3?``:` `}function qi(e,t){for(;--t&&Ri()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return Vi(e,Bi()+(t<6&&zi()==32&&Ri()==32))}function Ji(e){for(;Ri();)switch(M){case e:return ea;case 34:case 39:e!==34&&e!==39&&Ji(M);break;case 40:e===41&&Ji(e);break;case 92:Ri()}return ea}function Yi(e,t){for(;Ri()&&e+M!==57&&(e+M!==84||zi()!==47););return`/*`+Vi(t,ea-1)+`*`+Ni(e===47?e:Ri())}function Xi(e){for(;!Hi(zi());)Ri();return Vi(e,ea)}var Zi,Qi,$i,ea,M,ta;function na(){return(na=t((()=>{Pi(),Zi=1,Qi=1,$i=0,ea=0,M=0,ta=``})))()}function ra(e){return Wi(ia(``,null,null,null,[``],e=Ui(e),0,[0],e))}function ia(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=Ri()){case 40:m!=108&&Di(w,d-1)==58?(v++,w+=`(`):w+=Gi(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=Gi(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Ni(y);break}w+=Ki(m);break;case 92:w+=qi(Bi()-1,7);continue;case 47:switch(zi()){case 42:case 47:ji(oa(Yi(Ri(),Bi()),t,n,c),c),(Hi(m||1)==5||Hi(zi()||1)==5)&&ki(w)&&Oi(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=ki(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=Ni(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Ei(w,/\f/g,``)),p>0&&(ki(w)-d||h===0)&&ji(p>32?sa(w+`;`,r,n,d-1,c):sa(Ei(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(ji(C=aa(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123){if(u===0)ia(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Di(w,3)===110)break;case 108:if(Di(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?ia(e,C,C,r&&ji(aa(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):ia(w,C,C,C,[``],S,0,s,S)}}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+ki(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Li()==125)continue}switch(w+=Ni(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(ki(w)-1)*_,_=1;break;case 64:zi()===45&&(w+=Gi(Ri())),f=zi(),u=d=ki(b=w+=Xi(Bi())),y++;break;case 45:m===45&&ki(w)==2&&(h=0)}}return a}function aa(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Ai(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Oi(e,f+1,f=Mi(g=o[h])),b=e;v<m;++v)(b=Ti(g>0?p[v]+` `+y:Ei(y,/&\f/g,p[v])))&&(c[_++]=b);return Fi(e,t,n,i===0?xi:s,c,l,u,d)}function oa(e,t,n,r){return Fi(e,t,n,bi,Ni(Ii()),Oi(e,2,-2),0,r)}function sa(e,t,n,r,i){return Fi(e,t,n,Si,Oi(e,0,r),Oi(e,r+1,-1),r,i)}function ca(){return(ca=t((()=>{wi(),Pi(),na()})))()}function la(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function ua(e,t,n){switch(e.type){case Ci:case Si:case bi:return e.return=e.return||e.value;case xi:e.value=Array.isArray(e.props)?e.props.join(`,`):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===`comm`&&(e.children=e.value)})}var r=la(Array.prototype.concat(e.children),ua);return ki(r)?e.return=e.value+`{`+r+`}`:``}function da(e,t,n,r){if(e.type===`@keyframes`||e.type===`@supports`||e.type===`rule`&&(!e.parent||e.parent.type===`@media`||e.parent.type===`rule`)){var i=fa.transform(ua(e,t,n));e.children=i?ra(i)[0].children:[],e.return=``}}var fa;function pa(){return(pa=t((()=>{fa=e(yi()),wi(),ca(),Pi(),Object.defineProperty(da,"name",{value:`stylisRTLPlugin`})})))()}var ma;function ha(){return(ha=t((()=>{ma={paths:{components:`src/components/prism`,blocks:`src/blocks`,themes:`src/theme`,utils:`src/lib/prism`,types:`src/types/prism`},registries:{default:`@omnitron-dev/prism-registry`,registries:{}},theme:{preset:`default`,mode:`light`,direction:`ltr`,cssVariables:{prefix:`prism`,colorSchemeSelector:`data-theme`,enabled:!0}},style:{framework:`mui`,cssVariables:!0,prefix:`prism`},features:{darkMode:!0,rtl:!1,i18n:!1,analytics:!1},typescript:!0}})))()}function ga(){return me(`(prefers-color-scheme: dark)`)}function _a(e){let t=ga();return e===`system`?t?`dark`:`light`:e}function va(){return(va=t((()=>{le()})))()}function ya(e){if(/^(#[\da-f]{3,8}$|rgba?\(|hsla?\()/i.test(e)&&!(/^rgba?\(/i.test(e)&&e.includes(`%`)))try{let t=ee(/^hsl/i.test(e)?w(e):e),n=t.split(` `);return n.length===3&&n.every(e=>e!==``&&Number.isFinite(Number(e)))?t:void 0}catch{return}}function ba(e){return ya(e)??`from ${e} r g b`}function xa(e,t){let n={...e};for(let[r,i]of Object.entries(t))if(Ca(i)&&Ca(n[r]))n[r]=xa(n[r],i);else if(typeof i==`string`&&!r.endsWith(`Channel`)&&!wa(t,`${r}Channel`)){let t=ya(i);(t!==void 0||wa(e,`${r}Channel`)||Da.has(r))&&(n[`${r}Channel`]=t??ba(i))}return n}function Sa(e,t,{nativeColor:n=!1,cssVarPrefix:r=`prism`}={}){if(!t)return e;let i=xa(e,t);for(let e of Ta){let a=t[e];if(!Ca(a)||typeof a.main!=`string`)continue;let o={...i[e]},s=ya(a.main)!==void 0;for(let e of Ea)wa(a,e)||(delete o[e],wa(a,`${e}Channel`)||delete o[`${e}Channel`]);if(!n&&!s&&[`light`,`dark`,`contrastText`].some(e=>typeof o[e]!=`string`||!o[e]))throw Error(`Prism: palette.${e}.main cannot be resolved in JavaScript. Enable overrides.cssVariables.nativeColor or supply light, dark and contrastText explicitly.`);let c=i.mode===`dark`,l=(e,t)=>`color-mix(in oklch, ${a.main}, ${e} ${t*100}%)`;o.lighter??=s&&!n?c?te(a.main,.75):ne(a.main,.9):c?l(`#000`,.75):l(`#fff`,.9),o.darker??=s&&!n?c?ne(a.main,.85):te(a.main,.7):c?l(`#fff`,.85):l(`#000`,.7),s&&!n&&(o.contrastText??=E(a.main,`#fff`)>=E(a.main,`#000`)?`#fff`:`#000`);for(let t of Ea)if(!wa(a,`${t}Channel`)){if(typeof o[t]==`string`)o[`${t}Channel`]=ba(o[t]);else if(n){let n=r?`${r}-`:``;o[`${t}Channel`]=`from var(--${n}palette-${e}-${t}) r g b`}}i[e]=o}return i}var Ca,wa,Ta,Ea,Da;function Oa(){return(Oa=t((()=>{re(),Ca=e=>!!e&&typeof e==`object`&&!Array.isArray(e),wa=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ta=[`primary`,`secondary`,`success`,`info`,`warning`,`error`],Ea=[`light`,`dark`,`lighter`,`darker`,`contrastText`],Da=new Set([`main`,...Ea,`primary`,`secondary`,`disabled`,`default`,`paper`,`neutral`,`divider`,`active`,`selected`,`hover`,`focus`,`disabledBackground`,`background`,`onBackground`,`black`,`white`])})))()}var N,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so;function co(){return(co=t((()=>{xn(),Qt(),N=a(),ka=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M5 6C5 4.58579 5 3.87868 5.43934 3.43934C5.87868 3 6.58579 3 8 3H12.5789C15.0206 3 17 5.01472 17 7.5C17 9.98528 15.0206 12 12.5789 12H5V6Z`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12.4286 12H13.6667C16.0599 12 18 14.0147 18 16.5C18 18.9853 16.0599 21 13.6667 21H8C6.58579 21 5.87868 21 5.43934 20.5607C5 20.1213 5 19.4142 5 18V12`})]}),Aa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M12 4H19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M8 20L16 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M5 20H12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),ja=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5.5 3V11.5C5.5 15.0899 8.41015 18 12 18C15.5899 18 18.5 15.0899 18.5 11.5V3`}),(0,N.jsx)(`path`,{d:`M3 21H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Ma=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M4 12H20`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M17.5 7.66667C17.5 5.08934 15.0376 3 12 3C8.96243 3 6.5 5.08934 6.5 7.66667C6.5 8.15279 6.55336 8.59783 6.6668 9M6 16.3333C6 18.9107 8.68629 21 12 21C15.3137 21 18 19.6667 18 16.3333C18 13.9404 16.9693 12.5782 14.9079 12`})]}),Na=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15`}),(0,N.jsx)(`path`,{d:`M14.5 4L9.5 20`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Pa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16 10L17.2265 11.0572C17.7422 11.5016 18 11.7239 18 12C18 12.2761 17.7422 12.4984 17.2265 12.9428L16 14`}),(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 10L6.77346 11.0572C6.25782 11.5016 6 11.7239 6 12C6 12.2761 6.25782 12.4984 6.77346 12.9428L8 14`}),(0,N.jsx)(`path`,{d:`M13 9L11 15`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`})]}),Fa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M4 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M14 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M17 19H18.5M20 19H18.5M18.5 19V11L17 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M4 12L14 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ia=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M20.5 19H16.5V18.6907C16.5 18.2521 16.5 18.0327 16.5865 17.8385C16.673 17.6443 16.836 17.4976 17.1621 17.2041L19.7671 14.8596C20.2336 14.4397 20.5 13.8416 20.5 13.214V13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13V13.4`}),(0,N.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),La=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16.5 17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17C20.5 15.8954 19.6046 15 18.5 15C19.6046 15 20.5 14.1046 20.5 13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13`}),(0,N.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ra=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,d:`M16.5 11V15H20.5M20.5 15V19M20.5 15V11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),za=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,d:`M16.5 16.5V17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17V16.5C20.5 15.1193 19.3807 14 18 14H16.5V11H20.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ba=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,d:`M16.5 17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17C20.5 15.8954 19.6046 15 18.5 15C17.3954 15 16.5 15.8954 16.5 17ZM16.5 17V13C16.5 11.8954 17.3954 11 18.5 11C19.6046 11 20.5 11.8954 20.5 13`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Va=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 21.001H9`}),(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 3.00001V21.0008M12 3.00001C13.3874 3.00001 15.1695 3.03055 16.5884 3.17649C17.1885 3.2382 17.4886 3.26906 17.7541 3.37791C18.3066 3.60429 18.7518 4.10063 18.9194 4.67681C19 4.95382 19 5.26992 19 5.90215M12 3.00001C10.6126 3.00001 8.83047 3.03055 7.41161 3.17649C6.8115 3.2382 6.51144 3.26906 6.24586 3.37791C5.69344 3.60429 5.24816 4.10063 5.08057 4.67681C5 4.95382 5 5.26992 5 5.90215`})]}),Ha=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 9H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 21H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ua=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M8 9H16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M8 21H16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Wa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13 9H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13 21H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ga=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 9H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 21H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ka=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M11 5.5L21 5.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M5.4 16.8926C6.46667 17.607 7 17.9642 7 18.5C7 19.0358 6.46667 19.393 5.4 20.1074C4.33333 20.8218 3.8 21.1789 3.4 20.9111C3 20.6432 3 19.9288 3 18.5C3 17.0712 3 16.3568 3.4 16.0889C3.8 15.8211 4.33333 16.1782 5.4 16.8926Z`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M5.4 3.89263C6.46667 4.60702 7 4.96421 7 5.5C7 6.03579 6.46667 6.39298 5.4 7.10737C4.33333 7.82176 3.8 8.17895 3.4 7.91105C3 7.64316 3 6.92877 3 5.5C3 4.07123 3 3.35684 3.4 3.08895C3.8 2.82105 4.33333 3.17824 5.4 3.89263Z`}),(0,N.jsx)(`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M11 18.5L21 18.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),qa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M11 6L21 6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M11 18L21 18`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 15H4.5C4.77879 15 4.91819 15 5.03411 15.0231C5.51014 15.1177 5.88225 15.4899 5.97694 15.9659C6 16.0818 6 16.2212 6 16.5C6 16.7788 6 16.9182 5.97694 17.0341C5.88225 17.5101 5.51014 17.8823 5.03411 17.9769C4.91819 18 4.77879 18 4.5 18C4.22121 18 4.08181 18 3.96589 18.0231C3.48986 18.1177 3.11775 18.4899 3.02306 18.9659C3 19.0818 3 19.2212 3 19.5V20.4C3 20.6828 3 20.8243 3.08787 20.9121C3.17574 21 3.31716 21 3.6 21H6`}),(0,N.jsx)(`path`,{d:`M3 3H4.2C4.36569 3 4.5 3.13431 4.5 3.3V9M4.5 9H3M4.5 9H6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ja=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M11 6L21 6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M11 18L21 18`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4`}),(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15`})]}),Ya=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M14 16C14 14.1144 14 13.1716 14.5858 12.5858C15.1716 12 16.1144 12 18 12C19.8856 12 20.8284 12 21.4142 12.5858C22 13.1716 22 14.1144 22 16C22 17.8856 22 18.8284 21.4142 19.4142C20.8284 20 19.8856 20 18 20C16.1144 20 15.1716 20 14.5858 19.4142C14 18.8284 14 17.8856 14 16Z`}),(0,N.jsx)(`path`,{fill:`none`,d:`M14 16V11.8626C14 8.19569 16.5157 5.08584 20 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2 16C2 14.1144 2 13.1716 2.58579 12.5858C3.17157 12 4.11438 12 6 12C7.88562 12 8.82843 12 9.41421 12.5858C10 13.1716 10 14.1144 10 16C10 17.8856 10 18.8284 9.41421 19.4142C8.82843 20 7.88562 20 6 20C4.11438 20 3.17157 20 2.58579 19.4142C2 18.8284 2 17.8856 2 16Z`}),(0,N.jsx)(`path`,{fill:`none`,d:`M2 16V11.8626C2 8.19569 4.51571 5.08584 8 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Xa=e=>(0,N.jsx)(O,{...e,children:(0,N.jsx)(`path`,{d:`M2.5 12L21.5002 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Za=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088Z`}),(0,N.jsx)(`path`,{d:`M2.5 9L21.5 9`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,N.jsx)(`path`,{d:`M2.5 13L21.5 13`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,N.jsx)(`path`,{d:`M2.5 17L21.5 17`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,N.jsx)(`path`,{d:`M12 21.5L12 9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Qa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M9.5 14.5L14.5 9.49995`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M16.8463 14.6095L19.4558 12C21.5147 9.94108 21.5147 6.60298 19.4558 4.54411C17.397 2.48524 14.0589 2.48524 12 4.54411L9.39045 7.15366M14.6095 16.8463L12 19.4558C9.94113 21.5147 6.60303 21.5147 4.54416 19.4558C2.48528 17.3969 2.48528 14.0588 4.54416 12L7.1537 9.39041`})]}),$a=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,d:`M16.8463 14.6095L19.4558 12C21.5147 9.94113 21.5147 6.60303 19.4558 4.54416C17.397 2.48528 14.0589 2.48528 12 4.54416L9.39045 7.1537M14.6095 16.8463L12 19.4558C9.94113 21.5147 6.60303 21.5147 4.54416 19.4558C2.48528 17.397 2.48528 14.0589 4.54416 12L7.1537 9.39045`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M22 17H19.9211M17 22L17 19.9211`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M2 7H4.07889M7 2L7 4.07889`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),eo=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`circle`,{fill:`none`,cx:`7.5`,cy:`7.5`,r:`1.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M5 21C9.37246 15.775 14.2741 8.88406 21.4975 13.5424`})]}),to=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M11 20.001H5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 3L21 21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M19 7C19 6.36778 19 5.95381 18.9194 5.6768C18.7518 5.10062 18.3066 4.60428 17.7541 4.37789C17.4886 4.26905 17.1885 4.23819 16.5884 4.17648C15.1695 4.03054 13.3874 4 12 4H8`}),(0,N.jsx)(`path`,{d:`M12 4L11.2 7.20003M8 20.0008L10.4001 10.4001`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),no=e=>(0,N.jsx)(O,{...e,children:(0,N.jsx)(`path`,{fill:`none`,d:`M3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C8.79275 3 5.97733 4.67765 4.38341 7.20327M3.29339 3.00076L3.46556 5.05452C3.58958 6.53384 3.65159 7.27349 4.13359 7.68914C4.61559 8.10479 5.32673 8.03185 6.74899 7.88595L8.79339 7.67625`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),ro=e=>(0,N.jsx)(O,{...e,children:(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C15.2073 3 18.0227 4.67765 19.6166 7.20327M20.7066 3.00076L20.5344 5.05452C20.4104 6.53384 20.3484 7.27349 19.8664 7.68914C19.3844 8.10479 18.6733 8.03185 17.251 7.88595L15.2066 7.67625`})}),io=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M13 6H8.5C6.01472 6 4 8.01472 4 10.5C4 12.9853 6.01472 15 8.5 15H20`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17 12C17 12 20 14.2095 20 15C20 15.7906 17 18 17 18`})]}),ao=e=>(0,N.jsx)(O,{...e,children:(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.5 21C16.8956 21 17.5933 21 18.1611 20.8278C19.4395 20.44 20.44 19.4395 20.8278 18.1611C21 17.5933 21 16.8956 21 15.5M21 8.5C21 7.10444 21 6.40666 20.8278 5.83886C20.44 4.56046 19.4395 3.56004 18.1611 3.17224C17.5933 3 16.8956 3 15.5 3M8.5 21C7.10444 21 6.40666 21 5.83886 20.8278C4.56046 20.44 3.56004 19.4395 3.17224 18.1611C3 17.5933 3 16.8956 3 15.5M3 8.5C3 7.10444 3 6.40666 3.17224 5.83886C3.56004 4.56046 4.56046 3.56004 5.83886 3.17224C6.40666 3 7.10444 3 8.5 3`})}),oo=e=>(0,N.jsx)(O,{...e,children:(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.5 9.5L21 4M15.5 9.5V5M15.5 9.5H20M8.5 14.5L3 20M8.5 14.5V19M8.5 14.5H4`})}),k(`bold`,ka),k(`italic`,Aa),k(`underline`,ja),k(`strike`,Ma),k(`inlineCode`,Na),k(`codeBlock`,Pa),k(`h1`,Fa),k(`h2`,Ia),k(`h3`,La),k(`h4`,Ra),k(`h5`,za),k(`h6`,Ba),k(`paragraph`,Va),k(`alignLeft`,Ha),k(`alignCenter`,Ua),k(`alignRight`,Wa),k(`alignJustify`,Ga),k(`bulletList`,Ka),k(`orderedList`,qa),k(`checkList`,Ja),k(`quote`,Ya),k(`horizontalRule`,Xa),so=k(`table`,Za),k(`link`,Qa),k(`unlink`,$a),k(`image`,eo),k(`clearMarks`,to),k(`undo`,no),k(`redo`,ro),k(`hardBreak`,io),k(`fullscreen`,ao),k(`fullscreenExit`,oo)})))()}function lo(e){return(0,fo.forwardRef)(function({color:t,...n},r){let i=t===`action`||t===`disabled`||t===`error`||t===`info`||t===`inherit`||t===`primary`||t===`secondary`||t===`success`||t===`warning`;return(0,po.jsx)(e,{...n,ref:r,color:i?t:`inherit`,htmlColor:i?void 0:t})})}function uo(){return{MuiSelect:{defaultProps:{IconComponent:Ln}},MuiNativeSelect:{defaultProps:{IconComponent:Ln}},MuiAutocomplete:{defaultProps:{popupIcon:(0,po.jsx)(Ln,{}),clearIcon:(0,po.jsx)(zn,{fontSize:`small`})}},MuiRadio:{defaultProps:{icon:(0,po.jsx)(Vn,{}),checkedIcon:(0,po.jsx)(vn,{})}},MuiChip:{defaultProps:{deleteIcon:(0,po.jsx)(zn,{})}},MuiAlert:{defaultProps:{iconMapping:{success:(0,po.jsx)(Nn,{}),info:(0,po.jsx)(Tn,{}),warning:(0,po.jsx)(_n,{}),error:(0,po.jsx)(Fn,{})},slots:{closeIcon:zn}}},MuiPaginationItem:{defaultProps:{slots:{previous:On,next:Pn,first:An,last:Bn}}},MuiTablePagination:{defaultProps:{slots:{actions:{firstButtonIcon:An,previousButtonIcon:On,nextButtonIcon:Pn,lastButtonIcon:Bn}}}},MuiTableSortLabel:{defaultProps:{IconComponent:In}},MuiBreadcrumbs:{defaultProps:{separator:(0,po.jsx)(Pn,{fontSize:`inherit`})}},MuiRating:{defaultProps:{icon:(0,po.jsx)(Sn,{fontSize:`inherit`}),emptyIcon:(0,po.jsx)(yn,{fontSize:`inherit`})}},MuiTabs:{defaultProps:{slots:{startScrollButtonIcon:On,endScrollButtonIcon:Pn}}},MuiDataGrid:{defaultProps:{slots:{columnMenuIcon:mo.MoreIcon,columnSortedAscendingIcon:mo.ArrowUpIcon,columnSortedDescendingIcon:mo.ArrowDownIcon,columnFilteredIcon:mo.FilterIcon,columnSelectorIcon:mo.TableIcon,exportIcon:mo.DownloadIcon,openFilterButtonIcon:mo.FilterIcon,quickFilterIcon:mo.SearchIcon,quickFilterClearIcon:mo.CloseIcon,detailPanelExpandIcon:mo.AddIcon,detailPanelCollapseIcon:mo.RemoveIcon}}}}}var fo,po,mo;function ho(){return(ho=t((()=>{fo=r(),co(),Mn(),po=a(),mo={MoreIcon:lo(Dn),ArrowUpIcon:lo(En),ArrowDownIcon:lo(In),FilterIcon:lo(jn),TableIcon:lo(so),DownloadIcon:lo(kn),CloseIcon:lo(zn),SearchIcon:lo(bn),AddIcon:lo(Rn),RemoveIcon:lo(wn)}})))()}function go(e){let t=e.replace(`#`,``),n=t.length===3?t.split(``).map(e=>e+e).join(``):t,r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]}function _o(e){let[t,n,r]=go(e);return`${t} ${n} ${r}`}function vo(e,t,n){let r=e=>Math.round(e).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`.toUpperCase()}function yo(e){let[t,n,r]=go(e),i=t/255,a=n/255,o=r/255,s=Math.max(i,a,o),c=Math.min(i,a,o),l=0,u=0,d=(s+c)/2,f=s-c;if(f!==0){switch(u=d>.5?f/(2-s-c):f/(s+c),s){case i:l=(a-o)/f+(a<o?6:0);break;case a:l=(o-i)/f+2;break;default:l=(i-a)/f+4}l/=6}return{h:l*360,s:u*100,l:d*100}}function bo(e,t,n){let r=t/100,i=n/100,a=(1-Math.abs(2*i-1))*r,o=a*(1-Math.abs(e/60%2-1)),s=i-a/2,c,l,u;return e>=0&&e<60?[c,l,u]=[a,o,0]:e>=60&&e<120?[c,l,u]=[o,a,0]:e>=120&&e<180?[c,l,u]=[0,a,o]:e>=180&&e<240?[c,l,u]=[0,o,a]:e>=240&&e<300?[c,l,u]=[o,0,a]:[c,l,u]=[a,0,o],vo(Math.round((c+s)*255),Math.round((l+s)*255),Math.round((u+s)*255))}function xo(e,t){return`rgba(${e} / ${t})`}function So(e){return{...e,lighterChannel:_o(e.lighter),lightChannel:_o(e.light),mainChannel:_o(e.main),darkChannel:_o(e.dark),darkerChannel:_o(e.darker),contrastTextChannel:_o(e.contrastText)}}function Co(e){let t=[50,100,200,300,400,500,600,700,800,900,950],n={};for(let r of t){let t=`${r}Channel`;n[t]=_o(e[r])}return{...e,...n}}function wo(e,t,n){return Math.max(t,Math.min(n,e))}function To(e){let t=yo(e),n=[{key:50,lDelta:40},{key:100,lDelta:32},{key:200,lDelta:24},{key:300,lDelta:16},{key:400,lDelta:8},{key:500,lDelta:0},{key:600,lDelta:-8},{key:700,lDelta:-16},{key:800,lDelta:-24},{key:900,lDelta:-32},{key:950,lDelta:-40}],r={};for(let{key:e,lDelta:i}of n){let n=wo(t.l+i,5,95);r[e]=bo(t.h,t.s,n)}return r}function Eo(e){let[t,n,r]=go(e).map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function Do(e,t){let n=Eo(e),r=Eo(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function Oo(e,t=`#FFFFFF`,n=`#000000`){return Do(e,t)>=Do(e,n)?t:n}function ko(e,t){let n=e=>e.includes(`var(--`),r=e=>e.trim().endsWith(`%`),i={invalid:`[varAlpha]: Invalid opacity "${e}" for "${t}".`,range:`Must be a number between 0 and 1 (e.g., 0.48).`,format:`Must be a percentage (e.g., "48%") or CSS variable (e.g., "var(--opacity)").`};if(typeof e==`string`){if(r(e))return e;if(n(e))return`calc(${e} * 100%)`;let t=parseFloat(e.trim());if(!isNaN(t)&&t>=0&&t<=1)return`${Number((t*100).toFixed(2))}%`;throw Error(`${i.invalid} ${i.format}`)}if(typeof e==`number`){if(e>=0&&e<=1)return`${Number((e*100).toFixed(2))}%`;throw Error(`${i.invalid} ${i.range}`)}throw Error(`${i.invalid}`)}function P(e,t=1){if(!e?.trim())throw Error(`[varAlpha]: Color is undefined or empty!`);if(e.startsWith(`#`)||e.startsWith(`rgb(`)||e.startsWith(`rgba(`)||!e.includes(`var`)&&e.includes(`Channel`))throw Error([`[varAlpha]: Unsupported color format "${e}"`,`✅ Supported formats:`,` - RGB channels: "0 184 217"`,` - CSS variables: "var(--palette-primary-mainChannel)"`,` - currentColor`,`❌ Unsupported formats:`,` - Hex: "#00B8D9"`,` - RGB: "rgb(0, 184, 217)"`,` - RGBA: "rgba(0, 184, 217, 1)"`].join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/terminal-QWBau-Us.js","assets/rolldown-runtime-CNOWq4Kh.js","assets/react-BN8qLIAi.js","assets/client-DFnuv2z3.js","assets/services-BddvcFi8.js","assets/mui-BTN91yBK.js","assets/mui-agG5dued.js","assets/mui-CdB_p2lt.js","assets/mui-BXSXx9c9.js","assets/mui-Cd711nOk.js","assets/mui-AnEgAVjz.js","assets/mui-BwsIrivo.js","assets/popper-m_9b0JRf.js","assets/controls-C5W8gHU4.js","assets/mui-DyT2n1lx.js","assets/use-copy-to-clipboard-BWYpToS3.js","assets/store-bqUBn2A4.js","assets/react-CEuifcaQ.js","assets/operation-status-Bm1x1wTz.js","assets/page-breadcrumbs-fR7Jmpp4.js","assets/terminal-input-b7f2VoE_.js","assets/shell-command-C3pXf1vi.js","assets/tabs-k5NPGLnJ.js","assets/terminal-BrP-ENHg.css","assets/files-DigwXndm.js","assets/model-ZEXEHm0l.js","assets/use-polled-resource-B22hhr5L.js","assets/console-keyboard-D3YCA0yU.js","assets/icons-OboZgWSt.js","assets/preload-helper-DzCYNvzR.js","assets/table-viewport-Bp4pq-c_.js","assets/confirm-dialog-BbGsAz7_.js","assets/sign-in-9q-Nfy83.js","assets/alert-uBG6r9NW.js","assets/omnitron-logo-koMCbsCv.js","assets/dashboard-BN7rKE5n.js","assets/project.store-DuCgv6Eq.js","assets/storage-CKXnhqkt.js","assets/realtime.store-hfxZD2DU.js","assets/app-address-BCXfN59F.js","assets/constants-CyhngVXh.js","assets/formatters-RnRy4bXm.js","assets/use-stack-context-8yaHaN8L.js","assets/metric-series-WxePniyw.js","assets/comparison-bars-BtC0dHjF.js","assets/card-DkH32gMY.js","assets/apps-G_Lm6m4F.js","assets/dayjs.min-DHwAvH5f.js","assets/mui-dLCwWoMw.js","assets/mui-6ssfcZcz.js","assets/mui-D5m7fDCh.js","assets/mui-Db5J-QUd.js","assets/mui-59N0OVRa.js","assets/access-BvKK9dEv.js","assets/table-BOWT6Y9d.js","assets/search-input-C0MHI8vO.js","assets/stack-health-status-BIv2C10x.js","assets/detail-pXPk4O0E.js","assets/chart-BpGXlCJc.js","assets/skeleton-BmWDJWF9.js","assets/log-level-filter-Bcn31D1F.js","assets/event-fields-CiyqrRO8.js","assets/logs-DrsBbLfb.js","assets/log-location-DuBjh6HQ.js","assets/topology-C_Qp1RqW.js","assets/label-B1SF0RTL.js","assets/shared-styles-C0vN3I7_.js","assets/metric-chart-M-kI-XOt.js","assets/topology-metadata-dialog-BivuU2y6.js","assets/topology-DLioOiRN.css","assets/alerts-CzN6OqX5.js","assets/alert-expression-CSblScoa.js","assets/admin-data-table-BKSDI8sU.js","assets/settled-pair-B-wgSZl6.js","assets/containers-BsFwprq4.js","assets/deployments-DEzjHerg.js","assets/deploy-progress-CUUwlYtQ.js","assets/metrics-D5cDZTEo.js","assets/settings-B3egRvbI.js","assets/auth-CcgjP7hR.js","assets/alert-notify-settings-C_CHZrFm.js","assets/pipelines-BrfTjf6Y.js","assets/traces-By0rdfDC.js","assets/dashboard-builder-BXFxWjXP.js","assets/error-boundary-CLLI8PWw.js","assets/empty-content-7jOFhG4C.js","assets/daemon-memory-BiEtr9jr.js","assets/stacks-WY_ynkON.js","assets/sync-reading-CN0jPKAg.js","assets/deploy-release-dialog-58lGZDNk.js","assets/release-bits-BJ6i23y0.js","assets/stack-start-notice-D-AH_bzn.js","assets/detail-Dj3gxaH0.js","assets/release-deployment-state-gN8ZT3aq.js","assets/system-info-DXMwo6gl.js","assets/nodes-CwwZZuu4.js","assets/snackbar-DSPmjMyi.js","assets/projects-TBAdpCeX.js","assets/audit-CLMpdBzG.js","assets/access-DUjabwNX.js","assets/releases-CXXKUh-v.js","assets/release-build-panel-BNXkwNE1.js","assets/detail-CBn9pjJU.js"])))=>i.map(i=>d[i]);
2
+ import{i as e,n as t,t as n}from"./rolldown-runtime-CNOWq4Kh.js";import{i as r,n as i,t as a}from"./react-BN8qLIAi.js";import{B as o,F as s,I as c,L as l,N as u,P as d,R as f,V as p,c as m,h,l as g,n as _,y as v,z as y}from"./client-DFnuv2z3.js";import{a as b,f as x,p as S,s as C}from"./mui-agG5dued.js";import{Jt as w,Ut as ee,Vt as T,Wt as te,Xt as ne,Yt as re,qt as E}from"./mui-BTN91yBK.js";import{Lt as ie,Nt as ae,Pt as oe,Rt as se,_n as ce,a as le,bn as ue,dn as de,gn as fe,n as pe,o as me,r as he,t as ge,un as _e,xn as ve}from"./mui-CdB_p2lt.js";import{$ as ye,At as be,Ct as xe,Dt as Se,F as Ce,H as we,I as Te,L as Ee,M as De,Mt as Oe,Ot as ke,R as Ae,St as je,V as D,b as Me,bt as Ne,ct as Pe,dt as Fe,et as Ie,ft as Le,i as Re,j as ze,jt as Be,kt as Ve,n as He,nt as Ue,r as We,st as Ge,t as Ke,tt as qe,wt as Je,xt as Ye,y as Xe,yt as Ze}from"./mui-BXSXx9c9.js";import{B as Qe,E as $e,F as et,I as tt,N as nt,P as rt,T as it,U as at,W as ot,_ as st,m as ct,p as lt,v as ut,z as dt}from"./mui-Cd711nOk.js";import{E as ft,F as pt,I as mt,M as ht,Q as gt,S as _t,St as vt,T as yt,Z as bt,_t as xt,at as St,b as Ct,d as wt,dt as Tt,f as Et,ft as Dt,g as Ot,gt as kt,h as At,ht as jt,it as Mt,j as Nt,l as Pt,m as Ft,n as It,nt as Lt,ot as Rt,p as zt,rt as Bt,t as Vt,tt as Ht,u as Ut,vt as Wt,x as Gt,xt as Kt,y as qt}from"./mui-AnEgAVjz.js";import{C as Jt,F as Yt,I as Xt,L as Zt,N as O,P as Qt,R as $t,_ as en,d as tn,f as nn,i as rn,m as an,p as on,r as sn,v as cn,w as ln}from"./mui-BwsIrivo.js";import{d as un,l as dn,p as fn,u as pn}from"./mui-dLCwWoMw.js";import{n as mn,r as hn,t as gn}from"./context-FIuwpd9_.js";import{A as _n,C as vn,D as yn,E as bn,M as k,N as xn,O as Sn,S as Cn,T as wn,_ as Tn,a as En,b as Dn,c as On,f as kn,g as An,h as jn,j as Mn,k as Nn,l as Pn,m as Fn,n as In,s as Ln,t as Rn,u as zn,v as Bn,w as Vn,x as Hn,y as Un}from"./controls-C5W8gHU4.js";import{a as Wn,i as Gn,r as Kn,t as qn}from"./alert-uBG6r9NW.js";import{n as Jn,t as Yn}from"./react-CEuifcaQ.js";import{n as Xn,t as Zn}from"./snackbar-DSPmjMyi.js";import{n as Qn,t as $n}from"./error-boundary-CLLI8PWw.js";import{a as er,c as tr,i as nr,l as rr,o as ir,r as ar,s as or,t as sr,u as cr}from"./access-BvKK9dEv.js";import{a as lr,n as ur,t as dr}from"./store-bqUBn2A4.js";import{n as fr,t as pr}from"./use-polled-resource-B22hhr5L.js";import{i as A,l as mr,n as hr,r as gr,t as _r,u as vr}from"./project.store-DuCgv6Eq.js";import{n as yr,t as br}from"./realtime.store-hfxZD2DU.js";import{a as xr,d as Sr}from"./app-address-BCXfN59F.js";import{a as Cr,n as wr,o as Tr,r as Er,t as Dr}from"./omnitron-logo-koMCbsCv.js";import{a as Or,i as kr,n as Ar,o as jr,t as Mr}from"./console-keyboard-D3YCA0yU.js";import{A as Nr,C as Pr,E as Fr,F as Ir,G as Lr,H as Rr,K as zr,L as Br,N as Vr,O as Hr,Q as Ur,R as Wr,S as Gr,V as Kr,Z as qr,_ as Jr,d as Yr,f as Xr,j as Zr,m as Qr,n as $r,r as ei,s as ti,t as ni,u as ri,w as ii}from"./icons-OboZgWSt.js";import{n as ai,t as oi}from"./label-B1SF0RTL.js";import{n as si,t as ci}from"./shared-styles-C0vN3I7_.js";import{a as li,i as ui,o as di}from"./alert-notify-settings-C_CHZrFm.js";import{n as fi,t as j}from"./preload-helper-DzCYNvzR.js";function pi(){return(pi=t((()=>{(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})()})))()}var mi=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(n,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),hi=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(n,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),gi=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(n,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),_i=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isBetween=r()})(n,(function(){return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i||=`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}}))})),vi=n(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(n,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),yi=n(((e,t)=>{var n;function r(e,t){var n=[],r=0;function i(e){return n.push(e),t}function a(){return n[r++]}return{tokenize:function(t){return t.replace(e,i)},detokenize:function(e){return e.replace(RegExp(`(`+t+`)`,`g`),a)}}}function i(){var e="`COMMENT`",t=`[^\\u0020-\\u007e]`,n=`(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)`,i=`(?:[0-9]*\\.[0-9]+|[0-9]+)`,a=`(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)`,o=`direction\\s*:\\s*`,s=`[!#$%&*-~]`,c=`['"]?\\s*`,l=`(^|[^a-zA-Z])`,u=`[^\\}]*?`,d=`\\/\\*\\!?\\s*@noflip\\s*\\*\\/`,f=`\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/`,p=`(?:`+n+`|\\\\[^\\r\\n\\f0-9a-f])`,m=`(?:[_a-z]|`+t+`|`+p+`)`,h=`(?:[_a-z0-9-]|`+t+`|`+p+`)`,g=`-?`+m+h+`*`,_=i+`(?:\\s*`+a+`|`+g+`)?`,v=`((?:-?`+_+`)|(?:inherit|auto))`,y=`(?:calc\\((?:`+(`(?:(?:\\(|\\)|\\t| )|`+(`(?:-?`+i+`(?:\\s*`+a+`)?)`)+`|(?:\\+|\\-|\\*|\\/)){3,}`)+`)\\))`,b=`((?:-?`+_+`)|(?:inherit|auto)|`+y+`)`,x=`((?:margin|padding|border-width)\\s*:\\s*)`,S=`((?:-color|border-style)\\s*:\\s*)`,C=`(#?`+h+`+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))`,w=`(?:`+s+`|`+t+`|`+p+`)*?`,ee=`(?![a-zA-Z])`,T=`(?!(`+h+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+e+`)*?{)`,te=`(?!`+w+c+`\\))`,ne=`(?=`+w+c+`\\))`,re=`(\\s*(?:!important\\s*)?[;}])`,E=/`TMP`/g,ie=/`TMPLTR`/g,ae=/`TMPRTL`/g,oe=new RegExp(f,`gi`),se=RegExp(`(`+d+T+`[^;}]+;?)`,`gi`),ce=RegExp(`(`+d+u+`})`,`gi`),le=RegExp(`(`+o+`)ltr`,`gi`),ue=RegExp(`(`+o+`)rtl`,`gi`),de=RegExp(l+`(left)`+ee+te+T,`gi`),fe=RegExp(l+`(right)`+ee+te+T,`gi`),pe=RegExp(l+`(left)`+ne,`gi`),me=RegExp(l+`(right)`+ne,`gi`),he=/(:dir\( *)ltr( *\))/g,ge=/(:dir\( *)rtl( *\))/g,_e=RegExp(l+`(ltr)`+ne,`gi`),ve=RegExp(l+`(rtl)`+ne,`gi`),ye=RegExp(l+`([ns]?)e-resize`,`gi`),be=RegExp(l+`([ns]?)w-resize`,`gi`),xe=RegExp(x+b+`(\\s+)`+b+`(\\s+)`+b+`(\\s+)`+b+re,`gi`),Se=RegExp(S+C+`(\\s+)`+C+`(\\s+)`+C+`(\\s+)`+C+re,`gi`),Ce=RegExp(`(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)(`+_+`)`,`gi`),we=RegExp(`(background-position-x\\s*:\\s*)(-?`+i+`%)`,`gi`),Te=RegExp(`(border-radius\\s*:\\s*)`+v+`(?:(?:\\s+`+v+`)(?:\\s+`+v+`)?(?:\\s+`+v+`)?)?(?:(?:(?:\\s*\\/\\s*)`+v+`)(?:\\s+`+v+`)?(?:\\s+`+v+`)?(?:\\s+`+v+`)?)?`+re,`gi`),Ee=RegExp(`(box-shadow\\s*:\\s*(?:inset\\s*)?)`+v,`gi`),De=RegExp(`(text-shadow\\s*:\\s*)`+v+`(\\s*)`+C,`gi`),Oe=RegExp(`(text-shadow\\s*:\\s*)`+C+`(\\s*)`+v,`gi`),ke=RegExp(`(text-shadow\\s*:\\s*)`+v,`gi`),Ae=RegExp(`(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)`+v+`(\\s*\\))`,`gi`),je=RegExp(`(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)`+v+`((?:\\s*,\\s*`+v+`){0,2}\\s*\\))`,`gi`);function D(e,t,n){var r,i;return t.split(`(`).length>t.split(`)`).length?e:(n.slice(-1)===`%`&&(r=n.indexOf(`.`),r===-1?n=100-parseFloat(n)+`%`:(i=n.length-r-2,n=100-parseFloat(n),n=n.toFixed(i)+`%`)),t+n)}function Me(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(` `)}function Ne(e,t){var n,r=[].slice.call(arguments),i=r.slice(2,6).filter(function(e){return e}),a=r.slice(6,10).filter(function(e){return e}),o=r[10]||``;return n=a.length?Me(i)+` / `+Me(a):Me(i),t+n+o}function Pe(e){return parseFloat(e)===0?e:e[0]===`-`?e.slice(1):`-`+e}function Fe(e,t,n){return t+Pe(n)}function Ie(e,t,n,r,i){return t+n+Pe(r)+i}function Le(e,t,n,r,i){return t+n+r+Pe(i)}return{transform:function(t,n){var i=new r(se,"`NOFLIP_SINGLE`"),a=new r(ce,"`NOFLIP_CLASS`"),o=new r(oe,e);return t=o.tokenize(a.tokenize(i.tokenize(t.replace("`",`%60`)))),n.transformDirInUrl&&(t=t.replace(he,"$1`TMPLTR`$2").replace(ge,"$1`TMPRTL`$2").replace(_e,"$1`TMP`").replace(ve,`$1ltr`).replace(E,`rtl`).replace(ie,`ltr`).replace(ae,`rtl`)),n.transformEdgeInUrl&&(t=t.replace(pe,"$1`TMP`").replace(me,`$1left`).replace(E,`right`)),t=t.replace(le,"$1`TMP`").replace(ue,`$1ltr`).replace(E,`rtl`).replace(de,"$1`TMP`").replace(fe,`$1left`).replace(E,`right`).replace(ye,"$1$2`TMP`").replace(be,`$1$2e-resize`).replace(E,`w-resize`).replace(Te,Ne).replace(Ee,Fe).replace(De,Le).replace(Oe,Le).replace(ke,Fe).replace(Ae,Ie).replace(je,Ie).replace(xe,`$1$2$3$8$5$6$7$4$9`).replace(Se,`$1$2$3$8$5$6$7$4$9`).replace(Ce,D).replace(we,D),t=i.detokenize(a.detokenize(o.detokenize(t))),t}}}n=new i,t!==void 0&&t.exports?e.transform=function(e,t,r){var i;return typeof t==`object`?i=t:(i={},typeof t==`boolean`&&(i.transformDirInUrl=t),typeof r==`boolean`&&(i.transformEdgeInUrl=r)),n.transform(e,i)}:typeof window<`u`&&(window.cssjanus=n)})),bi,xi,Si,Ci;function wi(){return(wi=t((()=>{bi=`comm`,xi=`rule`,Si=`decl`,Ci=`@import`})))()}function Ti(e){return e.trim()}function Ei(e,t,n){return e.replace(t,n)}function Di(e,t){return e.charCodeAt(t)|0}function Oi(e,t,n){return e.slice(t,n)}function ki(e){return e.length}function Ai(e){return e.length}function ji(e,t){return t.push(e),e}var Mi,Ni;function Pi(){return(Pi=t((()=>{Mi=Math.abs,Ni=String.fromCharCode})))()}function Fi(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Zi,column:Qi,length:o,return:``,siblings:s}}function Ii(){return M}function Li(){return M=ea>0?Di(ta,--ea):0,Qi--,M===10&&(Qi=1,Zi--),M}function Ri(){return M=ea<$i?Di(ta,ea++):0,Qi++,M===10&&(Qi=1,Zi++),M}function zi(){return Di(ta,ea)}function Bi(){return ea}function Vi(e,t){return Oi(ta,e,t)}function Hi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ui(e){return Zi=Qi=1,$i=ki(ta=e),ea=0,[]}function Wi(e){return ta=``,e}function Gi(e){return Ti(Vi(ea-1,Ji(e===91?e+2:e===40?e+1:e)))}function Ki(e){for(;(M=zi())&&M<33;)Ri();return Hi(e)>2||Hi(M)>3?``:` `}function qi(e,t){for(;--t&&Ri()&&!(M<48||M>102||M>57&&M<65||M>70&&M<97););return Vi(e,Bi()+(t<6&&zi()==32&&Ri()==32))}function Ji(e){for(;Ri();)switch(M){case e:return ea;case 34:case 39:e!==34&&e!==39&&Ji(M);break;case 40:e===41&&Ji(e);break;case 92:Ri()}return ea}function Yi(e,t){for(;Ri()&&e+M!==57&&(e+M!==84||zi()!==47););return`/*`+Vi(t,ea-1)+`*`+Ni(e===47?e:Ri())}function Xi(e){for(;!Hi(zi());)Ri();return Vi(e,ea)}var Zi,Qi,$i,ea,M,ta;function na(){return(na=t((()=>{Pi(),Zi=1,Qi=1,$i=0,ea=0,M=0,ta=``})))()}function ra(e){return Wi(ia(``,null,null,null,[``],e=Ui(e),0,[0],e))}function ia(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=Ri()){case 40:m!=108&&Di(w,d-1)==58?(v++,w+=`(`):w+=Gi(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=Gi(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Ni(y);break}w+=Ki(m);break;case 92:w+=qi(Bi()-1,7);continue;case 47:switch(zi()){case 42:case 47:ji(oa(Yi(Ri(),Bi()),t,n,c),c),(Hi(m||1)==5||Hi(zi()||1)==5)&&ki(w)&&Oi(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=ki(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=Ni(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Ei(w,/\f/g,``)),p>0&&(ki(w)-d||h===0)&&ji(p>32?sa(w+`;`,r,n,d-1,c):sa(Ei(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(ji(C=aa(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123){if(u===0)ia(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Di(w,3)===110)break;case 108:if(Di(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?ia(e,C,C,r&&ji(aa(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):ia(w,C,C,C,[``],S,0,s,S)}}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+ki(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Li()==125)continue}switch(w+=Ni(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(ki(w)-1)*_,_=1;break;case 64:zi()===45&&(w+=Gi(Ri())),f=zi(),u=d=ki(b=w+=Xi(Bi())),y++;break;case 45:m===45&&ki(w)==2&&(h=0)}}return a}function aa(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Ai(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Oi(e,f+1,f=Mi(g=o[h])),b=e;v<m;++v)(b=Ti(g>0?p[v]+` `+y:Ei(y,/&\f/g,p[v])))&&(c[_++]=b);return Fi(e,t,n,i===0?xi:s,c,l,u,d)}function oa(e,t,n,r){return Fi(e,t,n,bi,Ni(Ii()),Oi(e,2,-2),0,r)}function sa(e,t,n,r,i){return Fi(e,t,n,Si,Oi(e,0,r),Oi(e,r+1,-1),r,i)}function ca(){return(ca=t((()=>{wi(),Pi(),na()})))()}function la(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function ua(e,t,n){switch(e.type){case Ci:case Si:case bi:return e.return=e.return||e.value;case xi:e.value=Array.isArray(e.props)?e.props.join(`,`):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===`comm`&&(e.children=e.value)})}var r=la(Array.prototype.concat(e.children),ua);return ki(r)?e.return=e.value+`{`+r+`}`:``}function da(e,t,n,r){if(e.type===`@keyframes`||e.type===`@supports`||e.type===`rule`&&(!e.parent||e.parent.type===`@media`||e.parent.type===`rule`)){var i=fa.transform(ua(e,t,n));e.children=i?ra(i)[0].children:[],e.return=``}}var fa;function pa(){return(pa=t((()=>{fa=e(yi()),wi(),ca(),Pi(),Object.defineProperty(da,"name",{value:`stylisRTLPlugin`})})))()}var ma;function ha(){return(ha=t((()=>{ma={paths:{components:`src/components/prism`,blocks:`src/blocks`,themes:`src/theme`,utils:`src/lib/prism`,types:`src/types/prism`},registries:{default:`@omnitron-dev/prism-registry`,registries:{}},theme:{preset:`default`,mode:`light`,direction:`ltr`,cssVariables:{prefix:`prism`,colorSchemeSelector:`data-theme`,enabled:!0}},style:{framework:`mui`,cssVariables:!0,prefix:`prism`},features:{darkMode:!0,rtl:!1,i18n:!1,analytics:!1},typescript:!0}})))()}function ga(){return me(`(prefers-color-scheme: dark)`)}function _a(e){let t=ga();return e===`system`?t?`dark`:`light`:e}function va(){return(va=t((()=>{le()})))()}function ya(e){if(/^(#[\da-f]{3,8}$|rgba?\(|hsla?\()/i.test(e)&&!(/^rgba?\(/i.test(e)&&e.includes(`%`)))try{let t=ee(/^hsl/i.test(e)?w(e):e),n=t.split(` `);return n.length===3&&n.every(e=>e!==``&&Number.isFinite(Number(e)))?t:void 0}catch{return}}function ba(e){return ya(e)??`from ${e} r g b`}function xa(e,t){let n={...e};for(let[r,i]of Object.entries(t))if(Ca(i)&&Ca(n[r]))n[r]=xa(n[r],i);else if(typeof i==`string`&&!r.endsWith(`Channel`)&&!wa(t,`${r}Channel`)){let t=ya(i);(t!==void 0||wa(e,`${r}Channel`)||Da.has(r))&&(n[`${r}Channel`]=t??ba(i))}return n}function Sa(e,t,{nativeColor:n=!1,cssVarPrefix:r=`prism`}={}){if(!t)return e;let i=xa(e,t);for(let e of Ta){let a=t[e];if(!Ca(a)||typeof a.main!=`string`)continue;let o={...i[e]},s=ya(a.main)!==void 0;for(let e of Ea)wa(a,e)||(delete o[e],wa(a,`${e}Channel`)||delete o[`${e}Channel`]);if(!n&&!s&&[`light`,`dark`,`contrastText`].some(e=>typeof o[e]!=`string`||!o[e]))throw Error(`Prism: palette.${e}.main cannot be resolved in JavaScript. Enable overrides.cssVariables.nativeColor or supply light, dark and contrastText explicitly.`);let c=i.mode===`dark`,l=(e,t)=>`color-mix(in oklch, ${a.main}, ${e} ${t*100}%)`;o.lighter??=s&&!n?c?te(a.main,.75):ne(a.main,.9):c?l(`#000`,.75):l(`#fff`,.9),o.darker??=s&&!n?c?ne(a.main,.85):te(a.main,.7):c?l(`#fff`,.85):l(`#000`,.7),s&&!n&&(o.contrastText??=E(a.main,`#fff`)>=E(a.main,`#000`)?`#fff`:`#000`);for(let t of Ea)if(!wa(a,`${t}Channel`)){if(typeof o[t]==`string`)o[`${t}Channel`]=ba(o[t]);else if(n){let n=r?`${r}-`:``;o[`${t}Channel`]=`from var(--${n}palette-${e}-${t}) r g b`}}i[e]=o}return i}var Ca,wa,Ta,Ea,Da;function Oa(){return(Oa=t((()=>{re(),Ca=e=>!!e&&typeof e==`object`&&!Array.isArray(e),wa=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ta=[`primary`,`secondary`,`success`,`info`,`warning`,`error`],Ea=[`light`,`dark`,`lighter`,`darker`,`contrastText`],Da=new Set([`main`,...Ea,`primary`,`secondary`,`disabled`,`default`,`paper`,`neutral`,`divider`,`active`,`selected`,`hover`,`focus`,`disabledBackground`,`background`,`onBackground`,`black`,`white`])})))()}var N,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so;function co(){return(co=t((()=>{xn(),Qt(),N=a(),ka=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M5 6C5 4.58579 5 3.87868 5.43934 3.43934C5.87868 3 6.58579 3 8 3H12.5789C15.0206 3 17 5.01472 17 7.5C17 9.98528 15.0206 12 12.5789 12H5V6Z`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12.4286 12H13.6667C16.0599 12 18 14.0147 18 16.5C18 18.9853 16.0599 21 13.6667 21H8C6.58579 21 5.87868 21 5.43934 20.5607C5 20.1213 5 19.4142 5 18V12`})]}),Aa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M12 4H19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M8 20L16 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M5 20H12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),ja=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5.5 3V11.5C5.5 15.0899 8.41015 18 12 18C15.5899 18 18.5 15.0899 18.5 11.5V3`}),(0,N.jsx)(`path`,{d:`M3 21H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Ma=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M4 12H20`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M17.5 7.66667C17.5 5.08934 15.0376 3 12 3C8.96243 3 6.5 5.08934 6.5 7.66667C6.5 8.15279 6.55336 8.59783 6.6668 9M6 16.3333C6 18.9107 8.68629 21 12 21C15.3137 21 18 19.6667 18 16.3333C18 13.9404 16.9693 12.5782 14.9079 12`})]}),Na=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15`}),(0,N.jsx)(`path`,{d:`M14.5 4L9.5 20`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Pa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16 10L17.2265 11.0572C17.7422 11.5016 18 11.7239 18 12C18 12.2761 17.7422 12.4984 17.2265 12.9428L16 14`}),(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8 10L6.77346 11.0572C6.25782 11.5016 6 11.7239 6 12C6 12.2761 6.25782 12.4984 6.77346 12.9428L8 14`}),(0,N.jsx)(`path`,{d:`M13 9L11 15`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`})]}),Fa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M4 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M14 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M17 19H18.5M20 19H18.5M18.5 19V11L17 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M4 12L14 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ia=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M20.5 19H16.5V18.6907C16.5 18.2521 16.5 18.0327 16.5865 17.8385C16.673 17.6443 16.836 17.4976 17.1621 17.2041L19.7671 14.8596C20.2336 14.4397 20.5 13.8416 20.5 13.214V13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13V13.4`}),(0,N.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),La=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16.5 17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17C20.5 15.8954 19.6046 15 18.5 15C19.6046 15 20.5 14.1046 20.5 13C20.5 11.8954 19.6046 11 18.5 11C17.3954 11 16.5 11.8954 16.5 13`}),(0,N.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ra=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,d:`M16.5 11V15H20.5M20.5 15V19M20.5 15V11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),za=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,d:`M16.5 16.5V17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17V16.5C20.5 15.1193 19.3807 14 18 14H16.5V11H20.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ba=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13.5 5V19`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,d:`M16.5 17C16.5 18.1046 17.3954 19 18.5 19C19.6046 19 20.5 18.1046 20.5 17C20.5 15.8954 19.6046 15 18.5 15C17.3954 15 16.5 15.8954 16.5 17ZM16.5 17V13C16.5 11.8954 17.3954 11 18.5 11C19.6046 11 20.5 11.8954 20.5 13`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3.5 12L13.5 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Va=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 21.001H9`}),(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 3.00001V21.0008M12 3.00001C13.3874 3.00001 15.1695 3.03055 16.5884 3.17649C17.1885 3.2382 17.4886 3.26906 17.7541 3.37791C18.3066 3.60429 18.7518 4.10063 18.9194 4.67681C19 4.95382 19 5.26992 19 5.90215M12 3.00001C10.6126 3.00001 8.83047 3.03055 7.41161 3.17649C6.8115 3.2382 6.51144 3.26906 6.24586 3.37791C5.69344 3.60429 5.24816 4.10063 5.08057 4.67681C5 4.95382 5 5.26992 5 5.90215`})]}),Ha=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 9H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 21H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ua=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M8 9H16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M8 21H16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Wa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13 9H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M13 21H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ga=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M3 3H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 9H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 15H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 21H21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ka=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M11 5.5L21 5.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M5.4 16.8926C6.46667 17.607 7 17.9642 7 18.5C7 19.0358 6.46667 19.393 5.4 20.1074C4.33333 20.8218 3.8 21.1789 3.4 20.9111C3 20.6432 3 19.9288 3 18.5C3 17.0712 3 16.3568 3.4 16.0889C3.8 15.8211 4.33333 16.1782 5.4 16.8926Z`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M5.4 3.89263C6.46667 4.60702 7 4.96421 7 5.5C7 6.03579 6.46667 6.39298 5.4 7.10737C4.33333 7.82176 3.8 8.17895 3.4 7.91105C3 7.64316 3 6.92877 3 5.5C3 4.07123 3 3.35684 3.4 3.08895C3.8 2.82105 4.33333 3.17824 5.4 3.89263Z`}),(0,N.jsx)(`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M11 18.5L21 18.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),qa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M11 6L21 6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M11 18L21 18`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 15H4.5C4.77879 15 4.91819 15 5.03411 15.0231C5.51014 15.1177 5.88225 15.4899 5.97694 15.9659C6 16.0818 6 16.2212 6 16.5C6 16.7788 6 16.9182 5.97694 17.0341C5.88225 17.5101 5.51014 17.8823 5.03411 17.9769C4.91819 18 4.77879 18 4.5 18C4.22121 18 4.08181 18 3.96589 18.0231C3.48986 18.1177 3.11775 18.4899 3.02306 18.9659C3 19.0818 3 19.2212 3 19.5V20.4C3 20.6828 3 20.8243 3.08787 20.9121C3.17574 21 3.31716 21 3.6 21H6`}),(0,N.jsx)(`path`,{d:`M3 3H4.2C4.36569 3 4.5 3.13431 4.5 3.3V9M4.5 9H3M4.5 9H6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ja=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M11 6L21 6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M11 12L21 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M11 18L21 18`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4`}),(0,N.jsx)(`path`,{stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15`})]}),Ya=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M14 16C14 14.1144 14 13.1716 14.5858 12.5858C15.1716 12 16.1144 12 18 12C19.8856 12 20.8284 12 21.4142 12.5858C22 13.1716 22 14.1144 22 16C22 17.8856 22 18.8284 21.4142 19.4142C20.8284 20 19.8856 20 18 20C16.1144 20 15.1716 20 14.5858 19.4142C14 18.8284 14 17.8856 14 16Z`}),(0,N.jsx)(`path`,{fill:`none`,d:`M14 16V11.8626C14 8.19569 16.5157 5.08584 20 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2 16C2 14.1144 2 13.1716 2.58579 12.5858C3.17157 12 4.11438 12 6 12C7.88562 12 8.82843 12 9.41421 12.5858C10 13.1716 10 14.1144 10 16C10 17.8856 10 18.8284 9.41421 19.4142C8.82843 20 7.88562 20 6 20C4.11438 20 3.17157 20 2.58579 19.4142C2 18.8284 2 17.8856 2 16Z`}),(0,N.jsx)(`path`,{fill:`none`,d:`M2 16V11.8626C2 8.19569 4.51571 5.08584 8 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Xa=e=>(0,N.jsx)(O,{...e,children:(0,N.jsx)(`path`,{d:`M2.5 12L21.5002 12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Za=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088Z`}),(0,N.jsx)(`path`,{d:`M2.5 9L21.5 9`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,N.jsx)(`path`,{d:`M2.5 13L21.5 13`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,N.jsx)(`path`,{d:`M2.5 17L21.5 17`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,N.jsx)(`path`,{d:`M12 21.5L12 9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]}),Qa=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M9.5 14.5L14.5 9.49995`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M16.8463 14.6095L19.4558 12C21.5147 9.94108 21.5147 6.60298 19.4558 4.54411C17.397 2.48524 14.0589 2.48524 12 4.54411L9.39045 7.15366M14.6095 16.8463L12 19.4558C9.94113 21.5147 6.60303 21.5147 4.54416 19.4558C2.48528 17.3969 2.48528 14.0588 4.54416 12L7.1537 9.39041`})]}),$a=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,d:`M16.8463 14.6095L19.4558 12C21.5147 9.94113 21.5147 6.60303 19.4558 4.54416C17.397 2.48528 14.0589 2.48528 12 4.54416L9.39045 7.1537M14.6095 16.8463L12 19.4558C9.94113 21.5147 6.60303 21.5147 4.54416 19.4558C2.48528 17.397 2.48528 14.0589 4.54416 12L7.1537 9.39045`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,N.jsx)(`path`,{d:`M22 17H19.9211M17 22L17 19.9211`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M2 7H4.07889M7 2L7 4.07889`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),eo=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`circle`,{fill:`none`,cx:`7.5`,cy:`7.5`,r:`1.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,d:`M5 21C9.37246 15.775 14.2741 8.88406 21.4975 13.5424`})]}),to=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{d:`M11 20.001H5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{d:`M3 3L21 21`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M19 7C19 6.36778 19 5.95381 18.9194 5.6768C18.7518 5.10062 18.3066 4.60428 17.7541 4.37789C17.4886 4.26905 17.1885 4.23819 16.5884 4.17648C15.1695 4.03054 13.3874 4 12 4H8`}),(0,N.jsx)(`path`,{d:`M12 4L11.2 7.20003M8 20.0008L10.4001 10.4001`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),no=e=>(0,N.jsx)(O,{...e,children:(0,N.jsx)(`path`,{fill:`none`,d:`M3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C8.79275 3 5.97733 4.67765 4.38341 7.20327M3.29339 3.00076L3.46556 5.05452C3.58958 6.53384 3.65159 7.27349 4.13359 7.68914C4.61559 8.10479 5.32673 8.03185 6.74899 7.88595L8.79339 7.67625`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),ro=e=>(0,N.jsx)(O,{...e,children:(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C15.2073 3 18.0227 4.67765 19.6166 7.20327M20.7066 3.00076L20.5344 5.05452C20.4104 6.53384 20.3484 7.27349 19.8664 7.68914C19.3844 8.10479 18.6733 8.03185 17.251 7.88595L15.2066 7.67625`})}),io=e=>(0,N.jsxs)(O,{...e,children:[(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M13 6H8.5C6.01472 6 4 8.01472 4 10.5C4 12.9853 6.01472 15 8.5 15H20`}),(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M17 12C17 12 20 14.2095 20 15C20 15.7906 17 18 17 18`})]}),ao=e=>(0,N.jsx)(O,{...e,children:(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.5 21C16.8956 21 17.5933 21 18.1611 20.8278C19.4395 20.44 20.44 19.4395 20.8278 18.1611C21 17.5933 21 16.8956 21 15.5M21 8.5C21 7.10444 21 6.40666 20.8278 5.83886C20.44 4.56046 19.4395 3.56004 18.1611 3.17224C17.5933 3 16.8956 3 15.5 3M8.5 21C7.10444 21 6.40666 21 5.83886 20.8278C4.56046 20.44 3.56004 19.4395 3.17224 18.1611C3 17.5933 3 16.8956 3 15.5M3 8.5C3 7.10444 3 6.40666 3.17224 5.83886C3.56004 4.56046 4.56046 3.56004 5.83886 3.17224C6.40666 3 7.10444 3 8.5 3`})}),oo=e=>(0,N.jsx)(O,{...e,children:(0,N.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.5 9.5L21 4M15.5 9.5V5M15.5 9.5H20M8.5 14.5L3 20M8.5 14.5V19M8.5 14.5H4`})}),k(`bold`,ka),k(`italic`,Aa),k(`underline`,ja),k(`strike`,Ma),k(`inlineCode`,Na),k(`codeBlock`,Pa),k(`h1`,Fa),k(`h2`,Ia),k(`h3`,La),k(`h4`,Ra),k(`h5`,za),k(`h6`,Ba),k(`paragraph`,Va),k(`alignLeft`,Ha),k(`alignCenter`,Ua),k(`alignRight`,Wa),k(`alignJustify`,Ga),k(`bulletList`,Ka),k(`orderedList`,qa),k(`checkList`,Ja),k(`quote`,Ya),k(`horizontalRule`,Xa),so=k(`table`,Za),k(`link`,Qa),k(`unlink`,$a),k(`image`,eo),k(`clearMarks`,to),k(`undo`,no),k(`redo`,ro),k(`hardBreak`,io),k(`fullscreen`,ao),k(`fullscreenExit`,oo)})))()}function lo(e){return(0,fo.forwardRef)(function({color:t,...n},r){let i=t===`action`||t===`disabled`||t===`error`||t===`info`||t===`inherit`||t===`primary`||t===`secondary`||t===`success`||t===`warning`;return(0,po.jsx)(e,{...n,ref:r,color:i?t:`inherit`,htmlColor:i?void 0:t})})}function uo(){return{MuiSelect:{defaultProps:{IconComponent:Ln}},MuiNativeSelect:{defaultProps:{IconComponent:Ln}},MuiAutocomplete:{defaultProps:{popupIcon:(0,po.jsx)(Ln,{}),clearIcon:(0,po.jsx)(zn,{fontSize:`small`})}},MuiRadio:{defaultProps:{icon:(0,po.jsx)(Vn,{}),checkedIcon:(0,po.jsx)(vn,{})}},MuiChip:{defaultProps:{deleteIcon:(0,po.jsx)(zn,{})}},MuiAlert:{defaultProps:{iconMapping:{success:(0,po.jsx)(Nn,{}),info:(0,po.jsx)(Tn,{}),warning:(0,po.jsx)(_n,{}),error:(0,po.jsx)(Fn,{})},slots:{closeIcon:zn}}},MuiPaginationItem:{defaultProps:{slots:{previous:On,next:Pn,first:An,last:Bn}}},MuiTablePagination:{defaultProps:{slots:{actions:{firstButtonIcon:An,previousButtonIcon:On,nextButtonIcon:Pn,lastButtonIcon:Bn}}}},MuiTableSortLabel:{defaultProps:{IconComponent:In}},MuiBreadcrumbs:{defaultProps:{separator:(0,po.jsx)(Pn,{fontSize:`inherit`})}},MuiRating:{defaultProps:{icon:(0,po.jsx)(Sn,{fontSize:`inherit`}),emptyIcon:(0,po.jsx)(yn,{fontSize:`inherit`})}},MuiTabs:{defaultProps:{slots:{startScrollButtonIcon:On,endScrollButtonIcon:Pn}}},MuiDataGrid:{defaultProps:{slots:{columnMenuIcon:mo.MoreIcon,columnSortedAscendingIcon:mo.ArrowUpIcon,columnSortedDescendingIcon:mo.ArrowDownIcon,columnFilteredIcon:mo.FilterIcon,columnSelectorIcon:mo.TableIcon,exportIcon:mo.DownloadIcon,openFilterButtonIcon:mo.FilterIcon,quickFilterIcon:mo.SearchIcon,quickFilterClearIcon:mo.CloseIcon,detailPanelExpandIcon:mo.AddIcon,detailPanelCollapseIcon:mo.RemoveIcon}}}}}var fo,po,mo;function ho(){return(ho=t((()=>{fo=r(),co(),Mn(),po=a(),mo={MoreIcon:lo(Dn),ArrowUpIcon:lo(En),ArrowDownIcon:lo(In),FilterIcon:lo(jn),TableIcon:lo(so),DownloadIcon:lo(kn),CloseIcon:lo(zn),SearchIcon:lo(bn),AddIcon:lo(Rn),RemoveIcon:lo(wn)}})))()}function go(e){let t=e.replace(`#`,``),n=t.length===3?t.split(``).map(e=>e+e).join(``):t,r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]}function _o(e){let[t,n,r]=go(e);return`${t} ${n} ${r}`}function vo(e,t,n){let r=e=>Math.round(e).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`.toUpperCase()}function yo(e){let[t,n,r]=go(e),i=t/255,a=n/255,o=r/255,s=Math.max(i,a,o),c=Math.min(i,a,o),l=0,u=0,d=(s+c)/2,f=s-c;if(f!==0){switch(u=d>.5?f/(2-s-c):f/(s+c),s){case i:l=(a-o)/f+(a<o?6:0);break;case a:l=(o-i)/f+2;break;default:l=(i-a)/f+4}l/=6}return{h:l*360,s:u*100,l:d*100}}function bo(e,t,n){let r=t/100,i=n/100,a=(1-Math.abs(2*i-1))*r,o=a*(1-Math.abs(e/60%2-1)),s=i-a/2,c,l,u;return e>=0&&e<60?[c,l,u]=[a,o,0]:e>=60&&e<120?[c,l,u]=[o,a,0]:e>=120&&e<180?[c,l,u]=[0,a,o]:e>=180&&e<240?[c,l,u]=[0,o,a]:e>=240&&e<300?[c,l,u]=[o,0,a]:[c,l,u]=[a,0,o],vo(Math.round((c+s)*255),Math.round((l+s)*255),Math.round((u+s)*255))}function xo(e,t){return`rgba(${e} / ${t})`}function So(e){return{...e,lighterChannel:_o(e.lighter),lightChannel:_o(e.light),mainChannel:_o(e.main),darkChannel:_o(e.dark),darkerChannel:_o(e.darker),contrastTextChannel:_o(e.contrastText)}}function Co(e){let t=[50,100,200,300,400,500,600,700,800,900,950],n={};for(let r of t){let t=`${r}Channel`;n[t]=_o(e[r])}return{...e,...n}}function wo(e,t,n){return Math.max(t,Math.min(n,e))}function To(e){let t=yo(e),n=[{key:50,lDelta:40},{key:100,lDelta:32},{key:200,lDelta:24},{key:300,lDelta:16},{key:400,lDelta:8},{key:500,lDelta:0},{key:600,lDelta:-8},{key:700,lDelta:-16},{key:800,lDelta:-24},{key:900,lDelta:-32},{key:950,lDelta:-40}],r={};for(let{key:e,lDelta:i}of n){let n=wo(t.l+i,5,95);r[e]=bo(t.h,t.s,n)}return r}function Eo(e){let[t,n,r]=go(e).map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function Do(e,t){let n=Eo(e),r=Eo(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function Oo(e,t=`#FFFFFF`,n=`#000000`){return Do(e,t)>=Do(e,n)?t:n}function ko(e,t){let n=e=>e.includes(`var(--`),r=e=>e.trim().endsWith(`%`),i={invalid:`[varAlpha]: Invalid opacity "${e}" for "${t}".`,range:`Must be a number between 0 and 1 (e.g., 0.48).`,format:`Must be a percentage (e.g., "48%") or CSS variable (e.g., "var(--opacity)").`};if(typeof e==`string`){if(r(e))return e;if(n(e))return`calc(${e} * 100%)`;let t=parseFloat(e.trim());if(!isNaN(t)&&t>=0&&t<=1)return`${Number((t*100).toFixed(2))}%`;throw Error(`${i.invalid} ${i.format}`)}if(typeof e==`number`){if(e>=0&&e<=1)return`${Number((e*100).toFixed(2))}%`;throw Error(`${i.invalid} ${i.range}`)}throw Error(`${i.invalid}`)}function P(e,t=1){if(!e?.trim())throw Error(`[varAlpha]: Color is undefined or empty!`);if(e.startsWith(`#`)||e.startsWith(`rgb(`)||e.startsWith(`rgba(`)||!e.includes(`var`)&&e.includes(`Channel`))throw Error([`[varAlpha]: Unsupported color format "${e}"`,`✅ Supported formats:`,` - RGB channels: "0 184 217"`,` - CSS variables: "var(--palette-primary-mainChannel)"`,` - currentColor`,`❌ Unsupported formats:`,` - Hex: "#00B8D9"`,` - RGB: "rgb(0, 184, 217)"`,` - RGBA: "rgba(0, 184, 217, 1)"`].join(`
3
3
  `));let n=ko(t,e);return e.toLowerCase()===`currentcolor`?`color-mix(in srgb, currentColor ${n}, transparent)`:`rgba(${e} / ${n})`}function Ao(){return(Ao=t((()=>{})))()}var jo,Mo,F,No,Po,Fo,Io,Lo;function Ro(){return(Ro=t((()=>{jo={50:`#F7FAFC`,100:`#EBF2F5`,200:`#DBE6EB`,300:`#C3D3DB`,400:`#9CAEB8`,500:`#77878F`,600:`#4D595E`,700:`#262D30`,800:`#1B2124`,900:`#111417`,950:`#06080A`},Mo={50:`#EAF3FD`,100:`#C6DDFB`,200:`#A1C7F8`,300:`#7DB1F5`,400:`#589BF3`,500:`#3385F0`,600:`#2B71CC`,700:`#245DA8`,800:`#1C4984`,900:`#143560`,950:`#0A1B30`},F={50:`#E6F5F0`,100:`#BBE4D5`,200:`#8ED3BA`,300:`#62C29F`,400:`#35B084`,500:`#099F69`,600:`#088759`,700:`#066F49`,800:`#05573A`,900:`#04402A`,950:`#022015`},No={50:`#F2E4FE`,100:`#E6CAFE`,200:`#D6A8FD`,300:`#C686FC`,400:`#B663FB`,500:`#A641FA`,600:`#8D37D5`,700:`#742DAF`,800:`#5B2489`,900:`#421A64`,950:`#210D32`},Po={50:`#F9E2E6`,100:`#F2C1CA`,200:`#E99AA8`,300:`#E17286`,400:`#D84A63`,500:`#D02241`,600:`#B11D37`,700:`#91182D`,800:`#721324`,900:`#530E1A`,950:`#3A0A12`},Fo={50:`#FEEFE1`,100:`#FCDFC4`,200:`#FBCB9D`,300:`#F9B677`,400:`#F8A250`,500:`#F68D2A`,600:`#D17824`,700:`#AC631D`,800:`#874E17`,900:`#623811`,950:`#372412`},Io={50:`#E0F3FA`,100:`#BCE6F4`,200:`#90D6EC`,300:`#64C6E5`,400:`#39B6DD`,500:`#0DA6D6`,600:`#0B8DB6`,700:`#097496`,800:`#075B76`,900:`#054256`,950:`#03212B`},Lo={white:`#FFFFFF`,black:`#000000`}})))()}function zo(e,t=`light`){let n=t===`dark`?e[400]:e[500],r=Oo(n,`#FFFFFF`,`#212121`);return So(t===`dark`?{lighter:e[950],light:e[700],main:n,dark:e[300],darker:e[100],contrastText:r}:{lighter:e[50],light:e[400],main:n,dark:e[600],darker:e[900],contrastText:r})}function Bo(e,t=`light`){return t===`dark`?{default:e[950],paper:e[900],neutral:e[800],elevation1:e[800],elevation2:e[700],elevation3:e[600],elevation4:e[500],menu:e[900],menuElevation1:e[800],menuElevation2:e[700]}:{default:`#FFFFFF`,paper:`#FFFFFF`,neutral:e[50],elevation1:e[50],elevation2:e[100],elevation3:e[200],elevation4:e[300],menu:`#FFFFFF`,menuElevation1:e[50],menuElevation2:e[100]}}function Vo(e,t=`light`){let n=t===`dark`?{primary:e[50],secondary:e[300],disabled:e[500]}:{primary:e[900],secondary:e[600],disabled:e[400]};return{...n,primaryChannel:_o(n.primary),secondaryChannel:_o(n.secondary),disabledChannel:_o(n.disabled)}}function Ho(e,t=`light`){return t===`dark`?{active:e[400],hover:e[700],selected:e[700],disabled:e[600],disabledBackground:e[800],focus:e[600]}:{active:e[500],hover:e[100],selected:e[100],disabled:e[400],disabledBackground:e[200],focus:e[300]}}function Uo(e,t,n=`light`){let r=_o(t);return{listItemHover:xo(e,n===`dark`?.08:.5),buttonHover:xo(e,n===`dark`?.12:.7),textFieldHover:xo(e,n===`dark`?.12:.7),text:{secondary:xo(r,.76),disabled:xo(r,.4)},overlay:xo(e,n===`dark`?.16:.7)}}function Wo(e){return{chGrey:Co(e.grey),chRed:Co(e.red),chBlue:Co(e.blue),chGreen:Co(e.green),chOrange:Co(e.orange),chLightBlue:Co(e.lightBlue),chPurple:Co(e.purple)}}function Go(e){let{primary:t,secondary:n,info:r,success:i,warning:a,error:o,grey:s,mode:c,backgroundDefault:l,paperColor:u}=e,d=Co(s),f=Bo(s,c),p=Vo(s,c),m=Ho(s,c);l&&(f.default=l),u&&(f.paper=u,f.menu=u);let h={black:Lo.black,white:Lo.white,blackChannel:_o(Lo.black),whiteChannel:_o(Lo.white)},g=Uo(h.whiteChannel,p.primary,c),_=Wo({grey:s,red:Po,blue:Mo,green:F,orange:Fo,lightBlue:Io,purple:No}),v=c===`dark`?s[700]:s[300],y=xo(_o(s[c===`dark`?700:300]),.6),b=xo(_o(s[700]),0);return{mode:c,common:h,grey:d,primary:zo(t,c),secondary:zo(n,c),info:zo(r,c),success:zo(i,c),warning:zo(a,c),error:zo(o,c),neutral:zo(s,c),background:f,text:p,action:m,divider:v,dividerLight:y,menuDivider:b,vibrant:g,chart:_}}var Ko,qo;function Jo(){return(Jo=t((()=>{Ao(),Ro(),Ko=Go({primary:Mo,secondary:No,info:Io,success:F,warning:Fo,error:Po,grey:jo,mode:`light`}),qo=Go({primary:Mo,secondary:No,info:Io,success:F,warning:Fo,error:Po,grey:jo,mode:`dark`})})))()}function Yo(e,t){return e?{"&:hover":{...t,...typeof e==`object`?e:{}}}:{}}function Xo(e,t,n){if(!t)return{};let r=e.vars?.palette||e.palette,i=r.grey;if(t==="default"){let e={color:i[800],backgroundColor:i[300]},t=Yo(n?.hover,{backgroundColor:i[400]});return{...e,...t}}if(t===`inherit`){let e={color:r.common.white,backgroundColor:i[800]},t=Yo(n?.hover,{backgroundColor:i[700]});return{...e,...t}}if(t===`white`||t===`black`){let e=t===`white`?`black`:`white`,i={color:r.common[e],backgroundColor:r.common[t]},a=Yo(n?.hover,{opacity:.8});return{...i,...a}}let a=r[t],o={color:a.contrastText,backgroundColor:a.main},s=Yo(n?.hover,{backgroundColor:a.dark});return{...o,...s}}function Zo(e,t,n){if(!t)return{};let r=e.vars?.palette||e.palette,i=r.grey;if(t==="default")return{...Xo(e,`default`,n),boxShadow:`none`};if(t===`inherit`){let e=i[`500Channel`]||`145, 158, 171`,t={boxShadow:`none`,backgroundColor:P(e,.16)},r=Yo(n?.hover,{backgroundColor:P(e,.32)});return{...t,...r}}if(t===`white`||t===`black`){let e={boxShadow:`none`,color:r.common[t],backgroundColor:P(`currentColor`,.08)},i=Yo(n?.hover,{backgroundColor:P(`currentColor`,.16)});return{...e,...i}}let a=r[t],o=a.mainChannel||r.primary.mainChannel||`51, 133, 240`,s={boxShadow:`none`,color:a.dark,backgroundColor:P(o,.16)},c=Yo(n?.hover,{backgroundColor:P(o,.32)});return{...s,...c}}function Qo(e){let{images:t,sizes:n,positions:r,colors:i,direction:a=`to bottom`}=e;return i&&i.length>0?{background:`linear-gradient(${a}, ${i.join(`, `)})`}:t&&t.length>0?{backgroundImage:t.join(`, `),backgroundSize:n?.join(`, `)||`cover`,backgroundPosition:r?.join(`, `)||`center`,backgroundRepeat:`no-repeat`}:{}}function $o(e){let{blur:t=20,color:n=`rgba(255, 255, 255, 0.8)`}=e;return{backdropFilter:`blur(${t}px)`,WebkitBackdropFilter:`blur(${t}px)`,backgroundColor:n}}function es(e,t){let{blur:n=20,color:r,dropdown:i}=t??{},a=e.vars?.palette||e.palette,o={backdropFilter:`blur(${n}px)`,WebkitBackdropFilter:`blur(${n}px)`,backgroundColor:r??P(`255, 255, 255`,.9)};if(i){let t=e.customShadows,n=a.grey[`500Channel`]||`145, 158, 171`;return{...o,padding:e.spacing(.5),boxShadow:t?.dropdown||`0 0 2px 0 rgba(${n}, 0.24), -20px 20px 40px -4px rgba(${n}, 0.24)`,borderRadius:`${Number(e.shape.borderRadius)*1.25}px`}}return o}function ts(e){let t=e.vars?.palette||e.palette;return{...e.typography.body2,padding:e.spacing(.75,1),borderRadius:Number(e.shape.borderRadius)*.75,"&:not(:last-child)":{marginBottom:4},"&.Mui-selected":{fontWeight:e.typography.fontWeightMedium,backgroundColor:t.action.selected,"&:hover":{backgroundColor:t.action.hover}}}}function ns(e){let{lines:t,lineHeight:n=1.5}=e;return{overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:t,textOverflow:`ellipsis`,...n&&{lineHeight:n}}}function rs(e,...t){return{background:`linear-gradient(${e}, ${t.join(`, `)})`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`,textFillColor:`transparent`,display:`inline-block`}}function is(e){let{color:t=`linear-gradient(135deg, #FF5630, #00AB55)`,borderWidth:n=2,borderRadius:r=0}=e;return{position:`relative`,border:`none`,borderRadius:r,"&::before":{content:`""`,position:`absolute`,inset:0,borderRadius:`inherit`,padding:n,background:t,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,WebkitMaskComposite:`xor`,maskComposite:`exclude`,pointerEvents:`none`}}}function as(e,{autoHide:t=!0}={}){let n=(e.vars?.palette||e.palette).grey[`500Channel`]||`145, 158, 171`;return{scrollbarWidth:`thin`,scrollbarColor:`${P(n,.4)} transparent`,"&::-webkit-scrollbar":{width:6,height:6},"&::-webkit-scrollbar-track":{backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:P(n,.4),borderRadius:3},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:P(n,.65)},"&::-webkit-scrollbar-corner":{backgroundColor:`transparent`},"@media (hover: hover) and (pointer: fine) and (forced-colors: none)":{scrollbarColor:t?`transparent transparent`:`${P(n,.4)} transparent`,"&::-webkit-scrollbar-thumb":{backgroundColor:t?`transparent`:P(n,.4)},"&:hover, &:focus-within":{scrollbarColor:`${P(n,.4)} transparent`,"&::-webkit-scrollbar-thumb":{backgroundColor:P(n,.4)},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:P(n,.65)}}},"@media (forced-colors: active)":{scrollbarColor:`auto`,scrollbarWidth:`auto`,"&::-webkit-scrollbar-thumb":{backgroundColor:`CanvasText`}}}}var os;function ss(){return(ss=t((()=>{Ao(),os={toolbar:{minHeight:56,"@media (min-width:0px)":{"@media (orientation: landscape)":{minHeight:48}},"@media (min-width:600px)":{minHeight:64}},hideScrollX:{msOverflowStyle:`none`,scrollbarWidth:`none`,overflowX:`auto`,"&::-webkit-scrollbar":{display:`none`}},hideScrollY:{msOverflowStyle:`none`,scrollbarWidth:`none`,overflowY:`auto`,"&::-webkit-scrollbar":{display:`none`}},bgBlur:$o,bgGradient:Qo,maxLine:ns,softStyles:Zo,filledStyles:Xo,paperStyles:es,menuItemStyles:ts,varAlpha:P,textGradient:rs,borderGradient:is,scrollbarStyles:as}})))()}function I(e,t=`500`){let n=`${t}Channel`,r=e.vars?.palette.grey,i=e.palette.grey;return r?.[n]??i[n]??ba(i[t])}function L(e,t){let n=t.split(`.`),r=e.vars?.palette??void 0,i=e.palette,a=e=>n.reduce((e,t)=>e&&typeof e==`object`?e[t]:void 0,e),o=a(r);if(typeof o==`string`)return o;let s=a(i);return typeof s==`string`?s:``}function cs(e,t){let n=e.vars?.palette[t],r=e.palette[t];return n?.mainChannel??r.mainChannel??ba(r.main)}function ls(e){switch(e){case`compact`:return .75;case`comfortable`:return 1.25;default:return 1}}function us(){return(us=t((()=>{Oa()})))()}function ds(e){let{borderRadius:t,density:n}=e,r=ls(n),i=[{props:{size:`xLarge`},style:{minHeight:56,fontSize:`15px`,padding:`${10*r}px ${22*r}px`,lineHeight:1.467}}];return{defaultProps:{disableElevation:!0},styleOverrides:{root:{textTransform:`none`,fontSize:`14px`,fontWeight:600,borderRadius:t,padding:`${8*r}px ${16*r}px`,lineHeight:1.429,variants:[...hs,...gs,...ys,...bs,...i,...xs,{props:{variant:`outlined`,size:`large`},style:{paddingTop:9*r,paddingBottom:9*r}},{props:{variant:`outlined`,size:`medium`},style:{paddingTop:7*r,paddingBottom:7*r}},{props:{variant:`outlined`,size:`small`},style:{paddingTop:5*r,paddingBottom:5*r}}]},sizeLarge:{fontSize:`16px`,padding:`${10*r}px ${22*r}px`,lineHeight:1.375},sizeSmall:{padding:`${6*r}px ${10*r}px`,fontSize:`13px`,lineHeight:1.286},startIcon:{marginRight:4,[`&.${Ee.startIcon} > :not(style)`]:{fontSize:16}},endIcon:{marginLeft:4,[`&.${Ee.endIcon} > :not(style)`]:{fontSize:16}}}}}function fs(){return{defaultProps:{disableRipple:!1}}}function ps(e){return{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:e.borderRadius}}}}var ms,hs,gs,_s,vs,ys,bs,xs;function Ss(){return(Ss=t((()=>{Ae(),us(),ms=[`primary`,`secondary`,`info`,`success`,`warning`,`error`],hs=[...ms.map(e=>({props:{variant:`soft`,color:e},style:({theme:t})=>({backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.16)`,color:t.vars?.palette[e]?.dark||t.palette[e].dark,boxShadow:`none`,"&:hover":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.32)`,boxShadow:`none`},"&:active":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.4)`}})})),{props:{variant:`soft`,color:`neutral`},style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary,boxShadow:`none`,"&:hover":{backgroundColor:e.vars?.palette.background.elevation3||e.palette.grey[200],boxShadow:`none`}})},{props:{variant:`soft`,color:`inherit`},style:({theme:e})=>({backgroundColor:e.vars?.palette.action.selected||e.palette.action.selected,color:e.vars?.palette.text.primary||e.palette.text.primary,boxShadow:`none`,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover,boxShadow:`none`}})}],gs=[...ms.map(e=>({props:{variant:`dashed`,color:e},style:({theme:t})=>({border:`1px dashed ${t.vars?.palette[e]?.main||t.palette[e].main}`,backgroundColor:`transparent`,color:t.vars?.palette[e]?.main||t.palette[e].main,"&:hover":{backgroundColor:`rgba(var(--prism-${e}-main-channel, 51 133 240) / 0.08)`,borderColor:t.vars?.palette[e]?.dark||t.palette[e].dark}})})),{props:{variant:`dashed`,color:`inherit`},style:({theme:e})=>({border:`1px dashed ${e.vars?.palette.grey?.[500]||e.palette.grey[500]}`,backgroundColor:`transparent`,color:e.vars?.palette.text.primary||e.palette.text.primary,"&:hover":{backgroundColor:e.vars?.palette.action.hover||e.palette.action.hover,borderColor:e.vars?.palette.text.primary||e.palette.text.primary}})}],_s=[`circle`,`square`],vs={small:30,medium:36,large:42,xLarge:52},ys=_s.flatMap(e=>Object.keys(vs).map(t=>({props:{shape:e,size:t},style:{height:vs[t],minWidth:vs[t],padding:0,borderRadius:e===`circle`?`50%`:void 0}}))),bs=[{props:{variant:`outlined`,color:`neutral`},style:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,color:e.vars?.palette.text.primary||e.palette.text.primary,"&:hover":{backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],borderColor:e.vars?.palette.text.secondary||e.palette.text.secondary}})}],xs=[{props:{variant:`soft`},style:({theme:e})=>({[`&.${Ee.disabled}`]:{backgroundColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}})},{props:{variant:`dashed`},style:({theme:e})=>({[`&.${Ee.disabled}`]:{borderStyle:`dashed`}})}]})))()}function Cs(e){let{borderRadius:t,density:n}=e,r=ls(n);return{styleOverrides:{root:{borderRadius:t,fontWeight:500,variants:[...Ts,...Es,...Ds,...Os,...ks,...As]},sizeSmall:{height:24*r},sizeMedium:{height:32*r},label:{fontWeight:500,"&.MuiChip-labelSmall":{fontSize:`0.75rem`,paddingLeft:8,paddingRight:8},"&.MuiChip-labelMedium":{fontSize:`0.8125rem`,paddingLeft:12,paddingRight:12}},icon:{fontSize:18,color:`currentColor`},deleteIcon:{fontSize:18,opacity:.48,color:`currentColor`,"&:hover":{opacity:.8,color:`currentColor`}}}}}var ws,Ts,Es,Ds,Os,ks,As;function js(){return(js=t((()=>{Ie(),us(),Gn(),ws=[`primary`,`secondary`,`info`,`success`,`warning`,`error`],Ts=[...ws.map(e=>({props:t=>t.variant===`soft`&&t.color===e,style:({theme:t})=>Wn(t,e)})),{props:e=>e.variant===`soft`&&e.color===`neutral`,style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary})},{props:e=>e.variant===`soft`&&!e.color,style:({theme:e})=>({backgroundColor:e.vars?.palette.background.elevation2||e.palette.grey[100],color:e.vars?.palette.text.primary||e.palette.text.primary})}],Es=[...ws.map(e=>({props:t=>t.variant===`dashed`&&t.color===e,style:({theme:t})=>({border:`1px dashed ${t.vars?.palette[e]?.main||t.palette[e].main}`,backgroundColor:`transparent`,color:t.vars?.palette[e]?.main||t.palette[e].main})})),{props:e=>e.variant===`dashed`&&e.color===`neutral`,style:({theme:e})=>({border:`1px dashed ${e.vars?.palette.divider||e.palette.divider}`,backgroundColor:`transparent`,color:e.vars?.palette.text.primary||e.palette.text.primary})}],Ds=[{props:e=>e.variant===`outlined`&&e.color===`neutral`,style:({theme:e})=>({borderColor:e.vars?.palette.divider||e.palette.divider,color:e.vars?.palette.text.primary||e.palette.text.primary})}],Os=[{props:e=>e.variant===`filled`&&e.color===`neutral`,style:({theme:e})=>({backgroundColor:e.vars?.palette.grey[300]||e.palette.grey[300],color:e.vars?.palette.text.primary||e.palette.text.primary})}],ks=[{props:{},style:({theme:e})=>({[`&.${ye.disabled}`]:{opacity:1,color:e.vars?.palette.action.disabled||e.palette.action.disabled,[`&:not(.${ye.outlined})`]:{backgroundColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground},[`&.${ye.outlined}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}})}],As=[{props:{size:`xSmall`},style:{height:20,fontSize:`0.6875rem`,padding:`0 6px`}}]})))()}function Ms(e,t){let{fontSize:n,lineHeight:r}=Vs,i={fontSize:e.typography.pxToRem(n.base),height:`${r}px`,lineHeight:`${r}px`},a={fontSize:e.typography.pxToRem(n.responsive),height:`${r}px`,lineHeight:`${r}px`};return{...Object.fromEntries(t.map(e=>[e,i[e]])),[e.breakpoints.down(`sm`)]:Object.fromEntries(t.map(e=>[e,a[e]]))}}function Ns(e){return e.vars?.palette.error?.mainChannel??`208 34 65`}function Ps(e){return{styleOverrides:{root:({theme:e})=>({...Ws.root(e),variants:Gs.root}),input:({theme:e})=>({...Ws.input(e),variants:[...Gs.input,...Us]})}}}function Fs(e){return{styleOverrides:{root:({theme:e})=>Ks.root(e)}}}function Is(e){let{borderRadius:t}=e;return{styleOverrides:{root:({theme:e})=>({...qs.root(e,t),variants:Js.root}),input:()=>({variants:[...Js.input,...Us]}),notchedOutline:({theme:e})=>qs.notchedOutline(e)}}}function Ls(e){let{borderRadius:t}=e;return{defaultProps:{disableUnderline:!0},styleOverrides:{root:({theme:e})=>({...Ys.root(e,t),variants:Xs.root}),input:()=>({variants:[...Xs.input,...Us]})}}}function Rs(e){return{defaultProps:{variant:`outlined`,size:e.density===`compact`?`small`:`medium`}}}function zs(e){return{styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),lineHeight:1.5,variants:[{props:e=>!e.shrink,style:{...Ms(e,[`fontSize`,`lineHeight`]),color:e.vars?.palette.text.disabled||e.palette.text.disabled}},{props:e=>!!e.shrink,style:{fontWeight:600,[`&.${mt.focused}:not(.${mt.error})`]:{color:`inherit`}}}]})}}}function Bs(e){return{defaultProps:{component:`div`},styleOverrides:{root:({theme:e})=>({display:`flex`,alignItems:`center`,gap:e.spacing(.5),marginTop:e.spacing(.75),fontSize:e.typography.pxToRem(12),lineHeight:1.5,"& > svg":{width:16,height:16}})}}}var Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs;function Zs(){return(Zs=t((()=>{ss(),us(),Kt(),Tt(),Wt(),Nt(),pt(),Vs={fontSize:{base:15,responsive:16},lineHeight:24},Hs={base:{small:{paddingTop:0,paddingBottom:4},medium:{paddingTop:4,paddingBottom:4}},outlined:{small:{paddingTop:8,paddingBottom:8},medium:{paddingTop:16,paddingBottom:16}},filled:{small:{paddingTop:20},medium:{paddingTop:24},smallHidden:{paddingTop:8,paddingBottom:8},mediumHidden:{paddingTop:16,paddingBottom:16}}},Us=[{props:e=>!!e.multiline,style:{padding:0}}],Ws={root:e=>({"--disabled-color":e.vars?.palette.action.disabled||e.palette.action.disabled,...Ms(e,[`lineHeight`]),[`&.${vt.disabled}`]:{[`& .${ht.root} *`]:{color:`var(--disabled-color)`}}}),input:e=>({...Ms(e,[`fontSize`,`height`,`lineHeight`]),"&:focus":{borderRadius:`inherit`},"&::placeholder":{color:e.vars?.palette.text.disabled||e.palette.text.disabled,opacity:1}})},Gs={root:[{props:e=>!!e.multiline,style:{...Hs.base.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...Hs.base.small}}],input:[{props:{},style:{...Hs.base.medium}},{props:e=>e.size===`small`,style:{...Hs.base.small}}]},Ks={root:e=>({"&::before":{borderBottomColor:P(I(e),.2)},"&::after":{borderBottomColor:e.vars?.palette.text.primary||e.palette.text.primary}})},qs={root:(e,t)=>({borderRadius:t,[`&.${Dt.focused}:not(.${Dt.error})`]:{[`& .${Dt.notchedOutline}`]:{borderColor:e.vars?.palette.text.primary||e.palette.text.primary}},[`&.${Dt.disabled}`]:{[`& .${Dt.notchedOutline}`]:{borderColor:e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground}}}),notchedOutline:e=>({borderColor:P(I(e),.2),transition:e.transitions.create([`border-color`],{duration:e.transitions.duration.shortest}),fontSize:e.typography.pxToRem(14),"& legend > span:not([aria-hidden])":{paddingInline:3}})},Js={root:[{props:e=>!!e.multiline,style:{...Hs.outlined.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...Hs.outlined.small}}],input:[{props:{},style:{...Hs.outlined.medium}},{props:e=>e.size===`small`,style:{...Hs.outlined.small}}]},Ys={root:(e,t)=>{let n=I(e),r=Ns(e),i=P(n,.08),a=P(n,.16),o=P(r,.08),s=P(r,.16),c=e.vars?.palette.action.disabledBackground||e.palette.action.disabledBackground;return{backgroundColor:i,borderRadius:t,[`&:hover, &.${xt.focused}`]:{backgroundColor:a},[`&.${xt.error}`]:{backgroundColor:o,[`&:hover, &.${xt.focused}`]:{backgroundColor:s}},[`&.${xt.disabled}`]:{backgroundColor:c}}}},Xs={root:[{props:e=>!!e.multiline,style:{...Hs.filled.medium}},{props:e=>!!e.multiline&&e.size===`small`,style:{...Hs.filled.small}},{props:e=>!!e.multiline&&!!e.hiddenLabel,style:{...Hs.filled.mediumHidden}},{props:e=>!!e.multiline&&!!e.hiddenLabel&&e.size===`small`,style:{...Hs.filled.smallHidden}}],input:[{props:{},style:{...Hs.filled.medium}},{props:e=>e.size===`small`,style:{...Hs.filled.small}},{props:e=>!!e.hiddenLabel,style:{...Hs.filled.mediumHidden}},{props:e=>!!e.hiddenLabel&&e.size===`small`,style:{...Hs.filled.smallHidden}}]}})))()}function Qs(e){return(0,sc.jsx)(O,{...e,children:(0,sc.jsx)(`path`,{d:`M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z`})})}function $s(e){return(0,sc.jsx)(O,{...e,children:(0,sc.jsx)(`path`,{d:`M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z`})})}function ec(e){return(0,sc.jsx)(O,{...e,children:(0,sc.jsx)(`path`,{d:`M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z`})})}function tc(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`,icon:(0,sc.jsx)(pc,{}),checkedIcon:(0,sc.jsx)(mc,{}),indeterminateIcon:(0,sc.jsx)(hc,{})},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1),variants:[{props:e=>e.color==="default",style:{[`&.${Se.checked}`]:{color:e.vars?.palette.text.primary}}},...[`primary`,`secondary`,`info`,`success`,`warning`,`error`].map(t=>({props:{color:t},style:{"&:hover":{backgroundColor:P(e.vars?.palette[t]?.mainChannel??`51 133 240`,.12)}}}))]}),sizeSmall:{"& svg":{fontSize:16}},sizeMedium:{"& svg":{fontSize:20}}}}}function nc(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1),variants:[{props:e=>e.color==="default",style:{[`&.${$t.checked}`]:{color:e.vars?.palette.text.primary}}}]})}}}function rc(e){return{defaultProps:{size:e.density===`compact`?`small`:`medium`},styleOverrides:{root:{alignItems:`center`,variants:[...fc]},switchBase:{top:`auto`,left:`6px`,variants:[...lc,...uc,...dc]},thumb:({theme:e})=>({width:cc.medium.thumb,height:cc.medium.thumb,color:e.vars?.palette.common.white}),track:({theme:e})=>({height:cc.medium.track,borderRadius:cc.medium.trackRadius,backgroundColor:P(I(e),.48),opacity:1})}}}function ic(e){return{styleOverrides:{root:({theme:e})=>({[`&.${jt.disabled}`]:{color:e.vars?.palette.action.disabled},variants:[{props:e=>!e.error,style:{[`&.${jt.focused}`]:{color:e.vars?.palette.text.secondary}}}]})}}}function ac(e){return{styleOverrides:{label:({theme:e})=>({...e.typography.body2})}}}function oc(e){return{defaultProps:{variant:`outlined`},styleOverrides:{root:{"& .MuiFormLabel-root":{marginBottom:8}}}}}var sc,cc,lc,uc,dc,fc,pc,mc,hc;function gc(){return(gc=t((()=>{xn(),r(),Qt(),ke(),Zt(),sn(),kt(),us(),ss(),sc=a(),cc={small:{thumb:10,track:16,trackRadius:8,translateX:`10px`},medium:{thumb:14,track:20,trackRadius:10,translateX:`14px`}},lc=[{props:e=>e.color==="default",style:({theme:e})=>({[`&.${rn.checked}`]:{[`& + .${rn.track}`]:{backgroundColor:e.vars?.palette.text.primary},[`& .${rn.thumb}`]:{...e.applyStyles(`dark`,{color:e.vars?.palette.grey[800]})}}})}],uc=[{props:{},style:{[`&.${rn.checked}`]:{transform:`translateX(${cc.medium.translateX})`,[`& + .${rn.track}`]:{opacity:1}}}}],dc=[{props:{},style:({theme:e})=>({[`&.${rn.disabled}`]:{[`& + .${rn.track}`]:{opacity:.48},[`& .${rn.thumb}`]:{...e.applyStyles(`dark`,{opacity:.48})}}})}],fc=[{props:e=>e.size===`small`,style:{[`& .${rn.switchBase}`]:{[`&.${rn.checked}`]:{transform:`translateX(${cc.small.translateX})`}},[`& .${rn.thumb}`]:{width:cc.small.thumb,height:cc.small.thumb},[`& .${rn.track}`]:{height:cc.small.track,borderRadius:cc.small.trackRadius}}}],pc=k(`checkbox`,Qs),mc=k(`checkboxChecked`,$s),hc=k(`checkboxMixed`,ec)})))()}function _c(e){let t=ls(e.density);return{defaultProps:{variant:`scrollable`,textColor:`inherit`,indicatorColor:`primary`,allowScrollButtonsMobile:!0},styleOverrides:{root:({theme:e})=>({minHeight:36*t,variants:[...yc.root]}),list:{variants:[...yc.list]},indicator:{borderRadius:2}}}}function vc(e){let t=ls(e.density);return{defaultProps:{disableRipple:!0,iconPosition:`start`},styleOverrides:{root:({theme:e})=>({padding:8*t,minHeight:36*t,minWidth:36*t,opacity:1,textTransform:`none`,fontWeight:e.typography.fontWeightMedium,color:e.vars?.palette.text.secondary||e.palette.text.secondary,lineHeight:e.typography.body2.lineHeight,[`& .${Xt.root}`]:{fontSize:20},variants:[...bc]})}}}var yc,bc;function xc(){return(xc=t((()=>{nt(),Yt(),us(),yc={root:[{props:e=>e.indicatorColor===`inherit`,style:{"& .MuiTabs-indicator":{backgroundColor:`currentColor`}}}],list:[{props:{},style:({theme:e})=>({gap:e.spacing(1)})}]},bc=[{props:{},style:({theme:e})=>({[`&.${rt.selected}`]:{fontWeight:600,color:e.vars?.palette.text.primary||e.palette.text.primary}})},{props:e=>!!e.icon&&!!e.label,style:{minHeight:`auto`}}]})))()}function Sc(e){let{density:t,borderRadius:n}=e,r=ls(t);return{MuiDialog:{styleOverrides:{paper:({theme:e})=>({boxShadow:`0 24px 48px -12px rgba(${I(e,`900`)} / 0.24)`,variants:[{props:()=>!0,style:{[e.breakpoints.down(`sm`)]:{margin:0,width:`100%`,maxWidth:`none`,maxHeight:`100dvh`,height:`100dvh`,borderRadius:0}}},{props:e=>!e.fullScreen,style:{borderRadius:n*2,[e.breakpoints.down(`sm`)]:{borderRadius:0},[e.breakpoints.up(`sm`)]:{margin:e.spacing(2)}}}]})}},MuiDialogTitle:{styleOverrides:{root:({theme:e})=>({padding:`${20*r}px ${24*r}px`,fontSize:e.typography.pxToRem(18),fontWeight:600,lineHeight:28/18,overflowWrap:`anywhere`})}},MuiDialogContent:{styleOverrides:{root:{padding:`${16*r}px ${24*r}px`,minWidth:0,overflowWrap:`anywhere`,".MuiDialogTitle-root + &":{paddingTop:16*r}}}},MuiDialogActions:{styleOverrides:{root:{padding:`${16*r}px ${24*r}px`,gap:8,flexWrap:`wrap`,"& > :not(style) ~ :not(style)":{marginLeft:0}}}}}}function Cc(){return(Cc=t((()=>{us()})))()}function wc(e){let{density:t,borderRadius:n}=e,r=ls(t);return{MuiCard:{defaultProps:{elevation:0},styleOverrides:{root:({theme:e})=>({position:`relative`,zIndex:0,borderRadius:n*1.5,border:`1px solid ${L(e,`divider`)}`,backgroundImage:`none`,boxShadow:`0 0 2px 0 rgba(${I(e)} / 0.2), 0 12px 24px -4px rgba(${I(e)} / 0.12)`})}},MuiCardHeader:{defaultProps:{slotProps:{title:{variant:`h6`},subheader:{variant:`body2`}}},styleOverrides:{root:{padding:`${16*r}px ${20*r}px`},title:({theme:e})=>({fontSize:e.typography.pxToRem(16),fontWeight:600,lineHeight:1.5}),subheader:({theme:e})=>({fontSize:e.typography.pxToRem(14),lineHeight:22/14,color:L(e,`text.secondary`)})}},MuiCardContent:{styleOverrides:{root:{padding:`${16*r}px ${20*r}px`,"&:last-child":{paddingBottom:16*r}}}},MuiCardActions:{styleOverrides:{root:{padding:`${12*r}px ${20*r}px`,gap:8}}}}}function Tc(){return(Tc=t((()=>{us()})))()}function Ec(e){let{borderRadius:t}=e;return{styleOverrides:{paper:({theme:e})=>({borderRadius:t,boxShadow:`0 0 2px 0 rgba(${I(e)} / 0.24), -20px 20px 40px -4px rgba(${I(e)} / 0.24)`}),listbox:{padding:4},option:({theme:e})=>({borderRadius:t-2,margin:2,[`&.${Ve.focused}`]:{backgroundColor:L(e,`action.hover`)},'&[aria-selected="true"]':{backgroundColor:L(e,`action.selected`),fontWeight:500,[`&.${Ve.focused}`]:{backgroundColor:L(e,`action.hover`)}}}),popupIndicator:{[`& .${Xt.root}`]:{fontSize:20}},clearIndicator:{[`& .${Xt.root}`]:{fontSize:18}}}}}function Dc(){return(Dc=t((()=>{be(),Yt(),us()})))()}function Oc(e){let{borderRadius:t}=e;return{styleOverrides:{root:({theme:e})=>({border:`none`,borderRadius:t,"--DataGrid-containerBackground":e.vars?.palette.background.neutral||e.palette.grey[50],"--DataGrid-pinnedBackground":L(e,`background.paper`),"& .MuiDataGrid-columnHeaders":{borderBottom:`1px solid ${L(e,`divider`)}`},"& .MuiDataGrid-columnHeader":{fontWeight:600,fontSize:e.typography.pxToRem(14),color:L(e,`text.secondary`),"&:focus, &:focus-within":{outline:`none`}},"& .MuiDataGrid-cell":{borderBottom:`1px solid rgba(${I(e)} / 0.12)`,"&:focus, &:focus-within":{outline:`none`}},"& .MuiDataGrid-row":{"&:hover":{backgroundColor:L(e,`action.hover`)},"&.Mui-selected":{backgroundColor:`rgba(${cs(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${cs(e,`primary`)} / 0.12)`}}},"& .MuiDataGrid-footerContainer":{borderTop:`1px solid ${L(e,`divider`)}`},"& .MuiDataGrid-selectedRowCount":{whiteSpace:`nowrap`},"& .MuiDataGrid-toolbarContainer":{padding:e.spacing(1.5,1.5,.5),gap:e.spacing(1)},"& .MuiDataGrid-columnSeparator":{color:L(e,`divider`)}})}}}function kc(){return(kc=t((()=>{us()})))()}function Ac(e){let{density:t,borderRadius:n}=e;return{MuiDatePicker:{defaultProps:{slotProps:{openPickerButton:{size:t===`compact`?`small`:`medium`}}}},MuiPickersLayout:{styleOverrides:{root:({theme:e})=>({"& .MuiPickersLayout-actionBar":{padding:e.spacing(1,2)}})}},MuiPickersDay:{styleOverrides:{root:()=>({borderRadius:n-2,fontWeight:400,"&.Mui-selected":{fontWeight:600}}),today:({theme:e})=>({borderColor:L(e,`primary.main`),"&:not(.Mui-selected)":{backgroundColor:`transparent`}})}},MuiPickersYear:{styleOverrides:{yearButton:()=>({borderRadius:n,"&.Mui-selected":{fontWeight:600}})}},MuiPickersMonth:{styleOverrides:{monthButton:()=>({borderRadius:n,"&.Mui-selected":{fontWeight:600}})}}}}function jc(){return(jc=t((()=>{us()})))()}function Mc(e){let{density:t,borderRadius:n}=e,r=ls(t);return{MuiButton:ds(e),MuiButtonBase:fs(),MuiButtonGroup:ps(e),MuiIconButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n,"&:hover":{backgroundColor:L(e,`action.hover`)}})}},MuiInputAdornment:{styleOverrides:{root:{[`& .${St.root}:hover`]:{backgroundColor:`transparent`}}}},MuiFab:{defaultProps:{color:`primary`},styleOverrides:{root:({theme:e})=>({boxShadow:`0 8px 16px 0 rgba(${cs(e,`primary`)} / 0.24)`,"&:hover":{boxShadow:`0 8px 16px 0 rgba(${cs(e,`primary`)} / 0.32)`}})}},MuiInputBase:Ps(e),MuiInput:Fs(e),MuiTextField:Rs(e),MuiOutlinedInput:Is(e),MuiFilledInput:Ls(e),MuiInputLabel:zs(e),MuiFormHelperText:Bs(e),MuiSelect:{styleOverrides:{select:{minHeight:`auto`,display:`flex`,alignItems:`center`},icon:{right:10,width:18,height:18,top:`calc(50% - 9px)`}}},MuiNativeSelect:{styleOverrides:{icon:{right:10,width:18,height:18,top:`calc(50% - 9px)`}}},MuiAutocomplete:Ec(e),...wc(e),MuiStack:{defaultProps:{useFlexGap:!0}},MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:`none`},rounded:{borderRadius:n*1.5},outlined:({theme:e})=>({borderColor:`rgba(${I(e)} / 0.16)`}),elevation1:({theme:e})=>({boxShadow:`0 1px 2px 0 rgba(${I(e,`900`)} / 0.08)`}),elevation2:({theme:e})=>({boxShadow:`0 2px 4px 0 rgba(${I(e,`900`)} / 0.08), 0 1px 2px 0 rgba(${I(e,`900`)} / 0.04)`}),elevation3:({theme:e})=>({boxShadow:`0 4px 8px 0 rgba(${I(e,`900`)} / 0.08), 0 2px 4px 0 rgba(${I(e,`900`)} / 0.04)`}),elevation4:({theme:e})=>({boxShadow:`0 8px 16px 0 rgba(${I(e,`900`)} / 0.08), 0 4px 8px 0 rgba(${I(e,`900`)} / 0.04)`}),elevation5:({theme:e})=>({boxShadow:`0 12px 24px -4px rgba(${I(e,`900`)} / 0.08), 0 8px 16px 0 rgba(${I(e,`900`)} / 0.04)`})}},...Sc(e),MuiDrawer:{styleOverrides:{paper:{backgroundImage:`none`}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:({theme:e})=>({backgroundImage:`none`,borderBottom:`1px solid ${L(e,`divider`)}`})}},MuiTabs:_c(e),MuiTab:vc(e),MuiBreadcrumbs:{styleOverrides:{separator:{marginLeft:8,marginRight:8}}},MuiAccordion:{defaultProps:{disableGutters:!0,elevation:0},styleOverrides:{root:({theme:e})=>({border:`1px solid ${L(e,`divider`)}`,borderRadius:0,[`&.${Ze.rounded}`]:{borderRadius:n},"&::before":{display:`none`},[`&.${Ze.disabled}`]:{backgroundColor:`transparent`}})}},MuiAccordionSummary:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,minHeight:48*r,padding:`0 ${16*r}px`,fontWeight:500,[`&.${Be.expanded}`]:{minHeight:48*r},[`&.${Be.disabled}`]:{opacity:.5}}),content:{alignItems:`center`,gap:8*r,minWidth:0,margin:`${12*r}px 0`,[`&.${Be.expanded}`]:{margin:`${12*r}px 0`}},expandIconWrapper:({theme:e})=>({color:L(e,`text.secondary`),flexShrink:0,marginInlineStart:8*r})}},MuiAccordionDetails:{styleOverrides:{root:({theme:e})=>({padding:`${8*r}px ${16*r}px ${16*r}px`,borderTop:`1px solid ${L(e,`divider`)}`,containerType:`inline-size`,containerName:`prism-pagination`,"@container prism-pagination (max-width: 420px)":{"& .MuiTablePagination-toolbar":{display:`grid`,gridTemplateColumns:`1fr auto`,gap:`0 8px`,padding:`4px 8px`},"& .MuiTablePagination-spacer":{display:`none`},"& .MuiTablePagination-selectLabel, & .MuiTablePagination-displayedRows":{margin:`4px 0`},"& .MuiTablePagination-input, & .MuiTablePagination-actions":{margin:0,justifySelf:`end`}}})}},MuiStep:{styleOverrides:{root:{padding:0}}},MuiStepLabel:{styleOverrides:{label:({theme:e})=>({fontSize:e.typography.pxToRem(14),fontWeight:500,[`&.${nn.active}`]:{fontWeight:600,color:L(e,`text.primary`)},[`&.${nn.completed}`]:{fontWeight:500,color:L(e,`text.primary`)}}),iconContainer:{paddingRight:12*r}}},MuiStepConnector:{styleOverrides:{line:({theme:e})=>({borderColor:L(e,`divider`),borderTopWidth:2})}},MuiStepIcon:{styleOverrides:{root:({theme:e})=>({color:L(e,`grey.300`),[`&.${an.active}`]:{color:L(e,`primary.main`)},[`&.${an.completed}`]:{color:L(e,`primary.main`)}}),text:{fontWeight:600,fontSize:`0.75rem`}}},MuiStepContent:{styleOverrides:{root:({theme:e})=>({borderLeft:`2px solid ${L(e,`divider`)}`,marginLeft:11,paddingLeft:20,paddingRight:8})}},MuiPagination:{defaultProps:{shape:`rounded`,size:t===`compact`?`small`:`medium`}},MuiPaginationItem:{styleOverrides:{root:({theme:e})=>({borderRadius:n-2,fontWeight:500,[`&.${It.selected}`]:{fontWeight:600}}),outlined:({theme:e})=>({borderColor:L(e,`divider`),[`&.${It.selected}`]:{backgroundColor:`rgba(${cs(e,`primary`)} / 0.08)`,borderColor:L(e,`primary.main`)}}),text:({theme:e})=>({[`&.${It.selected}`]:{backgroundColor:L(e,`primary.main`),color:L(e,`primary.contrastText`),"&:hover":{backgroundColor:L(e,`primary.dark`)}}}),previousNext:({theme:e})=>({borderRadius:n-2,"&:hover":{backgroundColor:L(e,`action.hover`)}}),firstLast:({theme:e})=>({borderRadius:n-2})}},MuiChip:Cs(e),MuiAvatar:{styleOverrides:{root:({theme:e})=>({fontSize:e.typography.pxToRem(14),fontWeight:600})}},MuiBadge:{styleOverrides:{badge:{fontWeight:600}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{tooltip:({theme:e})=>({borderRadius:n-2,fontSize:e.typography.pxToRem(12),padding:`6px 12px`,backgroundColor:L(e,`grey.800`)}),arrow:({theme:e})=>({color:L(e,`grey.800`)})}},MuiTableContainer:{styleOverrides:{root:{position:`relative`}}},MuiTableHead:{styleOverrides:{root:({theme:e})=>({[`& .${$e.head}`]:{fontWeight:600,backgroundColor:e.vars?.palette.background.neutral||e.palette.background.neutral||L(e,`background.paper`),color:L(e,`text.secondary`)}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({padding:`${12*r}px ${16*r}px`,borderBottomColor:`rgba(${I(e)} / 0.2)`}),sizeSmall:{padding:`${8*r}px ${12*r}px`}}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({[`&:last-child .${$e.root}`]:{borderBottom:`none`},[`&.${ct.selected}`]:{backgroundColor:`rgba(${cs(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${cs(e,`primary`)} / 0.12)`}}})}},MuiTablePagination:{defaultProps:{slotProps:{select:{name:`table-pagination-select`},actions:{previousButton:{size:`small`},nextButton:{size:`small`}}}},styleOverrides:{root:({theme:e})=>({borderTop:`1px solid ${L(e,`divider`)}`,containerType:`inline-size`,containerName:`prism-pagination`,"@container prism-pagination (max-width: 420px)":{"& .MuiTablePagination-toolbar":{display:`grid`,gridTemplateColumns:`1fr auto`,gap:`0 8px`,padding:`4px 8px`},"& .MuiTablePagination-spacer":{display:`none`},"& .MuiTablePagination-selectLabel, & .MuiTablePagination-displayedRows":{margin:`4px 0`},"& .MuiTablePagination-input, & .MuiTablePagination-actions":{margin:0,justifySelf:`end`}}}),toolbar:{minHeight:44*r,paddingLeft:8*r,paddingRight:8*r},actions:{marginRight:8},select:{display:`flex`,alignItems:`center`},selectIcon:{right:4,width:16,height:16,top:`calc(50% - 8px)`},selectLabel:({theme:e})=>({...e.typography.body2}),displayedRows:({theme:e})=>({...e.typography.body2})}},MuiAlert:{styleOverrides:{root:({theme:e})=>({borderRadius:n,variants:[`success`,`error`,`warning`,`info`].map(t=>({props:e=>e.variant===`standard`&&(e.color||e.severity)===t,style:{...Wn(e,t,.08),"& .MuiAlert-icon":{color:`inherit`}}}))})}},MuiAlertTitle:{styleOverrides:{root:({theme:e})=>({fontWeight:600,fontSize:e.typography.pxToRem(14),marginBottom:e.spacing(.5),lineHeight:1.5})}},MuiSnackbar:{styleOverrides:{root:{"& .MuiPaper-root":{borderRadius:n}}}},MuiLinearProgress:{styleOverrides:{root:{borderRadius:4,height:6}}},MuiCircularProgress:{defaultProps:{size:t===`compact`?20:t===`comfortable`?32:24}},MuiSlider:{defaultProps:{size:t===`compact`?`small`:`medium`},styleOverrides:{root:({theme:e})=>({"&.Mui-disabled":{color:L(e,`action.disabled`)}}),rail:({theme:e})=>({opacity:.32,backgroundColor:L(e,`grey.500`)}),track:{border:`none`},thumb:({theme:e})=>({width:t===`compact`?16:20,height:t===`compact`?16:20,backgroundColor:L(e,`common.white`),border:`2px solid currentColor`,boxShadow:`0 1px 3px 0 rgba(${I(e,`900`)} / 0.2)`,"&::before":{display:`none`},"&:hover, &.Mui-focusVisible":{boxShadow:`0 0 0 8px rgba(${cs(e,`primary`)} / 0.16)`},"&.Mui-active":{boxShadow:`0 0 0 12px rgba(${cs(e,`primary`)} / 0.24)`}}),valueLabel:({theme:e})=>({borderRadius:n-2,backgroundColor:L(e,`grey.800`),"&::before":{display:`none`}}),mark:({theme:e})=>({width:4,height:4,borderRadius:`50%`,backgroundColor:L(e,`grey.400`)}),markActive:({theme:e})=>({backgroundColor:L(e,`common.white`)})}},MuiRating:{defaultProps:{size:t===`compact`?`small`:`medium`,emptyIcon:void 0},styleOverrides:{root:({theme:e})=>({"&.Mui-disabled":{opacity:.48}}),icon:{fontSize:`inherit`},iconEmpty:({theme:e})=>({color:L(e,`grey.300`)}),iconFilled:({theme:e})=>({color:L(e,`warning.main`)}),iconHover:({theme:e})=>({color:L(e,`warning.dark`)}),sizeSmall:{fontSize:`1.125rem`},sizeMedium:{fontSize:`1.5rem`},sizeLarge:{fontSize:`2rem`}}},MuiCheckbox:tc(e),MuiRadio:nc(e),MuiSwitch:rc(e),MuiFormControl:oc(e),MuiFormControlLabel:ac(e),MuiFormLabel:ic(e),MuiList:{styleOverrides:{root:{paddingTop:t===`compact`?4:8,paddingBottom:t===`compact`?4:8,'&[role="menu"], &[role="listbox"]':{padding:4,"& > .MuiDivider-root":{margin:`8px 6px`}}}}},MuiListItemButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n-2,margin:2,"&.Mui-selected":{backgroundColor:`rgba(${cs(e,`primary`)} / 0.08)`,fontWeight:500},"&:hover":{backgroundColor:L(e,`action.hover`)}})}},MuiListItemIcon:{styleOverrides:{root:{minWidth:40}}},MuiListItemText:{styleOverrides:{root:{marginTop:0,marginBottom:0},primary:({theme:e})=>({fontSize:e.typography.pxToRem(t===`compact`?13:14),fontWeight:500,lineHeight:1.5}),secondary:({theme:e})=>({fontSize:e.typography.pxToRem(t===`compact`?12:13),lineHeight:1.5,color:L(e,`text.secondary`)})}},MuiMenu:{styleOverrides:{paper:({theme:e})=>({borderRadius:n,marginTop:4,scrollPaddingBlock:6,maxWidth:`calc(100vw - 32px)`,boxShadow:`0 0 2px 0 rgba(${I(e)} / 0.24), -20px 20px 40px -4px rgba(${I(e)} / 0.24)`})}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,minWidth:0,whiteSpace:`normal`,overflowWrap:`anywhere`,borderRadius:n-2,margin:2,padding:`${8*r}px ${12*r}px`,"&:not(:last-child)":{marginBottom:4},"&.Mui-selected":{fontWeight:500,backgroundColor:L(e,`action.selected`),"&:hover":{backgroundColor:L(e,`action.hover`)}}})}},MuiPopover:{styleOverrides:{root:({ownerState:e})=>({pointerEvents:e.open?void 0:`none`}),paper:({theme:e})=>({borderRadius:n,boxShadow:`0 0 2px 0 rgba(${I(e)} / 0.24), -20px 20px 40px -4px rgba(${I(e)} / 0.24)`})}},MuiDivider:{styleOverrides:{root:({theme:e})=>({borderColor:`rgba(${I(e)} / 0.2)`})}},MuiSkeleton:{styleOverrides:{rounded:{borderRadius:n}}},MuiBackdrop:{styleOverrides:{root:({theme:e,ownerState:t})=>({backgroundColor:t.invisible?`transparent`:`rgba(${I(e,`900`)} / 0.5)`})}},MuiLink:{defaultProps:{underline:`hover`},styleOverrides:{root:({theme:e})=>({color:L(e,`primary.main`),textDecorationColor:`transparent`,transition:`color 150ms, text-decoration-color 150ms`,"&:hover":{textDecorationColor:`currentColor`}})}},MuiToggleButton:{styleOverrides:{root:({theme:e})=>({borderRadius:n,fontWeight:500,textTransform:`none`,border:`1px solid ${L(e,`divider`)}`,[`&.${ot.selected}`]:{backgroundColor:`rgba(${cs(e,`primary`)} / 0.08)`,borderColor:`currentColor`,color:L(e,`primary.main`),"&:hover":{backgroundColor:`rgba(${cs(e,`primary`)} / 0.16)`}},[`&.${ot.disabled}`]:{borderColor:L(e,`action.disabledBackground`)}}),sizeSmall:{padding:`${4*r}px ${8*r}px`,fontSize:`0.8125rem`},sizeMedium:{padding:`${6*r}px ${12*r}px`},sizeLarge:{padding:`${8*r}px ${16*r}px`,fontSize:`0.9375rem`}}},MuiToggleButtonGroup:{styleOverrides:{grouped:({theme:e})=>({borderLeftColor:L(e,`divider`),borderTopColor:L(e,`divider`),[`&.${ot.selected}`]:{zIndex:1,borderLeftColor:`currentColor`,borderTopColor:`currentColor`}})}},MuiTimeline:{styleOverrides:{root:{padding:0}}},MuiTimelineItem:{styleOverrides:{root:{"&::before":{display:`none`}}}},MuiTimelineDot:{styleOverrides:{root:({theme:e})=>({boxShadow:`none`,borderColor:`transparent`,padding:3}),outlined:({theme:e})=>({borderColor:L(e,`divider`),backgroundColor:`transparent`})}},MuiTimelineConnector:{styleOverrides:{root:({theme:e})=>({backgroundColor:L(e,`divider`),width:2})}},MuiTimelineContent:{styleOverrides:{root:({theme:e})=>({...e.typography.body2,padding:`${6*r}px ${16*r}px`})}},MuiDataGrid:Oc(e),...Ac(e),MuiTreeItem:{styleOverrides:{root:{},content:({theme:e})=>({borderRadius:n-2,padding:`${4*r}px ${8*r}px`,"&.Mui-selected":{backgroundColor:`rgba(${cs(e,`primary`)} / 0.08)`,"&:hover":{backgroundColor:`rgba(${cs(e,`primary`)} / 0.16)`},"&.Mui-focused":{backgroundColor:`rgba(${cs(e,`primary`)} / 0.12)`}},"&:hover":{backgroundColor:L(e,`action.hover`)}}),label:({theme:e})=>({...e.typography.body2,fontWeight:500}),iconContainer:{width:`auto`}}},MuiCssBaseline:{styleOverrides:e=>({html:{scrollBehavior:`smooth`},"html, body, *":as(e),"*, *::before, *::after":{boxSizing:`border-box`},"#root, #__next":{height:`100%`},'html[data-vision="protanopia"]:not([data-showcase])':{filter:`url("#protanopia-filter")`},'html[data-vision="deuteranopia"]:not([data-showcase])':{filter:`url("#deuteranopia-filter")`},'html[data-vision="tritanopia"]:not([data-showcase])':{filter:`url("#tritanopia-filter")`},'html[data-vision="achromatopsia"]:not([data-showcase])':{filter:`url("#achromatopsia-filter")`}})}}}function Nc(){return(Nc=t((()=>{ss(),Gn(),Rt(),Ne(),Oe(),lt(),it(),on(),tn(),at(),Vt(),us(),Ss(),js(),Zs(),gc(),xc(),Cc(),Tc(),Dc(),kc(),jc()})))()}function Pc(e,t=1){return t===1?[...R]:R.map(e=>e===`none`?e:e.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*([\d.]+)\)/g,(e,n,r,i,a)=>`rgba(${n}, ${r}, ${i}, ${Math.min(1,parseFloat(a)*t).toFixed(2)})`))}var R;function Fc(){return(Fc=t((()=>{R=[`none`,`0px 1px 2px 0px rgba(0, 0, 0, 0.05)`,`0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1)`,`0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1)`,`0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1)`,`0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1)`,`0px 25px 50px -12px rgba(0, 0, 0, 0.25)`,`0px 2px 4px rgba(0, 0, 0, 0.08)`,`0px 4px 8px rgba(0, 0, 0, 0.08)`,`0px 8px 16px rgba(0, 0, 0, 0.08)`,`0px 12px 24px rgba(0, 0, 0, 0.08)`,`0px 16px 32px rgba(0, 0, 0, 0.08)`,`0px 20px 40px rgba(0, 0, 0, 0.08)`,`0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1)`,`0px 10px 10px -5px rgba(0, 0, 0, 0.04), 0px 20px 25px -5px rgba(0, 0, 0, 0.1)`,`0px 20px 20px -10px rgba(0, 0, 0, 0.04), 0px 25px 50px -12px rgba(0, 0, 0, 0.25)`,`0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 1px 2px rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 2px 4px rgba(0, 0, 0, 0.05), 0px 0px 0px 1px rgba(0, 0, 0, 0.05)`,`0px 0px 0px 3px rgba(66, 153, 225, 0.5)`,`0px 0px 0px 3px rgba(72, 187, 120, 0.5)`,`0px 0px 0px 3px rgba(245, 101, 101, 0.5)`,`inset 0px 2px 4px rgba(0, 0, 0, 0.06)`,`inset 0px 4px 6px rgba(0, 0, 0, 0.1)`,`inset 0px 0px 0px 1px rgba(0, 0, 0, 0.1)`],R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[8],R[9],R[14],R[15],R[19],R[20],R[21],R[22]})))()}function Ic(e){let{fontFamily:t,fontWeights:n}=e;return{fontFamily:t.primary,fontWeightLight:n.light,fontWeightRegular:n.regular,fontWeightMedium:n.medium,fontWeightBold:n.bold,h1:{fontFamily:t.secondary||t.primary,fontWeight:n.bold,fontSize:Rc[`5xl`],lineHeight:zc.tight,letterSpacing:`-0.025em`},h2:{fontFamily:t.secondary||t.primary,fontWeight:n.bold,fontSize:Rc[`4xl`],lineHeight:zc.tight,letterSpacing:`-0.025em`},h3:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:Rc[`3xl`],lineHeight:zc.snug,letterSpacing:`-0.02em`},h4:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:Rc[`2xl`],lineHeight:zc.snug,letterSpacing:`-0.02em`},h5:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:Rc.xl,lineHeight:zc.snug},h6:{fontFamily:t.secondary||t.primary,fontWeight:n.semiBold,fontSize:Rc.lg,lineHeight:zc.snug},body1:{fontSize:Rc.md,lineHeight:zc.relaxed},body2:{fontSize:Rc.sm,lineHeight:zc.relaxed},subtitle1:{fontSize:Rc.md,fontWeight:n.medium,lineHeight:zc.normal},subtitle2:{fontSize:Rc.sm,fontWeight:n.medium,lineHeight:zc.normal},caption:{fontSize:Rc.xs,lineHeight:zc.normal},overline:{fontSize:Rc.xs,fontWeight:n.semiBold,lineHeight:zc.normal,textTransform:`uppercase`,letterSpacing:`0.08em`},button:{fontSize:Rc.sm,fontWeight:n.semiBold,lineHeight:zc.normal,textTransform:`none`}}}var Lc,Rc,zc;function Bc(){return(Bc=t((()=>{Lc={fontFamily:{primary:`"Nunito Sans Variable", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,secondary:`"Exo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,mono:`"JetBrains Mono", "Fira Code", Consolas, Monaco, monospace`},fontWeights:{light:300,regular:400,medium:500,semiBold:600,bold:700}},Rc={xs:`0.75rem`,sm:`0.875rem`,md:`1rem`,lg:`1.125rem`,xl:`1.25rem`,"2xl":`1.5rem`,"3xl":`1.875rem`,"4xl":`2.25rem`,"5xl":`3rem`,"6xl":`3.75rem`},zc={tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2}})))()}var Vc,Hc,Uc,Wc,Gc,Kc,qc;function Jc(){return(Jc=t((()=>{Vc={50:`#FBF7E8`,100:`#F5EBC9`,200:`#EDDFA8`,300:`#E3D086`,400:`#D9C164`,500:`#C9A227`,600:`#A88820`,700:`#876D1A`,800:`#665314`,900:`#45380E`,950:`#241D07`},Hc={50:`#F5EEF5`,100:`#E8D5E8`,200:`#D4B3D4`,300:`#B38AB3`,400:`#996399`,500:`#6B3A6B`,600:`#5A305A`,700:`#4A284A`,800:`#3A1F3A`,900:`#2A172A`,950:`#1A0F1A`},Uc={50:`#FAF9F7`,100:`#F5F3F0`,200:`#E8E4DE`,300:`#D4CEC4`,400:`#B8AFA0`,500:`#9C917C`,600:`#7A6F5C`,700:`#5C5244`,800:`#3E362C`,900:`#201C16`,950:`#100E0B`},Wc={50:`#F9E8E8`,100:`#F0C9C9`,200:`#E4A3A3`,300:`#D57C7C`,400:`#C65656`,500:`#B82E2E`,600:`#9A2626`,700:`#7D1E1E`,800:`#5F1717`,900:`#42100F`,950:`#250908`},Gc={50:`#FEF8E6`,100:`#FCEFC2`,200:`#F9E394`,300:`#F5D566`,400:`#F0C538`,500:`#D4A012`,600:`#B1850F`,700:`#8E6B0C`,800:`#6B5009`,900:`#483606`,950:`#251B03`},Kc={50:`#E8F4E8`,100:`#C9E4C9`,200:`#A3D1A3`,300:`#7DBD7D`,400:`#56A956`,500:`#2E8B2E`,600:`#267426`,700:`#1E5D1E`,800:`#174717`,900:`#0F300F`,950:`#081A08`},qc={50:`#E8F0F6`,100:`#C9DCEB`,200:`#A3C4DD`,300:`#7DACCE`,400:`#5694C0`,500:`#2E7AB8`,600:`#26669A`,700:`#1E527C`,800:`#173E5E`,900:`#0F2A40`,950:`#081520`}})))()}var Yc,Xc,Zc;function Qc(){return(Qc=t((()=>{Yc={50:`#F9F5FF`,100:`#F0E6FF`,200:`#E3CFFF`,300:`#CEA9FF`,400:`#B574FF`,500:`#BD93F9`,600:`#A57EE0`,700:`#8666B8`,800:`#6E5394`,900:`#5B4579`,950:`#3B2D4D`},Xc={50:`#FFF5F7`,100:`#FFE5EA`,200:`#FFCCD6`,300:`#FFA4B5`,400:`#FF6E8B`,500:`#FF79C6`,600:`#E85AA1`,700:`#C4407F`,800:`#A2356A`,900:`#87305B`,950:`#4E1533`},Zc={50:`#ECFFFE`,100:`#CFFFFE`,200:`#A5FFFE`,300:`#67FFFC`,400:`#22FFF5`,500:`#8BE9FD`,600:`#06D1E7`,700:`#0BA6BC`,800:`#118497`,900:`#136C7D`,950:`#05484E`},Yc[500]})))()}var $c,el;function tl(){return(tl=t((()=>{$c={50:`#FFF4ED`,100:`#FFE4D4`,200:`#FFC9A8`,300:`#FFAA71`,400:`#FF8038`,500:`#FF5F11`,600:`#F04006`,700:`#C72D07`,800:`#9E250E`,900:`#7F230F`,950:`#450E05`},el={50:`#FFF1F2`,100:`#FFE1E3`,200:`#FFC8CD`,300:`#FFA1A9`,400:`#FF6B78`,500:`#FA3D4D`,600:`#E81B2D`,700:`#C31323`,800:`#A11421`,900:`#861721`,950:`#49060C`},$c[500]})))()}var nl,rl;function il(){return(il=t((()=>{nl={50:`#EEF2FF`,100:`#E0E7FF`,200:`#C7D2FE`,300:`#A5B4FC`,400:`#818CF8`,500:`#6366F1`,600:`#4F46E5`,700:`#4338CA`,800:`#3730A3`,900:`#312E81`,950:`#1E1B4B`},rl={50:`#F8FAFC`,100:`#F1F5F9`,200:`#E2E8F0`,300:`#CBD5E1`,400:`#94A3B8`,500:`#64748B`,600:`#475569`,700:`#334155`,800:`#1E293B`,900:`#0F172A`,950:`#020617`},nl[500]})))()}var al,ol;function sl(){return(sl=t((()=>{al={50:`#FFFBEB`,100:`#FEF3C7`,200:`#FDE68A`,300:`#FCD34D`,400:`#FBBF24`,500:`#F59E0B`,600:`#D97706`,700:`#B45309`,800:`#92400E`,900:`#78350F`,950:`#451A03`},ol={50:`#F0FDFA`,100:`#CCFBF1`,200:`#99F6E4`,300:`#5EEAD4`,400:`#2DD4BF`,500:`#14B8A6`,600:`#0D9488`,700:`#0F766E`,800:`#115E59`,900:`#134E4A`,950:`#042F2E`},al[500]})))()}var cl,ll;function ul(){return(ul=t((()=>{cl={50:`#FAFAFA`,100:`#F5F5F5`,200:`#E5E5E5`,300:`#D4D4D4`,400:`#A3A3A3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0A0A0A`},ll={50:`#F8FAFC`,100:`#F1F5F9`,200:`#E2E8F0`,300:`#CBD5E1`,400:`#94A3B8`,500:`#64748B`,600:`#475569`,700:`#334155`,800:`#1E293B`,900:`#0F172A`,950:`#020617`},cl[500]})))()}var dl,fl,pl;function ml(){return(ml=t((()=>{dl={primary:{lighter:`#D6E9F8`,light:`#7BC1F0`,main:`#1E88E5`,dark:`#1565C0`,darker:`#0D47A1`,contrastText:`#FFFFFF`},secondary:{lighter:`#E3F2FD`,light:`#90CAF9`,main:`#42A5F5`,dark:`#1E88E5`,darker:`#1565C0`,contrastText:`#000000`},info:{lighter:`#E0F7FA`,light:`#80DEEA`,main:`#26C6DA`,dark:`#00ACC1`,darker:`#00838F`,contrastText:`#000000`},success:{lighter:`#E8F5E9`,light:`#A5D6A7`,main:`#66BB6A`,dark:`#43A047`,darker:`#2E7D32`,contrastText:`#000000`},warning:{lighter:`#FFF8E1`,light:`#FFE082`,main:`#FFB300`,dark:`#FF8F00`,darker:`#FF6F00`,contrastText:`#212121`},error:{lighter:`#FFEBEE`,light:`#EF9A9A`,main:`#EF5350`,dark:`#E53935`,darker:`#C62828`,contrastText:`#FFFFFF`},grey:{50:`#FAFBFC`,100:`#F4F6F8`,200:`#E4E9ED`,300:`#D0D7DE`,400:`#AFB8C1`,500:`#8C959F`,600:`#6E7781`,700:`#57606A`,800:`#424A53`,900:`#32383F`,950:`#272C31`},common:{black:`#1B1F23`,white:`#FFFFFF`},background:{default:`#E8F0F6`,paper:`#F1F9FB`,neutral:`#E4E9ED`},text:{primary:`#1B1F23`,secondary:`#57606A`,disabled:`#8C959F`}},fl={primary:{lighter:`#D6E9F8`,light:`#7BC1F0`,main:`#42A5F5`,dark:`#1E88E5`,darker:`#1565C0`,contrastText:`#000000`},secondary:{lighter:`#E3F2FD`,light:`#90CAF9`,main:`#64B5F6`,dark:`#42A5F5`,darker:`#1E88E5`,contrastText:`#000000`},info:{lighter:`#E0F7FA`,light:`#80DEEA`,main:`#4DD0E1`,dark:`#26C6DA`,darker:`#00ACC1`,contrastText:`#000000`},success:{lighter:`#E8F5E9`,light:`#A5D6A7`,main:`#81C784`,dark:`#66BB6A`,darker:`#4CAF50`,contrastText:`#000000`},warning:{lighter:`#FFF8E1`,light:`#FFE082`,main:`#FFCA28`,dark:`#FFB300`,darker:`#FFA000`,contrastText:`#212121`},error:{lighter:`#FFEBEE`,light:`#EF9A9A`,main:`#EF5350`,dark:`#F44336`,darker:`#E53935`,contrastText:`#FFFFFF`},grey:{50:`#0D1117`,100:`#161B22`,200:`#21262D`,300:`#30363D`,400:`#484F58`,500:`#6E7681`,600:`#8B949E`,700:`#B1BAC4`,800:`#C9D1D9`,900:`#F0F6FC`},common:{black:`#010409`,white:`#FFFFFF`},background:{default:`#0D1117`,paper:`#161B22`,neutral:`#21262D`},text:{primary:`#F0F6FC`,secondary:`#B1BAC4`,disabled:`#6E7681`}},pl={name:`arctic`,displayName:`Arctic`,description:`A cool, crisp blue theme inspired by northern landscapes.`,preferredMode:`light`,lightPalette:dl,darkPalette:fl,typography:{fontFamily:{primary:`"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`,secondary:`"Poppins", -apple-system, BlinkMacSystemFont, sans-serif`,mono:`"Fira Code", Consolas, Monaco, monospace`},fontWeights:{light:300,regular:400,medium:500,semiBold:600,bold:700}},colorGroup:{key:`arctic`,main:`#1E88E5`}}})))()}function hl(e){switch(e){case`luxury`:return{lightPalette:Go({primary:Vc,secondary:Hc,info:qc,success:Kc,warning:Gc,error:Wc,grey:Uc,mode:`light`,backgroundDefault:`#FAF7F5`,paperColor:`#FDFBFB`}),darkPalette:Go({primary:Vc,secondary:Hc,info:qc,success:Kc,warning:Gc,error:Wc,grey:Uc,mode:`dark`}),colorGroup:{key:`luxury`,main:Vc[500],palette:Vc}};case`arctic`:return{lightPalette:gl(pl.lightPalette,`light`),darkPalette:gl(pl.darkPalette,`dark`),colorGroup:{key:`arctic`,main:`#1E88E5`,palette:Mo}};case`dracula`:return{lightPalette:Go({primary:Yc,secondary:Xc,info:Zc,success:F,warning:Fo,error:Po,grey:jo,mode:`light`,backgroundDefault:`#F5F0FA`,paperColor:`#FAF7FC`}),darkPalette:Go({primary:Yc,secondary:Xc,info:Zc,success:F,warning:Fo,error:Po,grey:jo,mode:`dark`,backgroundDefault:`#282A36`,paperColor:`#21222C`}),colorGroup:{key:`dracula`,main:Yc[500],palette:Yc}};case`ember`:return{lightPalette:Go({primary:$c,secondary:el,info:Io,success:F,warning:Fo,error:el,grey:jo,mode:`light`,backgroundDefault:`#FFF5F0`,paperColor:`#FFFAF7`}),darkPalette:Go({primary:$c,secondary:el,info:Io,success:F,warning:Fo,error:el,grey:jo,mode:`dark`,backgroundDefault:`#1A0A05`,paperColor:`#2D1610`}),colorGroup:{key:`ember`,main:$c[500],palette:$c}};case`midnight`:return{lightPalette:Go({primary:nl,secondary:No,info:Io,success:F,warning:Fo,error:Po,grey:rl,mode:`light`,backgroundDefault:`#F0F0F8`,paperColor:`#F7F7FC`}),darkPalette:Go({primary:nl,secondary:No,info:Io,success:F,warning:Fo,error:Po,grey:rl,mode:`dark`,backgroundDefault:rl[950],paperColor:rl[900]}),colorGroup:{key:`midnight`,main:nl[500],palette:nl}};case`retro`:return{lightPalette:Go({primary:al,secondary:ol,info:Io,success:ol,warning:al,error:Po,grey:jo,mode:`light`,backgroundDefault:`#F8F1E0`,paperColor:`#FDF8EE`}),darkPalette:Go({primary:al,secondary:ol,info:Io,success:ol,warning:al,error:Po,grey:jo,mode:`dark`,backgroundDefault:`#1A1814`,paperColor:`#252218`}),colorGroup:{key:`retro`,main:al[500],palette:al}};case`minimal`:return{lightPalette:Go({primary:ll,secondary:cl,info:Io,success:F,warning:Fo,error:Po,grey:cl,mode:`light`,backgroundDefault:`#FAFAFA`,paperColor:`#FFFFFF`}),darkPalette:Go({primary:ll,secondary:cl,info:Io,success:F,warning:Fo,error:Po,grey:cl,mode:`dark`,backgroundDefault:`#0A0A0A`,paperColor:`#171717`}),colorGroup:{key:`minimal`,main:ll[500],palette:ll}};case`nature`:return{lightPalette:Go({primary:F,secondary:No,info:Io,success:F,warning:Fo,error:Po,grey:jo,mode:`light`,backgroundDefault:`#EEF6EE`,paperColor:`#F5FAF5`}),darkPalette:Go({primary:F,secondary:No,info:Io,success:F,warning:Fo,error:Po,grey:jo,mode:`dark`,backgroundDefault:`#0A1A0A`,paperColor:`#0F1F0F`}),colorGroup:{key:`nature`,main:F[500],palette:F}};case`default-dark`:return{lightPalette:Ko,darkPalette:qo,colorGroup:{key:`default-dark`,main:Mo[400],palette:Mo}};default:return{lightPalette:Ko,darkPalette:qo,colorGroup:{key:`default-light`,main:Mo[500],palette:Mo}}}}function gl(e,t){let n=e.grey;return{mode:t,primary:So(e.primary),secondary:So(e.secondary),info:So(e.info),success:So(e.success),warning:So(e.warning),error:So(e.error),grey:n,common:e.common,background:e.background,text:e.text}}function _l(e,t,n){if(!t)return e;let r=xl.find(e=>e.main===t);if(r?.palette){let i=So(n===`dark`?{lighter:r.palette[950],light:r.palette[700],main:t,dark:r.palette[300],darker:r.palette[100],contrastText:Oo(t)}:{lighter:r.palette[50],light:r.palette[400],main:t,dark:r.palette[600],darker:r.palette[900],contrastText:Oo(t)});return{...e,primary:i}}let i=To(t),a=So(n===`dark`?{lighter:i[950],light:i[700],main:i[400],dark:i[300],darker:i[100],contrastText:Oo(i[400])}:{lighter:i[50],light:i[400],main:i[500],dark:i[600],darker:i[900],contrastText:Oo(i[500])});return{...e,primary:a}}function vl(e){switch(e){case`compact`:return .75;case`comfortable`:return 1.25;default:return 1}}function yl(e,t){let n={...e};for(let r of Object.keys(t)){let i=e[r],a=t[r];if(r===`styleOverrides`&&i&&a&&typeof i==`object`&&typeof a==`object`){let e={...i};for(let[t,n]of Object.entries(a))n!==void 0&&(e[t]=e[t]===void 0?n:[e[t],n]);n[r]=e}else n[r]=typeof a==`object`&&a&&!Array.isArray(a)&&typeof a!=`function`&&typeof i==`object`&&i&&!Array.isArray(i)&&typeof i!=`function`?yl(i,a):a}return n}function bl(e={}){let{preset:t=`default-light`,mode:n=`light`,direction:r=`ltr`,locale:i=`enUS`,primaryColor:a=null,cssVarPrefix:o=`prism`,density:s=`standard`,borderRadius:c=8,responsiveFonts:l=!0,contrast:u=`default`,overrides:d}=e,f=hl(t),p=_l(f.lightPalette,a,`light`),m=_l(f.darkPalette,a,`dark`);u===`high`&&(p={...p,background:{...p.background,default:jo[200],paper:`#FFFFFF`}},m={...m,background:{...m.background,default:`#000000`,paper:jo[900]}});let h=vl(s),g={density:s,borderRadius:c,buttonStyle:`contained`},_={prefix:o,colorSchemeSelector:`data-${o}-color-scheme`,enabled:!0},v=pe[i]||he,y=p.primary?.main||Mo[500],b=Pc(y),x=Pc(y,.4),S=n===`dark`?`dark`:`light`,C=S===`dark`?m:p,w=S===`dark`?x:b,ee=yl({cssVariables:{cssVarPrefix:o,colorSchemeSelector:_.colorSchemeSelector},palette:C,shadows:w,typography:Ic({fontFamily:{primary:e.fontFamily?`"${e.fontFamily}", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`:Lc.fontFamily.primary,secondary:Lc.fontFamily.secondary,mono:Lc.fontFamily.mono},fontWeights:Lc.fontWeights}),direction:r,shape:{borderRadius:c},mixins:os,components:Mc(g)},{components:uo()}),T=d?yl(ee,d):ee,te=typeof T.cssVariables==`object`?T.cssVariables:void 0;T.palette=Sa(T.palette,d?.palette,{nativeColor:te?.nativeColor,cssVarPrefix:te?.cssVarPrefix??o});let ne=ue(T,v);l&&(ne=se(ne));let re=ne;return re.prism={preset:t,mode:n,direction:r,density:s,densityMultiplier:h,cssVariables:_},re}var xl;function Sl(){return(Sl=t((()=>{Oa(),ho(),ve(),ie(),ge(),Jo(),Nc(),Fc(),Bc(),ss(),Ao(),Ro(),Jc(),Qc(),tl(),il(),sl(),ul(),ml(),xl=[{key:`default-light`,main:Mo[500],palette:Mo},{key:`default-dark`,main:Mo[400],palette:Mo},{key:`green`,main:F[500],palette:F},{key:`purple`,main:No[500],palette:No},{key:`red`,main:Po[500],palette:Po},{key:`orange`,main:Fo[500],palette:Fo},{key:`lightBlue`,main:Io[500],palette:Io},{key:`luxury`,main:Vc[500],palette:Vc},{key:`dracula`,main:Yc[500],palette:Yc},{key:`ember`,main:$c[500],palette:$c},{key:`midnight`,main:nl[500],palette:nl},{key:`retro`,main:al[500],palette:al},{key:`minimal`,main:ll[500],palette:ll},{key:`nature`,main:F[500],palette:F},{key:`arctic`,main:`#1E88E5`,palette:Mo}]})))()}function Cl(e){if(!e)return;let t=e.split(`
4
4
  `),n=t.findIndex(e=>e.includes(`api.setState`));if(n<0)return;let r=t[n+1]?.trim()||``;return Al.exec(r)?.[1]||jl.exec(r)?.[1]}function wl(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll;function Rl(){return(Rl=t((()=>{Tl=e=>!!e.dispatchFromDevtools&&typeof e.dispatch==`function`,El=new Map,Dl=e=>{let t=El.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},Ol=(e,t,n)=>{if(e===void 0)return{type:`untracked`,connection:t.connect(n)};let r=El.get(n.name);if(r)return{type:`tracked`,store:e,...r};let i={connection:t.connect(n),stores:{}};return El.set(n.name,i),{type:`tracked`,store:e,...i}},kl=(e,t,n)=>{if(t===void 0)return;let r=El.get(e);r?.stores[t]===n&&(delete r.stores[t],Object.keys(r.stores).length===0&&El.delete(e))},Al=/^at (?:new |async )?(.+?) \(/,jl=/^([^@]+)@/,Ml=(e,t={})=>(n,r,i)=>{let{enabled:a,anonymousActionType:o,store:s,...c}=t,l;try{l=(a??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return e(n,r,i);let{connection:u,...d}=Ol(s,l,c),f=!0;i.setState=((e,t,a)=>{let l=n(e,t);if(!f)return l;let d=a===void 0?{type:o||Cl(Error().stack)||`anonymous`}:typeof a==`string`?{type:a}:a;return s===void 0?(u?.send(d,r()),l):(u?.send({...d,type:`${s}/${d.type}`},{...Dl(c.name),[s]:i.getState()}),l)});let p;i.devtools={cleanup:()=>{p?.(),p=void 0,kl(c.name,s,i),(s===void 0||!El.has(c.name))&&u&&typeof u.unsubscribe==`function`&&u.unsubscribe()}};let m=(...e)=>{let t=f;f=!1,n(...e),f=t},h=e(i.setState,r,i);if(d.type===`untracked`?u?.init(h):(d.stores[d.store]=i,u?.init(Object.fromEntries(Object.entries(d.stores).map(([e,t])=>[e,e===d.store?h:t.getState()])))),Tl(i)){let e=i.dispatch;i.dispatch=(...t)=>{e(...t)}}return p=u.subscribe(e=>{let t=typeof c.serialize==`object`?c.serialize.reviver:void 0;switch(e.type){case`ACTION`:if(typeof e.payload!=`string`){console.error(`[zustand devtools middleware] Unsupported action format`);return}return Pl(e.payload,t,e=>{if(e.type===`__setState`){if(s===void 0){m(e.state);return}Object.keys(e.state).length!==1&&console.error(`
5
5
  [zustand devtools middleware] Unsupported __setState action format.
@@ -32,4 +32,4 @@ import{i as e,n as t,t as n}from"./rolldown-runtime-CNOWq4Kh.js";import{i as r,n
32
32
  0 0 10px ${rD},
33
33
  0 0 5px ${rD};
34
34
  }
35
- `})))()}function oD({pathname:e}){return(0,sD.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}var sD;function cD(){return(cD=t((()=>{sD=r()})))()}var lD,uD,dD,fD,pD,mD;function hD(){return(hD=t((()=>{lD=r(),uD=(0,lD.createContext)(null),uD.displayName=`NetronContext`,dD=(0,lD.createContext)(null),dD.displayName=`ConnectionContext`,fD=(0,lD.createContext)(null),fD.displayName=`QueryClientContext`,pD=(0,lD.createContext)({staleTime:0,cacheTime:3e5,retry:3,refetchOnWindowFocus:!0,refetchOnReconnect:!0}),pD.displayName=`DefaultsContext`,mD=(0,lD.createContext)({isHydrating:!1,markHydrated:()=>{}}),mD.displayName=`HydrationContext`})))()}function gD(e){return JSON.stringify(e,(e,t)=>typeof t==`object`&&t&&!Array.isArray(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function _D(e,t,n=!1){if(n)return gD(e)===gD(t);if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!vD(e[n],t[n]))return!1;return!0}function vD(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e===null||t===null)return e===t;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>vD(e,t[n]));if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>vD(e[n],t[n]))}return!1}function yD(e,t){if(!t)return!0;if(t.queryKey&&!_D(e.queryKey,t.queryKey,t.exact)||t.status&&e.state.status!==t.status)return!1;if(t.stale!==void 0){let n=e.state.staleTime??0,r=e.state.isInvalidated||n===0||n!==1/0&&Date.now()>e.state.dataUpdatedAt+n;if(t.stale!==r)return!1}return!(t.predicate&&!t.predicate(e))}function bD(){return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,11)}`}var xD;function SD(){return(SD=t((()=>{xD={now:()=>Date.now(),isExpired:(e,t)=>Date.now()>e+t,timeUntilExpiry:(e,t)=>Math.max(0,e+t-Date.now())}})))()}var CD,wD,TD,ED;function DD(){return(DD=t((()=>{SD(),CD={maxEntries:1e3,defaultCacheTime:3e5,gcEnabled:!0,gcInterval:6e4},wD=`\0infinite`,TD=class{config;cache=new Map;gcTimer;constructor(e){this.config={...CD,...e}}resolveHash(e,t=!1){let n=gD(e);return t?n+wD:n}get(e,t=!1){let n=this.resolveHash(e,t);return this.cache.get(n)?.data}getQuery(e,t=!1){let n=this.resolveHash(e,t),r=this.cache.get(n);if(r)return{queryKey:r.queryKey,queryHash:r.queryHash,state:{data:r.data,error:r.error,status:r.status,dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,isInvalidated:r.isInvalidated,staleTime:r.staleTime}}}set(e,t,n,r=!1){let i=this.resolveHash(e,r),a=this.cache.get(i),o={queryKey:e,queryHash:i,data:t,error:null,status:`success`,dataUpdatedAt:xD.now(),errorUpdatedAt:a?.errorUpdatedAt??0,isInvalidated:!1,staleTime:n??a?.staleTime,fetchStatus:`idle`,observers:a?.observers??new Set};this.cache.set(i,o),this.notifyObservers(i),this.enforceMaxEntries(),this.ensureGcScheduled()}setError(e,t){let n=gD(e),r=this.cache.get(n),i={queryKey:e,queryHash:n,data:r?.data,error:t,status:`error`,dataUpdatedAt:r?.dataUpdatedAt??0,errorUpdatedAt:xD.now(),isInvalidated:!1,fetchStatus:`idle`,observers:r?.observers??new Set};this.cache.set(n,i),this.notifyObservers(n),this.ensureGcScheduled()}update(e,t){let n=gD(e),r=this.cache.get(n);r&&(Object.assign(r,t),this.notifyObservers(n))}isStale(e,t){let n=gD(e),r=this.cache.get(n);if(!r||r.isInvalidated)return!0;if(t===1/0)return!1;if(t===0)return!0;let i=t??0;return xD.isExpired(r.dataUpdatedAt,i)}invalidate(e){let t=gD(e);for(let e of[t,t+wD]){let t=this.cache.get(e);t&&(t.isInvalidated=!0,this.notifyObservers(e))}}remove(e){let t=gD(e);for(let e of[t,t+wD]){let t=this.cache.get(e);t&&(t.abortController?.abort(),t.gcTimeout&&clearTimeout(t.gcTimeout),this.cache.delete(e))}}clear(){for(let e of this.cache.values())e.abortController?.abort(),e.gcTimeout&&clearTimeout(e.gcTimeout);this.cache.clear(),this.gcTimer!==void 0&&(clearTimeout(this.gcTimer),this.gcTimer=void 0)}findAll(e){let t=[];for(let n of this.cache.values()){let r={queryKey:n.queryKey,queryHash:n.queryHash,state:{data:n.data,error:n.error,status:n.status,dataUpdatedAt:n.dataUpdatedAt,errorUpdatedAt:n.errorUpdatedAt,isInvalidated:n.isInvalidated,staleTime:n.staleTime}};yD(r,e)&&t.push(r)}return t}cancelAll(e){let t=this.findAll(e);for(let e of t)this.cache.get(e.queryHash)?.abortController?.abort()}subscribe(e,t,n,r=!1){let i=this.resolveHash(e,r),a=this.cache.get(i);return a||(a={queryKey:e,queryHash:i,data:void 0,error:null,status:`idle`,dataUpdatedAt:0,errorUpdatedAt:0,isInvalidated:!1,fetchStatus:`idle`,observers:new Set},this.cache.set(i,a)),a.observers.add(t),n!==void 0&&(a.observerCacheTimes||(a.observerCacheTimes=new Map),a.observerCacheTimes.set(t,n)),a.gcTimeout&&(clearTimeout(a.gcTimeout),a.gcTimeout=void 0),()=>{a.observers.delete(t),a.observerCacheTimes?.delete(t),this.scheduleGC(i)}}notifyObservers(e){this.cache.get(e)?.observers.forEach(e=>{try{e()}catch(e){console.error(`Error in query observer:`,e)}})}startFetch(e){let t=gD(e),n=this.cache.get(t);n?.abortController?.abort();let r=new AbortController;return n&&(n.fetchStatus=`fetching`,n.abortController=r,n.status===`idle`&&(n.status=`loading`),this.notifyObservers(t)),r}endFetch(e){let t=gD(e),n=this.cache.get(t);n&&(n.fetchStatus=`idle`,n.abortController=void 0,this.notifyObservers(t))}isFetching(e){let t=gD(e);return this.cache.get(t)?.fetchStatus===`fetching`}getOrCreateFetch(e,t,n){let r=gD(e),i=this.cache.get(r);if(i?.promise&&i.fetchStatus===`fetching`)return i.promise;i?(i.fetchStatus=`fetching`,i.status===`idle`&&(i.status=`loading`)):(i={queryKey:e,queryHash:r,data:void 0,error:null,status:`loading`,dataUpdatedAt:0,errorUpdatedAt:0,isInvalidated:!1,fetchStatus:`fetching`,observers:new Set},this.cache.set(r,i)),i.abortController?.abort();let a=new AbortController;i.abortController=a;let o=t(a.signal).then(e=>{let t=this.cache.get(r);return t?.promise===o&&(t.data=e,t.error=null,t.status=`success`,t.dataUpdatedAt=xD.now(),t.isInvalidated=!1,n!==void 0&&(t.staleTime=n),t.fetchStatus=`idle`,t.promise=void 0,t.abortController=void 0,this.notifyObservers(r)),e}).catch(e=>{let t=this.cache.get(r);throw t?.promise===o&&(t.error=e,t.status=`error`,t.errorUpdatedAt=xD.now(),t.fetchStatus=`idle`,t.promise=void 0,t.abortController=void 0,this.notifyObservers(r)),e});return i.promise=o,this.notifyObservers(r),o}getInFlightPromise(e){let t=gD(e),n=this.cache.get(t);if(n?.promise&&n.fetchStatus===`fetching`)return n.promise}scheduleGC(e){if(!this.config.gcEnabled)return;let t=this.cache.get(e);!t||t.observers.size>0||(t.gcTimeout&&clearTimeout(t.gcTimeout),t.gcTimeout=setTimeout(()=>{t.observers.size===0&&this.cache.delete(e)},this.resolveCacheTime(t)))}resolveCacheTime(e){let t=e.observerCacheTimes;if(!t||t.size===0)return this.config.defaultCacheTime;let n=this.config.defaultCacheTime;for(let e of t.values())e>n&&(n=e);return n}ensureGcScheduled(){this.config.gcEnabled&&this.gcTimer===void 0&&this.cache.size!==0&&(this.gcTimer=setTimeout(()=>{this.gcTimer=void 0,this.runGarbageCollection(),this.ensureGcScheduled()},this.config.gcInterval))}runGarbageCollection(){for(let[e,t]of this.cache.entries()){if(t.observers.size>0)continue;let n=Math.max(t.dataUpdatedAt,t.errorUpdatedAt);xD.isExpired(n,this.config.defaultCacheTime)&&this.cache.delete(e)}}enforceMaxEntries(){if(this.cache.size<=this.config.maxEntries)return;let e=Array.from(this.cache.entries()).filter(([e,t])=>t.observers.size===0).sort((e,t)=>Math.max(e[1].dataUpdatedAt,e[1].errorUpdatedAt)-Math.max(t[1].dataUpdatedAt,t[1].errorUpdatedAt)),t=this.cache.size-this.config.maxEntries;for(let n=0;n<t&&n<e.length;n++){let[t,r]=e[n];r.gcTimeout&&clearTimeout(r.gcTimeout),this.cache.delete(t)}}dehydrate(){return Array.from(this.cache.values()).filter(e=>e.status===`success`).map(e=>({queryKey:e.queryKey,queryHash:e.queryHash,state:{data:e.data,error:e.error,status:e.status,dataUpdatedAt:e.dataUpdatedAt,errorUpdatedAt:e.errorUpdatedAt,isInvalidated:e.isInvalidated}}))}hydrate(e){for(let{queryKey:t,queryHash:n,state:r}of e)this.cache.has(n)||this.cache.set(n,{queryKey:t,queryHash:n,data:r.data,error:r.error,status:r.status,dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,isInvalidated:r.isInvalidated,fetchStatus:`idle`,observers:new Set});this.ensureGcScheduled()}destroy(){this.gcTimer!==void 0&&(clearTimeout(this.gcTimer),this.gcTimer=void 0),this.clear()}getStats(){let e=0,t=0;for(let n of this.cache.values())e+=n.observers.size,n.fetchStatus===`fetching`&&t++;return{size:this.cache.size,maxEntries:this.config.maxEntries,observerCount:e,fetchingCount:t}}},ED=class{mutations=new Map;mutationsByKey=new Map;observers=new Map;globalObservers=new Set;create(e){let t=bD(),n={id:t,mutationKey:e?.mutationKey,status:`idle`,data:void 0,error:null,variables:e?.variables,context:void 0,submittedAt:0,isPaused:!1};if(this.mutations.set(t,n),e?.mutationKey){let n=JSON.stringify(e.mutationKey);this.mutationsByKey.has(n)||this.mutationsByKey.set(n,new Set),this.mutationsByKey.get(n).add(t)}return this.notifyObservers(t),t}get(e){return this.mutations.get(e)}getByKey(e){let t=JSON.stringify(e),n=this.mutationsByKey.get(t);return n?Array.from(n).map(e=>this.mutations.get(e)).filter(e=>e!==void 0):[]}update(e,t){let n=this.mutations.get(e);n&&(Object.assign(n,t),(t.status===`success`||t.status===`error`)&&(n.settledAt=xD.now()),this.notifyObservers(e))}start(e,t){this.update(e,{status:`loading`,variables:t,submittedAt:xD.now(),error:null})}success(e,t,n){this.update(e,{status:`success`,data:t,context:n,error:null})}failure(e,t){this.update(e,{status:`error`,error:t})}reset(e){this.update(e,{status:`idle`,data:void 0,error:null,variables:void 0,context:void 0,submittedAt:0,settledAt:void 0})}remove(e){let t=this.mutations.get(e);if(t){if(t.mutationKey){let n=JSON.stringify(t.mutationKey);this.mutationsByKey.get(n)?.delete(e)}this.mutations.delete(e),this.observers.delete(e),this.notifyGlobalObservers()}}clear(){this.mutations.clear(),this.mutationsByKey.clear(),this.observers.clear(),this.notifyGlobalObservers()}getAll(){return Array.from(this.mutations.values())}getByStatus(e){return this.getAll().filter(t=>t.status===e)}getPending(){return this.getByStatus(`loading`)}getPaused(){return this.getAll().filter(e=>e.isPaused)}subscribe(e,t){return this.observers.has(e)||this.observers.set(e,new Set),this.observers.get(e).add(t),()=>{this.observers.get(e)?.delete(t)}}subscribeAll(e){return this.globalObservers.add(e),()=>{this.globalObservers.delete(e)}}notifyObservers(e){this.observers.get(e)?.forEach(e=>{try{e()}catch(e){console.error(`Error in mutation observer:`,e)}}),this.notifyGlobalObservers()}notifyGlobalObservers(){this.globalObservers.forEach(e=>{try{e()}catch(e){console.error(`Error in global mutation observer:`,e)}})}pause(e){this.update(e,{isPaused:!0})}resume(e){this.update(e,{isPaused:!1})}pauseAll(){for(let e of this.mutations.keys())this.pause(e)}resumeAll(){for(let e of this.mutations.values())e.isPaused&&this.resume(e.id)}dehydrate(){return this.getPaused().map(e=>({mutationKey:e.mutationKey,state:{status:e.status,variables:e.variables,submittedAt:e.submittedAt}}))}hydrate(e){for(let{mutationKey:t,state:n}of e){let e=this.create({mutationKey:t}),r=n;this.update(e,{status:r.status??`idle`,variables:r.variables,submittedAt:r.submittedAt??0,isPaused:!0})}}getStats(){let e=this.getAll();return{total:e.length,idle:e.filter(e=>e.status===`idle`).length,loading:e.filter(e=>e.status===`loading`).length,success:e.filter(e=>e.status===`success`).length,error:e.filter(e=>e.status===`error`).length,paused:e.filter(e=>e.isPaused).length}}}})))()}function OD(e){return e}function kD({client:e,children:t,autoConnect:n=!0,connectTimeout:r=3e4,onConnect:i,onDisconnect:a,onError:o,defaultOptions:s,cacheOptions:c}){let l=(0,K.useRef)(!0),u=(0,K.useRef)(null);u.current===null&&(u.current=new ND(e,{maxEntries:c?.maxEntries,defaultCacheTime:c?.defaultCacheTime}));let d=u.current;(0,K.useEffect)(()=>()=>{u.current?.destroy(),u.current=null},[]);let f=(0,K.useMemo)(()=>({staleTime:s?.queries?.staleTime??0,cacheTime:s?.queries?.cacheTime??3e5,retry:s?.queries?.retry??3,refetchOnWindowFocus:s?.queries?.refetchOnWindowFocus??!0,refetchOnReconnect:s?.queries?.refetchOnReconnect??!0}),[s]),p=(0,K.useMemo)(()=>`getBackendNames`in e&&typeof e.getBackendNames==`function`?e.getBackendNames():[],[e]),[m,h]=(0,K.useState)(()=>{let t=new Map;for(let n of p)t.set(n,{name:n,isConnected:e.isConnected(n),isConnecting:!1,error:null});return t}),[g,_]=(0,K.useState)(null),v=(0,K.useCallback)((e,t)=>{l.current&&h(n=>{let r=new Map(n),i=r.get(e)||{name:e,isConnected:!1,isConnecting:!1,error:null};return r.set(e,{...i,...t}),r})},[]),y=(0,K.useCallback)(async t=>{v(t,{isConnecting:!0,error:null});try{let n=new Promise((e,n)=>{setTimeout(()=>{n(Error(`Connection timeout for backend '${t}' after ${r}ms`))},r)});await Promise.race([e.connect(t),n]),l.current&&(v(t,{isConnected:!0,isConnecting:!1}),i?.(t))}catch(e){if(l.current){let n=e;v(t,{isConnected:!1,isConnecting:!1,error:n}),o?.(t,n)}throw e}},[e,r,v,i,o]),b=(0,K.useCallback)(async t=>{try{await e.disconnect(t),l.current&&(v(t,{isConnected:!1,isConnecting:!1}),a?.(t))}catch(e){if(l.current){let n=e;v(t,{error:n}),o?.(t,n)}throw e}},[e,v,a,o]),x=(0,K.useCallback)(async e=>{if(e)await y(e);else{let e=p.map(e=>y(e).catch(t=>{console.error(`Failed to connect to backend '${e}':`,t)}));await Promise.all(e)}},[p,y]),S=(0,K.useCallback)(async e=>{if(e)await b(e);else{let e=p.map(e=>b(e).catch(t=>{console.error(`Failed to disconnect from backend '${e}':`,t)}));await Promise.all(e)}},[p,b]),C=(0,K.useCallback)(t=>t?m.get(t)?.isConnected??e.isConnected(t):e.isConnected(),[e,m]),w=(0,K.useCallback)(t=>e.backend(t),[e]);(0,K.useEffect)(()=>{n&&p.some(t=>!e.isConnected(t))&&x().catch(e=>{l.current&&_(e)})},[n,p,e,x]),(0,K.useEffect)(()=>()=>{l.current=!1},[]);let ee=(0,K.useMemo)(()=>{let e=p.length>0&&p.every(e=>m.get(e)?.isConnected??!1),t=p.some(e=>m.get(e)?.isConnected??!1),n=p.some(e=>m.get(e)?.isConnecting??!1);return{backends:m,allConnected:e,anyConnected:t,anyConnecting:n,globalError:g}},[p,m,g]),T=(0,K.useMemo)(()=>({client:e,getBackend:w,backendNames:p,isConnected:C,connect:x,disconnect:S}),[e,w,p,C,x,S]);return(0,AD.jsx)(jD.Provider,{value:T,children:(0,AD.jsx)(MD.Provider,{value:ee,children:(0,AD.jsx)(uD.Provider,{value:OD(d),children:(0,AD.jsx)(pD.Provider,{value:f,children:t})})})})}var K,AD,jD,MD,ND;function PD(){return(PD=t((()=>{hD(),DD(),K=r(),AD=a(),jD=(0,K.createContext)(null),jD.displayName=`MultiBackendContext`,MD=(0,K.createContext)(null),MD.displayName=`MultiBackendConnectionContext`,ND=class{multiClient;queryCache;mutationCache;listeners=new Map;transportUnsubs=[];constructor(e,t={}){this.multiClient=e,this.queryCache=new TD({maxEntries:t.maxEntries??1e3,defaultCacheTime:t.defaultCacheTime??3e5}),this.mutationCache=new ED,this.wireTransportEvents()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}async invalidateQueries(e){let t=this.queryCache.findAll(e);for(let e of t)this.queryCache.invalidate(e.queryKey)}getQueryData(e){return this.queryCache.get(e)}setQueryData(e,t){let n=this.queryCache.get(e),r=typeof t==`function`?t(n):t;this.queryCache.set(e,r)}async cancelQueries(e){this.queryCache.cancelAll(e)}on(e,t){let n=this.listeners.get(e);return n||(n=new Set,this.listeners.set(e,n)),n.add(t),()=>{this.listeners.get(e)?.delete(t)}}off(e,t){this.listeners.get(e)?.delete(t)}emit(e){let t=this.listeners.get(e);if(t)for(let e of t)try{e()}catch{}}wireTransportEvents(){let e=this.multiClient;if(typeof e.on!=`function`)return;let t=e.on(`reconnect`,()=>this.emit(`reconnect`));typeof t==`function`&&this.transportUnsubs.push(t)}destroy(){this.queryCache.destroy(),this.mutationCache.clear(),this.listeners.clear();for(let e of this.transportUnsubs)try{e()}catch{}this.transportUnsubs.length=0}}})))()}function FD({variant:e=`circular`,message:t,indicator:n,portal:r=!1,size:i=48,progress:a,fullScreen:o=!1,sx:s}){let c=r?Ht:ID.Fragment,l=a!==void 0;return(0,LD.jsx)(c,{children:(0,LD.jsxs)(RD,{fullScreen:o,sx:s,children:[n||(e===`linear`?(0,LD.jsx)(yt,{variant:l?`determinate`:`indeterminate`,value:a,color:`primary`,sx:{width:`100%`,maxWidth:360,borderRadius:1}}):(0,LD.jsx)(Ge,{variant:l?`determinate`:`indeterminate`,value:a,size:i,thickness:3,color:`primary`})),t&&(0,LD.jsx)(dt,{variant:`body2`,sx:{color:`text.secondary`,mt:1,textAlign:`center`},children:t}),l&&(0,LD.jsxs)(dt,{variant:`caption`,sx:{color:`text.disabled`},children:[Math.round(a),`%`]})]})})}var ID,LD,RD;function zD(){return(zD=t((()=>{ID=r(),we(),Lt(),Pe(),ft(),Qe(),_e(),LD=a(),RD=de(D,{shouldForwardProp:e=>e!==`fullScreen`})(({theme:e,fullScreen:t})=>({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:e.spacing(2),padding:e.spacing(3),...t?{position:`fixed`,top:0,left:0,right:0,bottom:0,zIndex:e.zIndex.modal+1,backgroundColor:e.palette.background.default}:{flexGrow:1,width:`100%`,minHeight:200}}))})))()}function BD({children:e}){let{user:t,initialized:n,initialize:r}=ur(),i=o();if((0,HD.useEffect)(()=>{r()},[r]),!n)return(0,UD.jsx)(FD,{fullScreen:!0,message:`Checking your session…`});if(!t){let e=encodeURIComponent(i.pathname+i.search+i.hash);return(0,UD.jsx)(s,{to:`/auth/sign-in?returnTo=${e}`,replace:!0})}return(0,UD.jsx)(ar,{children:e},`${t.id}:${ur.getState().sessionId}`)}function VD({children:e}){let{user:t,initialized:n,initialize:r}=ur(),i=o();if((0,HD.useEffect)(()=>{r()},[r]),!n)return(0,UD.jsx)(FD,{fullScreen:!0,message:`Checking your session…`});if(t){let e=new URLSearchParams(i.search),t=lr(e.get(`returnTo`));return(0,UD.jsx)(s,{to:t,replace:!0})}return(0,UD.jsx)(UD.Fragment,{children:e})}var HD,UD;function WD(){return(WD=t((()=>{HD=r(),y(),zD(),dr(),or(),UD=a()})))()}function GD({children:e}){return hr()?(0,KD.jsx)(KD.Fragment,{children:e}):(0,KD.jsx)(s,{to:`/`,replace:!0})}var KD;function qD(){return(qD=t((()=>{y(),_r(),KD=a()})))()}var JD,YD,XD;function ZD(){return(ZD=t((()=>{JD={full:280,mini:73,mobile:280,stackedCollapsed:72,stackedExpanded:300},YD={mobile:64,desktop:72},XD={headerHeight:`--layout-header-height`,headerMobileHeight:`--layout-header-mobile-height`,headerDesktopHeight:`--layout-header-desktop-height`,headerBlur:`--layout-header-blur`,headerZIndex:`--layout-header-z-index`,navWidth:`--layout-nav-width`,navMiniWidth:`--layout-nav-mini-width`,navMobileWidth:`--layout-nav-mobile-width`,navZIndex:`--layout-nav-z-index`,navBg:`--layout-nav-bg`,navTextColor:`--layout-nav-text-color`,navTextSecondaryColor:`--layout-nav-text-secondary-color`,mainPaddingTop:`--layout-main-padding-top`,mainPaddingBottom:`--layout-main-padding-bottom`,mainPaddingLeft:`--layout-main-padding-left`,mainPaddingRight:`--layout-main-padding-right`},XD.headerMobileHeight,`${YD.mobile}`,XD.headerDesktopHeight,`${YD.desktop}`,XD.headerBlur,XD.navWidth,`${JD.full}`,XD.navMiniWidth,`${JD.mini}`,XD.navMobileWidth,`${JD.mobile}`})))()}function QD({children:e,initialConfig:t,persistKey:n}){let r=ce(),i=me(r.breakpoints.down(`md`)),a=yd(e=>e.sidebarCollapsed),o=yd(e=>e.setSidebarCollapsed),[s,c]=(0,q.useState)(()=>{let e=n?a[n]??!1:!1;return{...rO,...t,...n?{sidenavCollapsed:e}:{}}}),[l,u]=(0,q.useState)([]),d=(0,q.useMemo)(()=>s.sidenavVariant===`mini`||s.sidenavCollapsed?s.sidenavVariant===`stacked`?JD.stackedCollapsed:JD.mini:s.sidenavVariant===`stacked`?JD.stackedExpanded:JD.full,[s.sidenavVariant,s.sidenavCollapsed]),f=(0,q.useMemo)(()=>({...s,drawerWidth:d}),[s,d]),p=(0,q.useCallback)(e=>{c(t=>({...t,...e}))},[]),m=(0,q.useCallback)(()=>{c(e=>({...e,drawerOpen:!e.drawerOpen}))},[]),h=(0,q.useCallback)(()=>{c(e=>{let t=!e.sidenavCollapsed;return n&&queueMicrotask(()=>o(n,t)),{...e,sidenavCollapsed:t}})},[n,o]),g=(0,q.useCallback)(e=>{c(t=>({...t,navigationMenuType:e}))},[]),_=(0,q.useCallback)(e=>{c(t=>({...t,sidenavVariant:e}))},[]),v=(0,q.useCallback)(e=>{c(t=>({...t,navColor:e}))},[]),y=(0,q.useCallback)(e=>l.includes(e),[l]),b=(0,q.useCallback)(e=>{u(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),x=(0,q.useCallback)((e,t)=>{if(!e.path)return!1;let n=t.split(/[?#]/)[0].replace(/\/+$/,``)||`/`;if(e.path===n||e.selectionPrefix&&(Array.isArray(e.selectionPrefix)?e.selectionPrefix:[e.selectionPrefix]).some(e=>n.startsWith(e)))return!0;if(e.deepMatch!==!1&&n.startsWith(e.path)){let t=n[e.path.length];return!t||t===`/`}return!1},[]),S=(0,q.useCallback)((e,t)=>{if(!e||e.length===0)return!1;let n=e=>x(e,t)?!0:e.children&&e.children.length>0?e.children.some(n):!1;return e.some(n)},[x]),C=(0,q.useMemo)(()=>({config:f,isMobile:i,setConfig:p,toggleDrawer:m,toggleSidenavCollapse:h,setNavigationMenuType:g,setSidenavVariant:_,setNavColor:v,openItems:l,setOpenItems:u,isItemOpen:y,toggleItem:b,isNestedItemActive:S,isNavItemActive:x}),[f,i,p,m,h,g,_,v,l,y,b,S,x]);return(0,nO.jsx)(iO.Provider,{value:C,children:e})}function $D(){let e=(0,q.useContext)(iO);if(!e)throw Error(`useLayoutContext must be used within a LayoutProvider`);return e}function eO(){let{config:e}=$D();return e}function tO(e){let{isNavItemActive:t,isNestedItemActive:n}=$D();return(0,q.useMemo)(()=>({isItemActive:n=>t(n,e),isNestedActive:t=>n(t,e)}),[t,n,e])}var q,nO,rO,iO;function aO(){return(aO=t((()=>{q=r(),le(),fe(),ZD(),bd(),nO=a(),rO={navigationMenuType:`sidenav`,sidenavVariant:`default`,sidenavCollapsed:!1,topnavVariant:`default`,navColor:`default`,drawerOpen:!1,drawerWidth:JD.full,compactLayout:!1},iO=(0,q.createContext)(null),iO.displayName=`LayoutContext`})))()}function oO(e=10){let[t,n]=(0,cO.useState)(!1);return(0,cO.useEffect)(()=>{if(typeof window>`u`)return;let t=e,r=Math.max(0,e/2),i=!1,a=()=>{i||(i=!0,requestAnimationFrame(()=>{let e=window.scrollY;n(n=>n?e>r:e>t),i=!1}))};return window.addEventListener(`scroll`,a,{passive:!0}),a(),()=>{window.removeEventListener(`scroll`,a)}},[e]),t}function sO({slots:e,slotProps:t,disableSticky:n=!1,disableOffset:r=!1,disableElevation:i=!1,containerized:a=!1,maxWidth:o=`lg`,sx:s}){let c=oO(),l=(0,lO.jsxs)(lO.Fragment,{children:[e?.leftArea&&(0,lO.jsx)(fO,{sx:{gap:1,...t?.leftArea},children:e.leftArea}),(0,lO.jsx)(fO,{sx:{flex:1,justifyContent:`center`,mx:2,...t?.centerArea},children:e?.centerArea}),e?.rightArea&&(0,lO.jsx)(fO,{sx:{gap:1,...t?.rightArea},children:e.rightArea})]});return(0,lO.jsxs)(uO,{color:`transparent`,position:n?`static`:`sticky`,isOffset:c,disableOffset:r,disableElevation:i,sx:s,children:[e?.topArea&&(0,lO.jsx)(D,{sx:t?.topArea,children:e.topArea}),(0,lO.jsx)(dO,{sx:t?.toolbar,children:a?(0,lO.jsx)(Xe,{maxWidth:o,sx:{display:`flex`,alignItems:`center`,...t?.container},children:l}):l}),e?.bottomArea&&(0,lO.jsx)(D,{sx:t?.bottomArea,children:e.bottomArea})]})}var cO,lO,uO,dO,fO;function pO(){return(pO=t((()=>{cO=r(),_e(),re(),Ue(),ut(),we(),Me(),ZD(),lO=a(),uO=de(qe,{shouldForwardProp:e=>![`isOffset`,`disableOffset`,`disableElevation`].includes(e)})(({theme:e,isOffset:t,disableOffset:n,disableElevation:r})=>{let i={opacity:0,content:`""`,visibility:`hidden`,position:`absolute`,transition:e.transitions.create([`opacity`,`visibility`],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})},a={...i,top:0,left:0,width:`100%`,height:`100%`,zIndex:-1,backdropFilter:`blur(var(${XD.headerBlur}, 8px))`,WebkitBackdropFilter:`blur(var(${XD.headerBlur}, 8px))`,backgroundColor:T(e.palette.background.default,.8),...t&&{opacity:1,visibility:`visible`}},o={...i,left:0,right:0,bottom:0,height:24,margin:`auto`,borderRadius:`50%`,width:`calc(100% - 48px)`,zIndex:-2,boxShadow:e.shadows[8],...t&&{opacity:.48,visibility:`visible`}};return{backgroundColor:`transparent`,boxShadow:`none`,zIndex:`var(${XD.headerZIndex}, ${e.zIndex.appBar})`,...!n&&{"&::before":a},...!r&&{"&::after":o}}}),dO=de(st)(({theme:e})=>({minHeight:YD.mobile,[e.breakpoints.up(`md`)]:{minHeight:YD.desktop,paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}})),fO=de(D)({display:`flex`,alignItems:`center`})})))()}var mO;function hO(){return(hO=t((()=>{mO={openMenu:`Open menu`,closeMenu:`Close menu`,collapseSidebar:`Collapse sidebar`,expandSidebar:`Expand sidebar`,navigation:`Main navigation`,main:`Main content`,skipToContent:`Skip to main content`}})))()}function gO({children:e,sx:t,fillContent:n=!1,hideScrollbar:r=!1,autoHide:i=!0,axis:a=`y`,maxHeight:o,minHeight:s,className:c,ref:l,...u}){return(0,_O.jsx)(vO,{ref:l,ownerState:{fillContent:n,hideScrollbar:r,autoHide:i,axis:a},className:c,sx:[{...o!==void 0&&{maxHeight:o},...s!==void 0&&{minHeight:s}},...Array.isArray(t)?t:[t]],...u,children:e})}var _O,vO;function yO(){return(yO=t((()=>{we(),_e(),ss(),_O=a(),vO=de(D,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{fillContent:n,hideScrollbar:r,autoHide:i,axis:a}=t;return{minWidth:0,minHeight:0,...a===`x`?{overflowX:`auto`,overflowY:`hidden`}:a===`y`?{overflowX:`hidden`,overflowY:`auto`}:{overflow:`auto`},...n&&{flexGrow:1,display:`flex`,flexDirection:`column`},...!r&&as(e,{autoHide:i}),...r&&{scrollbarWidth:`none`,msOverflowStyle:`none`,"&::-webkit-scrollbar":{display:`none`}}}})})))()}function bO({collapsed:e,labels:t,sx:n,...r}){return(0,xO.jsx)(Bt,{...r,size:`small`,"aria-label":e?t.expand:t.collapse,"aria-expanded":!e,sx:[e=>({position:`absolute`,top:36,insetInlineEnd:0,"--prism-sidebar-toggle-shift":e.direction===`rtl`?`-50%`:`50%`,transform:`translate(var(--prism-sidebar-toggle-shift), -50%)`,width:24,height:24,bgcolor:`background.paper`,border:1,borderColor:`divider`,boxShadow:1,"&:hover, &.Mui-focusVisible":{bgcolor:`background.paper`,backgroundImage:`linear-gradient(${(e.vars??e).palette.action.hover}, ${(e.vars??e).palette.action.hover})`}}),...Array.isArray(n)?n:[n]],children:e?(0,xO.jsx)(Cn,{sx:{fontSize:18}}):(0,xO.jsx)(Hn,{sx:{fontSize:18}})})}var xO;function SO(){return(SO=t((()=>{Mn(),Mt(),xO=a()})))()}function CO({logo:e,compactLogo:t,navData:n,renderNavItem:r,footer:i,showCollapseButton:a=!0,layoutQuery:o=`md`,"aria-label":s=Ad.mainNav,labels:c,sx:l}){let u={...mO,...c},{config:d,toggleSidenavCollapse:f}=$D(),{sidenavVariant:p,sidenavCollapsed:m}=d,h=!m&&p!==`mini`;return(0,J.jsxs)(OO,{as:`nav`,role:`navigation`,"aria-label":s,railWidth:d.drawerWidth,sx:[e=>({display:{xs:`none`,[o]:`flex`}}),...Array.isArray(l)?l:[l]],children:[(0,J.jsx)(D,{sx:{display:`flex`,alignItems:`center`,justifyContent:h?`flex-start`:`center`,height:{xs:YD.mobile,md:YD.desktop},px:h?3:1,flexShrink:0},children:h||t===void 0?e:t}),(0,J.jsx)(We,{}),(0,J.jsxs)(kO,{children:[(0,J.jsx)(AO,{children:n?.map((e,t)=>(0,J.jsxs)(DO.Fragment,{children:[!h&&t>0&&(0,J.jsx)(We,{sx:{mx:1.5}}),(0,J.jsx)(Gt,{subheader:h&&e.subheader?(0,J.jsx)(bt,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):null,sx:{px:h?1:.5},children:e.items.map(e=>r?r(e,0):(0,J.jsx)(EO,{item:e,showText:h,depth:0},e.id))})]},e.id))}),i&&(0,J.jsx)(D,{sx:{flexShrink:0,p:2},children:i})]}),a&&p!==`mini`&&(0,J.jsx)(bO,{collapsed:m,onClick:f,labels:{expand:u.expandSidebar,collapse:u.collapseSidebar}})]})}function wO({logo:e,navData:t,renderNavItem:n,footer:r,layoutQuery:i=`md`,"aria-label":a=Ad.mainNav,labels:s,sx:c}){let l={...mO,...s},{config:u,setConfig:d}=$D(),f=o(),p=()=>d({drawerOpen:!1});(0,DO.useEffect)(()=>{d({drawerOpen:!1})},[f.key,d]);let{drawerOpen:m}=u;return(0,J.jsxs)(Ke,{open:m,onClose:p,slotProps:{paper:{role:`dialog`,"aria-modal":!0,"aria-label":a}},"aria-label":a,sx:[e=>({display:{xs:`block`,[i]:`none`},"& .MuiDrawer-paper":{width:JD.mobile,backgroundColor:`var(${XD.navBg}, ${e.palette.background.paper})`}}),...Array.isArray(c)?c:[c]],children:[(0,J.jsxs)(D,{sx:{display:`flex`,alignItems:`center`,height:{xs:YD.mobile,md:YD.desktop},px:2.5},children:[(0,J.jsx)(D,{sx:{flex:1},children:e}),(0,J.jsx)(Bt,{"aria-label":l.closeMenu,onClick:p,children:(0,J.jsx)(zn,{fontSize:`small`})})]}),(0,J.jsx)(We,{}),(0,J.jsx)(D,{component:`nav`,role:`navigation`,"aria-label":a,sx:{flex:1,overflow:`auto`},children:t?.map(e=>(0,J.jsx)(Gt,{subheader:e.subheader?(0,J.jsx)(bt,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):null,sx:{px:1},children:e.items.map(e=>n?n(e,0):(0,J.jsx)(EO,{item:e,showText:!0,depth:0},e.id))},e.id))}),r&&(0,J.jsx)(D,{sx:{p:2},children:r})]})}function TO({item:e,showText:t,depth:n,active:r,current:i}){let a=(0,J.jsxs)(qt,{component:e.path?d:`div`,...e.path?{to:e.path}:{},disabled:e.disabled,selected:r,"aria-current":i,"aria-label":e.title,title:e.caption,sx:e=>({minHeight:44,borderRadius:1,pl:t?n*2+2:void 0,...!t&&{justifyContent:`center`,px:1,mx:.5},...r&&{color:`primary.main`,bgcolor:T(e.palette.primary.main,.08),"&:hover":{bgcolor:T(e.palette.primary.main,.16)}}}),children:[e.icon&&(0,J.jsx)(At,{sx:{minWidth:t?36:`unset`,color:r?`primary.main`:`text.secondary`,...!t&&{mr:0,justifyContent:`center`}},children:(0,J.jsx)(D,{component:`span`,sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:24,height:24},children:e.icon})}),t&&(0,J.jsx)(zt,{primary:e.title,slotProps:{primary:{variant:`body2`,noWrap:!0,sx:{fontWeight:r?600:500}}}}),t&&e.info]});return t?a:(0,J.jsx)(et,{title:e.title,placement:`right`,arrow:!0,children:a},e.id)}function EO({item:e,showText:t,depth:n}){let{pathname:r}=o(),{isItemActive:i}=tO(r),a=i(e);return(0,J.jsx)(TO,{item:e,showText:t,depth:n,active:a,current:a?r.replace(/\/$/,``)===e.path?.replace(/\/$/,``)?`page`:`location`:void 0},e.id)}var DO,J,OO,kO,AO;function jO(){return(jO=t((()=>{Mn(),DO=r(),_e(),re(),He(),yO(),SO(),we(),_t(),gt(),Ct(),Ot(),Ft(),Mt(),Re(),tt(),y(),aO(),hO(),jd(),ZD(),J=a(),OO=de(D,{shouldForwardProp:e=>e!==`railWidth`})(({theme:e,railWidth:t})=>({position:`fixed`,top:0,insetInlineStart:0,height:`100%`,width:t,flexShrink:0,display:`flex`,flexDirection:`column`,zIndex:e.zIndex.drawer,backgroundColor:`var(${XD.navBg}, ${e.palette.background.paper})`,borderInlineEnd:`1px solid ${e.palette.divider}`,transition:e.transitions.create(`width`,{duration:e.transitions.duration.shorter})})),kO=de(D)({display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`}),AO=de(gO)({flex:1})})))()}function MO({navData:e,renderNavItem:t,layoutQuery:n=`lg`,"aria-label":r=Ad.mainNav,sx:i}){return(0,PO.jsx)(FO,{"aria-label":r,sx:i,children:e?.map(e=>e.items.map(e=>t?t(e,0):(0,PO.jsx)(NO,{item:e},e.id)))})}function NO({item:e}){let{pathname:t}=o(),{isItemActive:n}=tO(t),r=n(e);return(0,PO.jsxs)(D,{component:e.path?d:`div`,...e.path?{to:e.path}:{},role:`menuitem`,tabIndex:0,"aria-disabled":e.disabled||void 0,"aria-current":r?`page`:void 0,sx:t=>({display:`flex`,alignItems:`center`,gap:1,px:1.5,py:.75,borderRadius:1,whiteSpace:`nowrap`,textDecoration:`none`,color:r?`primary.main`:`text.primary`,typography:`body2`,fontWeight:r?600:500,cursor:e.disabled?`default`:`pointer`,opacity:e.disabled?.5:1,...r&&{bgcolor:T(t.palette.primary.main,.08)},"&:hover":{bgcolor:e.disabled?void 0:r?T(t.palette.primary.main,.16):`action.hover`},"&:focus-visible":{outline:`2px solid ${t.palette.primary.main}`,outlineOffset:-2}}),children:[e.icon&&(0,PO.jsx)(D,{component:`span`,"aria-hidden":`true`,sx:{display:`flex`,color:r?`primary.main`:`text.secondary`},children:e.icon}),(0,PO.jsx)(`span`,{children:e.title}),e.info]})}var PO,FO;function IO(){return(IO=t((()=>{_e(),re(),we(),y(),aO(),jd(),ZD(),PO=a(),FO=de(`nav`)(({theme:e})=>({display:`flex`,alignItems:`center`,width:`100%`,minHeight:48,borderBottom:`1px solid ${e.palette.divider}`,backgroundColor:`var(${XD.navBg}, ${e.palette.background.paper})`,paddingLeft:e.spacing(2),paddingRight:e.spacing(2),gap:e.spacing(.5),overflowX:`auto`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}))})))()}function LO({contentMode:e,children:t,layoutQuery:n,navData:r,headerSlots:i,logo:a,compactLogo:o,footer:s,sidenavFooter:c,slotProps:l,labels:u}){let d={...mO,...u},f=eO(),{toggleDrawer:p}=$D(),{navigationMenuType:m,sidenavCollapsed:h,sidenavVariant:g,drawerWidth:_}=f,v=m===`sidenav`||m===`combo`,y=m===`topnav`||m===`combo`,b=v?_:0,x=(0,zO.useMemo)(()=>{if(!v)return i;let e=(0,BO.jsx)(Bt,{onClick:p,"aria-label":d.openMenu,"aria-haspopup":`dialog`,"aria-expanded":f.drawerOpen,sx:{display:{xs:`inline-flex`,[n]:`none`},bgcolor:`transparent`,transition:`transform 0.2s ease`,"&:hover":{bgcolor:`transparent`,transform:`scale(1.1)`}},children:(0,BO.jsx)(Un,{})});return{...i,leftArea:(0,BO.jsxs)(BO.Fragment,{children:[e,i?.leftArea]})}},[v,i,p,n,d.openMenu,f.drawerOpen]);return(0,BO.jsxs)(VO,{contentMode:e,hasSidebar:v,sidebarWidth:b,layoutQuery:n,children:[(0,BO.jsx)(Dd,{href:`#${l?.main?.id??`main-content`}`,children:d.skipToContent}),(0,BO.jsx)(sO,{slots:x,"aria-label":Ad.header,sx:{...l?.header?.sx},...l?.header}),y&&(0,BO.jsx)(MO,{navData:r,layoutQuery:n,"aria-label":v?`Secondary navigation`:Ad.mainNav}),v&&(0,BO.jsxs)(BO.Fragment,{children:[(0,BO.jsx)(CO,{logo:a,compactLogo:o,navData:r,footer:c,layoutQuery:n,"aria-label":d.navigation,labels:d}),(0,BO.jsx)(wO,{logo:a,navData:r,footer:c,layoutQuery:n,"aria-label":d.navigation,labels:d})]}),(0,BO.jsx)(D,{component:`main`,id:l?.main?.id??`main-content`,className:l?.main?.className,role:`main`,"aria-label":d.main,tabIndex:-1,sx:{display:`flex`,flexDirection:`column`,flex:`1 1 auto`,minWidth:0,...e===`workspace`&&{minHeight:0,overflow:`hidden`},"&:focus":{outline:`none`},...!l?.main?.disablePadding&&{py:{xs:2,sm:3,md:4},px:{xs:2,sm:3,md:4}},...l?.main?.sx},children:l?.main?.maxWidth?(0,BO.jsx)(Xe,{maxWidth:l.main.maxWidth,sx:{flex:1,display:`flex`,flexDirection:`column`,minWidth:0,...e===`workspace`&&{minHeight:0}},children:t}):t}),s]})}function RO({contentMode:e=`document`,children:t,layoutQuery:n=`lg`,navData:r,headerSlots:i,logo:a,compactLogo:o,footer:s,sidenavFooter:c,initialConfig:l,persistKey:u,slotProps:d,labels:f}){return(0,BO.jsx)(QD,{initialConfig:l,persistKey:u,children:(0,BO.jsx)(LO,{contentMode:e,layoutQuery:n,navData:r,headerSlots:i,logo:a,compactLogo:o,footer:s,sidenavFooter:c,slotProps:d,labels:f,children:t})})}var zO,BO,VO;function HO(){return(HO=t((()=>{Mn(),zO=r(),hO(),_e(),we(),Me(),Mt(),aO(),pO(),jO(),IO(),jd(),BO=a(),VO=de(D,{shouldForwardProp:e=>![`hasSidebar`,`sidebarWidth`,`layoutQuery`,`contentMode`].includes(e)})(({theme:e,hasSidebar:t,sidebarWidth:n,layoutQuery:r,contentMode:i})=>({display:`flex`,flexDirection:`column`,flex:`1 1 auto`,minHeight:`100vh`,minWidth:0,...i===`workspace`&&{height:`100dvh`,minHeight:0,overflow:`hidden`},...t&&{[e.breakpoints.up(r)]:{marginInlineStart:n,minWidth:0}},transition:e.transitions.create(`margin-inline-start`,{duration:e.transitions.duration.shorter})}))})))()}function UO({children:e,logo:t,maxWidth:n=420,sx:r}){return(0,WO.jsxs)(GO,{sx:r,children:[t&&(0,WO.jsx)(D,{sx:{position:{xs:`static`,md:`fixed`},top:0,left:0,p:3,zIndex:3},children:t}),(0,WO.jsx)(KO,{children:(0,WO.jsx)(qO,{sx:{maxWidth:n},children:e})})]})}var WO,GO,KO,qO;function JO(){return(JO=t((()=>{_e(),re(),we(),De(),WO=a(),GO=de(D)(({theme:e})=>({display:`flex`,flexDirection:`column`,minHeight:`100vh`,background:e.palette.mode===`dark`?`linear-gradient(135deg, ${T(e.palette.primary.dark,.1)} 0%, ${e.palette.background.default} 100%)`:`linear-gradient(135deg, ${T(e.palette.primary.light,.1)} 0%, ${e.palette.background.default} 100%)`})),KO=de(D)({display:`flex`,flex:`1 1 auto`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:24}),qO=de(ze)(({theme:e})=>({width:`100%`,maxWidth:420,padding:e.spacing(5,3),position:`relative`,zIndex:2}))})))()}function YO({color:e,pulse:t}){return(0,Y.jsx)(D,{sx:{width:6,height:6,borderRadius:`50%`,bgcolor:e,flexShrink:0,...t&&{boxShadow:`0 0 4px ${e}`,animation:`pulse 2s ease-in-out infinite`,"@keyframes pulse":{"0%, 100%":{opacity:1},"50%":{opacity:.5}}}}})}function XO(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return n>0?r>0?`${n}d ${r}h`:`${n}d`:r>0?i>0?`${r}h ${i}m`:`${r}h`:`${i}m`}function ZO({children:e,priority:t}){return(0,Y.jsx)(D,{"data-priority":t,sx:{display:`flex`,alignItems:`center`,gap:.5,flexShrink:0,whiteSpace:`nowrap`,minWidth:0},children:e})}function QO({children:e,highlight:t}){return(0,Y.jsx)(dt,{variant:`caption`,sx:{fontSize:`inherit`,color:t?`text.primary`:`text.secondary`,fontWeight:t?600:400},children:e})}function $O({label:e,value:t}){return(0,Y.jsxs)(QO,{children:[e,` `,(0,Y.jsx)(D,{component:`span`,sx:{color:`text.primary`,fontWeight:600},children:t})]})}function ek({docked:e=!1}){let t=A(e=>e.activeProject),n=A(e=>e.activeStack),{can:r,snapshot:i}=tr(),a=r(`OmnitronDaemon.status`),o=r(`OmnitronNodes.listNodes`),s=r(`OmnitronProject.listStacks`),c=r(`OmnitronAlerts.getSummary`)&&r(`OmnitronAlerts.getActiveAlerts`)&&r(`OmnitronAlerts.getRules`),l=JSON.stringify([i?.userId,t,n,a,o,s,c]);return(0,Y.jsx)(tk,{docked:e,showStatus:a,showNodes:o,showStacks:s,showAlerts:c},l)}function tk({docked:e,showStatus:t,showNodes:n,showStacks:r,showAlerts:i}){let a=(0,ik.useRef)({nodesOnline:0,nodesTotal:0,firingAlerts:0,appsOnline:0,appsTotal:0,appsKnown:!1}),o=yr(e=>e.connected),s=yr(e=>e.lastEvent),c=yr(e=>e.initialize);(0,ik.useEffect)(c,[c]);let l=A(e=>e.activeProject),u=A(e=>e.activeStack),f=A(e=>e.fetchStacks),p=A(e=>l?e.stacksByProject?.[l]:void 0),h=A(e=>l?e.stackReadErrors?.[l]:null),{data:g,refresh:y}=fr(async()=>{let[e,,o,s]=await Promise.allSettled([t?m.status():null,l&&r?f(l):null,n?v.listNodes():null,i?_.getSummary():null]),c=e.status===`fulfilled`?e.value:null,u=c?!0:await m.ping().then(()=>!0,()=>!1),d=o.status===`fulfilled`?o.value:null,p=s.status===`fulfilled`?s.value:null,h=c?.apps??null;return h&&Object.assign(a.current,Sr(h),{appsKnown:!0}),o.status===`fulfilled`&&Array.isArray(d)&&(a.current.nodesOnline=d.filter(e=>e.status?.omnitronConnected).length,a.current.nodesTotal=d.length),s.status===`fulfilled`&&(a.current.firingAlerts=p?.firing??0),{daemonOnline:u,appsCurrent:!!h,appsKnown:a.current.appsKnown,appsOnline:a.current.appsOnline,appsTotal:a.current.appsTotal,nodesOnline:a.current.nodesOnline,nodesTotal:a.current.nodesTotal,firingAlerts:a.current.firingAlerts,uptimeMs:c?.uptime??0,version:c?.version??``,pid:c?.pid??0,lastFetch:Date.now()}},{intervalMs:o?3e4:1e4});if((0,ik.useEffect)(()=>{if(!s)return;let e=s.channel;(e.startsWith(`app.`)||e.startsWith(`alert.`)||e.startsWith(`daemon.`)||e.startsWith(`stack.`))&&y()},[s,y]),!g)return null;let b=l?r:t,x=p?mr(p).filter(e=>!u||e.stack===u):null,S=x?.filter(e=>e.status===`unknown`).length??0,C=x?Sr(x):null,w=l?C?`${C.appsOnline}/${C.appsTotal}${h?` stale`:S?` · ${S} unknown`:``}`:`unknown`:g.appsKnown?`${g.appsOnline}/${g.appsTotal}${g.appsCurrent?``:` stale`}`:`unknown`;return(0,Y.jsxs)(D,{"aria-label":`Infrastructure status: ${g.daemonOnline?`online`:`offline`}${b?`, applications ${w}`:``}${n?`, nodes ${g.nodesOnline}/${g.nodesTotal}`:``}${i?`, ${g.firingAlerts} alerts`:``}`,sx:{position:e?`relative`:`fixed`,bottom:0,left:0,right:0,height:`calc(28px + env(safe-area-inset-bottom, 0px))`,pb:`env(safe-area-inset-bottom, 0px)`,flexShrink:0,minWidth:0,overflow:`hidden`,containerType:`inline-size`,bgcolor:e=>T(e.palette.background.default,.96),backdropFilter:`blur(12px)`,borderTop:`1px solid`,borderColor:`divider`,display:`flex`,alignItems:`center`,px:{xs:1,sm:2},gap:{xs:1,md:2.5},zIndex:e=>e.zIndex.appBar,fontSize:`0.68rem`,userSelect:`none`,"@container (max-width: 800px)":{'& [data-priority="detail"]':{display:`none`}},"@container (max-width: 600px)":{'& [data-priority="context"]':{display:`none`}},"@container (max-width: 420px)":{'& [data-priority="extra"]':{display:`none`}}},children:[(0,Y.jsxs)(ZO,{children:[(0,Y.jsx)(YO,{color:g.daemonOnline?`#22c55e`:`#ef4444`,pulse:g.daemonOnline}),(0,Y.jsx)(QO,{highlight:g.daemonOnline,children:g.daemonOnline?`Online`:`Offline`})]}),(0,Y.jsx)(D,{sx:{width:`1px`,height:12,bgcolor:`divider`}}),r&&(0,Y.jsx)(rk,{}),b&&(0,Y.jsx)(ZO,{children:(0,Y.jsx)($O,{label:`Apps`,value:w})}),n&&g.nodesTotal>0&&(0,Y.jsx)(ZO,{priority:`extra`,children:(0,Y.jsx)($O,{label:`Nodes`,value:`${g.nodesOnline}/${g.nodesTotal}`})}),i&&g.firingAlerts>0&&(0,Y.jsxs)(D,{component:d,to:`/alerts#firing`,"aria-label":`View ${g.firingAlerts} firing ${g.firingAlerts===1?`alert`:`alerts`} across all workspaces`,sx:{display:`inline-flex`,alignItems:`center`,gap:.5,minHeight:24,px:.5,whiteSpace:`nowrap`,flexShrink:0,borderRadius:.5,textDecoration:`none`,color:`error.main`,fontWeight:600,"&:hover":{textDecoration:`underline`},"&:focus-visible":{outline:`2px solid currentColor`,outlineOffset:-2}},children:[(0,Y.jsx)(YO,{color:`currentColor`}),g.firingAlerts,` alert`,g.firingAlerts>1?`s`:``]}),(0,Y.jsxs)(ZO,{priority:`extra`,children:[(0,Y.jsx)(YO,{color:o?`#3b82f6`:`#6b7280`}),(0,Y.jsx)(QO,{children:o?`Live`:`Polling`})]}),(0,Y.jsx)(D,{sx:{flex:1}}),g.daemonOnline&&g.uptimeMs>0&&(0,Y.jsx)(ZO,{priority:`detail`,children:(0,Y.jsx)($O,{label:`Uptime`,value:XO(g.uptimeMs)})}),(0,Y.jsx)(nk,{serverTimestamp:g.lastFetch}),(0,Y.jsx)(D,{"data-priority":`detail`,sx:{px:.75,py:.1,borderRadius:.5,border:`1px solid`,borderColor:`divider`,fontSize:`inherit`,color:`text.disabled`,lineHeight:1},children:`⌘K`})]})}function nk({serverTimestamp:e}){let[t]=(0,ik.useState)(()=>e?e-Date.now():0),[n,r]=(0,ik.useState)(()=>Date.now()+t);(0,ik.useEffect)(()=>{let e=setInterval(()=>r(Date.now()+t),1e3);return()=>clearInterval(e)},[t]);let i=new Date(n),a=String(i.getHours()).padStart(2,`0`),o=String(i.getMinutes()).padStart(2,`0`),s=String(i.getSeconds()).padStart(2,`0`);return(0,Y.jsx)(ZO,{priority:`detail`,children:(0,Y.jsxs)(QO,{children:[a,`:`,o,`:`,s]})})}function rk(){let e=A(e=>e.activeProject),t=A(e=>e.activeStack),n=gr(),r=A(t=>e?t.stackReadErrors?.[e]:null),i=A(t=>!!e&&t.stacksByProject[e]!==void 0),{runningStacks:a,totalStacks:o,unknownStacks:s}=vr(n.filter(e=>!t||e.name===t));return e?(0,Y.jsx)(ZO,{priority:`context`,children:(0,Y.jsxs)(QO,{children:[(0,Y.jsx)(D,{component:`span`,sx:{color:`text.primary`,fontWeight:600},children:e}),t&&(0,Y.jsxs)(D,{component:`span`,sx:{color:`info.main`},children:[` `,`/ `,t]}),(0,Y.jsxs)(`span`,{title:s?`${s} stack states unknown`:`Running / configured stacks`,children:[` `,`(`,i?`${a}/${o}`:`unknown`,` stacks`,r?` · stale`:s>0?` · unknown`:``,`)`]})]})}):null}var ik,Y;function ak(){return(ak=t((()=>{ik=r(),y(),or(),we(),Qe(),re(),h(),br(),pr(),_r(),xr(),Y=a()})))()}function ok(){let e=Cr(),{probe:t,startPolling:n,consecutiveUnreachable:r}=Tr();return(0,sk.useEffect)(()=>n(),[n]),(0,ck.jsx)(Ye,{in:e===`offline`||e===`degraded`,unmountOnExit:!0,children:(0,ck.jsx)(qn,{severity:e===`offline`?`error`:`warning`,variant:`filled`,sx:{borderRadius:0,py:.5,"& .MuiAlert-message":{display:`flex`,alignItems:`center`,gap:2,width:`100%`}},action:(0,ck.jsx)(Ce,{color:`inherit`,size:`small`,onClick:t,sx:{fontWeight:700,whiteSpace:`nowrap`},children:`Retry`}),children:e===`offline`?(0,ck.jsxs)(ck.Fragment,{children:[`Daemon offline — run `,(0,ck.jsx)(`code`,{style:{margin:`0 4px`},children:`omnitron up`}),` to start the backend`]}):(0,ck.jsx)(ck.Fragment,{children:r>1?`The daemon has not answered ${r} checks — it may be down, or the connection to it may be blocked`:`The daemon did not answer the last check — this view may be out of date`})})})}var sk,ck;function lk(){return(lk=t((()=>{sk=r(),Te(),je(),Er(),Kn(),ck=a()})))()}function uk(){let[e,t]=(0,dk.useState)(!1),[n,r]=(0,dk.useState)(!1);return(0,dk.useEffect)(()=>{let e=document.querySelector(`meta[name="omnitron-console-build"]`)?.content,n=!1,i=null,a=async()=>{if(document.hidden||i||!e)return;i=new AbortController;let r=window.setTimeout(()=>i?.abort(),5e3);try{let r=await fetch(`/console-version.json`,{cache:`no-store`,signal:i.signal});if(!r.ok)return;let a=await r.json();!n&&a&&typeof a==`object`&&`version`in a&&typeof a.version==`string`&&/^[a-f0-9]{64}$/.test(a.version)&&t(a.version!==e)}catch{}finally{window.clearTimeout(r),i=null}},o=()=>{r(!0),a()},s=()=>{a()};window.addEventListener(`vite:preloadError`,o),document.addEventListener(`visibilitychange`,s);let c=window.setInterval(s,6e4);return a(),()=>{n=!0,i?.abort(),window.clearInterval(c),window.removeEventListener(`vite:preloadError`,o),document.removeEventListener(`visibilitychange`,s)}},[]),!e&&!n?null:(0,fk.jsxs)(qn,{severity:n?`warning`:`info`,sx:{borderRadius:0,py:.5},action:(0,fk.jsx)(Ce,{color:`inherit`,size:`small`,onClick:()=>window.location.reload(),children:`Reload`}),children:[e?`Console update available.`:`This page could not load. Check your connection and try reloading.`,` Save open edits before reloading; your current workspace stays open until then.`]})}var dk,fk;function pk(){return(pk=t((()=>{dk=r(),Te(),Kn(),fk=a()})))()}function mk(){let[e,t]=(0,hk.useState)(null),n=(0,hk.useCallback)(e=>{t(e.currentTarget)},[]),r=(0,hk.useCallback)(()=>{t(null)},[]);return{open:!!e,anchorEl:e,onOpen:n,onClose:r,setAnchorEl:t}}var hk;function gk(){return(gk=t((()=>{hk=r(),_e(),re(),a(),de(`span`,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{size:n,offset:r,placement:i}=t,a={top:{top:0,rotate:`135deg`,translate:`0 -50%`},bottom:{bottom:0,rotate:`-45deg`,translate:`0 50%`},left:{left:0,rotate:`45deg`,translate:`-50% 0`},right:{right:0,rotate:`-135deg`,translate:`50% 0`}},o=()=>i.startsWith(`top-`)?a.top:i.startsWith(`bottom-`)?a.bottom:i.startsWith(`left-`)?a.left:i.startsWith(`right-`)?a.right:{},s=()=>i.endsWith(`-left`)?{left:r}:i.endsWith(`-right`)?{right:r}:i.endsWith(`-top`)?{top:r}:i.endsWith(`-bottom`)?{bottom:r}:i.endsWith(`-center`)?i.startsWith(`top-`)||i.startsWith(`bottom-`)?{left:0,right:0,margin:`auto`}:{top:0,bottom:0,margin:`auto`}:{};return{width:n,height:n,position:`absolute`,borderBottomLeftRadius:n/4,clipPath:`polygon(0% 0%, 100% 100%, 0% 100%)`,backgroundColor:e.palette.background.paper,border:`solid 1px ${T(e.palette.grey[500],.12)}`,...o(),...s()}})})))()}function _k(){let{open:e,anchorEl:t,onClose:n,onOpen:r}=mk(),i=(0,vk.useId)(),{can:a,snapshot:s}=tr(),c=a(`OmnitronProject.listProjects`),l=p(),{pathname:u}=o(),d=(0,vk.useRef)(u);d.current=u;let f=A(e=>e.projects),m=c?f:[],h=hr(),g=A(e=>e.selectProject),_=A(e=>e.deselectProject),v=A(e=>e.fetchProjects);(0,vk.useEffect)(()=>{c&&v(d.current).then(e=>{e&&l(e,{replace:!0})})},[v,l,c,s?.userId]);let y=(0,vk.useCallback)(()=>{let e=_(u);l(e),n()},[_,l,u,n]),b=(0,vk.useCallback)(e=>{let t=g(e,u);l(t),n()},[g,l,u,n]),x=m.find(e=>e.name===h),S=!h||!c,C=A(e=>h?e.stackReadErrors?.[h]:null),w={height:1,zIndex:-1,opacity:0,content:`''`,borderRadius:1,position:`absolute`,visibility:`hidden`,bgcolor:`action.hover`,width:`calc(100% + 8px)`,transition:e=>e.transitions.create([`opacity`,`visibility`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shorter}),...e&&{opacity:1,visibility:`visible`}},ee={fontSize:22,color:`text.secondary`},T={fontSize:22,color:`primary.main`};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Fe,{id:`${i}-trigger`,"aria-label":`Switch workspace: ${S?`Omnitron`:x?.displayName??h}`,"aria-haspopup":`menu`,"aria-expanded":e,"aria-controls":e?i:void 0,disableRipple:!0,onClick:r,sx:{minWidth:0,maxWidth:`100%`,py:.5,gap:{xs:.5,sm:1},"&::before":w},children:[(0,X.jsx)(D,{sx:{width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`},children:S?(0,X.jsx)(ti,{sx:{fontSize:20}}):(0,X.jsx)(Jr,{sx:{fontSize:20}})}),(0,X.jsx)(D,{component:`span`,sx:{typography:`subtitle2`,display:{xs:`none`,sm:`block`},minWidth:0,maxWidth:{sm:180,md:240},whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:S?`Omnitron`:x?.displayName??h}),x&&(0,X.jsx)(D,{component:`span`,title:`Running / configured stacks in the whole workspace`,sx:{display:{xs:`none`,sm:`inline-flex`}},children:(0,X.jsxs)(oi,{color:x.runningStacks>0?`success`:`default`,sx:{height:22,cursor:`inherit`},children:[x.runningStacks,`/`,x.totalStacks,` stacks`,C?` · stale`:``]})}),(0,X.jsx)(D,{component:`svg`,viewBox:`0 0 16 16`,sx:{width:16,height:16,color:`text.disabled`,flexShrink:0},children:(0,X.jsx)(`path`,{fill:`currentColor`,d:`M11.2 5.6L8 2.4 4.8 5.6m0 4.8L8 13.6l3.2-3.2`})})]}),(0,X.jsxs)(wt,{id:i,open:e,anchorEl:t,onClose:n,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},slotProps:{paper:{sx:{width:300,maxWidth:`calc(100vw - 32px)`,maxHeight:`min(640px, calc(100dvh - 96px))`}},list:{"aria-labelledby":`${i}-trigger`}},children:[(0,X.jsxs)(Pt,{selected:S,onClick:y,sx:{height:48,gap:1.5},children:[(0,X.jsx)(ti,{sx:S?T:ee}),(0,X.jsxs)(D,{sx:{flexGrow:1,minWidth:0},children:[(0,X.jsx)(dt,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:`Omnitron`}),(0,X.jsx)(dt,{noWrap:!0,variant:`caption`,color:`text.disabled`,children:`System`})]})]}),m.length>0&&(0,X.jsx)(We,{}),m.map(e=>{let t=e.name===h;return(0,X.jsxs)(Pt,{selected:t,onClick:()=>b(e.name),sx:{height:48,gap:1.5},children:[(0,X.jsx)(Jr,{sx:t?T:ee}),(0,X.jsx)(et,{describeChild:!0,title:e.path,placement:`right`,arrow:!0,enterDelay:500,children:(0,X.jsx)(D,{sx:{flexGrow:1,minWidth:0},children:(0,X.jsx)(dt,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:e.displayName})})}),(0,X.jsxs)(oi,{color:t&&e.runningStacks>0?`success`:`default`,children:[t?`${e.runningStacks}/${e.totalStacks}`:e.totalStacks,` stacks`,t&&C?` · stale`:``]})]},e.name)}),a(`OmnitronProject.addProject`)&&(0,X.jsx)(We,{}),a(`OmnitronProject.addProject`)&&(0,X.jsxs)(Pt,{onClick:()=>{n(),_(`/projects`),l(`/projects?create=1`)},sx:{minHeight:{xs:44,sm:44},gap:1.5,color:`primary.main`},children:[(0,X.jsx)(Nr,{sx:{fontSize:22}}),`Add project`]})]})]})}var vk,X;function yk(){return(yk=t((()=>{vk=r(),y(),we(),Re(),Et(),Ut(),Qe(),Le(),tt(),gk(),ai(),Lr(),_r(),or(),X=a()})))()}function bk(){let{can:e}=tr(),[t,n]=(0,xk.useState)(!1),r=A(e=>e.activeProject),i=A(e=>e.activeStack),a=A(e=>r?e.stackReadErrors[r]:null),o=A(e=>e.selectStack),s=gr(),c=(0,xk.useMemo)(()=>[...s].sort((e,t)=>e.name.localeCompare(t.name)),[s]);if(!r||!e(`OmnitronProject.listStacks`))return null;let l=!(!i||s.some(e=>e.name===i));return(0,Sk.jsx)(et,{title:t?``:a?`Stack inventory unavailable. The current filter is retained; cached options may be stale.`:`Filter workspace views. Opening a stack detail does not change this filter.`,slotProps:{popper:{popperOptions:{strategy:`fixed`}},transition:{timeout:0}},children:(0,Sk.jsxs)(Jt,{size:`small`,value:i??``,displayEmpty:!0,open:t,onOpen:()=>n(!0),onClose:()=>n(!1),onChange:e=>o(e.target.value||null),inputProps:{"aria-label":`Stack filter`},renderValue:e=>e?`Stack: ${e}`:`All stacks`,MenuProps:{slotProps:{paper:{sx:{maxHeight:360,maxWidth:`calc(100vw - 24px)`}}}},sx:{minWidth:104,maxWidth:{xs:112,sm:210},height:30,fontSize:`0.75rem`,flexShrink:1,"& .MuiSelect-select":{minWidth:0,textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,py:.5},...a||l?{color:`warning.main`}:{}},children:[(0,Sk.jsx)(Pt,{value:``,sx:{fontSize:`0.8rem`},children:`All stacks`}),l&&(0,Sk.jsxs)(Pt,{value:i,disabled:!0,children:[i,` · awaiting inventory`]}),c.map(e=>(0,Sk.jsxs)(Pt,{value:e.name,sx:{gap:1,minWidth:0,fontSize:`0.8rem`},children:[(0,Sk.jsx)(D,{component:`span`,"aria-hidden":!0,sx:{width:6,height:6,borderRadius:`50%`,bgcolor:ci(e.status),flexShrink:0}}),(0,Sk.jsx)(dt,{variant:`inherit`,noWrap:!0,sx:{flex:1,minWidth:0},children:e.name}),(0,Sk.jsx)(dt,{variant:`caption`,color:`text.secondary`,children:a?`last observed`:e.status})]},e.name))]})})}var xk,Sk;function Ck(){return(Ck=t((()=>{xk=r(),we(),Ut(),ln(),tt(),Qe(),_r(),or(),si(),Sk=a()})))()}function wk(e,t,n){let r=n.primary,i=r?`${r.filePath??`unknown`}:${r.lineNumber??`?`}${r.functionName?` (${r.functionName})`:``}`:`unknown location`;console.error(`[omnitron-console] crashed at ${i}: ${e.message}`,{error:e,componentStack:t.componentStack})}function Tk(){try{let e=new AudioContext,t=e.createOscillator(),n=e.createGain();t.frequency.value=880,n.gain.setValueAtTime(.15,e.currentTime),n.gain.exponentialRampToValueAtTime(1e-4,e.currentTime+.4),t.connect(n).connect(e.destination),t.start(),t.stop(e.currentTime+.4),t.onended=()=>void e.close()}catch{}}function Ek(e){let t=(0,Dk.useRef)(null),{data:n}=fr(()=>_.getActiveAlerts(),{intervalMs:15e3,enabled:e!==null,resourceKey:e,pauseWhileHidden:!1});(0,Dk.useEffect)(()=>{t.current=null},[e]),(0,Dk.useEffect)(()=>{if(e===null||!n)return;if(t.current===null){t.current=new Set(n.map(e=>e.id));return}let r=di(),i=ui(t.current,n,r.minSeverity);if(i.length!==0){if(r.desktop&&typeof Notification<`u`&&Notification.permission===`granted`)for(let e of i)new Notification(`${e.severity.toUpperCase()} · ${e.ruleName}`,{body:e.node?`${e.message} — ${e.node}`:e.message,tag:e.id});r.sound&&Tk()}},[e,n])}var Dk;function Ok(){return(Ok=t((()=>{Dk=r(),h(),pr(),li()})))()}function kk(){let e=hr();return(0,Pk.useMemo)(()=>{let t={id:`dashboard-builder`,title:`Dashboard Builder`,path:`/dashboard-builder`,icon:(0,Z.jsx)(Yr,{})},n={id:`alerts`,title:`Alerts`,path:`/alerts`,icon:(0,Z.jsx)(ni,{})};return e?[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,Z.jsx)(Xr,{})},{id:`apps`,title:`Applications`,path:`/apps`,icon:(0,Z.jsx)($r,{}),selectionPrefix:`/apps`}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,Z.jsx)(Pr,{})},{id:`metrics`,title:`Metrics`,path:`/metrics`,icon:(0,Z.jsx)(ii,{})},{id:`traces`,title:`Traces`,path:`/traces`,icon:(0,Z.jsx)(Rr,{})},n]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`stacks`,title:`Stacks`,path:`/stacks`,icon:(0,Z.jsx)(Wr,{}),selectionPrefix:`/stacks`},{id:`releases`,title:`Releases`,path:`/releases`,icon:(0,Z.jsx)(Vr,{}),selectionPrefix:`/releases`},{id:`topology`,title:`Topology`,path:`/topology`,icon:(0,Z.jsx)(Ur,{})},{id:`nodes`,title:`Nodes`,path:`/nodes`,icon:(0,Z.jsx)(Fr,{})},{id:`terminal`,title:`SSH workspace`,path:`/terminal`,icon:(0,Z.jsx)(Kr,{})},{id:`files`,title:`Files`,path:`/files`,icon:(0,Z.jsx)(Jr,{})},{id:`containers`,title:`Containers`,path:`/containers`,icon:(0,Z.jsx)(ri,{})},{id:`deployments`,title:`Deployments`,path:`/deployments`,icon:(0,Z.jsx)(Qr,{})},{id:`pipelines`,title:`Pipelines`,path:`/pipelines`,icon:(0,Z.jsx)(Hr,{}),selectionPrefix:`/pipelines`}]},{id:`system`,subheader:`System`,items:[t,{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,Z.jsx)(Br,{})},{id:`audit`,title:`Audit`,path:`/audit`,icon:(0,Z.jsx)(ei,{})},{id:`access`,title:`Access`,path:`/access`,icon:(0,Z.jsx)(zr,{})},{id:`system-info`,title:`System`,path:`/system`,icon:(0,Z.jsx)(qr,{})}]}]:[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,Z.jsx)(Xr,{})}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,Z.jsx)(Pr,{})},n]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`projects`,title:`Projects`,path:`/projects`,icon:(0,Z.jsx)(Zr,{})},{id:`nodes`,title:`Nodes`,path:`/nodes`,icon:(0,Z.jsx)(Fr,{})},{id:`topology`,title:`Topology`,path:`/topology`,icon:(0,Z.jsx)(Ur,{})},{id:`terminal`,title:`SSH workspace`,path:`/terminal`,icon:(0,Z.jsx)(Kr,{})},{id:`files`,title:`Files`,path:`/files`,icon:(0,Z.jsx)(Jr,{})},{id:`pipelines`,title:`Pipelines`,path:`/pipelines`,icon:(0,Z.jsx)(Hr,{}),selectionPrefix:`/pipelines`},{id:`releases`,title:`Releases`,path:`/releases`,icon:(0,Z.jsx)(Vr,{}),selectionPrefix:`/releases`}]},{id:`system`,subheader:`System`,items:[t,{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,Z.jsx)(Br,{})},{id:`audit`,title:`Audit`,path:`/audit`,icon:(0,Z.jsx)(ei,{})},{id:`access`,title:`Access`,path:`/access`,icon:(0,Z.jsx)(zr,{})},{id:`system-info`,title:`System`,path:`/system`,icon:(0,Z.jsx)(qr,{})}]}]},[e])}function Ak(){let{sidenavCollapsed:e,sidenavVariant:t}=eO();return(0,Z.jsxs)(en,{direction:`row`,spacing:1,sx:{alignItems:`center`},children:[(0,Z.jsx)(Dr,{size:48}),!e&&t!==`mini`&&(0,Z.jsx)(dt,{variant:`subtitle1`,noWrap:!0,sx:{fontWeight:800,letterSpacing:2,textTransform:`uppercase`,fontSize:`0.85rem`},children:`Omnitron`})]})}function jk({mode:e}){return e===`dark`?(0,Z.jsxs)(D,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,Z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M21.5 14.08C20.31 14.67 18.98 15 17.58 15C12.86 15 9.08 11.22 9.08 6.5C9.08 5.1 9.42 3.77 10 2.58C5.73 3.63 2.58 7.5 2.58 12.08C2.58 17.6 7.06 22.08 12.58 22.08C17.16 22.08 21.04 18.93 22.08 14.67C21.89 14.81 21.7 14.94 21.5 14.08Z`}),(0,Z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21.5 14.08C20.31 14.67 18.98 15 17.58 15C12.86 15 9.08 11.22 9.08 6.5C9.08 5.1 9.42 3.77 10 2.58C5.73 3.63 2.58 7.5 2.58 12.08C2.58 17.6 7.06 22.08 12.58 22.08C17.16 22.08 21.04 18.93 22.08 14.67`})]}):e===`light`?(0,Z.jsxs)(D,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,Z.jsx)(`circle`,{fill:`currentColor`,opacity:`0.4`,cx:`12`,cy:`12`,r:`5`}),(0,Z.jsx)(`circle`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,cx:`12`,cy:`12`,r:`5`}),(0,Z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 2V4M12 20V22M4 12H2M22 12H20M19.78 4.22L18.36 5.64M5.64 18.36L4.22 19.78M19.78 19.78L18.36 18.36M5.64 5.64L4.22 4.22`})]}):(0,Z.jsxs)(D,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,Z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2 10C2 6.23 2 4.34 3.17 3.17C4.34 2 6.23 2 10 2H14C17.77 2 19.66 2 20.83 3.17C22 4.34 22 6.23 22 10V11C22 11.55 21.55 12 21 12H3C2.45 12 2 11.55 2 11V10Z`}),(0,Z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 10C2 6.23 2 4.34 3.17 3.17C4.34 2 6.23 2 10 2H14C17.77 2 19.66 2 20.83 3.17C22 4.34 22 6.23 22 10V14C22 17.77 22 19.66 20.83 20.83C19.66 22 17.77 22 14 22H10C6.23 22 4.34 22 3.17 20.83C2 19.66 2 17.77 2 14V10Z`}),(0,Z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 12H22`})]})}function Mk(){let{openCommands:e,openHelp:t}=kr(),n=ur(e=>e.signOut),{setMode:r}=hn(),i=yd(e=>e.mode);return(0,Z.jsxs)(en,{direction:`row`,spacing:.5,sx:{alignItems:`center`},children:[(0,Z.jsx)(et,{title:`Commands · Ctrl / ⌘ K`,children:(0,Z.jsx)(Bt,{"aria-label":`Open Console commands`,onClick:e,sx:Lk,children:(0,Z.jsx)(Ir,{sx:{fontSize:20}})})}),(0,Z.jsx)(et,{title:`Keyboard · Ctrl / ⌘ /`,children:(0,Z.jsx)(Bt,{"aria-label":`Keyboard shortcuts`,onClick:t,sx:Lk,children:(0,Z.jsx)(dt,{component:`span`,sx:{fontWeight:600,fontSize:18},children:`?`})})}),(0,Z.jsx)(et,{title:i===`light`?`Dark mode`:i===`dark`?`System mode`:`Light mode`,children:(0,Z.jsx)(Bt,{disableRipple:!0,onClick:()=>{let e=[`light`,`dark`,`system`],t=e.indexOf(i);r(e[(t+1)%e.length])},sx:Lk,children:(0,Z.jsx)(jk,{mode:i})})}),(0,Z.jsx)(et,{title:`Sign out`,children:(0,Z.jsx)(Bt,{disableRipple:!0,onClick:()=>n(),sx:Lk,children:(0,Z.jsx)(Gr,{sx:{fontSize:20}})})})]})}function Nk(){let e=kk(),{can:t,snapshot:n}=tr(),r=e.map(e=>({...e,items:e.items.filter(e=>{let n=nr[e.path?.split(`/`)[1]||`dashboard`];return ir(t,n)})})).filter(e=>e.items.length>0),i=o(),a=i.pathname===`/terminal`,s=i.pathname===`/files`,[l,u]=(0,Pk.useState)(s);(0,Pk.useEffect)(()=>{s&&u(!0)},[s]),(0,Pk.useEffect)(()=>{let e=document.getElementById(`main-content`);i.hash||e?.scrollTo({top:0}),!e||document.activeElement&&jr(document.activeElement)||e.focus({preventScroll:!0})},[i.pathname,i.hash]);let[d,f]=(0,Pk.useState)(a);return(0,Pk.useEffect)(()=>{a&&f(!0)},[a]),Ek(t(`OmnitronAlerts.getActiveAlerts`)?n?.userId??null:null),(0,Z.jsx)(Mr,{navigation:r,children:(0,Z.jsx)(RO,{contentMode:`workspace`,footer:(0,Z.jsx)(ek,{docked:!0}),logo:(0,Z.jsx)(Ak,{}),navData:r,persistKey:`console`,initialConfig:{navigationMenuType:`sidenav`,sidenavVariant:`default`,navColor:`default`},headerSlots:{leftArea:(0,Z.jsxs)(D,{"data-keyboard-region":`Workspace`,tabIndex:-1,sx:{display:`flex`,alignItems:`center`,gap:{xs:.5,sm:1},minWidth:0,"@media (max-width: 359px)":{flexDirection:`column`,alignItems:`flex-start`,gap:0}},children:[(0,Z.jsx)(_k,{}),(0,Z.jsx)(bk,{})]}),rightArea:(0,Z.jsx)(Mk,{}),bottomArea:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ok,{}),(0,Z.jsx)(uk,{})]})},slotProps:{header:{slotProps:{toolbar:{px:Rk},leftArea:{minWidth:0},centerArea:{mx:{xs:0,sm:2}}}},main:{sx:a||s||i.pathname===`/topology`?{px:Rk,py:{xs:1,sm:1.5,md:2},minHeight:0}:{minWidth:0,minHeight:0,overflowY:`auto`,px:Rk,py:{xs:1.5,sm:2,md:2.5}}}},children:(0,Z.jsxs)($n,{showDetails:!0,onError:wk,children:[(0,Z.jsx)(Pk.Suspense,{fallback:(0,Z.jsx)(FD,{variant:`linear`,message:`Loading…`}),children:!a&&!s&&(0,Z.jsx)(er,{children:(0,Z.jsx)(c,{})})}),l&&(0,Z.jsx)(D,{sx:{display:s?`flex`:`none`,flexDirection:`column`,flex:1,minHeight:0,minWidth:0},children:(0,Z.jsx)(Pk.Suspense,{fallback:(0,Z.jsx)(FD,{variant:`linear`,message:`Loading files…`}),children:(0,Z.jsx)(sr,{permission:`OmnitronFiles.roots`,children:(0,Z.jsx)(Ik,{visible:s})})})}),d&&(0,Z.jsx)(D,{sx:{display:a?`flex`:`none`,flexDirection:`column`,flex:1,minHeight:0,minWidth:0},children:(0,Z.jsx)(Pk.Suspense,{fallback:(0,Z.jsx)(FD,{variant:`linear`,message:`Loading SSH workspace…`}),children:(0,Z.jsx)(sr,{permission:`OmnitronTerminal.open`,children:(0,Z.jsx)(Fk,{visible:a})})})})]})})})}var Pk,Z,Fk,Ik,Lk,Rk;function zk(){return(zk=t((()=>{Pk=r(),y(),we(),Qe(),Mt(),tt(),cn(),Qn(),HO(),aO(),zD(),mn(),bd(),ak(),lk(),pk(),Or(),Ar(),wr(),Lr(),dr(),or(),yk(),Ck(),_r(),Ok(),Z=a(),fi(),Fk=(0,Pk.lazy)(()=>j(()=>import(`./terminal-QWBau-Us.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),Ik=(0,Pk.lazy)(()=>j(()=>import(`./files-DigwXndm.js`),__vite__mapDeps([24,1,2,3,4,7,6,5,8,9,10,11,12,13,14,25,26,27,28,29,18,30,19,31,22]))),Lk={p:.75,transition:`transform 0.2s ease`,"&:hover":{transform:`scale(1.1)`,bgcolor:`transparent`}},Rk={xs:1,sm:2,lg:3}})))()}function Bk(){return(0,Hk.jsxs)(UO,{maxWidth:460,children:[(0,Hk.jsx)(ok,{}),(0,Hk.jsx)(uk,{}),(0,Hk.jsx)(Vk.Suspense,{fallback:(0,Hk.jsx)(FD,{message:`Loading sign-in…`}),children:(0,Hk.jsx)(c,{})})]})}var Vk,Hk;function Uk(){return(Uk=t((()=>{Vk=r(),y(),JO(),zD(),lk(),pk(),Hk=a()})))()}function Wk(){return(0,$.jsxs)(f,{children:[(0,$.jsx)(l,{element:(0,$.jsx)(VD,{children:(0,$.jsx)(Bk,{})}),children:(0,$.jsx)(l,{path:`/auth/sign-in`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(qk,{})})})}),(0,$.jsxs)(l,{element:(0,$.jsx)(BD,{children:(0,$.jsx)(Nk,{})}),children:[(0,$.jsx)(l,{index:!0,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(Jk,{})})}),(0,$.jsx)(l,{path:`nodes`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(uA,{})})}),(0,$.jsx)(l,{path:`terminal`,element:null}),(0,$.jsx)(l,{path:`files`,element:null}),(0,$.jsx)(l,{path:`projects`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(dA,{})})}),(0,$.jsx)(l,{path:`dashboard-builder`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(oA,{})})}),(0,$.jsx)(l,{path:`system`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(lA,{})})}),(0,$.jsx)(l,{path:`settings`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(rA,{})})}),(0,$.jsx)(l,{path:`logs`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(Zk,{})})}),(0,$.jsx)(l,{path:`alerts`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)($k,{})})}),(0,$.jsx)(l,{path:`audit`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(fA,{})})}),(0,$.jsx)(l,{path:`access`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(pA,{})})}),(0,$.jsx)(l,{path:`pipelines`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(iA,{})})}),(0,$.jsx)(l,{path:`releases`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(mA,{})})}),(0,$.jsx)(l,{path:`releases/:id`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(hA,{})})}),(0,$.jsx)(l,{path:`apps/:name`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(Xk,{})})}),(0,$.jsx)(l,{path:`apps`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(Yk,{})})}),(0,$.jsx)(l,{path:`stacks`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(sA,{})})}),(0,$.jsx)(l,{path:`stacks/:name`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(cA,{})})}),(0,$.jsx)(l,{path:`metrics`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(nA,{})})}),(0,$.jsx)(l,{path:`topology`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(Qk,{})})}),(0,$.jsx)(l,{path:`containers`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(eA,{})})}),(0,$.jsx)(l,{path:`deployments`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(tA,{})})}),(0,$.jsx)(l,{path:`traces`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(aA,{})})})]}),(0,$.jsx)(l,{path:`*`,element:(0,$.jsx)(s,{to:`/`,replace:!0})})]})}function Gk({children:e}){return(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(rr,{}),children:e})}function Kk({children:e}){return(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(rr,{}),children:(0,$.jsx)(GD,{children:e})})}var Q,$,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA;function gA(){return(gA=t((()=>{Q=r(),y(),cr(),WD(),qD(),zk(),Uk(),$=a(),fi(),qk=(0,Q.lazy)(()=>j(()=>import(`./sign-in-9q-Nfy83.js`),__vite__mapDeps([32,1,2,3,4,8,6,5,7,10,9,11,12,33,16,17,34,28]))),Jk=(0,Q.lazy)(()=>j(()=>import(`./dashboard-UHlet3H9.js`),__vite__mapDeps([35,1,2,3,4,8,6,5,7,10,9,11,12,33,26,36,17,37,38,39,40,19,41,42,43,44,45]))),Yk=(0,Q.lazy)(()=>j(()=>import(`./apps-Drio028B.js`).then(e=>(e.n(),e.t)),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,47,48,49,50,51,52,13,14,33,53,16,17,26,36,37,38,39,28,40,54,30,55,19,41,42,56]))),Xk=(0,Q.lazy)(()=>j(()=>import(`./detail-B4TiBfxU.js`),__vite__mapDeps([57,1,2,3,4,6,5,7,8,9,10,11,12,33,58,29,53,16,17,26,36,37,39,28,40,54,30,19,59,41,60,13,14,15,61,42]))),Zk=(0,Q.lazy)(()=>j(()=>import(`./logs-BqHOufk8.js`),__vite__mapDeps([62,1,2,3,4,6,5,7,8,9,10,11,12,13,14,33,15,28,19,59,60,61,42,36,17,37,63,21]))),Qk=(0,Q.lazy)(()=>j(()=>import(`./topology-CPey5dP6.js`),__vite__mapDeps([64,1,2,3,4,5,6,7,8,9,10,11,12,33,17,53,16,26,36,37,28,65,40,66,18,19,31,59,41,67,58,29,30,42,43,45,22,13,14,68,69]))),$k=(0,Q.lazy)(()=>j(()=>import(`./alerts-CuPQ9YQJ.js`),__vite__mapDeps([70,1,2,3,4,5,6,8,7,10,9,11,12,33,53,16,17,26,36,37,28,71,19,72,13,14,30,31,59,41,73]))),eA=(0,Q.lazy)(()=>j(()=>import(`./containers-Bl8gAyZX.js`),__vite__mapDeps([74,1,2,3,4,5,6,8,7,10,9,11,12,33,53,16,17,26,36,37,28,19,72,13,14,30,31,59,42]))),tA=(0,Q.lazy)(()=>j(()=>import(`./deployments-qV20Ak0P.js`),__vite__mapDeps([75,1,2,3,4,8,6,5,7,10,9,11,12,33,53,16,17,26,36,37,28,19,72,13,14,30,41,42,22,76]))),nA=(0,Q.lazy)(()=>j(()=>import(`./metrics-QIQaF7iS.js`),__vite__mapDeps([77,1,2,3,4,8,6,5,7,10,9,11,12,33,26,39,28,19,67,58,29,30,59,42,36,17,37,43,44,45]))),rA=(0,Q.lazy)(()=>j(()=>import(`./settings-B3egRvbI.js`),__vite__mapDeps([78,1,2,3,4,8,6,5,7,10,9,11,12,33,79,16,17,26,37,28,71,80,54,30,19,41,22,13,14]))),iA=(0,Q.lazy)(()=>j(()=>import(`./pipelines-T6Ch9LTw.js`),__vite__mapDeps([81,1,2,3,4,8,6,5,7,10,9,11,12,33,53,16,17,26,36,37,28,18,19,72,13,14,30,31,41,73,22]))),aA=(0,Q.lazy)(()=>j(()=>import(`./traces-By0rdfDC.js`),__vite__mapDeps([82,1,2,3,4,5,6,8,7,10,9,11,12,33,26,28,19,72,13,14,30,41]))),oA=(0,Q.lazy)(()=>j(()=>import(`./dashboard-builder-67PZFqhE.js`),__vite__mapDeps([83,1,2,3,4,8,6,5,7,10,9,11,12,33,84,13,14,53,16,17,26,36,37,39,28,18,19,41,67,58,29,30,59,42,85,86,43]))),sA=(0,Q.lazy)(()=>j(()=>import(`./stacks-IZ1mfizi.js`),__vite__mapDeps([87,1,2,3,4,5,6,8,7,10,9,11,12,33,53,16,17,26,36,37,28,19,59,41,56,85,88,89,76,90,91,18,68]))),cA=(0,Q.lazy)(()=>j(()=>import(`./detail-CYS81K6Y.js`),__vite__mapDeps([92,1,2,3,4,8,6,5,7,10,9,11,12,33,53,16,17,26,36,37,28,18,54,30,19,41,56,88,89,76,90,93,91,68]))),lA=(0,Q.lazy)(()=>j(()=>import(`./system-info-BFKNM-hf.js`),__vite__mapDeps([94,1,2,3,4,8,6,5,7,10,9,11,12,33,53,16,17,26,36,37,28,18,19,41,43,22,13,14]))),uA=(0,Q.lazy)(()=>j(()=>import(`./nodes-BJPk02vv.js`),__vite__mapDeps([95,1,2,3,4,6,5,7,8,9,10,11,12,33,96,13,14,53,16,17,26,36,37,38,28,18,19,59,85,86,63,21,90,88]))),dA=(0,Q.lazy)(()=>j(()=>import(`./projects-YoBzcQ24.js`),__vite__mapDeps([97,1,2,3,4,5,6,8,7,10,9,11,12,33,96,13,14,53,16,17,26,36,37,28,65,18,19,59,41,85]))),fA=(0,Q.lazy)(()=>j(()=>import(`./audit-npSFJECe.js`),__vite__mapDeps([98,1,2,3,4,5,6,8,7,10,9,11,12,13,14,33,15,53,16,17,26,36,37,28,30,19,59,61,85]))),pA=(0,Q.lazy)(()=>j(()=>import(`./access-jWkHxGc7.js`),__vite__mapDeps([99,1,2,3,4,8,6,5,7,10,9,11,12,79,53,16,17,26,36,37,28,18,30,55,13,14,19,20,21]))),mA=(0,Q.lazy)(()=>j(()=>import(`./releases-Bp3CDgmo.js`),__vite__mapDeps([100,1,2,3,4,8,6,5,7,10,9,11,12,33,53,16,17,26,36,37,28,18,19,72,13,14,30,76,90,89,101,93]))),hA=(0,Q.lazy)(()=>j(()=>import(`./detail-B85-Wees.js`),__vite__mapDeps([102,1,2,3,4,5,6,8,7,10,9,11,12,33,53,16,17,26,36,37,28,18,19,76,90,89,101,93])))})))()}function _A({mode:e}){return{palette:{background:e===`dark`?{default:`#070b16`,paper:`#101827`,neutral:`#162033`}:{default:`#f5f7fc`,paper:`#ffffff`,neutral:`#eef2f8`}},components:{MuiCard:{styleOverrides:{root:{minWidth:0,boxShadow:`none`}}},MuiCardHeader:{styleOverrides:{root:{flexWrap:`wrap`,gap:8},content:{minWidth:0,overflowWrap:`anywhere`},action:{margin:0,alignSelf:`center`}}}}}}function vA(){let{pathname:e}=o(),t=A(e=>e.saveCurrentRoute);return(0,bA.useEffect)(()=>{e.startsWith(`/auth`)||t(e)},[e,t]),(0,xA.jsxs)(xA.Fragment,{children:[(0,xA.jsx)($E,{pathname:e}),(0,xA.jsx)(oD,{pathname:e}),(0,xA.jsx)($n,{showDetails:!0,onError:wk,children:(0,xA.jsx)(Wk,{})})]})}function yA(){return(0,xA.jsx)(Sd,{themeOverrides:_A,defaultSettings:{mode:`dark`,preset:`midnight`,direction:`ltr`},children:(0,xA.jsx)(KE,{children:(0,xA.jsx)(kD,{client:g,autoConnect:!0,children:(0,xA.jsx)(Zn,{children:(0,xA.jsx)(u,{children:(0,xA.jsx)(vA,{})})})})})})}var bA,xA;function SA(){return(SA=t((()=>{bA=r(),y(),Ed(),Xn(),JE(),aD(),cD(),Qn(),PD(),h(),gA(),_r(),xA=a()})))()}var CA,wA,TA,EA;function DA(){return(DA=t((()=>{if(CA=r(),wA=i(),SA(),TA=a(),EA=document.getElementById(`root`),!EA)throw Error(`Root element not found`);(0,wA.createRoot)(EA).render((0,TA.jsx)(CA.StrictMode,{children:(0,TA.jsx)(yA,{})}))})))()}function OA(){return(OA=t((()=>{pi(),DA()})))()}export{hi as a,gi as i,vi as n,mi as o,_i as r,OA as t};
35
+ `})))()}function oD({pathname:e}){return(0,sD.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}var sD;function cD(){return(cD=t((()=>{sD=r()})))()}var lD,uD,dD,fD,pD,mD;function hD(){return(hD=t((()=>{lD=r(),uD=(0,lD.createContext)(null),uD.displayName=`NetronContext`,dD=(0,lD.createContext)(null),dD.displayName=`ConnectionContext`,fD=(0,lD.createContext)(null),fD.displayName=`QueryClientContext`,pD=(0,lD.createContext)({staleTime:0,cacheTime:3e5,retry:3,refetchOnWindowFocus:!0,refetchOnReconnect:!0}),pD.displayName=`DefaultsContext`,mD=(0,lD.createContext)({isHydrating:!1,markHydrated:()=>{}}),mD.displayName=`HydrationContext`})))()}function gD(e){return JSON.stringify(e,(e,t)=>typeof t==`object`&&t&&!Array.isArray(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function _D(e,t,n=!1){if(n)return gD(e)===gD(t);if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!vD(e[n],t[n]))return!1;return!0}function vD(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e===null||t===null)return e===t;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>vD(e,t[n]));if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>vD(e[n],t[n]))}return!1}function yD(e,t){if(!t)return!0;if(t.queryKey&&!_D(e.queryKey,t.queryKey,t.exact)||t.status&&e.state.status!==t.status)return!1;if(t.stale!==void 0){let n=e.state.staleTime??0,r=e.state.isInvalidated||n===0||n!==1/0&&Date.now()>e.state.dataUpdatedAt+n;if(t.stale!==r)return!1}return!(t.predicate&&!t.predicate(e))}function bD(){return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,11)}`}var xD;function SD(){return(SD=t((()=>{xD={now:()=>Date.now(),isExpired:(e,t)=>Date.now()>e+t,timeUntilExpiry:(e,t)=>Math.max(0,e+t-Date.now())}})))()}var CD,wD,TD,ED;function DD(){return(DD=t((()=>{SD(),CD={maxEntries:1e3,defaultCacheTime:3e5,gcEnabled:!0,gcInterval:6e4},wD=`\0infinite`,TD=class{config;cache=new Map;gcTimer;constructor(e){this.config={...CD,...e}}resolveHash(e,t=!1){let n=gD(e);return t?n+wD:n}get(e,t=!1){let n=this.resolveHash(e,t);return this.cache.get(n)?.data}getQuery(e,t=!1){let n=this.resolveHash(e,t),r=this.cache.get(n);if(r)return{queryKey:r.queryKey,queryHash:r.queryHash,state:{data:r.data,error:r.error,status:r.status,dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,isInvalidated:r.isInvalidated,staleTime:r.staleTime}}}set(e,t,n,r=!1){let i=this.resolveHash(e,r),a=this.cache.get(i),o={queryKey:e,queryHash:i,data:t,error:null,status:`success`,dataUpdatedAt:xD.now(),errorUpdatedAt:a?.errorUpdatedAt??0,isInvalidated:!1,staleTime:n??a?.staleTime,fetchStatus:`idle`,observers:a?.observers??new Set};this.cache.set(i,o),this.notifyObservers(i),this.enforceMaxEntries(),this.ensureGcScheduled()}setError(e,t){let n=gD(e),r=this.cache.get(n),i={queryKey:e,queryHash:n,data:r?.data,error:t,status:`error`,dataUpdatedAt:r?.dataUpdatedAt??0,errorUpdatedAt:xD.now(),isInvalidated:!1,fetchStatus:`idle`,observers:r?.observers??new Set};this.cache.set(n,i),this.notifyObservers(n),this.ensureGcScheduled()}update(e,t){let n=gD(e),r=this.cache.get(n);r&&(Object.assign(r,t),this.notifyObservers(n))}isStale(e,t){let n=gD(e),r=this.cache.get(n);if(!r||r.isInvalidated)return!0;if(t===1/0)return!1;if(t===0)return!0;let i=t??0;return xD.isExpired(r.dataUpdatedAt,i)}invalidate(e){let t=gD(e);for(let e of[t,t+wD]){let t=this.cache.get(e);t&&(t.isInvalidated=!0,this.notifyObservers(e))}}remove(e){let t=gD(e);for(let e of[t,t+wD]){let t=this.cache.get(e);t&&(t.abortController?.abort(),t.gcTimeout&&clearTimeout(t.gcTimeout),this.cache.delete(e))}}clear(){for(let e of this.cache.values())e.abortController?.abort(),e.gcTimeout&&clearTimeout(e.gcTimeout);this.cache.clear(),this.gcTimer!==void 0&&(clearTimeout(this.gcTimer),this.gcTimer=void 0)}findAll(e){let t=[];for(let n of this.cache.values()){let r={queryKey:n.queryKey,queryHash:n.queryHash,state:{data:n.data,error:n.error,status:n.status,dataUpdatedAt:n.dataUpdatedAt,errorUpdatedAt:n.errorUpdatedAt,isInvalidated:n.isInvalidated,staleTime:n.staleTime}};yD(r,e)&&t.push(r)}return t}cancelAll(e){let t=this.findAll(e);for(let e of t)this.cache.get(e.queryHash)?.abortController?.abort()}subscribe(e,t,n,r=!1){let i=this.resolveHash(e,r),a=this.cache.get(i);return a||(a={queryKey:e,queryHash:i,data:void 0,error:null,status:`idle`,dataUpdatedAt:0,errorUpdatedAt:0,isInvalidated:!1,fetchStatus:`idle`,observers:new Set},this.cache.set(i,a)),a.observers.add(t),n!==void 0&&(a.observerCacheTimes||(a.observerCacheTimes=new Map),a.observerCacheTimes.set(t,n)),a.gcTimeout&&(clearTimeout(a.gcTimeout),a.gcTimeout=void 0),()=>{a.observers.delete(t),a.observerCacheTimes?.delete(t),this.scheduleGC(i)}}notifyObservers(e){this.cache.get(e)?.observers.forEach(e=>{try{e()}catch(e){console.error(`Error in query observer:`,e)}})}startFetch(e){let t=gD(e),n=this.cache.get(t);n?.abortController?.abort();let r=new AbortController;return n&&(n.fetchStatus=`fetching`,n.abortController=r,n.status===`idle`&&(n.status=`loading`),this.notifyObservers(t)),r}endFetch(e){let t=gD(e),n=this.cache.get(t);n&&(n.fetchStatus=`idle`,n.abortController=void 0,this.notifyObservers(t))}isFetching(e){let t=gD(e);return this.cache.get(t)?.fetchStatus===`fetching`}getOrCreateFetch(e,t,n){let r=gD(e),i=this.cache.get(r);if(i?.promise&&i.fetchStatus===`fetching`)return i.promise;i?(i.fetchStatus=`fetching`,i.status===`idle`&&(i.status=`loading`)):(i={queryKey:e,queryHash:r,data:void 0,error:null,status:`loading`,dataUpdatedAt:0,errorUpdatedAt:0,isInvalidated:!1,fetchStatus:`fetching`,observers:new Set},this.cache.set(r,i)),i.abortController?.abort();let a=new AbortController;i.abortController=a;let o=t(a.signal).then(e=>{let t=this.cache.get(r);return t?.promise===o&&(t.data=e,t.error=null,t.status=`success`,t.dataUpdatedAt=xD.now(),t.isInvalidated=!1,n!==void 0&&(t.staleTime=n),t.fetchStatus=`idle`,t.promise=void 0,t.abortController=void 0,this.notifyObservers(r)),e}).catch(e=>{let t=this.cache.get(r);throw t?.promise===o&&(t.error=e,t.status=`error`,t.errorUpdatedAt=xD.now(),t.fetchStatus=`idle`,t.promise=void 0,t.abortController=void 0,this.notifyObservers(r)),e});return i.promise=o,this.notifyObservers(r),o}getInFlightPromise(e){let t=gD(e),n=this.cache.get(t);if(n?.promise&&n.fetchStatus===`fetching`)return n.promise}scheduleGC(e){if(!this.config.gcEnabled)return;let t=this.cache.get(e);!t||t.observers.size>0||(t.gcTimeout&&clearTimeout(t.gcTimeout),t.gcTimeout=setTimeout(()=>{t.observers.size===0&&this.cache.delete(e)},this.resolveCacheTime(t)))}resolveCacheTime(e){let t=e.observerCacheTimes;if(!t||t.size===0)return this.config.defaultCacheTime;let n=this.config.defaultCacheTime;for(let e of t.values())e>n&&(n=e);return n}ensureGcScheduled(){this.config.gcEnabled&&this.gcTimer===void 0&&this.cache.size!==0&&(this.gcTimer=setTimeout(()=>{this.gcTimer=void 0,this.runGarbageCollection(),this.ensureGcScheduled()},this.config.gcInterval))}runGarbageCollection(){for(let[e,t]of this.cache.entries()){if(t.observers.size>0)continue;let n=Math.max(t.dataUpdatedAt,t.errorUpdatedAt);xD.isExpired(n,this.config.defaultCacheTime)&&this.cache.delete(e)}}enforceMaxEntries(){if(this.cache.size<=this.config.maxEntries)return;let e=Array.from(this.cache.entries()).filter(([e,t])=>t.observers.size===0).sort((e,t)=>Math.max(e[1].dataUpdatedAt,e[1].errorUpdatedAt)-Math.max(t[1].dataUpdatedAt,t[1].errorUpdatedAt)),t=this.cache.size-this.config.maxEntries;for(let n=0;n<t&&n<e.length;n++){let[t,r]=e[n];r.gcTimeout&&clearTimeout(r.gcTimeout),this.cache.delete(t)}}dehydrate(){return Array.from(this.cache.values()).filter(e=>e.status===`success`).map(e=>({queryKey:e.queryKey,queryHash:e.queryHash,state:{data:e.data,error:e.error,status:e.status,dataUpdatedAt:e.dataUpdatedAt,errorUpdatedAt:e.errorUpdatedAt,isInvalidated:e.isInvalidated}}))}hydrate(e){for(let{queryKey:t,queryHash:n,state:r}of e)this.cache.has(n)||this.cache.set(n,{queryKey:t,queryHash:n,data:r.data,error:r.error,status:r.status,dataUpdatedAt:r.dataUpdatedAt,errorUpdatedAt:r.errorUpdatedAt,isInvalidated:r.isInvalidated,fetchStatus:`idle`,observers:new Set});this.ensureGcScheduled()}destroy(){this.gcTimer!==void 0&&(clearTimeout(this.gcTimer),this.gcTimer=void 0),this.clear()}getStats(){let e=0,t=0;for(let n of this.cache.values())e+=n.observers.size,n.fetchStatus===`fetching`&&t++;return{size:this.cache.size,maxEntries:this.config.maxEntries,observerCount:e,fetchingCount:t}}},ED=class{mutations=new Map;mutationsByKey=new Map;observers=new Map;globalObservers=new Set;create(e){let t=bD(),n={id:t,mutationKey:e?.mutationKey,status:`idle`,data:void 0,error:null,variables:e?.variables,context:void 0,submittedAt:0,isPaused:!1};if(this.mutations.set(t,n),e?.mutationKey){let n=JSON.stringify(e.mutationKey);this.mutationsByKey.has(n)||this.mutationsByKey.set(n,new Set),this.mutationsByKey.get(n).add(t)}return this.notifyObservers(t),t}get(e){return this.mutations.get(e)}getByKey(e){let t=JSON.stringify(e),n=this.mutationsByKey.get(t);return n?Array.from(n).map(e=>this.mutations.get(e)).filter(e=>e!==void 0):[]}update(e,t){let n=this.mutations.get(e);n&&(Object.assign(n,t),(t.status===`success`||t.status===`error`)&&(n.settledAt=xD.now()),this.notifyObservers(e))}start(e,t){this.update(e,{status:`loading`,variables:t,submittedAt:xD.now(),error:null})}success(e,t,n){this.update(e,{status:`success`,data:t,context:n,error:null})}failure(e,t){this.update(e,{status:`error`,error:t})}reset(e){this.update(e,{status:`idle`,data:void 0,error:null,variables:void 0,context:void 0,submittedAt:0,settledAt:void 0})}remove(e){let t=this.mutations.get(e);if(t){if(t.mutationKey){let n=JSON.stringify(t.mutationKey);this.mutationsByKey.get(n)?.delete(e)}this.mutations.delete(e),this.observers.delete(e),this.notifyGlobalObservers()}}clear(){this.mutations.clear(),this.mutationsByKey.clear(),this.observers.clear(),this.notifyGlobalObservers()}getAll(){return Array.from(this.mutations.values())}getByStatus(e){return this.getAll().filter(t=>t.status===e)}getPending(){return this.getByStatus(`loading`)}getPaused(){return this.getAll().filter(e=>e.isPaused)}subscribe(e,t){return this.observers.has(e)||this.observers.set(e,new Set),this.observers.get(e).add(t),()=>{this.observers.get(e)?.delete(t)}}subscribeAll(e){return this.globalObservers.add(e),()=>{this.globalObservers.delete(e)}}notifyObservers(e){this.observers.get(e)?.forEach(e=>{try{e()}catch(e){console.error(`Error in mutation observer:`,e)}}),this.notifyGlobalObservers()}notifyGlobalObservers(){this.globalObservers.forEach(e=>{try{e()}catch(e){console.error(`Error in global mutation observer:`,e)}})}pause(e){this.update(e,{isPaused:!0})}resume(e){this.update(e,{isPaused:!1})}pauseAll(){for(let e of this.mutations.keys())this.pause(e)}resumeAll(){for(let e of this.mutations.values())e.isPaused&&this.resume(e.id)}dehydrate(){return this.getPaused().map(e=>({mutationKey:e.mutationKey,state:{status:e.status,variables:e.variables,submittedAt:e.submittedAt}}))}hydrate(e){for(let{mutationKey:t,state:n}of e){let e=this.create({mutationKey:t}),r=n;this.update(e,{status:r.status??`idle`,variables:r.variables,submittedAt:r.submittedAt??0,isPaused:!0})}}getStats(){let e=this.getAll();return{total:e.length,idle:e.filter(e=>e.status===`idle`).length,loading:e.filter(e=>e.status===`loading`).length,success:e.filter(e=>e.status===`success`).length,error:e.filter(e=>e.status===`error`).length,paused:e.filter(e=>e.isPaused).length}}}})))()}function OD(e){return e}function kD({client:e,children:t,autoConnect:n=!0,connectTimeout:r=3e4,onConnect:i,onDisconnect:a,onError:o,defaultOptions:s,cacheOptions:c}){let l=(0,K.useRef)(!0),u=(0,K.useRef)(null);u.current===null&&(u.current=new ND(e,{maxEntries:c?.maxEntries,defaultCacheTime:c?.defaultCacheTime}));let d=u.current;(0,K.useEffect)(()=>()=>{u.current?.destroy(),u.current=null},[]);let f=(0,K.useMemo)(()=>({staleTime:s?.queries?.staleTime??0,cacheTime:s?.queries?.cacheTime??3e5,retry:s?.queries?.retry??3,refetchOnWindowFocus:s?.queries?.refetchOnWindowFocus??!0,refetchOnReconnect:s?.queries?.refetchOnReconnect??!0}),[s]),p=(0,K.useMemo)(()=>`getBackendNames`in e&&typeof e.getBackendNames==`function`?e.getBackendNames():[],[e]),[m,h]=(0,K.useState)(()=>{let t=new Map;for(let n of p)t.set(n,{name:n,isConnected:e.isConnected(n),isConnecting:!1,error:null});return t}),[g,_]=(0,K.useState)(null),v=(0,K.useCallback)((e,t)=>{l.current&&h(n=>{let r=new Map(n),i=r.get(e)||{name:e,isConnected:!1,isConnecting:!1,error:null};return r.set(e,{...i,...t}),r})},[]),y=(0,K.useCallback)(async t=>{v(t,{isConnecting:!0,error:null});try{let n=new Promise((e,n)=>{setTimeout(()=>{n(Error(`Connection timeout for backend '${t}' after ${r}ms`))},r)});await Promise.race([e.connect(t),n]),l.current&&(v(t,{isConnected:!0,isConnecting:!1}),i?.(t))}catch(e){if(l.current){let n=e;v(t,{isConnected:!1,isConnecting:!1,error:n}),o?.(t,n)}throw e}},[e,r,v,i,o]),b=(0,K.useCallback)(async t=>{try{await e.disconnect(t),l.current&&(v(t,{isConnected:!1,isConnecting:!1}),a?.(t))}catch(e){if(l.current){let n=e;v(t,{error:n}),o?.(t,n)}throw e}},[e,v,a,o]),x=(0,K.useCallback)(async e=>{if(e)await y(e);else{let e=p.map(e=>y(e).catch(t=>{console.error(`Failed to connect to backend '${e}':`,t)}));await Promise.all(e)}},[p,y]),S=(0,K.useCallback)(async e=>{if(e)await b(e);else{let e=p.map(e=>b(e).catch(t=>{console.error(`Failed to disconnect from backend '${e}':`,t)}));await Promise.all(e)}},[p,b]),C=(0,K.useCallback)(t=>t?m.get(t)?.isConnected??e.isConnected(t):e.isConnected(),[e,m]),w=(0,K.useCallback)(t=>e.backend(t),[e]);(0,K.useEffect)(()=>{n&&p.some(t=>!e.isConnected(t))&&x().catch(e=>{l.current&&_(e)})},[n,p,e,x]),(0,K.useEffect)(()=>()=>{l.current=!1},[]);let ee=(0,K.useMemo)(()=>{let e=p.length>0&&p.every(e=>m.get(e)?.isConnected??!1),t=p.some(e=>m.get(e)?.isConnected??!1),n=p.some(e=>m.get(e)?.isConnecting??!1);return{backends:m,allConnected:e,anyConnected:t,anyConnecting:n,globalError:g}},[p,m,g]),T=(0,K.useMemo)(()=>({client:e,getBackend:w,backendNames:p,isConnected:C,connect:x,disconnect:S}),[e,w,p,C,x,S]);return(0,AD.jsx)(jD.Provider,{value:T,children:(0,AD.jsx)(MD.Provider,{value:ee,children:(0,AD.jsx)(uD.Provider,{value:OD(d),children:(0,AD.jsx)(pD.Provider,{value:f,children:t})})})})}var K,AD,jD,MD,ND;function PD(){return(PD=t((()=>{hD(),DD(),K=r(),AD=a(),jD=(0,K.createContext)(null),jD.displayName=`MultiBackendContext`,MD=(0,K.createContext)(null),MD.displayName=`MultiBackendConnectionContext`,ND=class{multiClient;queryCache;mutationCache;listeners=new Map;transportUnsubs=[];constructor(e,t={}){this.multiClient=e,this.queryCache=new TD({maxEntries:t.maxEntries??1e3,defaultCacheTime:t.defaultCacheTime??3e5}),this.mutationCache=new ED,this.wireTransportEvents()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}async invalidateQueries(e){let t=this.queryCache.findAll(e);for(let e of t)this.queryCache.invalidate(e.queryKey)}getQueryData(e){return this.queryCache.get(e)}setQueryData(e,t){let n=this.queryCache.get(e),r=typeof t==`function`?t(n):t;this.queryCache.set(e,r)}async cancelQueries(e){this.queryCache.cancelAll(e)}on(e,t){let n=this.listeners.get(e);return n||(n=new Set,this.listeners.set(e,n)),n.add(t),()=>{this.listeners.get(e)?.delete(t)}}off(e,t){this.listeners.get(e)?.delete(t)}emit(e){let t=this.listeners.get(e);if(t)for(let e of t)try{e()}catch{}}wireTransportEvents(){let e=this.multiClient;if(typeof e.on!=`function`)return;let t=e.on(`reconnect`,()=>this.emit(`reconnect`));typeof t==`function`&&this.transportUnsubs.push(t)}destroy(){this.queryCache.destroy(),this.mutationCache.clear(),this.listeners.clear();for(let e of this.transportUnsubs)try{e()}catch{}this.transportUnsubs.length=0}}})))()}function FD({variant:e=`circular`,message:t,indicator:n,portal:r=!1,size:i=48,progress:a,fullScreen:o=!1,sx:s}){let c=r?Ht:ID.Fragment,l=a!==void 0;return(0,LD.jsx)(c,{children:(0,LD.jsxs)(RD,{fullScreen:o,sx:s,children:[n||(e===`linear`?(0,LD.jsx)(yt,{variant:l?`determinate`:`indeterminate`,value:a,color:`primary`,sx:{width:`100%`,maxWidth:360,borderRadius:1}}):(0,LD.jsx)(Ge,{variant:l?`determinate`:`indeterminate`,value:a,size:i,thickness:3,color:`primary`})),t&&(0,LD.jsx)(dt,{variant:`body2`,sx:{color:`text.secondary`,mt:1,textAlign:`center`},children:t}),l&&(0,LD.jsxs)(dt,{variant:`caption`,sx:{color:`text.disabled`},children:[Math.round(a),`%`]})]})})}var ID,LD,RD;function zD(){return(zD=t((()=>{ID=r(),we(),Lt(),Pe(),ft(),Qe(),_e(),LD=a(),RD=de(D,{shouldForwardProp:e=>e!==`fullScreen`})(({theme:e,fullScreen:t})=>({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:e.spacing(2),padding:e.spacing(3),...t?{position:`fixed`,top:0,left:0,right:0,bottom:0,zIndex:e.zIndex.modal+1,backgroundColor:e.palette.background.default}:{flexGrow:1,width:`100%`,minHeight:200}}))})))()}function BD({children:e}){let{user:t,initialized:n,initialize:r}=ur(),i=o();if((0,HD.useEffect)(()=>{r()},[r]),!n)return(0,UD.jsx)(FD,{fullScreen:!0,message:`Checking your session…`});if(!t){let e=encodeURIComponent(i.pathname+i.search+i.hash);return(0,UD.jsx)(s,{to:`/auth/sign-in?returnTo=${e}`,replace:!0})}return(0,UD.jsx)(ar,{children:e},`${t.id}:${ur.getState().sessionId}`)}function VD({children:e}){let{user:t,initialized:n,initialize:r}=ur(),i=o();if((0,HD.useEffect)(()=>{r()},[r]),!n)return(0,UD.jsx)(FD,{fullScreen:!0,message:`Checking your session…`});if(t){let e=new URLSearchParams(i.search),t=lr(e.get(`returnTo`));return(0,UD.jsx)(s,{to:t,replace:!0})}return(0,UD.jsx)(UD.Fragment,{children:e})}var HD,UD;function WD(){return(WD=t((()=>{HD=r(),y(),zD(),dr(),or(),UD=a()})))()}function GD({children:e}){return hr()?(0,KD.jsx)(KD.Fragment,{children:e}):(0,KD.jsx)(s,{to:`/`,replace:!0})}var KD;function qD(){return(qD=t((()=>{y(),_r(),KD=a()})))()}var JD,YD,XD;function ZD(){return(ZD=t((()=>{JD={full:280,mini:73,mobile:280,stackedCollapsed:72,stackedExpanded:300},YD={mobile:64,desktop:72},XD={headerHeight:`--layout-header-height`,headerMobileHeight:`--layout-header-mobile-height`,headerDesktopHeight:`--layout-header-desktop-height`,headerBlur:`--layout-header-blur`,headerZIndex:`--layout-header-z-index`,navWidth:`--layout-nav-width`,navMiniWidth:`--layout-nav-mini-width`,navMobileWidth:`--layout-nav-mobile-width`,navZIndex:`--layout-nav-z-index`,navBg:`--layout-nav-bg`,navTextColor:`--layout-nav-text-color`,navTextSecondaryColor:`--layout-nav-text-secondary-color`,mainPaddingTop:`--layout-main-padding-top`,mainPaddingBottom:`--layout-main-padding-bottom`,mainPaddingLeft:`--layout-main-padding-left`,mainPaddingRight:`--layout-main-padding-right`},XD.headerMobileHeight,`${YD.mobile}`,XD.headerDesktopHeight,`${YD.desktop}`,XD.headerBlur,XD.navWidth,`${JD.full}`,XD.navMiniWidth,`${JD.mini}`,XD.navMobileWidth,`${JD.mobile}`})))()}function QD({children:e,initialConfig:t,persistKey:n}){let r=ce(),i=me(r.breakpoints.down(`md`)),a=yd(e=>e.sidebarCollapsed),o=yd(e=>e.setSidebarCollapsed),[s,c]=(0,q.useState)(()=>{let e=n?a[n]??!1:!1;return{...rO,...t,...n?{sidenavCollapsed:e}:{}}}),[l,u]=(0,q.useState)([]),d=(0,q.useMemo)(()=>s.sidenavVariant===`mini`||s.sidenavCollapsed?s.sidenavVariant===`stacked`?JD.stackedCollapsed:JD.mini:s.sidenavVariant===`stacked`?JD.stackedExpanded:JD.full,[s.sidenavVariant,s.sidenavCollapsed]),f=(0,q.useMemo)(()=>({...s,drawerWidth:d}),[s,d]),p=(0,q.useCallback)(e=>{c(t=>({...t,...e}))},[]),m=(0,q.useCallback)(()=>{c(e=>({...e,drawerOpen:!e.drawerOpen}))},[]),h=(0,q.useCallback)(()=>{c(e=>{let t=!e.sidenavCollapsed;return n&&queueMicrotask(()=>o(n,t)),{...e,sidenavCollapsed:t}})},[n,o]),g=(0,q.useCallback)(e=>{c(t=>({...t,navigationMenuType:e}))},[]),_=(0,q.useCallback)(e=>{c(t=>({...t,sidenavVariant:e}))},[]),v=(0,q.useCallback)(e=>{c(t=>({...t,navColor:e}))},[]),y=(0,q.useCallback)(e=>l.includes(e),[l]),b=(0,q.useCallback)(e=>{u(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),x=(0,q.useCallback)((e,t)=>{if(!e.path)return!1;let n=t.split(/[?#]/)[0].replace(/\/+$/,``)||`/`;if(e.path===n||e.selectionPrefix&&(Array.isArray(e.selectionPrefix)?e.selectionPrefix:[e.selectionPrefix]).some(e=>n.startsWith(e)))return!0;if(e.deepMatch!==!1&&n.startsWith(e.path)){let t=n[e.path.length];return!t||t===`/`}return!1},[]),S=(0,q.useCallback)((e,t)=>{if(!e||e.length===0)return!1;let n=e=>x(e,t)?!0:e.children&&e.children.length>0?e.children.some(n):!1;return e.some(n)},[x]),C=(0,q.useMemo)(()=>({config:f,isMobile:i,setConfig:p,toggleDrawer:m,toggleSidenavCollapse:h,setNavigationMenuType:g,setSidenavVariant:_,setNavColor:v,openItems:l,setOpenItems:u,isItemOpen:y,toggleItem:b,isNestedItemActive:S,isNavItemActive:x}),[f,i,p,m,h,g,_,v,l,y,b,S,x]);return(0,nO.jsx)(iO.Provider,{value:C,children:e})}function $D(){let e=(0,q.useContext)(iO);if(!e)throw Error(`useLayoutContext must be used within a LayoutProvider`);return e}function eO(){let{config:e}=$D();return e}function tO(e){let{isNavItemActive:t,isNestedItemActive:n}=$D();return(0,q.useMemo)(()=>({isItemActive:n=>t(n,e),isNestedActive:t=>n(t,e)}),[t,n,e])}var q,nO,rO,iO;function aO(){return(aO=t((()=>{q=r(),le(),fe(),ZD(),bd(),nO=a(),rO={navigationMenuType:`sidenav`,sidenavVariant:`default`,sidenavCollapsed:!1,topnavVariant:`default`,navColor:`default`,drawerOpen:!1,drawerWidth:JD.full,compactLayout:!1},iO=(0,q.createContext)(null),iO.displayName=`LayoutContext`})))()}function oO(e=10){let[t,n]=(0,cO.useState)(!1);return(0,cO.useEffect)(()=>{if(typeof window>`u`)return;let t=e,r=Math.max(0,e/2),i=!1,a=()=>{i||(i=!0,requestAnimationFrame(()=>{let e=window.scrollY;n(n=>n?e>r:e>t),i=!1}))};return window.addEventListener(`scroll`,a,{passive:!0}),a(),()=>{window.removeEventListener(`scroll`,a)}},[e]),t}function sO({slots:e,slotProps:t,disableSticky:n=!1,disableOffset:r=!1,disableElevation:i=!1,containerized:a=!1,maxWidth:o=`lg`,sx:s}){let c=oO(),l=(0,lO.jsxs)(lO.Fragment,{children:[e?.leftArea&&(0,lO.jsx)(fO,{sx:{gap:1,...t?.leftArea},children:e.leftArea}),(0,lO.jsx)(fO,{sx:{flex:1,justifyContent:`center`,mx:2,...t?.centerArea},children:e?.centerArea}),e?.rightArea&&(0,lO.jsx)(fO,{sx:{gap:1,...t?.rightArea},children:e.rightArea})]});return(0,lO.jsxs)(uO,{color:`transparent`,position:n?`static`:`sticky`,isOffset:c,disableOffset:r,disableElevation:i,sx:s,children:[e?.topArea&&(0,lO.jsx)(D,{sx:t?.topArea,children:e.topArea}),(0,lO.jsx)(dO,{sx:t?.toolbar,children:a?(0,lO.jsx)(Xe,{maxWidth:o,sx:{display:`flex`,alignItems:`center`,...t?.container},children:l}):l}),e?.bottomArea&&(0,lO.jsx)(D,{sx:t?.bottomArea,children:e.bottomArea})]})}var cO,lO,uO,dO,fO;function pO(){return(pO=t((()=>{cO=r(),_e(),re(),Ue(),ut(),we(),Me(),ZD(),lO=a(),uO=de(qe,{shouldForwardProp:e=>![`isOffset`,`disableOffset`,`disableElevation`].includes(e)})(({theme:e,isOffset:t,disableOffset:n,disableElevation:r})=>{let i={opacity:0,content:`""`,visibility:`hidden`,position:`absolute`,transition:e.transitions.create([`opacity`,`visibility`],{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})},a={...i,top:0,left:0,width:`100%`,height:`100%`,zIndex:-1,backdropFilter:`blur(var(${XD.headerBlur}, 8px))`,WebkitBackdropFilter:`blur(var(${XD.headerBlur}, 8px))`,backgroundColor:T(e.palette.background.default,.8),...t&&{opacity:1,visibility:`visible`}},o={...i,left:0,right:0,bottom:0,height:24,margin:`auto`,borderRadius:`50%`,width:`calc(100% - 48px)`,zIndex:-2,boxShadow:e.shadows[8],...t&&{opacity:.48,visibility:`visible`}};return{backgroundColor:`transparent`,boxShadow:`none`,zIndex:`var(${XD.headerZIndex}, ${e.zIndex.appBar})`,...!n&&{"&::before":a},...!r&&{"&::after":o}}}),dO=de(st)(({theme:e})=>({minHeight:YD.mobile,[e.breakpoints.up(`md`)]:{minHeight:YD.desktop,paddingLeft:e.spacing(4),paddingRight:e.spacing(4)}})),fO=de(D)({display:`flex`,alignItems:`center`})})))()}var mO;function hO(){return(hO=t((()=>{mO={openMenu:`Open menu`,closeMenu:`Close menu`,collapseSidebar:`Collapse sidebar`,expandSidebar:`Expand sidebar`,navigation:`Main navigation`,main:`Main content`,skipToContent:`Skip to main content`}})))()}function gO({children:e,sx:t,fillContent:n=!1,hideScrollbar:r=!1,autoHide:i=!0,axis:a=`y`,maxHeight:o,minHeight:s,className:c,ref:l,...u}){return(0,_O.jsx)(vO,{ref:l,ownerState:{fillContent:n,hideScrollbar:r,autoHide:i,axis:a},className:c,sx:[{...o!==void 0&&{maxHeight:o},...s!==void 0&&{minHeight:s}},...Array.isArray(t)?t:[t]],...u,children:e})}var _O,vO;function yO(){return(yO=t((()=>{we(),_e(),ss(),_O=a(),vO=de(D,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{fillContent:n,hideScrollbar:r,autoHide:i,axis:a}=t;return{minWidth:0,minHeight:0,...a===`x`?{overflowX:`auto`,overflowY:`hidden`}:a===`y`?{overflowX:`hidden`,overflowY:`auto`}:{overflow:`auto`},...n&&{flexGrow:1,display:`flex`,flexDirection:`column`},...!r&&as(e,{autoHide:i}),...r&&{scrollbarWidth:`none`,msOverflowStyle:`none`,"&::-webkit-scrollbar":{display:`none`}}}})})))()}function bO({collapsed:e,labels:t,sx:n,...r}){return(0,xO.jsx)(Bt,{...r,size:`small`,"aria-label":e?t.expand:t.collapse,"aria-expanded":!e,sx:[e=>({position:`absolute`,top:36,insetInlineEnd:0,"--prism-sidebar-toggle-shift":e.direction===`rtl`?`-50%`:`50%`,transform:`translate(var(--prism-sidebar-toggle-shift), -50%)`,width:24,height:24,bgcolor:`background.paper`,border:1,borderColor:`divider`,boxShadow:1,"&:hover, &.Mui-focusVisible":{bgcolor:`background.paper`,backgroundImage:`linear-gradient(${(e.vars??e).palette.action.hover}, ${(e.vars??e).palette.action.hover})`}}),...Array.isArray(n)?n:[n]],children:e?(0,xO.jsx)(Cn,{sx:{fontSize:18}}):(0,xO.jsx)(Hn,{sx:{fontSize:18}})})}var xO;function SO(){return(SO=t((()=>{Mn(),Mt(),xO=a()})))()}function CO({logo:e,compactLogo:t,navData:n,renderNavItem:r,footer:i,showCollapseButton:a=!0,layoutQuery:o=`md`,"aria-label":s=Ad.mainNav,labels:c,sx:l}){let u={...mO,...c},{config:d,toggleSidenavCollapse:f}=$D(),{sidenavVariant:p,sidenavCollapsed:m}=d,h=!m&&p!==`mini`;return(0,J.jsxs)(OO,{as:`nav`,role:`navigation`,"aria-label":s,railWidth:d.drawerWidth,sx:[e=>({display:{xs:`none`,[o]:`flex`}}),...Array.isArray(l)?l:[l]],children:[(0,J.jsx)(D,{sx:{display:`flex`,alignItems:`center`,justifyContent:h?`flex-start`:`center`,height:{xs:YD.mobile,md:YD.desktop},px:h?3:1,flexShrink:0},children:h||t===void 0?e:t}),(0,J.jsx)(We,{}),(0,J.jsxs)(kO,{children:[(0,J.jsx)(AO,{children:n?.map((e,t)=>(0,J.jsxs)(DO.Fragment,{children:[!h&&t>0&&(0,J.jsx)(We,{sx:{mx:1.5}}),(0,J.jsx)(Gt,{subheader:h&&e.subheader?(0,J.jsx)(bt,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):null,sx:{px:h?1:.5},children:e.items.map(e=>r?r(e,0):(0,J.jsx)(EO,{item:e,showText:h,depth:0},e.id))})]},e.id))}),i&&(0,J.jsx)(D,{sx:{flexShrink:0,p:2},children:i})]}),a&&p!==`mini`&&(0,J.jsx)(bO,{collapsed:m,onClick:f,labels:{expand:u.expandSidebar,collapse:u.collapseSidebar}})]})}function wO({logo:e,navData:t,renderNavItem:n,footer:r,layoutQuery:i=`md`,"aria-label":a=Ad.mainNav,labels:s,sx:c}){let l={...mO,...s},{config:u,setConfig:d}=$D(),f=o(),p=()=>d({drawerOpen:!1});(0,DO.useEffect)(()=>{d({drawerOpen:!1})},[f.key,d]);let{drawerOpen:m}=u;return(0,J.jsxs)(Ke,{open:m,onClose:p,slotProps:{paper:{role:`dialog`,"aria-modal":!0,"aria-label":a}},"aria-label":a,sx:[e=>({display:{xs:`block`,[i]:`none`},"& .MuiDrawer-paper":{width:JD.mobile,backgroundColor:`var(${XD.navBg}, ${e.palette.background.paper})`}}),...Array.isArray(c)?c:[c]],children:[(0,J.jsxs)(D,{sx:{display:`flex`,alignItems:`center`,height:{xs:YD.mobile,md:YD.desktop},px:2.5},children:[(0,J.jsx)(D,{sx:{flex:1},children:e}),(0,J.jsx)(Bt,{"aria-label":l.closeMenu,onClick:p,children:(0,J.jsx)(zn,{fontSize:`small`})})]}),(0,J.jsx)(We,{}),(0,J.jsx)(D,{component:`nav`,role:`navigation`,"aria-label":a,sx:{flex:1,overflow:`auto`},children:t?.map(e=>(0,J.jsx)(Gt,{subheader:e.subheader?(0,J.jsx)(bt,{disableSticky:!0,sx:{px:2.5,py:1.5,typography:`overline`,color:`text.secondary`,bgcolor:`transparent`},children:e.subheader}):null,sx:{px:1},children:e.items.map(e=>n?n(e,0):(0,J.jsx)(EO,{item:e,showText:!0,depth:0},e.id))},e.id))}),r&&(0,J.jsx)(D,{sx:{p:2},children:r})]})}function TO({item:e,showText:t,depth:n,active:r,current:i}){let a=(0,J.jsxs)(qt,{component:e.path?d:`div`,...e.path?{to:e.path}:{},disabled:e.disabled,selected:r,"aria-current":i,"aria-label":e.title,title:e.caption,sx:e=>({minHeight:44,borderRadius:1,pl:t?n*2+2:void 0,...!t&&{justifyContent:`center`,px:1,mx:.5},...r&&{color:`primary.main`,bgcolor:T(e.palette.primary.main,.08),"&:hover":{bgcolor:T(e.palette.primary.main,.16)}}}),children:[e.icon&&(0,J.jsx)(At,{sx:{minWidth:t?36:`unset`,color:r?`primary.main`:`text.secondary`,...!t&&{mr:0,justifyContent:`center`}},children:(0,J.jsx)(D,{component:`span`,sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,width:24,height:24},children:e.icon})}),t&&(0,J.jsx)(zt,{primary:e.title,slotProps:{primary:{variant:`body2`,noWrap:!0,sx:{fontWeight:r?600:500}}}}),t&&e.info]});return t?a:(0,J.jsx)(et,{title:e.title,placement:`right`,arrow:!0,children:a},e.id)}function EO({item:e,showText:t,depth:n}){let{pathname:r}=o(),{isItemActive:i}=tO(r),a=i(e);return(0,J.jsx)(TO,{item:e,showText:t,depth:n,active:a,current:a?r.replace(/\/$/,``)===e.path?.replace(/\/$/,``)?`page`:`location`:void 0},e.id)}var DO,J,OO,kO,AO;function jO(){return(jO=t((()=>{Mn(),DO=r(),_e(),re(),He(),yO(),SO(),we(),_t(),gt(),Ct(),Ot(),Ft(),Mt(),Re(),tt(),y(),aO(),hO(),jd(),ZD(),J=a(),OO=de(D,{shouldForwardProp:e=>e!==`railWidth`})(({theme:e,railWidth:t})=>({position:`fixed`,top:0,insetInlineStart:0,height:`100%`,width:t,flexShrink:0,display:`flex`,flexDirection:`column`,zIndex:e.zIndex.drawer,backgroundColor:`var(${XD.navBg}, ${e.palette.background.paper})`,borderInlineEnd:`1px solid ${e.palette.divider}`,transition:e.transitions.create(`width`,{duration:e.transitions.duration.shorter})})),kO=de(D)({display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`}),AO=de(gO)({flex:1})})))()}function MO({navData:e,renderNavItem:t,layoutQuery:n=`lg`,"aria-label":r=Ad.mainNav,sx:i}){return(0,PO.jsx)(FO,{"aria-label":r,sx:i,children:e?.map(e=>e.items.map(e=>t?t(e,0):(0,PO.jsx)(NO,{item:e},e.id)))})}function NO({item:e}){let{pathname:t}=o(),{isItemActive:n}=tO(t),r=n(e);return(0,PO.jsxs)(D,{component:e.path?d:`div`,...e.path?{to:e.path}:{},role:`menuitem`,tabIndex:0,"aria-disabled":e.disabled||void 0,"aria-current":r?`page`:void 0,sx:t=>({display:`flex`,alignItems:`center`,gap:1,px:1.5,py:.75,borderRadius:1,whiteSpace:`nowrap`,textDecoration:`none`,color:r?`primary.main`:`text.primary`,typography:`body2`,fontWeight:r?600:500,cursor:e.disabled?`default`:`pointer`,opacity:e.disabled?.5:1,...r&&{bgcolor:T(t.palette.primary.main,.08)},"&:hover":{bgcolor:e.disabled?void 0:r?T(t.palette.primary.main,.16):`action.hover`},"&:focus-visible":{outline:`2px solid ${t.palette.primary.main}`,outlineOffset:-2}}),children:[e.icon&&(0,PO.jsx)(D,{component:`span`,"aria-hidden":`true`,sx:{display:`flex`,color:r?`primary.main`:`text.secondary`},children:e.icon}),(0,PO.jsx)(`span`,{children:e.title}),e.info]})}var PO,FO;function IO(){return(IO=t((()=>{_e(),re(),we(),y(),aO(),jd(),ZD(),PO=a(),FO=de(`nav`)(({theme:e})=>({display:`flex`,alignItems:`center`,width:`100%`,minHeight:48,borderBottom:`1px solid ${e.palette.divider}`,backgroundColor:`var(${XD.navBg}, ${e.palette.background.paper})`,paddingLeft:e.spacing(2),paddingRight:e.spacing(2),gap:e.spacing(.5),overflowX:`auto`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}))})))()}function LO({contentMode:e,children:t,layoutQuery:n,navData:r,headerSlots:i,logo:a,compactLogo:o,footer:s,sidenavFooter:c,slotProps:l,labels:u}){let d={...mO,...u},f=eO(),{toggleDrawer:p}=$D(),{navigationMenuType:m,sidenavCollapsed:h,sidenavVariant:g,drawerWidth:_}=f,v=m===`sidenav`||m===`combo`,y=m===`topnav`||m===`combo`,b=v?_:0,x=(0,zO.useMemo)(()=>{if(!v)return i;let e=(0,BO.jsx)(Bt,{onClick:p,"aria-label":d.openMenu,"aria-haspopup":`dialog`,"aria-expanded":f.drawerOpen,sx:{display:{xs:`inline-flex`,[n]:`none`},bgcolor:`transparent`,transition:`transform 0.2s ease`,"&:hover":{bgcolor:`transparent`,transform:`scale(1.1)`}},children:(0,BO.jsx)(Un,{})});return{...i,leftArea:(0,BO.jsxs)(BO.Fragment,{children:[e,i?.leftArea]})}},[v,i,p,n,d.openMenu,f.drawerOpen]);return(0,BO.jsxs)(VO,{contentMode:e,hasSidebar:v,sidebarWidth:b,layoutQuery:n,children:[(0,BO.jsx)(Dd,{href:`#${l?.main?.id??`main-content`}`,children:d.skipToContent}),(0,BO.jsx)(sO,{slots:x,"aria-label":Ad.header,sx:{...l?.header?.sx},...l?.header}),y&&(0,BO.jsx)(MO,{navData:r,layoutQuery:n,"aria-label":v?`Secondary navigation`:Ad.mainNav}),v&&(0,BO.jsxs)(BO.Fragment,{children:[(0,BO.jsx)(CO,{logo:a,compactLogo:o,navData:r,footer:c,layoutQuery:n,"aria-label":d.navigation,labels:d}),(0,BO.jsx)(wO,{logo:a,navData:r,footer:c,layoutQuery:n,"aria-label":d.navigation,labels:d})]}),(0,BO.jsx)(D,{component:`main`,id:l?.main?.id??`main-content`,className:l?.main?.className,role:`main`,"aria-label":d.main,tabIndex:-1,sx:{display:`flex`,flexDirection:`column`,flex:`1 1 auto`,minWidth:0,...e===`workspace`&&{minHeight:0,overflow:`hidden`},"&:focus":{outline:`none`},...!l?.main?.disablePadding&&{py:{xs:2,sm:3,md:4},px:{xs:2,sm:3,md:4}},...l?.main?.sx},children:l?.main?.maxWidth?(0,BO.jsx)(Xe,{maxWidth:l.main.maxWidth,sx:{flex:1,display:`flex`,flexDirection:`column`,minWidth:0,...e===`workspace`&&{minHeight:0}},children:t}):t}),s]})}function RO({contentMode:e=`document`,children:t,layoutQuery:n=`lg`,navData:r,headerSlots:i,logo:a,compactLogo:o,footer:s,sidenavFooter:c,initialConfig:l,persistKey:u,slotProps:d,labels:f}){return(0,BO.jsx)(QD,{initialConfig:l,persistKey:u,children:(0,BO.jsx)(LO,{contentMode:e,layoutQuery:n,navData:r,headerSlots:i,logo:a,compactLogo:o,footer:s,sidenavFooter:c,slotProps:d,labels:f,children:t})})}var zO,BO,VO;function HO(){return(HO=t((()=>{Mn(),zO=r(),hO(),_e(),we(),Me(),Mt(),aO(),pO(),jO(),IO(),jd(),BO=a(),VO=de(D,{shouldForwardProp:e=>![`hasSidebar`,`sidebarWidth`,`layoutQuery`,`contentMode`].includes(e)})(({theme:e,hasSidebar:t,sidebarWidth:n,layoutQuery:r,contentMode:i})=>({display:`flex`,flexDirection:`column`,flex:`1 1 auto`,minHeight:`100vh`,minWidth:0,...i===`workspace`&&{height:`100dvh`,minHeight:0,overflow:`hidden`},...t&&{[e.breakpoints.up(r)]:{marginInlineStart:n,minWidth:0}},transition:e.transitions.create(`margin-inline-start`,{duration:e.transitions.duration.shorter})}))})))()}function UO({children:e,logo:t,maxWidth:n=420,sx:r}){return(0,WO.jsxs)(GO,{sx:r,children:[t&&(0,WO.jsx)(D,{sx:{position:{xs:`static`,md:`fixed`},top:0,left:0,p:3,zIndex:3},children:t}),(0,WO.jsx)(KO,{children:(0,WO.jsx)(qO,{sx:{maxWidth:n},children:e})})]})}var WO,GO,KO,qO;function JO(){return(JO=t((()=>{_e(),re(),we(),De(),WO=a(),GO=de(D)(({theme:e})=>({display:`flex`,flexDirection:`column`,minHeight:`100vh`,background:e.palette.mode===`dark`?`linear-gradient(135deg, ${T(e.palette.primary.dark,.1)} 0%, ${e.palette.background.default} 100%)`:`linear-gradient(135deg, ${T(e.palette.primary.light,.1)} 0%, ${e.palette.background.default} 100%)`})),KO=de(D)({display:`flex`,flex:`1 1 auto`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:24}),qO=de(ze)(({theme:e})=>({width:`100%`,maxWidth:420,padding:e.spacing(5,3),position:`relative`,zIndex:2}))})))()}function YO({color:e,pulse:t}){return(0,Y.jsx)(D,{sx:{width:6,height:6,borderRadius:`50%`,bgcolor:e,flexShrink:0,...t&&{boxShadow:`0 0 4px ${e}`,animation:`pulse 2s ease-in-out infinite`,"@keyframes pulse":{"0%, 100%":{opacity:1},"50%":{opacity:.5}}}}})}function XO(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return n>0?r>0?`${n}d ${r}h`:`${n}d`:r>0?i>0?`${r}h ${i}m`:`${r}h`:`${i}m`}function ZO({children:e,priority:t}){return(0,Y.jsx)(D,{"data-priority":t,sx:{display:`flex`,alignItems:`center`,gap:.5,flexShrink:0,whiteSpace:`nowrap`,minWidth:0},children:e})}function QO({children:e,highlight:t}){return(0,Y.jsx)(dt,{variant:`caption`,sx:{fontSize:`inherit`,color:t?`text.primary`:`text.secondary`,fontWeight:t?600:400},children:e})}function $O({label:e,value:t}){return(0,Y.jsxs)(QO,{children:[e,` `,(0,Y.jsx)(D,{component:`span`,sx:{color:`text.primary`,fontWeight:600},children:t})]})}function ek({docked:e=!1}){let t=A(e=>e.activeProject),n=A(e=>e.activeStack),{can:r,snapshot:i}=tr(),a=r(`OmnitronDaemon.status`),o=r(`OmnitronNodes.listNodes`),s=r(`OmnitronProject.listStacks`),c=r(`OmnitronAlerts.getSummary`)&&r(`OmnitronAlerts.getActiveAlerts`)&&r(`OmnitronAlerts.getRules`),l=JSON.stringify([i?.userId,t,n,a,o,s,c]);return(0,Y.jsx)(tk,{docked:e,showStatus:a,showNodes:o,showStacks:s,showAlerts:c},l)}function tk({docked:e,showStatus:t,showNodes:n,showStacks:r,showAlerts:i}){let a=(0,ik.useRef)({nodesOnline:0,nodesTotal:0,firingAlerts:0,appsOnline:0,appsTotal:0,appsKnown:!1}),o=yr(e=>e.connected),s=yr(e=>e.lastEvent),c=yr(e=>e.initialize);(0,ik.useEffect)(c,[c]);let l=A(e=>e.activeProject),u=A(e=>e.activeStack),f=A(e=>e.fetchStacks),p=A(e=>l?e.stacksByProject?.[l]:void 0),h=A(e=>l?e.stackReadErrors?.[l]:null),{data:g,refresh:y}=fr(async()=>{let[e,,o,s]=await Promise.allSettled([t?m.status():null,l&&r?f(l):null,n?v.listNodes():null,i?_.getSummary():null]),c=e.status===`fulfilled`?e.value:null,u=c?!0:await m.ping().then(()=>!0,()=>!1),d=o.status===`fulfilled`?o.value:null,p=s.status===`fulfilled`?s.value:null,h=c?.apps??null;return h&&Object.assign(a.current,Sr(h),{appsKnown:!0}),o.status===`fulfilled`&&Array.isArray(d)&&(a.current.nodesOnline=d.filter(e=>e.status?.omnitronConnected).length,a.current.nodesTotal=d.length),s.status===`fulfilled`&&(a.current.firingAlerts=p?.firing??0),{daemonOnline:u,appsCurrent:!!h,appsKnown:a.current.appsKnown,appsOnline:a.current.appsOnline,appsTotal:a.current.appsTotal,nodesOnline:a.current.nodesOnline,nodesTotal:a.current.nodesTotal,firingAlerts:a.current.firingAlerts,uptimeMs:c?.uptime??0,version:c?.version??``,pid:c?.pid??0,lastFetch:Date.now()}},{intervalMs:o?3e4:1e4});if((0,ik.useEffect)(()=>{if(!s)return;let e=s.channel;(e.startsWith(`app.`)||e.startsWith(`alert.`)||e.startsWith(`daemon.`)||e.startsWith(`stack.`))&&y()},[s,y]),!g)return null;let b=l?r:t,x=p?mr(p).filter(e=>!u||e.stack===u):null,S=x?.filter(e=>e.status===`unknown`).length??0,C=x?Sr(x):null,w=l?C?`${C.appsOnline}/${C.appsTotal}${h?` stale`:S?` · ${S} unknown`:``}`:`unknown`:g.appsKnown?`${g.appsOnline}/${g.appsTotal}${g.appsCurrent?``:` stale`}`:`unknown`;return(0,Y.jsxs)(D,{"aria-label":`Infrastructure status: ${g.daemonOnline?`online`:`offline`}${b?`, applications ${w}`:``}${n?`, nodes ${g.nodesOnline}/${g.nodesTotal}`:``}${i?`, ${g.firingAlerts} alerts`:``}`,sx:{position:e?`relative`:`fixed`,bottom:0,left:0,right:0,height:`calc(28px + env(safe-area-inset-bottom, 0px))`,pb:`env(safe-area-inset-bottom, 0px)`,flexShrink:0,minWidth:0,overflow:`hidden`,containerType:`inline-size`,bgcolor:e=>T(e.palette.background.default,.96),backdropFilter:`blur(12px)`,borderTop:`1px solid`,borderColor:`divider`,display:`flex`,alignItems:`center`,px:{xs:1,sm:2},gap:{xs:1,md:2.5},zIndex:e=>e.zIndex.appBar,fontSize:`0.68rem`,userSelect:`none`,"@container (max-width: 800px)":{'& [data-priority="detail"]':{display:`none`}},"@container (max-width: 600px)":{'& [data-priority="context"]':{display:`none`}},"@container (max-width: 420px)":{'& [data-priority="extra"]':{display:`none`}}},children:[(0,Y.jsxs)(ZO,{children:[(0,Y.jsx)(YO,{color:g.daemonOnline?`#22c55e`:`#ef4444`,pulse:g.daemonOnline}),(0,Y.jsx)(QO,{highlight:g.daemonOnline,children:g.daemonOnline?`Online`:`Offline`})]}),(0,Y.jsx)(D,{sx:{width:`1px`,height:12,bgcolor:`divider`}}),r&&(0,Y.jsx)(rk,{}),b&&(0,Y.jsx)(ZO,{children:(0,Y.jsx)($O,{label:`Apps`,value:w})}),n&&g.nodesTotal>0&&(0,Y.jsx)(ZO,{priority:`extra`,children:(0,Y.jsx)($O,{label:`Nodes`,value:`${g.nodesOnline}/${g.nodesTotal}`})}),i&&g.firingAlerts>0&&(0,Y.jsxs)(D,{component:d,to:`/alerts#firing`,"aria-label":`View ${g.firingAlerts} firing ${g.firingAlerts===1?`alert`:`alerts`} across all workspaces`,sx:{display:`inline-flex`,alignItems:`center`,gap:.5,minHeight:24,px:.5,whiteSpace:`nowrap`,flexShrink:0,borderRadius:.5,textDecoration:`none`,color:`error.main`,fontWeight:600,"&:hover":{textDecoration:`underline`},"&:focus-visible":{outline:`2px solid currentColor`,outlineOffset:-2}},children:[(0,Y.jsx)(YO,{color:`currentColor`}),g.firingAlerts,` alert`,g.firingAlerts>1?`s`:``]}),(0,Y.jsxs)(ZO,{priority:`extra`,children:[(0,Y.jsx)(YO,{color:o?`#3b82f6`:`#6b7280`}),(0,Y.jsx)(QO,{children:o?`Live`:`Polling`})]}),(0,Y.jsx)(D,{sx:{flex:1}}),g.daemonOnline&&g.uptimeMs>0&&(0,Y.jsx)(ZO,{priority:`detail`,children:(0,Y.jsx)($O,{label:`Uptime`,value:XO(g.uptimeMs)})}),(0,Y.jsx)(nk,{serverTimestamp:g.lastFetch}),(0,Y.jsx)(D,{"data-priority":`detail`,sx:{px:.75,py:.1,borderRadius:.5,border:`1px solid`,borderColor:`divider`,fontSize:`inherit`,color:`text.disabled`,lineHeight:1},children:`⌘K`})]})}function nk({serverTimestamp:e}){let[t]=(0,ik.useState)(()=>e?e-Date.now():0),[n,r]=(0,ik.useState)(()=>Date.now()+t);(0,ik.useEffect)(()=>{let e=setInterval(()=>r(Date.now()+t),1e3);return()=>clearInterval(e)},[t]);let i=new Date(n),a=String(i.getHours()).padStart(2,`0`),o=String(i.getMinutes()).padStart(2,`0`),s=String(i.getSeconds()).padStart(2,`0`);return(0,Y.jsx)(ZO,{priority:`detail`,children:(0,Y.jsxs)(QO,{children:[a,`:`,o,`:`,s]})})}function rk(){let e=A(e=>e.activeProject),t=A(e=>e.activeStack),n=gr(),r=A(t=>e?t.stackReadErrors?.[e]:null),i=A(t=>!!e&&t.stacksByProject[e]!==void 0),{runningStacks:a,totalStacks:o,unknownStacks:s}=vr(n.filter(e=>!t||e.name===t));return e?(0,Y.jsx)(ZO,{priority:`context`,children:(0,Y.jsxs)(QO,{children:[(0,Y.jsx)(D,{component:`span`,sx:{color:`text.primary`,fontWeight:600},children:e}),t&&(0,Y.jsxs)(D,{component:`span`,sx:{color:`info.main`},children:[` `,`/ `,t]}),(0,Y.jsxs)(`span`,{title:s?`${s} stack states unknown`:`Running / configured stacks`,children:[` `,`(`,i?`${a}/${o}`:`unknown`,` stacks`,r?` · stale`:s>0?` · unknown`:``,`)`]})]})}):null}var ik,Y;function ak(){return(ak=t((()=>{ik=r(),y(),or(),we(),Qe(),re(),h(),br(),pr(),_r(),xr(),Y=a()})))()}function ok(){let e=Cr(),{probe:t,startPolling:n,consecutiveUnreachable:r}=Tr();return(0,sk.useEffect)(()=>n(),[n]),(0,ck.jsx)(Ye,{in:e===`offline`||e===`degraded`,unmountOnExit:!0,children:(0,ck.jsx)(qn,{severity:e===`offline`?`error`:`warning`,variant:`filled`,sx:{borderRadius:0,py:.5,"& .MuiAlert-message":{display:`flex`,alignItems:`center`,gap:2,width:`100%`}},action:(0,ck.jsx)(Ce,{color:`inherit`,size:`small`,onClick:t,sx:{fontWeight:700,whiteSpace:`nowrap`},children:`Retry`}),children:e===`offline`?(0,ck.jsxs)(ck.Fragment,{children:[`Daemon offline — run `,(0,ck.jsx)(`code`,{style:{margin:`0 4px`},children:`omnitron up`}),` to start the backend`]}):(0,ck.jsx)(ck.Fragment,{children:r>1?`The daemon has not answered ${r} checks — it may be down, or the connection to it may be blocked`:`The daemon did not answer the last check — this view may be out of date`})})})}var sk,ck;function lk(){return(lk=t((()=>{sk=r(),Te(),je(),Er(),Kn(),ck=a()})))()}function uk(){let[e,t]=(0,dk.useState)(!1),[n,r]=(0,dk.useState)(!1);return(0,dk.useEffect)(()=>{let e=document.querySelector(`meta[name="omnitron-console-build"]`)?.content,n=!1,i=null,a=async()=>{if(document.hidden||i||!e)return;i=new AbortController;let r=window.setTimeout(()=>i?.abort(),5e3);try{let r=await fetch(`/console-version.json`,{cache:`no-store`,signal:i.signal});if(!r.ok)return;let a=await r.json();!n&&a&&typeof a==`object`&&`version`in a&&typeof a.version==`string`&&/^[a-f0-9]{64}$/.test(a.version)&&t(a.version!==e)}catch{}finally{window.clearTimeout(r),i=null}},o=()=>{r(!0),a()},s=()=>{a()};window.addEventListener(`vite:preloadError`,o),document.addEventListener(`visibilitychange`,s);let c=window.setInterval(s,6e4);return a(),()=>{n=!0,i?.abort(),window.clearInterval(c),window.removeEventListener(`vite:preloadError`,o),document.removeEventListener(`visibilitychange`,s)}},[]),!e&&!n?null:(0,fk.jsxs)(qn,{severity:n?`warning`:`info`,sx:{borderRadius:0,py:.5},action:(0,fk.jsx)(Ce,{color:`inherit`,size:`small`,onClick:()=>window.location.reload(),children:`Reload`}),children:[e?`Console update available.`:`This page could not load. Check your connection and try reloading.`,` Save open edits before reloading; your current workspace stays open until then.`]})}var dk,fk;function pk(){return(pk=t((()=>{dk=r(),Te(),Kn(),fk=a()})))()}function mk(){let[e,t]=(0,hk.useState)(null),n=(0,hk.useCallback)(e=>{t(e.currentTarget)},[]),r=(0,hk.useCallback)(()=>{t(null)},[]);return{open:!!e,anchorEl:e,onOpen:n,onClose:r,setAnchorEl:t}}var hk;function gk(){return(gk=t((()=>{hk=r(),_e(),re(),a(),de(`span`,{shouldForwardProp:e=>e!==`ownerState`})(({theme:e,ownerState:t})=>{let{size:n,offset:r,placement:i}=t,a={top:{top:0,rotate:`135deg`,translate:`0 -50%`},bottom:{bottom:0,rotate:`-45deg`,translate:`0 50%`},left:{left:0,rotate:`45deg`,translate:`-50% 0`},right:{right:0,rotate:`-135deg`,translate:`50% 0`}},o=()=>i.startsWith(`top-`)?a.top:i.startsWith(`bottom-`)?a.bottom:i.startsWith(`left-`)?a.left:i.startsWith(`right-`)?a.right:{},s=()=>i.endsWith(`-left`)?{left:r}:i.endsWith(`-right`)?{right:r}:i.endsWith(`-top`)?{top:r}:i.endsWith(`-bottom`)?{bottom:r}:i.endsWith(`-center`)?i.startsWith(`top-`)||i.startsWith(`bottom-`)?{left:0,right:0,margin:`auto`}:{top:0,bottom:0,margin:`auto`}:{};return{width:n,height:n,position:`absolute`,borderBottomLeftRadius:n/4,clipPath:`polygon(0% 0%, 100% 100%, 0% 100%)`,backgroundColor:e.palette.background.paper,border:`solid 1px ${T(e.palette.grey[500],.12)}`,...o(),...s()}})})))()}function _k(){let{open:e,anchorEl:t,onClose:n,onOpen:r}=mk(),i=(0,vk.useId)(),{can:a,snapshot:s}=tr(),c=a(`OmnitronProject.listProjects`),l=p(),{pathname:u}=o(),d=(0,vk.useRef)(u);d.current=u;let f=A(e=>e.projects),m=c?f:[],h=hr(),g=A(e=>e.selectProject),_=A(e=>e.deselectProject),v=A(e=>e.fetchProjects);(0,vk.useEffect)(()=>{c&&v(d.current).then(e=>{e&&l(e,{replace:!0})})},[v,l,c,s?.userId]);let y=(0,vk.useCallback)(()=>{let e=_(u);l(e),n()},[_,l,u,n]),b=(0,vk.useCallback)(e=>{let t=g(e,u);l(t),n()},[g,l,u,n]),x=m.find(e=>e.name===h),S=!h||!c,C=A(e=>h?e.stackReadErrors?.[h]:null),w={height:1,zIndex:-1,opacity:0,content:`''`,borderRadius:1,position:`absolute`,visibility:`hidden`,bgcolor:`action.hover`,width:`calc(100% + 8px)`,transition:e=>e.transitions.create([`opacity`,`visibility`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.shorter}),...e&&{opacity:1,visibility:`visible`}},ee={fontSize:22,color:`text.secondary`},T={fontSize:22,color:`primary.main`};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Fe,{id:`${i}-trigger`,"aria-label":`Switch workspace: ${S?`Omnitron`:x?.displayName??h}`,"aria-haspopup":`menu`,"aria-expanded":e,"aria-controls":e?i:void 0,disableRipple:!0,onClick:r,sx:{minWidth:0,maxWidth:`100%`,py:.5,gap:{xs:.5,sm:1},"&::before":w},children:[(0,X.jsx)(D,{sx:{width:24,height:24,display:`flex`,alignItems:`center`,justifyContent:`center`},children:S?(0,X.jsx)(ti,{sx:{fontSize:20}}):(0,X.jsx)(Jr,{sx:{fontSize:20}})}),(0,X.jsx)(D,{component:`span`,sx:{typography:`subtitle2`,display:{xs:`none`,sm:`block`},minWidth:0,maxWidth:{sm:180,md:240},whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:S?`Omnitron`:x?.displayName??h}),x&&(0,X.jsx)(D,{component:`span`,title:`Running / configured stacks in the whole workspace`,sx:{display:{xs:`none`,sm:`inline-flex`}},children:(0,X.jsxs)(oi,{color:x.runningStacks>0?`success`:`default`,sx:{height:22,cursor:`inherit`},children:[x.runningStacks,`/`,x.totalStacks,` stacks`,C?` · stale`:``]})}),(0,X.jsx)(D,{component:`svg`,viewBox:`0 0 16 16`,sx:{width:16,height:16,color:`text.disabled`,flexShrink:0},children:(0,X.jsx)(`path`,{fill:`currentColor`,d:`M11.2 5.6L8 2.4 4.8 5.6m0 4.8L8 13.6l3.2-3.2`})})]}),(0,X.jsxs)(wt,{id:i,open:e,anchorEl:t,onClose:n,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},slotProps:{paper:{sx:{width:300,maxWidth:`calc(100vw - 32px)`,maxHeight:`min(640px, calc(100dvh - 96px))`}},list:{"aria-labelledby":`${i}-trigger`}},children:[(0,X.jsxs)(Pt,{selected:S,onClick:y,sx:{height:48,gap:1.5},children:[(0,X.jsx)(ti,{sx:S?T:ee}),(0,X.jsxs)(D,{sx:{flexGrow:1,minWidth:0},children:[(0,X.jsx)(dt,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:`Omnitron`}),(0,X.jsx)(dt,{noWrap:!0,variant:`caption`,color:`text.disabled`,children:`System`})]})]}),m.length>0&&(0,X.jsx)(We,{}),m.map(e=>{let t=e.name===h;return(0,X.jsxs)(Pt,{selected:t,onClick:()=>b(e.name),sx:{height:48,gap:1.5},children:[(0,X.jsx)(Jr,{sx:t?T:ee}),(0,X.jsx)(et,{describeChild:!0,title:e.path,placement:`right`,arrow:!0,enterDelay:500,children:(0,X.jsx)(D,{sx:{flexGrow:1,minWidth:0},children:(0,X.jsx)(dt,{noWrap:!0,variant:`body2`,sx:{fontWeight:`fontWeightMedium`},children:e.displayName})})}),(0,X.jsxs)(oi,{color:t&&e.runningStacks>0?`success`:`default`,children:[t?`${e.runningStacks}/${e.totalStacks}`:e.totalStacks,` stacks`,t&&C?` · stale`:``]})]},e.name)}),a(`OmnitronProject.addProject`)&&(0,X.jsx)(We,{}),a(`OmnitronProject.addProject`)&&(0,X.jsxs)(Pt,{onClick:()=>{n(),_(`/projects`),l(`/projects?create=1`)},sx:{minHeight:{xs:44,sm:44},gap:1.5,color:`primary.main`},children:[(0,X.jsx)(Nr,{sx:{fontSize:22}}),`Add project`]})]})]})}var vk,X;function yk(){return(yk=t((()=>{vk=r(),y(),we(),Re(),Et(),Ut(),Qe(),Le(),tt(),gk(),ai(),Lr(),_r(),or(),X=a()})))()}function bk(){let{can:e}=tr(),[t,n]=(0,xk.useState)(!1),r=A(e=>e.activeProject),i=A(e=>e.activeStack),a=A(e=>r?e.stackReadErrors[r]:null),o=A(e=>e.selectStack),s=gr(),c=(0,xk.useMemo)(()=>[...s].sort((e,t)=>e.name.localeCompare(t.name)),[s]);if(!r||!e(`OmnitronProject.listStacks`))return null;let l=!(!i||s.some(e=>e.name===i));return(0,Sk.jsx)(et,{title:t?``:a?`Stack inventory unavailable. The current filter is retained; cached options may be stale.`:`Filter workspace views. Opening a stack detail does not change this filter.`,slotProps:{popper:{popperOptions:{strategy:`fixed`}},transition:{timeout:0}},children:(0,Sk.jsxs)(Jt,{size:`small`,value:i??``,displayEmpty:!0,open:t,onOpen:()=>n(!0),onClose:()=>n(!1),onChange:e=>o(e.target.value||null),inputProps:{"aria-label":`Stack filter`},renderValue:e=>e?`Stack: ${e}`:`All stacks`,MenuProps:{slotProps:{paper:{sx:{maxHeight:360,maxWidth:`calc(100vw - 24px)`}}}},sx:{minWidth:104,maxWidth:{xs:112,sm:210},height:30,fontSize:`0.75rem`,flexShrink:1,"& .MuiSelect-select":{minWidth:0,textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,py:.5},...a||l?{color:`warning.main`}:{}},children:[(0,Sk.jsx)(Pt,{value:``,sx:{fontSize:`0.8rem`},children:`All stacks`}),l&&(0,Sk.jsxs)(Pt,{value:i,disabled:!0,children:[i,` · awaiting inventory`]}),c.map(e=>(0,Sk.jsxs)(Pt,{value:e.name,sx:{gap:1,minWidth:0,fontSize:`0.8rem`},children:[(0,Sk.jsx)(D,{component:`span`,"aria-hidden":!0,sx:{width:6,height:6,borderRadius:`50%`,bgcolor:ci(e.status),flexShrink:0}}),(0,Sk.jsx)(dt,{variant:`inherit`,noWrap:!0,sx:{flex:1,minWidth:0},children:e.name}),(0,Sk.jsx)(dt,{variant:`caption`,color:`text.secondary`,children:a?`last observed`:e.status})]},e.name))]})})}var xk,Sk;function Ck(){return(Ck=t((()=>{xk=r(),we(),Ut(),ln(),tt(),Qe(),_r(),or(),si(),Sk=a()})))()}function wk(e,t,n){let r=n.primary,i=r?`${r.filePath??`unknown`}:${r.lineNumber??`?`}${r.functionName?` (${r.functionName})`:``}`:`unknown location`;console.error(`[omnitron-console] crashed at ${i}: ${e.message}`,{error:e,componentStack:t.componentStack})}function Tk(){try{let e=new AudioContext,t=e.createOscillator(),n=e.createGain();t.frequency.value=880,n.gain.setValueAtTime(.15,e.currentTime),n.gain.exponentialRampToValueAtTime(1e-4,e.currentTime+.4),t.connect(n).connect(e.destination),t.start(),t.stop(e.currentTime+.4),t.onended=()=>void e.close()}catch{}}function Ek(e){let t=(0,Dk.useRef)(null),{data:n}=fr(()=>_.getActiveAlerts(),{intervalMs:15e3,enabled:e!==null,resourceKey:e,pauseWhileHidden:!1});(0,Dk.useEffect)(()=>{t.current=null},[e]),(0,Dk.useEffect)(()=>{if(e===null||!n)return;if(t.current===null){t.current=new Set(n.map(e=>e.id));return}let r=di(),i=ui(t.current,n,r.minSeverity);if(i.length!==0){if(r.desktop&&typeof Notification<`u`&&Notification.permission===`granted`)for(let e of i)new Notification(`${e.severity.toUpperCase()} · ${e.ruleName}`,{body:e.node?`${e.message} — ${e.node}`:e.message,tag:e.id});r.sound&&Tk()}},[e,n])}var Dk;function Ok(){return(Ok=t((()=>{Dk=r(),h(),pr(),li()})))()}function kk(){let e=hr();return(0,Pk.useMemo)(()=>{let t={id:`dashboard-builder`,title:`Dashboard Builder`,path:`/dashboard-builder`,icon:(0,Z.jsx)(Yr,{})},n={id:`alerts`,title:`Alerts`,path:`/alerts`,icon:(0,Z.jsx)(ni,{})};return e?[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,Z.jsx)(Xr,{})},{id:`apps`,title:`Applications`,path:`/apps`,icon:(0,Z.jsx)($r,{}),selectionPrefix:`/apps`}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,Z.jsx)(Pr,{})},{id:`metrics`,title:`Metrics`,path:`/metrics`,icon:(0,Z.jsx)(ii,{})},{id:`traces`,title:`Traces`,path:`/traces`,icon:(0,Z.jsx)(Rr,{})},n]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`stacks`,title:`Stacks`,path:`/stacks`,icon:(0,Z.jsx)(Wr,{}),selectionPrefix:`/stacks`},{id:`releases`,title:`Releases`,path:`/releases`,icon:(0,Z.jsx)(Vr,{}),selectionPrefix:`/releases`},{id:`topology`,title:`Topology`,path:`/topology`,icon:(0,Z.jsx)(Ur,{})},{id:`nodes`,title:`Nodes`,path:`/nodes`,icon:(0,Z.jsx)(Fr,{})},{id:`terminal`,title:`SSH workspace`,path:`/terminal`,icon:(0,Z.jsx)(Kr,{})},{id:`files`,title:`Files`,path:`/files`,icon:(0,Z.jsx)(Jr,{})},{id:`containers`,title:`Containers`,path:`/containers`,icon:(0,Z.jsx)(ri,{})},{id:`deployments`,title:`Deployments`,path:`/deployments`,icon:(0,Z.jsx)(Qr,{})},{id:`pipelines`,title:`Pipelines`,path:`/pipelines`,icon:(0,Z.jsx)(Hr,{}),selectionPrefix:`/pipelines`}]},{id:`system`,subheader:`System`,items:[t,{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,Z.jsx)(Br,{})},{id:`audit`,title:`Audit`,path:`/audit`,icon:(0,Z.jsx)(ei,{})},{id:`access`,title:`Access`,path:`/access`,icon:(0,Z.jsx)(zr,{})},{id:`system-info`,title:`System`,path:`/system`,icon:(0,Z.jsx)(qr,{})}]}]:[{id:`overview`,subheader:`Overview`,items:[{id:`dashboard`,title:`Dashboard`,path:`/`,icon:(0,Z.jsx)(Xr,{})}]},{id:`observability`,subheader:`Observability`,items:[{id:`logs`,title:`Logs`,path:`/logs`,icon:(0,Z.jsx)(Pr,{})},n]},{id:`infrastructure`,subheader:`Infrastructure`,items:[{id:`projects`,title:`Projects`,path:`/projects`,icon:(0,Z.jsx)(Zr,{})},{id:`nodes`,title:`Nodes`,path:`/nodes`,icon:(0,Z.jsx)(Fr,{})},{id:`topology`,title:`Topology`,path:`/topology`,icon:(0,Z.jsx)(Ur,{})},{id:`terminal`,title:`SSH workspace`,path:`/terminal`,icon:(0,Z.jsx)(Kr,{})},{id:`files`,title:`Files`,path:`/files`,icon:(0,Z.jsx)(Jr,{})},{id:`pipelines`,title:`Pipelines`,path:`/pipelines`,icon:(0,Z.jsx)(Hr,{}),selectionPrefix:`/pipelines`},{id:`releases`,title:`Releases`,path:`/releases`,icon:(0,Z.jsx)(Vr,{}),selectionPrefix:`/releases`}]},{id:`system`,subheader:`System`,items:[t,{id:`settings`,title:`Settings`,path:`/settings`,icon:(0,Z.jsx)(Br,{})},{id:`audit`,title:`Audit`,path:`/audit`,icon:(0,Z.jsx)(ei,{})},{id:`access`,title:`Access`,path:`/access`,icon:(0,Z.jsx)(zr,{})},{id:`system-info`,title:`System`,path:`/system`,icon:(0,Z.jsx)(qr,{})}]}]},[e])}function Ak(){let{sidenavCollapsed:e,sidenavVariant:t}=eO();return(0,Z.jsxs)(en,{direction:`row`,spacing:1,sx:{alignItems:`center`},children:[(0,Z.jsx)(Dr,{size:48}),!e&&t!==`mini`&&(0,Z.jsx)(dt,{variant:`subtitle1`,noWrap:!0,sx:{fontWeight:800,letterSpacing:2,textTransform:`uppercase`,fontSize:`0.85rem`},children:`Omnitron`})]})}function jk({mode:e}){return e===`dark`?(0,Z.jsxs)(D,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,Z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M21.5 14.08C20.31 14.67 18.98 15 17.58 15C12.86 15 9.08 11.22 9.08 6.5C9.08 5.1 9.42 3.77 10 2.58C5.73 3.63 2.58 7.5 2.58 12.08C2.58 17.6 7.06 22.08 12.58 22.08C17.16 22.08 21.04 18.93 22.08 14.67C21.89 14.81 21.7 14.94 21.5 14.08Z`}),(0,Z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21.5 14.08C20.31 14.67 18.98 15 17.58 15C12.86 15 9.08 11.22 9.08 6.5C9.08 5.1 9.42 3.77 10 2.58C5.73 3.63 2.58 7.5 2.58 12.08C2.58 17.6 7.06 22.08 12.58 22.08C17.16 22.08 21.04 18.93 22.08 14.67`})]}):e===`light`?(0,Z.jsxs)(D,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,Z.jsx)(`circle`,{fill:`currentColor`,opacity:`0.4`,cx:`12`,cy:`12`,r:`5`}),(0,Z.jsx)(`circle`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,cx:`12`,cy:`12`,r:`5`}),(0,Z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M12 2V4M12 20V22M4 12H2M22 12H20M19.78 4.22L18.36 5.64M5.64 18.36L4.22 19.78M19.78 19.78L18.36 18.36M5.64 5.64L4.22 4.22`})]}):(0,Z.jsxs)(D,{component:`svg`,viewBox:`0 0 24 24`,sx:{width:20,height:20},children:[(0,Z.jsx)(`path`,{fill:`currentColor`,opacity:`0.4`,d:`M2 10C2 6.23 2 4.34 3.17 3.17C4.34 2 6.23 2 10 2H14C17.77 2 19.66 2 20.83 3.17C22 4.34 22 6.23 22 10V11C22 11.55 21.55 12 21 12H3C2.45 12 2 11.55 2 11V10Z`}),(0,Z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 10C2 6.23 2 4.34 3.17 3.17C4.34 2 6.23 2 10 2H14C17.77 2 19.66 2 20.83 3.17C22 4.34 22 6.23 22 10V14C22 17.77 22 19.66 20.83 20.83C19.66 22 17.77 22 14 22H10C6.23 22 4.34 22 3.17 20.83C2 19.66 2 17.77 2 14V10Z`}),(0,Z.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,d:`M2 12H22`})]})}function Mk(){let{openCommands:e,openHelp:t}=kr(),n=ur(e=>e.signOut),{setMode:r}=hn(),i=yd(e=>e.mode);return(0,Z.jsxs)(en,{direction:`row`,spacing:.5,sx:{alignItems:`center`},children:[(0,Z.jsx)(et,{title:`Commands · Ctrl / ⌘ K`,children:(0,Z.jsx)(Bt,{"aria-label":`Open Console commands`,onClick:e,sx:Lk,children:(0,Z.jsx)(Ir,{sx:{fontSize:20}})})}),(0,Z.jsx)(et,{title:`Keyboard · Ctrl / ⌘ /`,children:(0,Z.jsx)(Bt,{"aria-label":`Keyboard shortcuts`,onClick:t,sx:Lk,children:(0,Z.jsx)(dt,{component:`span`,sx:{fontWeight:600,fontSize:18},children:`?`})})}),(0,Z.jsx)(et,{title:i===`light`?`Dark mode`:i===`dark`?`System mode`:`Light mode`,children:(0,Z.jsx)(Bt,{disableRipple:!0,onClick:()=>{let e=[`light`,`dark`,`system`],t=e.indexOf(i);r(e[(t+1)%e.length])},sx:Lk,children:(0,Z.jsx)(jk,{mode:i})})}),(0,Z.jsx)(et,{title:`Sign out`,children:(0,Z.jsx)(Bt,{disableRipple:!0,onClick:()=>n(),sx:Lk,children:(0,Z.jsx)(Gr,{sx:{fontSize:20}})})})]})}function Nk(){let e=kk(),{can:t,snapshot:n}=tr(),r=e.map(e=>({...e,items:e.items.filter(e=>{let n=nr[e.path?.split(`/`)[1]||`dashboard`];return ir(t,n)})})).filter(e=>e.items.length>0),i=o(),a=i.pathname===`/terminal`,s=i.pathname===`/files`,[l,u]=(0,Pk.useState)(s);(0,Pk.useEffect)(()=>{s&&u(!0)},[s]),(0,Pk.useEffect)(()=>{let e=document.getElementById(`main-content`);i.hash||e?.scrollTo({top:0}),!e||document.activeElement&&jr(document.activeElement)||e.focus({preventScroll:!0})},[i.pathname,i.hash]);let[d,f]=(0,Pk.useState)(a);return(0,Pk.useEffect)(()=>{a&&f(!0)},[a]),Ek(t(`OmnitronAlerts.getActiveAlerts`)?n?.userId??null:null),(0,Z.jsx)(Mr,{navigation:r,children:(0,Z.jsx)(RO,{contentMode:`workspace`,footer:(0,Z.jsx)(ek,{docked:!0}),logo:(0,Z.jsx)(Ak,{}),navData:r,persistKey:`console`,initialConfig:{navigationMenuType:`sidenav`,sidenavVariant:`default`,navColor:`default`},headerSlots:{leftArea:(0,Z.jsxs)(D,{"data-keyboard-region":`Workspace`,tabIndex:-1,sx:{display:`flex`,alignItems:`center`,gap:{xs:.5,sm:1},minWidth:0,"@media (max-width: 359px)":{flexDirection:`column`,alignItems:`flex-start`,gap:0}},children:[(0,Z.jsx)(_k,{}),(0,Z.jsx)(bk,{})]}),rightArea:(0,Z.jsx)(Mk,{}),bottomArea:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ok,{}),(0,Z.jsx)(uk,{})]})},slotProps:{header:{slotProps:{toolbar:{px:Rk},leftArea:{minWidth:0},centerArea:{mx:{xs:0,sm:2}}}},main:{sx:a||s||i.pathname===`/topology`?{px:Rk,py:{xs:1,sm:1.5,md:2},minHeight:0}:{minWidth:0,minHeight:0,overflowY:`auto`,px:Rk,py:{xs:1.5,sm:2,md:2.5}}}},children:(0,Z.jsxs)($n,{showDetails:!0,onError:wk,children:[(0,Z.jsx)(Pk.Suspense,{fallback:(0,Z.jsx)(FD,{variant:`linear`,message:`Loading…`}),children:!a&&!s&&(0,Z.jsx)(er,{children:(0,Z.jsx)(c,{})})}),l&&(0,Z.jsx)(D,{sx:{display:s?`flex`:`none`,flexDirection:`column`,flex:1,minHeight:0,minWidth:0},children:(0,Z.jsx)(Pk.Suspense,{fallback:(0,Z.jsx)(FD,{variant:`linear`,message:`Loading files…`}),children:(0,Z.jsx)(sr,{permission:`OmnitronFiles.roots`,children:(0,Z.jsx)(Ik,{visible:s})})})}),d&&(0,Z.jsx)(D,{sx:{display:a?`flex`:`none`,flexDirection:`column`,flex:1,minHeight:0,minWidth:0},children:(0,Z.jsx)(Pk.Suspense,{fallback:(0,Z.jsx)(FD,{variant:`linear`,message:`Loading SSH workspace…`}),children:(0,Z.jsx)(sr,{permission:`OmnitronTerminal.open`,children:(0,Z.jsx)(Fk,{visible:a})})})})]})})})}var Pk,Z,Fk,Ik,Lk,Rk;function zk(){return(zk=t((()=>{Pk=r(),y(),we(),Qe(),Mt(),tt(),cn(),Qn(),HO(),aO(),zD(),mn(),bd(),ak(),lk(),pk(),Or(),Ar(),wr(),Lr(),dr(),or(),yk(),Ck(),_r(),Ok(),Z=a(),fi(),Fk=(0,Pk.lazy)(()=>j(()=>import(`./terminal-QWBau-Us.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),Ik=(0,Pk.lazy)(()=>j(()=>import(`./files-DigwXndm.js`),__vite__mapDeps([24,1,2,3,4,7,6,5,8,9,10,11,12,13,14,25,26,27,28,29,18,30,19,31,22]))),Lk={p:.75,transition:`transform 0.2s ease`,"&:hover":{transform:`scale(1.1)`,bgcolor:`transparent`}},Rk={xs:1,sm:2,lg:3}})))()}function Bk(){return(0,Hk.jsxs)(UO,{maxWidth:460,children:[(0,Hk.jsx)(ok,{}),(0,Hk.jsx)(uk,{}),(0,Hk.jsx)(Vk.Suspense,{fallback:(0,Hk.jsx)(FD,{message:`Loading sign-in…`}),children:(0,Hk.jsx)(c,{})})]})}var Vk,Hk;function Uk(){return(Uk=t((()=>{Vk=r(),y(),JO(),zD(),lk(),pk(),Hk=a()})))()}function Wk(){return(0,$.jsxs)(f,{children:[(0,$.jsx)(l,{element:(0,$.jsx)(VD,{children:(0,$.jsx)(Bk,{})}),children:(0,$.jsx)(l,{path:`/auth/sign-in`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(qk,{})})})}),(0,$.jsxs)(l,{element:(0,$.jsx)(BD,{children:(0,$.jsx)(Nk,{})}),children:[(0,$.jsx)(l,{index:!0,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(Jk,{})})}),(0,$.jsx)(l,{path:`nodes`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(uA,{})})}),(0,$.jsx)(l,{path:`terminal`,element:null}),(0,$.jsx)(l,{path:`files`,element:null}),(0,$.jsx)(l,{path:`projects`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(dA,{})})}),(0,$.jsx)(l,{path:`dashboard-builder`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(oA,{})})}),(0,$.jsx)(l,{path:`system`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(lA,{})})}),(0,$.jsx)(l,{path:`settings`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(rA,{})})}),(0,$.jsx)(l,{path:`logs`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(Zk,{})})}),(0,$.jsx)(l,{path:`alerts`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)($k,{})})}),(0,$.jsx)(l,{path:`audit`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(fA,{})})}),(0,$.jsx)(l,{path:`access`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(pA,{})})}),(0,$.jsx)(l,{path:`pipelines`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(iA,{})})}),(0,$.jsx)(l,{path:`releases`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(mA,{})})}),(0,$.jsx)(l,{path:`releases/:id`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(hA,{})})}),(0,$.jsx)(l,{path:`apps/:name`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(Xk,{})})}),(0,$.jsx)(l,{path:`apps`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(Yk,{})})}),(0,$.jsx)(l,{path:`stacks`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(sA,{})})}),(0,$.jsx)(l,{path:`stacks/:name`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(cA,{})})}),(0,$.jsx)(l,{path:`metrics`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(nA,{})})}),(0,$.jsx)(l,{path:`topology`,element:(0,$.jsx)(Gk,{children:(0,$.jsx)(Qk,{})})}),(0,$.jsx)(l,{path:`containers`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(eA,{})})}),(0,$.jsx)(l,{path:`deployments`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(tA,{})})}),(0,$.jsx)(l,{path:`traces`,element:(0,$.jsx)(Kk,{children:(0,$.jsx)(aA,{})})})]}),(0,$.jsx)(l,{path:`*`,element:(0,$.jsx)(s,{to:`/`,replace:!0})})]})}function Gk({children:e}){return(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(rr,{}),children:e})}function Kk({children:e}){return(0,$.jsx)(Q.Suspense,{fallback:(0,$.jsx)(rr,{}),children:(0,$.jsx)(GD,{children:e})})}var Q,$,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA;function gA(){return(gA=t((()=>{Q=r(),y(),cr(),WD(),qD(),zk(),Uk(),$=a(),fi(),qk=(0,Q.lazy)(()=>j(()=>import(`./sign-in-9q-Nfy83.js`),__vite__mapDeps([32,1,2,3,4,8,6,5,7,10,9,11,12,33,16,17,34,28]))),Jk=(0,Q.lazy)(()=>j(()=>import(`./dashboard-BN7rKE5n.js`),__vite__mapDeps([35,1,2,3,4,8,6,5,7,10,9,11,12,33,26,36,17,37,38,39,40,19,41,42,43,44,45]))),Yk=(0,Q.lazy)(()=>j(()=>import(`./apps-G_Lm6m4F.js`).then(e=>(e.n(),e.t)),__vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,47,48,49,50,51,52,13,14,33,53,16,17,26,36,37,38,39,28,40,54,30,55,19,41,42,56]))),Xk=(0,Q.lazy)(()=>j(()=>import(`./detail-pXPk4O0E.js`),__vite__mapDeps([57,1,2,3,4,6,5,7,8,9,10,11,12,33,58,29,53,16,17,26,36,37,39,28,40,54,30,19,59,41,60,13,14,15,61,42]))),Zk=(0,Q.lazy)(()=>j(()=>import(`./logs-DrsBbLfb.js`),__vite__mapDeps([62,1,2,3,4,6,5,7,8,9,10,11,12,13,14,33,15,28,19,59,60,61,42,36,17,37,63,21]))),Qk=(0,Q.lazy)(()=>j(()=>import(`./topology-C_Qp1RqW.js`),__vite__mapDeps([64,1,2,3,4,5,6,7,8,9,10,11,12,33,17,53,16,26,36,37,28,65,40,66,18,19,31,59,41,67,58,29,30,42,43,45,22,13,14,68,69]))),$k=(0,Q.lazy)(()=>j(()=>import(`./alerts-CzN6OqX5.js`),__vite__mapDeps([70,1,2,3,4,5,6,8,7,10,9,11,12,33,53,16,17,26,36,37,28,71,19,72,13,14,30,31,59,41,73]))),eA=(0,Q.lazy)(()=>j(()=>import(`./containers-BsFwprq4.js`),__vite__mapDeps([74,1,2,3,4,5,6,8,7,10,9,11,12,33,53,16,17,26,36,37,28,19,72,13,14,30,31,59,42]))),tA=(0,Q.lazy)(()=>j(()=>import(`./deployments-DEzjHerg.js`),__vite__mapDeps([75,1,2,3,4,8,6,5,7,10,9,11,12,33,53,16,17,26,36,37,28,19,72,13,14,30,41,42,22,76]))),nA=(0,Q.lazy)(()=>j(()=>import(`./metrics-D5cDZTEo.js`),__vite__mapDeps([77,1,2,3,4,8,6,5,7,10,9,11,12,33,26,39,28,19,67,58,29,30,59,42,36,17,37,43,44,45]))),rA=(0,Q.lazy)(()=>j(()=>import(`./settings-B3egRvbI.js`),__vite__mapDeps([78,1,2,3,4,8,6,5,7,10,9,11,12,33,79,16,17,26,37,28,71,80,54,30,19,41,22,13,14]))),iA=(0,Q.lazy)(()=>j(()=>import(`./pipelines-BrfTjf6Y.js`),__vite__mapDeps([81,1,2,3,4,8,6,5,7,10,9,11,12,33,53,16,17,26,36,37,28,18,19,72,13,14,30,31,41,73,22]))),aA=(0,Q.lazy)(()=>j(()=>import(`./traces-By0rdfDC.js`),__vite__mapDeps([82,1,2,3,4,5,6,8,7,10,9,11,12,33,26,28,19,72,13,14,30,41]))),oA=(0,Q.lazy)(()=>j(()=>import(`./dashboard-builder-BXFxWjXP.js`),__vite__mapDeps([83,1,2,3,4,8,6,5,7,10,9,11,12,33,84,13,14,53,16,17,26,36,37,39,28,18,19,41,67,58,29,30,59,42,85,86,43]))),sA=(0,Q.lazy)(()=>j(()=>import(`./stacks-WY_ynkON.js`),__vite__mapDeps([87,1,2,3,4,5,6,8,7,10,9,11,12,33,53,16,17,26,36,37,28,19,59,41,56,85,88,89,76,90,91,18,68]))),cA=(0,Q.lazy)(()=>j(()=>import(`./detail-Dj3gxaH0.js`),__vite__mapDeps([92,1,2,3,4,8,6,5,7,10,9,11,12,33,53,16,17,26,36,37,28,18,54,30,19,41,56,88,89,76,90,93,91,68]))),lA=(0,Q.lazy)(()=>j(()=>import(`./system-info-DXMwo6gl.js`),__vite__mapDeps([94,1,2,3,4,8,6,5,7,10,9,11,12,33,53,16,17,26,36,37,28,18,19,41,43,22,13,14]))),uA=(0,Q.lazy)(()=>j(()=>import(`./nodes-CwwZZuu4.js`),__vite__mapDeps([95,1,2,3,4,6,5,7,8,9,10,11,12,33,96,13,14,53,16,17,26,36,37,38,28,18,19,59,85,86,63,21,90,88]))),dA=(0,Q.lazy)(()=>j(()=>import(`./projects-TBAdpCeX.js`),__vite__mapDeps([97,1,2,3,4,5,6,8,7,10,9,11,12,33,96,13,14,53,16,17,26,36,37,28,65,18,19,59,41,85]))),fA=(0,Q.lazy)(()=>j(()=>import(`./audit-CLMpdBzG.js`),__vite__mapDeps([98,1,2,3,4,5,6,8,7,10,9,11,12,13,14,33,15,53,16,17,26,36,37,28,30,19,59,61,85]))),pA=(0,Q.lazy)(()=>j(()=>import(`./access-DUjabwNX.js`),__vite__mapDeps([99,1,2,3,4,8,6,5,7,10,9,11,12,79,53,16,17,26,36,37,28,18,30,55,13,14,19,20,21]))),mA=(0,Q.lazy)(()=>j(()=>import(`./releases-CXXKUh-v.js`),__vite__mapDeps([100,1,2,3,4,8,6,5,7,10,9,11,12,33,53,16,17,26,36,37,28,18,19,72,13,14,30,76,90,89,101,15,93]))),hA=(0,Q.lazy)(()=>j(()=>import(`./detail-CBn9pjJU.js`),__vite__mapDeps([102,1,2,3,4,5,6,8,7,10,9,11,12,33,53,16,17,26,36,37,28,18,19,76,90,89,101,13,14,15,93])))})))()}function _A({mode:e}){return{palette:{background:e===`dark`?{default:`#070b16`,paper:`#101827`,neutral:`#162033`}:{default:`#f5f7fc`,paper:`#ffffff`,neutral:`#eef2f8`}},components:{MuiCard:{styleOverrides:{root:{minWidth:0,boxShadow:`none`}}},MuiCardHeader:{styleOverrides:{root:{flexWrap:`wrap`,gap:8},content:{minWidth:0,overflowWrap:`anywhere`},action:{margin:0,alignSelf:`center`}}}}}}function vA(){let{pathname:e}=o(),t=A(e=>e.saveCurrentRoute);return(0,bA.useEffect)(()=>{e.startsWith(`/auth`)||t(e)},[e,t]),(0,xA.jsxs)(xA.Fragment,{children:[(0,xA.jsx)($E,{pathname:e}),(0,xA.jsx)(oD,{pathname:e}),(0,xA.jsx)($n,{showDetails:!0,onError:wk,children:(0,xA.jsx)(Wk,{})})]})}function yA(){return(0,xA.jsx)(Sd,{themeOverrides:_A,defaultSettings:{mode:`dark`,preset:`midnight`,direction:`ltr`},children:(0,xA.jsx)(KE,{children:(0,xA.jsx)(kD,{client:g,autoConnect:!0,children:(0,xA.jsx)(Zn,{children:(0,xA.jsx)(u,{children:(0,xA.jsx)(vA,{})})})})})})}var bA,xA;function SA(){return(SA=t((()=>{bA=r(),y(),Ed(),Xn(),JE(),aD(),cD(),Qn(),PD(),h(),gA(),_r(),xA=a()})))()}var CA,wA,TA,EA;function DA(){return(DA=t((()=>{if(CA=r(),wA=i(),SA(),TA=a(),EA=document.getElementById(`root`),!EA)throw Error(`Root element not found`);(0,wA.createRoot)(EA).render((0,TA.jsx)(CA.StrictMode,{children:(0,TA.jsx)(yA,{})}))})))()}function OA(){return(OA=t((()=>{pi(),DA()})))()}export{hi as a,gi as i,vi as n,mi as o,_i as r,OA as t};