@minecraft-docker/mcctl-console 2.16.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/.next/standalone/package.json +1 -1
  2. package/.next/standalone/platform/services/mcctl-console/.next/BUILD_ID +1 -1
  3. package/.next/standalone/platform/services/mcctl-console/.next/app-build-manifest.json +35 -34
  4. package/.next/standalone/platform/services/mcctl-console/.next/app-path-routes-manifest.json +1 -1
  5. package/.next/standalone/platform/services/mcctl-console/.next/build-manifest.json +2 -2
  6. package/.next/standalone/platform/services/mcctl-console/.next/prerender-manifest.json +1 -1
  7. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/admin/users/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/audit-logs/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page.js +1 -1
  10. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page.js.nft.json +1 -1
  11. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page.js +1 -1
  14. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/console/page_client-reference-manifest.js +1 -1
  17. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page.js +1 -1
  18. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page.js.nft.json +1 -1
  19. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page_client-reference-manifest.js +1 -1
  23. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  24. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.html +1 -1
  25. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.rsc +1 -1
  26. package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.html +1 -1
  27. package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.rsc +3 -3
  28. package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.html +1 -1
  29. package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.rsc +3 -3
  30. package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.html +1 -1
  31. package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.rsc +2 -2
  32. package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.html +1 -1
  33. package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.rsc +1 -1
  34. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login/page_client-reference-manifest.js +1 -1
  35. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.html +1 -1
  36. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.rsc +1 -1
  37. package/.next/standalone/platform/services/mcctl-console/.next/server/app/page_client-reference-manifest.js +1 -1
  38. package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.html +1 -1
  39. package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.rsc +3 -3
  40. package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.html +1 -1
  41. package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.rsc +2 -2
  42. package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.html +1 -1
  43. package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.rsc +2 -2
  44. package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.html +1 -1
  45. package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.rsc +2 -2
  46. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup/page_client-reference-manifest.js +1 -1
  47. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.html +1 -1
  48. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.rsc +1 -1
  49. package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.html +1 -1
  50. package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.rsc +2 -2
  51. package/.next/standalone/platform/services/mcctl-console/.next/server/app-paths-manifest.json +25 -25
  52. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/5841.js +1 -0
  53. package/.next/standalone/platform/services/mcctl-console/.next/server/middleware-manifest.json +5 -5
  54. package/.next/standalone/platform/services/mcctl-console/.next/server/pages/404.html +1 -1
  55. package/.next/standalone/platform/services/mcctl-console/.next/server/pages/500.html +1 -1
  56. package/.next/standalone/platform/services/mcctl-console/.next/server/pages-manifest.json +1 -1
  57. package/.next/standalone/platform/services/mcctl-console/.next/server/server-reference-manifest.json +1 -1
  58. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/2019-01a1009a77c3dccd.js +1 -0
  59. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/3724-3dc138f24633b931.js +1 -0
  60. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4848-443d44225e2a1136.js +1 -0
  61. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5560-5451f43d5921310c.js +1 -0
  62. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5892-314539460769272f.js +1 -0
  63. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/6831-3fe5e1273ac38e5f.js +1 -0
  64. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7438-5931d51bb2efa484.js +1 -0
  65. package/.next/{static/chunks/app/(main)/audit-logs/page-abfe3bbfaa7eb99b.js → standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/audit-logs/page-4b9a4dac74fde96c.js} +1 -1
  66. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/backups/page-3a92cd25792a1162.js +1 -0
  67. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/{layout-26e37b29ee07fc8c.js → layout-25723393b563b0b5.js} +1 -1
  68. package/.next/{static/chunks/app/(main)/players/page-08dd972363e964d9.js → standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/players/page-382ee2761391923b.js} +1 -1
  69. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/page-8d16a3b92a29027e.js +1 -0
  70. package/.next/standalone/platform/services/mcctl-console/package.json +1 -1
  71. package/.next/static/chunks/2019-01a1009a77c3dccd.js +1 -0
  72. package/.next/static/chunks/3724-3dc138f24633b931.js +1 -0
  73. package/.next/static/chunks/4848-443d44225e2a1136.js +1 -0
  74. package/.next/static/chunks/5560-5451f43d5921310c.js +1 -0
  75. package/.next/static/chunks/5892-314539460769272f.js +1 -0
  76. package/.next/static/chunks/6831-3fe5e1273ac38e5f.js +1 -0
  77. package/.next/static/chunks/7438-5931d51bb2efa484.js +1 -0
  78. package/.next/{standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/audit-logs/page-abfe3bbfaa7eb99b.js → static/chunks/app/(main)/audit-logs/page-4b9a4dac74fde96c.js} +1 -1
  79. package/.next/static/chunks/app/(main)/backups/page-3a92cd25792a1162.js +1 -0
  80. package/.next/static/chunks/app/(main)/{layout-26e37b29ee07fc8c.js → layout-25723393b563b0b5.js} +1 -1
  81. package/.next/{standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/players/page-08dd972363e964d9.js → static/chunks/app/(main)/players/page-382ee2761391923b.js} +1 -1
  82. package/.next/static/chunks/app/(main)/servers/[name]/page-8d16a3b92a29027e.js +1 -0
  83. package/package.json +2 -2
  84. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/1258.js +0 -1
  85. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/1116-90e393e11322b96b.js +0 -1
  86. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/2603-4e610b5895784491.js +0 -1
  87. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/310-1ce88ce372edcd70.js +0 -1
  88. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5618-bf7fd85c91f76e0d.js +0 -1
  89. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/6368-737efbaafd70bcba.js +0 -1
  90. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/6648-4f261adfced5c408.js +0 -1
  91. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7632-4cd7961537874121.js +0 -1
  92. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/backups/page-50eec2b821445eee.js +0 -1
  93. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/page-32309b73a831aa9b.js +0 -1
  94. package/.next/static/chunks/1116-90e393e11322b96b.js +0 -1
  95. package/.next/static/chunks/2603-4e610b5895784491.js +0 -1
  96. package/.next/static/chunks/310-1ce88ce372edcd70.js +0 -1
  97. package/.next/static/chunks/5618-bf7fd85c91f76e0d.js +0 -1
  98. package/.next/static/chunks/6368-737efbaafd70bcba.js +0 -1
  99. package/.next/static/chunks/6648-4f261adfced5c408.js +0 -1
  100. package/.next/static/chunks/7632-4cd7961537874121.js +0 -1
  101. package/.next/static/chunks/app/(main)/backups/page-50eec2b821445eee.js +0 -1
  102. package/.next/static/chunks/app/(main)/servers/[name]/page-32309b73a831aa9b.js +0 -1
  103. /package/.next/standalone/platform/services/mcctl-console/.next/static/{EANeiraUW-eUpqLSPNGwp → _lCpnSIhv_UepMxo_WX7z}/_buildManifest.js +0 -0
  104. /package/.next/standalone/platform/services/mcctl-console/.next/static/{EANeiraUW-eUpqLSPNGwp → _lCpnSIhv_UepMxo_WX7z}/_ssgManifest.js +0 -0
  105. /package/.next/static/{EANeiraUW-eUpqLSPNGwp → _lCpnSIhv_UepMxo_WX7z}/_buildManifest.js +0 -0
  106. /package/.next/static/{EANeiraUW-eUpqLSPNGwp → _lCpnSIhv_UepMxo_WX7z}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3724],{32366:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},73517:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline")},34675:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"Backup")},46207:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},91606:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload")},86071:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M9.01 14H2v2h7.01v3L13 15l-3.99-4zm5.98-1v-3H22V8h-7.01V5L11 9z"}),"CompareArrows")},21111:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},45813:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit")},47254:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined")},43436:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},43214:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"RemoveCircleOutline")},97731:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"Restore")},54211:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)([(0,n.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,n.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule")},87739:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings")},45420:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2m-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9"}),"SettingsBackupRestore")},23345:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn")},98874:function(e,t,a){var o=a(8091);t.Z=void 0;var r=o(a(66758)),n=a(94655);t.Z=(0,r.default)((0,n.jsx)("path",{d:"M3 17v-2c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v2c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2M3 7v2c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2"}),"ViewStream")},65087:function(e,t,a){a.d(t,{Z:function(){return b}});var o=a(32324),r=a(81500),n=a(35106),i=a(70316),l=a(65951),c=a(34519),s=a(15651),d=a(28057),u=a(31317),p=a(11379),v=a(9049);function f(e){return(0,v.ZP)("MuiDialogContentText",e)}(0,p.Z)("MuiDialogContentText",["root"]);var h=a(94655);let m=["children","className"],Z=e=>{let{classes:t}=e,a=(0,l.Z)({root:["root"]},f,t);return(0,r.Z)({},t,a)},g=(0,c.ZP)(u.Z,{shouldForwardProp:e=>(0,s.Z)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({});var b=n.forwardRef(function(e,t){let a=(0,d.i)({props:e,name:"MuiDialogContentText"}),{className:n}=a,l=(0,o.Z)(a,m),c=Z(l);return(0,h.jsx)(g,(0,r.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:l,className:(0,i.Z)(c.root,n)},a,{classes:c}))})},49954:function(e,t,a){var o=a(32324),r=a(81500),n=a(35106),i=a(70316),l=a(65951),c=a(64577),s=a(34519),d=a(15651),u=a(28057),p=a(29084),v=a(65425),f=a(38481),h=a(75084),m=a(12721),Z=a(94655);let g=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],b=e=>{let{alignItems:t,classes:a,dense:o,disabled:n,disableGutters:i,divider:c,selected:s}=e,d=(0,l.Z)({root:["root",o&&"dense",!i&&"gutters",c&&"divider",n&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},m.t,a);return(0,r.Z)({},a,d)},x=(0,s.ZP)(p.Z,{shouldForwardProp:e=>(0,d.Z)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.dense&&t.dense,"flex-start"===a.alignItems&&t.alignItemsFlexStart,a.divider&&t.divider,!a.disableGutters&&t.gutters]}})(e=>{let{theme:t,ownerState:a}=e;return(0,r.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(m.Z.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(m.Z.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(m.Z.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(m.Z.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(m.Z.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},a.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},"flex-start"===a.alignItems&&{alignItems:"flex-start"},!a.disableGutters&&{paddingLeft:16,paddingRight:16},a.dense&&{paddingTop:4,paddingBottom:4})}),y=n.forwardRef(function(e,t){let a=(0,u.i)({props:e,name:"MuiListItemButton"}),{alignItems:l="center",autoFocus:c=!1,component:s="div",children:d,dense:p=!1,disableGutters:m=!1,divider:y=!1,focusVisibleClassName:w,selected:C=!1,className:M}=a,j=(0,o.Z)(a,g),k=n.useContext(h.Z),S=n.useMemo(()=>({dense:p||k.dense||!1,alignItems:l,disableGutters:m}),[l,k.dense,p,m]),z=n.useRef(null);(0,v.Z)(()=>{c&&z.current&&z.current.focus()},[c]);let O=(0,r.Z)({},a,{alignItems:l,dense:S.dense,disableGutters:m,divider:y,selected:C}),R=b(O),P=(0,f.Z)(z,t);return(0,Z.jsx)(h.Z.Provider,{value:S,children:(0,Z.jsx)(x,(0,r.Z)({ref:P,href:j.href||j.to,component:(j.href||j.to)&&"div"===s?"button":s,focusVisibleClassName:(0,i.Z)(R.focusVisible,w),ownerState:O,className:(0,i.Z)(R.root,M)},j,{classes:R,children:d}))})});t.Z=y},17820:function(e,t,a){var o=a(32324),r=a(81500),n=a(35106),i=a(70316),l=a(65951),c=a(34519),s=a(28057),d=a(33326),u=a(75084),p=a(94655);let v=["className"],f=e=>{let{alignItems:t,classes:a}=e;return(0,l.Z)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},d.f,a)},h=(0,c.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,"flex-start"===a.alignItems&&t.alignItemsFlexStart]}})(e=>{let{theme:t,ownerState:a}=e;return(0,r.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===a.alignItems&&{marginTop:8})}),m=n.forwardRef(function(e,t){let a=(0,s.i)({props:e,name:"MuiListItemIcon"}),{className:l}=a,c=(0,o.Z)(a,v),d=n.useContext(u.Z),m=(0,r.Z)({},a,{alignItems:d.alignItems}),Z=f(m);return(0,p.jsx)(h,(0,r.Z)({className:(0,i.Z)(Z.root,l),ownerState:m,ref:t},c))});t.Z=m},38393:function(e,t,a){a.d(t,{Z:function(){return M}});var o=a(32324),r=a(81500),n=a(35106),i=a(70316),l=a(65951),c=a(64577),s=a(38762),d=a(1592),u=a(34519),p=a(28057),v=a(11379),f=a(9049);function h(e){return(0,f.ZP)("MuiSwitch",e)}let m=(0,v.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var Z=a(94655);let g=["className","color","edge","size","sx"],b=e=>{let{classes:t,edge:a,size:o,color:n,checked:i,disabled:c}=e,d={root:["root",a&&"edge".concat((0,s.Z)(a)),"size".concat((0,s.Z)(o))],switchBase:["switchBase","color".concat((0,s.Z)(n)),i&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,l.Z)(d,h,t);return(0,r.Z)({},t,u)},x=(0,u.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.edge&&t["edge".concat((0,s.Z)(a.edge))],t["size".concat((0,s.Z)(a.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat(m.thumb)]:{width:16,height:16},["& .".concat(m.switchBase)]:{padding:4,["&.".concat(m.checked)]:{transform:"translateX(16px)"}}}}]}),y=(0,u.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.switchBase,{["& .".concat(m.input)]:t.input},"default"!==a.color&&t["color".concat((0,s.Z)(a.color))]]}})(e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(m.checked)]:{transform:"translateX(20px)"},["&.".concat(m.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(m.checked," + .").concat(m.track)]:{opacity:.5},["&.".concat(m.disabled," + .").concat(m.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(m.input)]:{left:"-100%",width:"300%"}}},e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(e=>{let[,t]=e;return t.main&&t.light}).map(e=>{let[a]=e;return{props:{color:a},style:{["&.".concat(m.checked)]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[a].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(m.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(a,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,c.$n)(t.palette[a].main,.62):(0,c._j)(t.palette[a].main,.55))}},["&.".concat(m.checked," + .").concat(m.track)]:{backgroundColor:(t.vars||t).palette[a].main}}}})]}}),w=(0,u.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}}),C=(0,u.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}});var M=n.forwardRef(function(e,t){let a=(0,p.i)({props:e,name:"MuiSwitch"}),{className:n,color:l="primary",edge:c=!1,size:s="medium",sx:d}=a,u=(0,o.Z)(a,g),v=(0,r.Z)({},a,{color:l,edge:c,size:s}),f=b(v),h=(0,Z.jsx)(C,{className:f.thumb,ownerState:v});return(0,Z.jsxs)(x,{className:(0,i.Z)(f.root,n),sx:d,ownerState:v,children:[(0,Z.jsx)(y,(0,r.Z)({type:"checkbox",icon:h,checkedIcon:h,ref:t,ownerState:v},u,{classes:(0,r.Z)({},f,{root:f.switchBase})})),(0,Z.jsx)(w,{className:f.track,ownerState:v})]})})},53281:function(e,t,a){a.d(t,{Z:function(){return Z}});var o=a(81500),r=a(32324),n=a(35106),i=a(70316),l=a(65951),c=a(28057),s=a(34519),d=a(11379),u=a(9049);function p(e){return(0,u.ZP)("MuiTableContainer",e)}(0,d.Z)("MuiTableContainer",["root"]);var v=a(94655);let f=["className","component"],h=e=>{let{classes:t}=e;return(0,l.Z)({root:["root"]},p,t)},m=(0,s.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var Z=n.forwardRef(function(e,t){let a=(0,c.i)({props:e,name:"MuiTableContainer"}),{className:n,component:l="div"}=a,s=(0,r.Z)(a,f),d=(0,o.Z)({},a,{component:l}),u=h(d);return(0,v.jsx)(m,(0,o.Z)({ref:t,as:l,className:(0,i.Z)(u.root,n),ownerState:d},s))})},44059:function(e,t,a){a.d(t,{Z:function(){return s}});var o,r=a(35106),n=a(93207),i=a(13864),l=a(25246);let c=(o||(o=a.t(r,2))).useSyncExternalStore;function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,l.Z)(),o="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:s=!1,matchMedia:d=o?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:p=!1}=(0,i.Z)({name:"MuiUseMediaQuery",props:t,theme:a}),v="function"==typeof e?e(a):e;return(void 0!==c?function(e,t,a,o,n){let i=r.useCallback(()=>t,[t]),l=r.useMemo(()=>{if(n&&a)return()=>a(e).matches;if(null!==o){let{matches:t}=o(e);return()=>t}return i},[i,e,o,n,a]),[s,d]=r.useMemo(()=>{if(null===a)return[i,()=>()=>{}];let t=a(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[i,a,e]);return c(d,s,l)}:function(e,t,a,o,i){let[l,c]=r.useState(()=>i&&a?a(e).matches:o?o(e).matches:t);return(0,n.Z)(()=>{let t=!0;if(!a)return;let o=a(e),r=()=>{t&&c(o.matches)};return r(),o.addListener(r),()=>{t=!1,o.removeListener(r)}},[e,a]),l})(v=v.replace(/^@media( ?)/m,""),s,d,u,p)}},20876:function(e,t,a){a.d(t,{default:function(){return r.a}});var o=a(50726),r=a.n(o)},50726:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let o=a(45381);a(94655),a(35106);let r=o._(a(50772));function n(e,t){var a;let o={loading:e=>{let{error:t,isLoading:a,pastDelay:o}=e;return null}};"function"==typeof e&&(o.loader=e);let n={...o,...t};return(0,r.default)({...n,modules:null==(a=n.loadableGenerated)?void 0:a.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91595:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let o=a(14521);function r(e){let{reason:t,children:a}=e;if("undefined"==typeof window)throw new o.BailoutToCSRError(t);return a}},50772:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let o=a(94655),r=a(35106),n=a(91595),i=a(28913);function l(e){return{default:e&&"default"in e?e.default:e}}let c={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},s=function(e){let t={...c,...e},a=(0,r.lazy)(()=>t.loader().then(l)),s=t.loading;function d(e){let l=s?(0,o.jsx)(s,{isLoading:!0,pastDelay:!0,error:null}):null,c=t.ssr?(0,o.jsxs)(o.Fragment,{children:["undefined"==typeof window?(0,o.jsx)(i.PreloadCss,{moduleIds:t.modules}):null,(0,o.jsx)(a,{...e})]}):(0,o.jsx)(n.BailoutToCSR,{reason:"next/dynamic",children:(0,o.jsx)(a,{...e})});return(0,o.jsx)(r.Suspense,{fallback:l,children:c})}return d.displayName="LoadableComponent",d}},28913:function(e,t,a){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return n}});let o=a(94655),r=a(79118);function n(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let a=(0,r.getExpectedRequestStore)("next/dynamic css"),n=[];if(a.reactLoadableManifest&&t){let e=a.reactLoadableManifest;for(let a of t){if(!e[a])continue;let t=e[a].files.filter(e=>e.endsWith(".css"));n.push(...t)}}return 0===n.length?null:(0,o.jsx)(o.Fragment,{children:n.map(e=>(0,o.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:a.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4848],{71185:function(t,e,r){var n=r(8091);e.Z=void 0;var i=n(r(66758)),o=r(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},27171:function(t,e,r){var n=r(8091);e.Z=void 0;var i=n(r(66758)),o=r(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"Dns")},80620:function(t,e,r){var n=r(8091);e.Z=void 0;var i=n(r(66758)),o=r(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History")},69123:function(t,e,r){var n=r(32324),i=r(81500),o=r(35106),a=r(70316),l=r(65951),c=r(64577),s=r(34519),d=r(28057),p=r(16945),h=r(94655);let f=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],u=t=>{let{absolute:e,children:r,classes:n,flexItem:i,light:o,orientation:a,textAlign:c,variant:s}=t;return(0,l.Z)({root:["root",e&&"absolute",s,o&&"light","vertical"===a&&"vertical",i&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===c&&"vertical"!==a&&"textAlignRight","left"===c&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},p.V,n)},v=(0,s.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,r.absolute&&e.absolute,e[r.variant],r.light&&e.light,"vertical"===r.orientation&&e.vertical,r.flexItem&&e.flexItem,r.children&&e.withChildren,r.children&&"vertical"===r.orientation&&e.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&e.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&e.textAlignLeft]}})(t=>{let{theme:e,ownerState:r}=t;return(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:e.vars?"rgba(".concat(e.vars.palette.dividerChannel," / 0.08)"):(0,c.Fq)(e.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})},t=>{let{ownerState:e}=t;return(0,i.Z)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})},t=>{let{theme:e,ownerState:r}=t;return(0,i.Z)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((e.vars||e).palette.divider),borderTopStyle:"inherit"}})},t=>{let{theme:e,ownerState:r}=t;return(0,i.Z)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((e.vars||e).palette.divider),borderLeftStyle:"inherit"}})},t=>{let{ownerState:e}=t;return(0,i.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})}),g=(0,s.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.wrapper,"vertical"===r.orientation&&e.wrapperVertical]}})(t=>{let{theme:e,ownerState:r}=t;return(0,i.Z)({display:"inline-block",paddingLeft:"calc(".concat(e.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(e.spacing(1)," * 1.2)")},"vertical"===r.orientation&&{paddingTop:"calc(".concat(e.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(e.spacing(1)," * 1.2)")})}),m=o.forwardRef(function(t,e){let r=(0,d.i)({props:t,name:"MuiDivider"}),{absolute:o=!1,children:l,className:c,component:s=l?"div":"hr",flexItem:p=!1,light:m=!1,orientation:x="horizontal",role:Z="hr"!==s?"separator":void 0,textAlign:w="center",variant:b="fullWidth"}=r,k=(0,n.Z)(r,f),y=(0,i.Z)({},r,{absolute:o,component:s,flexItem:p,light:m,orientation:x,role:Z,textAlign:w,variant:b}),S=u(y);return(0,h.jsx)(v,(0,i.Z)({as:s,className:(0,a.Z)(S.root,c),role:Z,ref:e,ownerState:y},k,{children:l?(0,h.jsx)(g,{className:S.wrapper,ownerState:y,children:l}):null}))});m.muiSkipListHighlight=!0,e.Z=m},62142:function(t,e,r){r.d(e,{ZP:function(){return C}});var n=r(32324),i=r(81500),o=r(35106),a=r(70316),l=r(65951),c=r(16501),s=r(66743),d=r(12550),p=r(69899),h=r(38762),f=r(83855),u=r(28057),v=r(34519),g=r(15651),m=r(11379),x=r(9049);function Z(t){return(0,x.ZP)("MuiDrawer",t)}(0,m.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var w=r(94655);let b=["BackdropProps"],k=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],y=(t,e)=>{let{ownerState:r}=t;return[e.root,("permanent"===r.variant||"persistent"===r.variant)&&e.docked,e.modal]},S=t=>{let{classes:e,anchor:r,variant:n}=t,i={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,h.Z)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,h.Z)(r))]};return(0,l.Z)(i,Z,e)},A=(0,v.ZP)(s.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:y})(t=>{let{theme:e}=t;return{zIndex:(e.vars||e).zIndex.drawer}}),E=(0,v.ZP)("div",{shouldForwardProp:g.Z,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:y})({flex:"0 0 auto"}),P=(0,v.ZP)(p.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.paper,e["paperAnchor".concat((0,h.Z)(r.anchor))],"temporary"!==r.variant&&e["paperAnchorDocked".concat((0,h.Z)(r.anchor))]]}})(t=>{let{theme:e,ownerState:r}=t;return(0,i.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((e.vars||e).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((e.vars||e).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((e.vars||e).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((e.vars||e).palette.divider)})}),R={left:"right",right:"left",top:"down",bottom:"up"};var C=o.forwardRef(function(t,e){let r=(0,u.i)({props:t,name:"MuiDrawer"}),l=(0,f.Z)(),s=(0,c.V)(),p={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:h="left",BackdropProps:v,children:g,className:m,elevation:x=16,hideBackdrop:Z=!1,ModalProps:{BackdropProps:y}={},onClose:C,open:D=!1,PaperProps:M={},SlideProps:L,TransitionComponent:T=d.Z,transitionDuration:B=p,variant:j="temporary"}=r,I=(0,n.Z)(r.ModalProps,b),N=(0,n.Z)(r,k),V=o.useRef(!1);o.useEffect(()=>{V.current=!0},[]);let z=function(t,e){let{direction:r}=t;return"rtl"===r&&-1!==["left","right"].indexOf(e)?R[e]:e}({direction:s?"rtl":"ltr"},h),H=(0,i.Z)({},r,{anchor:h,elevation:x,open:D,variant:j},N),W=S(H),Y=(0,w.jsx)(P,(0,i.Z)({elevation:"temporary"===j?x:0,square:!0},M,{className:(0,a.Z)(W.paper,M.className),ownerState:H,children:g}));if("permanent"===j)return(0,w.jsx)(E,(0,i.Z)({className:(0,a.Z)(W.root,W.docked,m),ownerState:H,ref:e},N,{children:Y}));let X=(0,w.jsx)(T,(0,i.Z)({in:D,direction:R[z],timeout:B,appear:V.current},L,{children:Y}));return"persistent"===j?(0,w.jsx)(E,(0,i.Z)({className:(0,a.Z)(W.root,W.docked,m),ownerState:H,ref:e},N,{children:X})):(0,w.jsx)(A,(0,i.Z)({BackdropProps:(0,i.Z)({},v,y,{transitionDuration:B}),className:(0,a.Z)(W.root,W.modal,m),open:D,ownerState:H,onClose:C,hideBackdrop:Z,ref:e},N,I,{children:X}))})},12550:function(t,e,r){var n=r(81500),i=r(32324),o=r(35106),a=r(92019),l=r(11844),c=r(19521),s=r(38481),d=r(83855),p=r(56874),h=r(99466),f=r(94655);let u=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function v(t,e,r){let n=function(t,e,r){let n;let i=e.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),a=(0,h.Z)(e);if(e.fakeTransform)n=e.fakeTransform;else{let t=a.getComputedStyle(e);n=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("transform")}let l=0,c=0;if(n&&"none"!==n&&"string"==typeof n){let t=n.split("(")[1].split(")")[0].split(",");l=parseInt(t[4],10),c=parseInt(t[5],10)}return"left"===t?o?"translateX(".concat(o.right+l-i.left,"px)"):"translateX(".concat(a.innerWidth+l-i.left,"px)"):"right"===t?o?"translateX(-".concat(i.right-o.left-l,"px)"):"translateX(-".concat(i.left+i.width-l,"px)"):"up"===t?o?"translateY(".concat(o.bottom+c-i.top,"px)"):"translateY(".concat(a.innerHeight+c-i.top,"px)"):o?"translateY(-".concat(i.top-o.top+i.height-c,"px)"):"translateY(-".concat(i.top+i.height-c,"px)")}(t,e,"function"==typeof r?r():r);n&&(e.style.webkitTransform=n,e.style.transform=n)}let g=o.forwardRef(function(t,e){let r=(0,d.Z)(),g={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},m={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:x,appear:Z=!0,children:w,container:b,direction:k="down",easing:y=g,in:S,onEnter:A,onEntered:E,onEntering:P,onExit:R,onExited:C,onExiting:D,style:M,timeout:L=m,TransitionComponent:T=a.ZP}=t,B=(0,i.Z)(t,u),j=o.useRef(null),I=(0,s.Z)((0,l.Z)(w),j,e),N=t=>e=>{t&&(void 0===e?t(j.current):t(j.current,e))},V=N((t,e)=>{v(k,t,b),(0,p.n)(t),A&&A(t,e)}),z=N((t,e)=>{let i=(0,p.C)({timeout:L,style:M,easing:y},{mode:"enter"});t.style.webkitTransition=r.transitions.create("-webkit-transform",(0,n.Z)({},i)),t.style.transition=r.transitions.create("transform",(0,n.Z)({},i)),t.style.webkitTransform="none",t.style.transform="none",P&&P(t,e)}),H=N(E),W=N(D),Y=N(t=>{let e=(0,p.C)({timeout:L,style:M,easing:y},{mode:"exit"});t.style.webkitTransition=r.transitions.create("-webkit-transform",e),t.style.transition=r.transitions.create("transform",e),v(k,t,b),R&&R(t)}),X=N(t=>{t.style.webkitTransition="",t.style.transition="",C&&C(t)}),_=o.useCallback(()=>{j.current&&v(k,j.current,b)},[k,b]);return o.useEffect(()=>{if(S||"down"===k||"right"===k)return;let t=(0,c.Z)(()=>{j.current&&v(k,j.current,b)}),e=(0,h.Z)(j.current);return e.addEventListener("resize",t),()=>{t.clear(),e.removeEventListener("resize",t)}},[k,S,b]),o.useEffect(()=>{S||_()},[S,_]),(0,f.jsx)(T,(0,n.Z)({nodeRef:j,onEnter:V,onEntered:H,onEntering:z,onExit:Y,onExited:X,onExiting:W,addEndListener:t=>{x&&x(j.current,t)},appear:Z,in:S,timeout:L},B,{children:(t,e)=>o.cloneElement(w,(0,n.Z)({ref:I,style:(0,n.Z)({visibility:"exited"!==t||S?void 0:"hidden"},M,w.props.style)},e))}))});e.Z=g}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5560],{34675:function(t,e,r){"use strict";var n=r(8091);e.Z=void 0;var o=n(r(66758)),a=r(94655);e.Z=(0,o.default)((0,a.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"Backup")},76176:function(t,e,r){"use strict";var n=r(8091);e.Z=void 0;var o=n(r(66758)),a=r(94655);e.Z=(0,o.default)((0,a.jsx)("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard")},75845:function(t,e,r){"use strict";var n=r(8091);e.Z=void 0,function(t,e){if((!t||!t.__esModule)&&null!==t&&("object"==typeof t||"function"==typeof t)){var r=i(void 0);if(r&&r.has(t))return r.get(t);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=t[a]}n.default=t,r&&r.set(t,n)}}(r(35106));var o=n(r(66758)),a=r(94655);function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(i=function(t){return t?r:e})(t)}e.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub")},61505:function(t,e,r){"use strict";var n=r(8091);e.Z=void 0;var o=n(r(66758)),a=r(94655);e.Z=(0,o.default)((0,a.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu")},43880:function(t,e,r){"use strict";var n=r(8091);e.Z=void 0;var o=n(r(66758)),a=r(94655);e.Z=(0,o.default)([(0,a.jsx)("path",{d:"M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1m0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5z"},"0"),(0,a.jsx)("path",{d:"M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99M13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83m4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24"},"1")],"MenuBook")},35847:function(t,e,r){"use strict";var n=r(8091);e.Z=void 0;var o=n(r(66758)),a=r(94655);e.Z=(0,o.default)((0,a.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People")},84974:function(t,e,r){"use strict";var n=r(8091);e.Z=void 0;var o=n(r(66758)),a=r(94655);e.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public")},29983:function(t,e,r){"use strict";var n=r(8091);e.Z=void 0;var o=n(r(66758)),a=r(94655);e.Z=(0,o.default)((0,a.jsx)("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1 .9 0 1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router")},66758:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(26505)},56275:function(t,e,r){"use strict";r.d(e,{Z:function(){return y}});var n=r(32324),o=r(81500),a=r(35106),i=r(70316),s=r(65951),c=r(34519),l=r(28057),u=r(38762),p=r(69899),d=r(11379),f=r(9049);function v(t){return(0,f.ZP)("MuiAppBar",t)}(0,d.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var m=r(94655);let g=["className","color","enableColorOnDark","position"],h=t=>{let{color:e,position:r,classes:n}=t,o={root:["root","color".concat((0,u.Z)(e)),"position".concat((0,u.Z)(r))]};return(0,s.Z)(o,v,n)},b=(t,e)=>t?"".concat(null==t?void 0:t.replace(")",""),", ").concat(e,")"):e,Z=(0,c.ZP)(p.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,e["position".concat((0,u.Z)(r.position))],e["color".concat((0,u.Z)(r.color))]]}})(t=>{let{theme:e,ownerState:r}=t,n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,o.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!e.vars&&(0,o.Z)({},"default"===r.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:e.palette[r.color].main,color:e.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===e.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,o.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,o.Z)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette.AppBar.defaultBg:b(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?e.vars.palette.text.primary:b(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?e.vars.palette[r.color].main:b(e.vars.palette.AppBar.darkBg,e.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?e.vars.palette[r.color].contrastText:b(e.vars.palette.AppBar.darkColor,e.vars.palette[r.color].contrastText)},!["inherit","transparent"].includes(r.color)&&{backgroundColor:"var(--AppBar-background)"},{color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))});var y=a.forwardRef(function(t,e){let r=(0,l.i)({props:t,name:"MuiAppBar"}),{className:a,color:s="primary",enableColorOnDark:c=!1,position:u="fixed"}=r,p=(0,n.Z)(r,g),d=(0,o.Z)({},r,{color:s,position:u,enableColorOnDark:c}),f=h(d);return(0,m.jsx)(Z,(0,o.Z)({square:!0,component:"header",ownerState:d,elevation:4,className:(0,i.Z)(f.root,a,"fixed"===u&&"mui-fixed"),ref:e},p))})},49954:function(t,e,r){"use strict";var n=r(32324),o=r(81500),a=r(35106),i=r(70316),s=r(65951),c=r(64577),l=r(34519),u=r(15651),p=r(28057),d=r(29084),f=r(65425),v=r(38481),m=r(75084),g=r(12721),h=r(94655);let b=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Z=t=>{let{alignItems:e,classes:r,dense:n,disabled:a,disableGutters:i,divider:c,selected:l}=t,u=(0,s.Z)({root:["root",n&&"dense",!i&&"gutters",c&&"divider",a&&"disabled","flex-start"===e&&"alignItemsFlexStart",l&&"selected"]},g.t,r);return(0,o.Z)({},r,u)},y=(0,l.ZP)(d.Z,{shouldForwardProp:t=>(0,u.Z)(t)||"classes"===t,name:"MuiListItemButton",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,r.dense&&e.dense,"flex-start"===r.alignItems&&e.alignItemsFlexStart,r.divider&&e.divider,!r.disableGutters&&e.gutters]}})(t=>{let{theme:e,ownerState:r}=t;return(0,o.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(g.Z.selected)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&.".concat(g.Z.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},["&.".concat(g.Z.selected,":hover")]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,c.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&.".concat(g.Z.focusVisible)]:{backgroundColor:(e.vars||e).palette.action.focus},["&.".concat(g.Z.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity}},r.divider&&{borderBottom:"1px solid ".concat((e.vars||e).palette.divider),backgroundClip:"padding-box"},"flex-start"===r.alignItems&&{alignItems:"flex-start"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.dense&&{paddingTop:4,paddingBottom:4})}),k=a.forwardRef(function(t,e){let r=(0,p.i)({props:t,name:"MuiListItemButton"}),{alignItems:s="center",autoFocus:c=!1,component:l="div",children:u,dense:d=!1,disableGutters:g=!1,divider:k=!1,focusVisibleClassName:x,selected:C=!1,className:M}=r,S=(0,n.Z)(r,b),O=a.useContext(m.Z),B=a.useMemo(()=>({dense:d||O.dense||!1,alignItems:s,disableGutters:g}),[s,O.dense,d,g]),z=a.useRef(null);(0,f.Z)(()=>{c&&z.current&&z.current.focus()},[c]);let I=(0,o.Z)({},r,{alignItems:s,dense:B.dense,disableGutters:g,divider:k,selected:C}),P=Z(I),w=(0,v.Z)(z,e);return(0,h.jsx)(m.Z.Provider,{value:B,children:(0,h.jsx)(y,(0,o.Z)({ref:w,href:S.href||S.to,component:(S.href||S.to)&&"div"===l?"button":l,focusVisibleClassName:(0,i.Z)(P.focusVisible,x),ownerState:I,className:(0,i.Z)(P.root,M)},S,{classes:P,children:u}))})});e.Z=k},62108:function(t,e,r){"use strict";r.d(e,{Z:function(){return h}});var n=r(32324),o=r(81500),a=r(35106),i=r(70316),s=r(65951),c=r(28057),l=r(34519),u=r(11379),p=r(9049);function d(t){return(0,p.ZP)("MuiToolbar",t)}(0,u.Z)("MuiToolbar",["root","gutters","regular","dense"]);var f=r(94655);let v=["className","component","disableGutters","variant"],m=t=>{let{classes:e,disableGutters:r,variant:n}=t;return(0,s.Z)({root:["root",!r&&"gutters",n]},d,e)},g=(0,l.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(t=>{let{theme:e,ownerState:r}=t;return(0,o.Z)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===r.variant&&{minHeight:48})},t=>{let{theme:e,ownerState:r}=t;return"regular"===r.variant&&e.mixins.toolbar});var h=a.forwardRef(function(t,e){let r=(0,c.i)({props:t,name:"MuiToolbar"}),{className:a,component:s="div",disableGutters:l=!1,variant:u="regular"}=r,p=(0,n.Z)(r,v),d=(0,o.Z)({},r,{component:s,disableGutters:l,variant:u}),h=m(d);return(0,f.jsx)(g,(0,o.Z)({as:s,className:(0,i.Z)(h.root,a),ref:e,ownerState:d},p))})},27350:function(t,e,r){"use strict";var n=r(34834);e.Z=n.Z},26505:function(t,e,r){"use strict";r.r(e),r.d(e,{capitalize:function(){return o.Z},createChainedFunction:function(){return a.Z},createSvgIcon:function(){return i.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return c},isMuiElement:function(){return l.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return p.Z},requirePropFactory:function(){return d},setRef:function(){return f},unstable_ClassNameGenerator:function(){return k},unstable_useEnhancedEffect:function(){return v.Z},unstable_useId:function(){return m.Z},unsupportedProp:function(){return g},useControlled:function(){return h.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return Z.Z},useIsFocusVisible:function(){return y.Z}});var n=r(74055),o=r(38762),a=r(27350),i=r(61626),s=r(19521),c=function(t,e){return()=>null},l=r(9290),u=r(34713),p=r(99466);r(81500);var d=function(t,e){return()=>null},f=r(25880).Z,v=r(65425),m=r(88207),g=function(t,e,r,n,o){return null},h=r(18280),b=r(10620),Z=r(38481),y=r(22125);let k={configure:t=>{n.Z.configure(t)}}},88207:function(t,e,r){"use strict";var n=r(40552);e.Z=n.Z},31477:function(t,e,r){var n,o;void 0!==(o="function"==typeof(n=function(){var t,e,r,n={};n.version="0.2.0";var o=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(t,e,r){return t<e?e:t>r?r:t}n.configure=function(t){var e,r;for(e in t)void 0!==(r=t[e])&&t.hasOwnProperty(e)&&(o[e]=r);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=a(t,o.minimum,1),n.status=1===t?null:t;var r=n.render(!e),c=r.querySelector(o.barSelector),l=o.speed,u=o.easing;return r.offsetWidth,i(function(e){var a,i;""===o.positionUsing&&(o.positionUsing=n.getPositioningCSS()),s(c,(a=t,(i="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+a)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+a)*100+"%,0)"}:{"margin-left":(-1+a)*100+"%"}).transition="all "+l+"ms "+u,i)),1===t?(s(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){s(r,{transition:"all "+l+"ms linear",opacity:0}),setTimeout(function(){n.remove(),e()},l)},l)):setTimeout(e,l)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout(function(){n.status&&(n.trickle(),t())},o.trickleSpeed)};return o.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*a(Math.random()*e,.1,.95)),e=a(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*o.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===e&&n.start(),t++,e++,r.always(function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=o.template;var r,a=e.querySelector(o.barSelector),i=t?"-100":(-1+(n.status||0))*100,c=document.querySelector(o.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+i+"%,0,0)"}),!o.showSpinner&&(r=e.querySelector(o.spinnerSelector))&&d(r),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(e),e},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(o.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&d(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective" in t?"translate3d":e+"Transform" in t?"translate":"margin"};var i=(r=[],function(t){r.push(t),1==r.length&&function t(){var e=r.shift();e&&e(t)}()}),s=function(){var t=["Webkit","O","Moz","ms"],e={};function r(r,n,o){var a;n=e[a=(a=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]||(e[a]=function(e){var r=document.body.style;if(e in r)return e;for(var n,o=t.length,a=e.charAt(0).toUpperCase()+e.slice(1);o--;)if((n=t[o]+a)in r)return n;return e}(a)),r.style[n]=o}return function(t,e){var n,o,a=arguments;if(2==a.length)for(n in e)void 0!==(o=e[n])&&e.hasOwnProperty(n)&&r(t,n,o);else r(t,a[1],a[2])}}();function c(t,e){return("string"==typeof t?t:p(t)).indexOf(" "+e+" ")>=0}function l(t,e){var r=p(t),n=r+e;c(r,e)||(t.className=n.substring(1))}function u(t,e){var r,n=p(t);c(t,e)&&(r=n.replace(" "+e+" "," "),t.className=r.substring(1,r.length-1))}function p(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function d(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?n.call(e,r,e,t):n)&&(t.exports=o)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5892],{69178:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Assignment")},46207:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},54617:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},15761:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download")},43436:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},45354:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline")},84284:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess")},81960:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},78439:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord")},50880:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},89161:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown")},60236:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp")},35847:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People")},30114:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person")},42431:function(t,e,n){var a=n(8091);e.Z=void 0;var o=a(n(66758)),r=n(94655);e.Z=(0,o.default)((0,r.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},87716:function(t,e,n){n.d(e,{Z:function(){return R}});var a=n(32324),o=n(81500),r=n(35106),i=n(70316),s=n(92019),l=n(67485),c=n(65951),d=n(34519),u=n(28057),p=n(30035),h=n(56874),v=n(83855),m=n(38481),g=n(11379),f=n(9049);function Z(t){return(0,f.ZP)("MuiCollapse",t)}(0,g.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var b=n(94655);let x=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],w=t=>{let{orientation:e,classes:n}=t;return(0,c.Z)({root:["root","".concat(e)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(e)],wrapperInner:["wrapperInner","".concat(e)]},Z,n)},y=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,e[n.orientation],"entered"===n.state&&e.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&e.hidden]}})(t=>{let{theme:e,ownerState:n}=t;return(0,o.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===n.state&&(0,o.Z)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})}),M=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})(t=>{let{ownerState:e}=t;return(0,o.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})}),C=(0,d.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,e)=>e.wrapperInner})(t=>{let{ownerState:e}=t;return(0,o.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})}),P=r.forwardRef(function(t,e){let n=(0,u.i)({props:t,name:"MuiCollapse"}),{addEndListener:c,children:d,className:g,collapsedSize:f="0px",component:Z,easing:P,in:R,onEnter:I,onEntered:j,onEntering:S,onExit:k,onExited:B,onExiting:z,orientation:L="vertical",style:T,timeout:N=p.x9.standard,TransitionComponent:H=s.ZP}=n,E=(0,a.Z)(n,x),F=(0,o.Z)({},n,{orientation:L,collapsedSize:f}),A=w(F),O=(0,v.Z)(),V=(0,l.Z)(),D=r.useRef(null),_=r.useRef(),G="number"==typeof f?"".concat(f,"px"):f,W="horizontal"===L,q=W?"width":"height",X=r.useRef(null),K=(0,m.Z)(e,X),U=t=>e=>{if(t){let n=X.current;void 0===e?t(n):t(n,e)}},J=()=>D.current?D.current[W?"clientWidth":"clientHeight"]:0,Q=U((t,e)=>{D.current&&W&&(D.current.style.position="absolute"),t.style[q]=G,I&&I(t,e)}),Y=U((t,e)=>{let n=J();D.current&&W&&(D.current.style.position="");let{duration:a,easing:o}=(0,h.C)({style:T,timeout:N,easing:P},{mode:"enter"});if("auto"===N){let e=O.transitions.getAutoHeightDuration(n);t.style.transitionDuration="".concat(e,"ms"),_.current=e}else t.style.transitionDuration="string"==typeof a?a:"".concat(a,"ms");t.style[q]="".concat(n,"px"),t.style.transitionTimingFunction=o,S&&S(t,e)}),$=U((t,e)=>{t.style[q]="auto",j&&j(t,e)}),tt=U(t=>{t.style[q]="".concat(J(),"px"),k&&k(t)}),te=U(B),tn=U(t=>{let e=J(),{duration:n,easing:a}=(0,h.C)({style:T,timeout:N,easing:P},{mode:"exit"});if("auto"===N){let n=O.transitions.getAutoHeightDuration(e);t.style.transitionDuration="".concat(n,"ms"),_.current=n}else t.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");t.style[q]=G,t.style.transitionTimingFunction=a,z&&z(t)});return(0,b.jsx)(H,(0,o.Z)({in:R,onEnter:Q,onEntered:$,onEntering:Y,onExit:tt,onExited:te,onExiting:tn,addEndListener:t=>{"auto"===N&&V.start(_.current||0,t),c&&c(X.current,t)},nodeRef:X,timeout:"auto"===N?null:N},E,{children:(t,e)=>(0,b.jsx)(y,(0,o.Z)({as:Z,className:(0,i.Z)(A.root,g,{entered:A.entered,exited:!R&&"0px"===G&&A.hidden}[t]),style:(0,o.Z)({[W?"minWidth":"minHeight"]:G},T),ref:K},e,{ownerState:(0,o.Z)({},F,{state:t}),children:(0,b.jsx)(M,{ownerState:(0,o.Z)({},F,{state:t}),className:A.wrapper,ref:D,children:(0,b.jsx)(C,{ownerState:(0,o.Z)({},F,{state:t}),className:A.wrapperInner,children:d})})}))}))});P.muiSupportAuto=!0;var R=P},33326:function(t,e,n){n.d(e,{f:function(){return r}});var a=n(11379),o=n(9049);function r(t){return(0,o.ZP)("MuiListItemIcon",t)}let i=(0,a.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);e.Z=i},7178:function(t,e,n){n.d(e,{Z:function(){return I}});var a=n(32324),o=n(81500),r=n(35106),i=n(70316),s=n(65951),l=n(64577),c=n(34519),d=n(15651),u=n(28057),p=n(75084),h=n(29084),v=n(65425),m=n(38481),g=n(16945),f=n(33326),Z=n(64769),b=n(11379),x=n(9049);function w(t){return(0,x.ZP)("MuiMenuItem",t)}let y=(0,b.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var M=n(94655);let C=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],P=t=>{let{disabled:e,dense:n,divider:a,disableGutters:r,selected:i,classes:l}=t,c=(0,s.Z)({root:["root",n&&"dense",e&&"disabled",!r&&"gutters",a&&"divider",i&&"selected"]},w,l);return(0,o.Z)({},l,c)},R=(0,c.ZP)(h.Z,{shouldForwardProp:t=>(0,d.Z)(t)||"classes"===t,name:"MuiMenuItem",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]}})(t=>{let{theme:e,ownerState:n}=t;return(0,o.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((e.vars||e).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(y.selected)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&.".concat(y.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},["&.".concat(y.selected,":hover")]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&.".concat(y.focusVisible)]:{backgroundColor:(e.vars||e).palette.action.focus},["&.".concat(y.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity},["& + .".concat(g.Z.root)]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},["& + .".concat(g.Z.inset)]:{marginLeft:52},["& .".concat(Z.Z.root)]:{marginTop:0,marginBottom:0},["& .".concat(Z.Z.inset)]:{paddingLeft:36},["& .".concat(f.Z.root)]:{minWidth:36}},!n.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,o.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{["& .".concat(f.Z.root," svg")]:{fontSize:"1.25rem"}}))});var I=r.forwardRef(function(t,e){let n;let s=(0,u.i)({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:d=!1,divider:h=!1,disableGutters:g=!1,focusVisibleClassName:f,role:Z="menuitem",tabIndex:b,className:x}=s,w=(0,a.Z)(s,C),y=r.useContext(p.Z),I=r.useMemo(()=>({dense:d||y.dense||!1,disableGutters:g}),[y.dense,d,g]),j=r.useRef(null);(0,v.Z)(()=>{l&&j.current&&j.current.focus()},[l]);let S=(0,o.Z)({},s,{dense:I.dense,divider:h,disableGutters:g}),k=P(s),B=(0,m.Z)(j,e);return s.disabled||(n=void 0!==b?b:-1),(0,M.jsx)(p.Z.Provider,{value:I,children:(0,M.jsx)(R,(0,o.Z)({ref:B,role:Z,tabIndex:n,component:c,focusVisibleClassName:(0,i.Z)(k.focusVisible,f),className:(0,i.Z)(k.root,x)},w,{ownerState:S,classes:k}))})})},10721:function(t,e,n){n.d(e,{Z:function(){return B}});var a=n(16295),o=n(32324),r=n(81500),i=n(35106),s=n(70316),l=n(41060),c=n(65951),d=n(76492),u=n(34519),p=n(28057),h=n(11379),v=n(9049);function m(t){return(0,v.ZP)("MuiSkeleton",t)}(0,h.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var g=n(94655);function f(){let t=(0,a._)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return f=function(){return t},t}function Z(){let t=(0,a._)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"]);return Z=function(){return t},t}function b(){let t=(0,a._)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]);return b=function(){return t},t}function x(){let t=(0,a._)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]);return x=function(){return t},t}let w=["animation","className","component","height","style","variant","width"],y=t=>t,M,C,P,R,I=t=>{let{classes:e,variant:n,animation:a,hasChildren:o,width:r,height:i}=t;return(0,c.Z)({root:["root",n,a,o&&"withChildren",o&&!r&&"fitContent",o&&!i&&"heightAuto"]},m,e)},j=(0,l.F4)(M||(M=y(f()))),S=(0,l.F4)(C||(C=y(Z()))),k=(0,u.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,e[n.variant],!1!==n.animation&&e[n.animation],n.hasChildren&&e.withChildren,n.hasChildren&&!n.width&&e.fitContent,n.hasChildren&&!n.height&&e.heightAuto]}})(t=>{let{theme:e,ownerState:n}=t,a=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",o=parseFloat(e.shape.borderRadius);return(0,r.Z)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,d.Fq)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(o).concat(a,"/").concat(Math.round(o/.6*10)/10).concat(a),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(e.vars||e).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})},t=>{let{ownerState:e}=t;return"pulse"===e.animation&&(0,l.iv)(P||(P=y(b(),0)),j)},t=>{let{ownerState:e,theme:n}=t;return"wave"===e.animation&&(0,l.iv)(R||(R=y(x(),0,0)),S,(n.vars||n).palette.action.hover)});var B=i.forwardRef(function(t,e){let n=(0,p.i)({props:t,name:"MuiSkeleton"}),{animation:a="pulse",className:i,component:l="span",height:c,style:d,variant:u="text",width:h}=n,v=(0,o.Z)(n,w),m=(0,r.Z)({},n,{animation:a,component:l,variant:u,hasChildren:!!v.children}),f=I(m);return(0,g.jsx)(k,(0,r.Z)({as:l,ref:e,className:(0,s.Z)(f.root,i),ownerState:m},v,{style:(0,r.Z)({width:h,height:c},d)}))})},53281:function(t,e,n){n.d(e,{Z:function(){return f}});var a=n(81500),o=n(32324),r=n(35106),i=n(70316),s=n(65951),l=n(28057),c=n(34519),d=n(11379),u=n(9049);function p(t){return(0,u.ZP)("MuiTableContainer",t)}(0,d.Z)("MuiTableContainer",["root"]);var h=n(94655);let v=["className","component"],m=t=>{let{classes:e}=t;return(0,s.Z)({root:["root"]},p,e)},g=(0,c.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"});var f=r.forwardRef(function(t,e){let n=(0,l.i)({props:t,name:"MuiTableContainer"}),{className:r,component:s="div"}=n,c=(0,o.Z)(n,v),d=(0,a.Z)({},n,{component:s}),u=m(d);return(0,h.jsx)(g,(0,a.Z)({ref:e,as:s,className:(0,i.Z)(u.root,r),ownerState:d},c))})},6406:function(t,e,n){n.d(e,{Z:function(){return _}});var a,o=n(32324),r=n(81500),i=n(35106),s=n(70316),l=n(65951),c=n(23225),d=n(34519),u=n(28057),p=n(47684),h=n(7178),v=n(62328),m=n(47001),g=n(62108),f=n(16501),Z=n(6858),b=n(92302),x=n(79983),w=n(61626),y=n(94655),M=(0,w.Z)((0,y.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),C=(0,w.Z)((0,y.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");let P=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],R=i.forwardRef(function(t,e){var n,a,i,s,l,c,d,u;let{backIconButtonProps:p,count:h,disabled:v=!1,getItemAriaLabel:m,nextIconButtonProps:g,onPageChange:w,page:R,rowsPerPage:I,showFirstButton:j,showLastButton:S,slots:k={},slotProps:B={}}=t,z=(0,o.Z)(t,P),L=(0,f.V)(),T=null!=(n=k.firstButton)?n:x.Z,N=null!=(a=k.lastButton)?a:x.Z,H=null!=(i=k.nextButton)?i:x.Z,E=null!=(s=k.previousButton)?s:x.Z,F=null!=(l=k.firstButtonIcon)?l:C,A=null!=(c=k.lastButtonIcon)?c:M,O=null!=(d=k.nextButtonIcon)?d:b.Z,V=null!=(u=k.previousButtonIcon)?u:Z.Z,D=L?N:T,_=L?H:E,G=L?E:H,W=L?T:N,q=L?B.lastButton:B.firstButton,X=L?B.nextButton:B.previousButton,K=L?B.previousButton:B.nextButton,U=L?B.firstButton:B.lastButton;return(0,y.jsxs)("div",(0,r.Z)({ref:e},z,{children:[j&&(0,y.jsx)(D,(0,r.Z)({onClick:t=>{w(t,0)},disabled:v||0===R,"aria-label":m("first",R),title:m("first",R)},q,{children:L?(0,y.jsx)(A,(0,r.Z)({},B.lastButtonIcon)):(0,y.jsx)(F,(0,r.Z)({},B.firstButtonIcon))})),(0,y.jsx)(_,(0,r.Z)({onClick:t=>{w(t,R-1)},disabled:v||0===R,color:"inherit","aria-label":m("previous",R),title:m("previous",R)},null!=X?X:p,{children:L?(0,y.jsx)(O,(0,r.Z)({},B.nextButtonIcon)):(0,y.jsx)(V,(0,r.Z)({},B.previousButtonIcon))})),(0,y.jsx)(G,(0,r.Z)({onClick:t=>{w(t,R+1)},disabled:v||-1!==h&&R>=Math.ceil(h/I)-1,color:"inherit","aria-label":m("next",R),title:m("next",R)},null!=K?K:g,{children:L?(0,y.jsx)(V,(0,r.Z)({},B.previousButtonIcon)):(0,y.jsx)(O,(0,r.Z)({},B.nextButtonIcon))})),S&&(0,y.jsx)(W,(0,r.Z)({onClick:t=>{w(t,Math.max(0,Math.ceil(h/I)-1))},disabled:v||R>=Math.ceil(h/I)-1,"aria-label":m("last",R),title:m("last",R)},U,{children:L?(0,y.jsx)(F,(0,r.Z)({},B.firstButtonIcon)):(0,y.jsx)(A,(0,r.Z)({},B.lastButtonIcon))}))]}))});var I=n(88207),j=n(11379),S=n(9049);function k(t){return(0,S.ZP)("MuiTablePagination",t)}let B=(0,j.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),z=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],L=(0,d.ZP)(m.Z,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})(t=>{let{theme:e}=t;return{overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}}),T=(0,d.ZP)(g.Z,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>(0,r.Z)({["& .".concat(B.actions)]:e.actions},e.toolbar)})(t=>{let{theme:e}=t;return{minHeight:52,paddingRight:2,["".concat(e.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(B.actions)]:{flexShrink:0,marginLeft:20}}}),N=(0,d.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),H=(0,d.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})(t=>{let{theme:e}=t;return(0,r.Z)({},e.typography.body2,{flexShrink:0})}),E=(0,d.ZP)(v.Z,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>(0,r.Z)({["& .".concat(B.selectIcon)]:e.selectIcon,["& .".concat(B.select)]:e.select},e.input,e.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(B.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),F=(0,d.ZP)(h.Z,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),A=(0,d.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})(t=>{let{theme:e}=t;return(0,r.Z)({},e.typography.body2,{flexShrink:0})});function O(t){let{from:e,to:n,count:a}=t;return"".concat(e,"–").concat(n," of ").concat(-1!==a?a:"more than ".concat(n))}function V(t){return"Go to ".concat(t," page")}let D=t=>{let{classes:e}=t;return(0,l.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},k,e)};var _=i.forwardRef(function(t,e){var n;let l;let d=(0,u.i)({props:t,name:"MuiTablePagination"}),{ActionsComponent:h=R,backIconButtonProps:v,className:g,colSpan:f,component:Z=m.Z,count:b,disabled:x=!1,getItemAriaLabel:w=V,labelDisplayedRows:M=O,labelRowsPerPage:C="Rows per page:",nextIconButtonProps:P,onPageChange:j,onRowsPerPageChange:S,page:k,rowsPerPage:B,rowsPerPageOptions:_=[10,25,50,100],SelectProps:G={},showFirstButton:W=!1,showLastButton:q=!1,slotProps:X={},slots:K={}}=d,U=(0,o.Z)(d,z),J=D(d),Q=null!=(n=null==X?void 0:X.select)?n:G,Y=Q.native?"option":F;(Z===m.Z||"td"===Z)&&(l=f||1e3);let $=(0,I.Z)(Q.id),tt=(0,I.Z)(Q.labelId);return(0,y.jsx)(L,(0,r.Z)({colSpan:l,ref:e,as:Z,ownerState:d,className:(0,s.Z)(J.root,g)},U,{children:(0,y.jsxs)(T,{className:J.toolbar,children:[(0,y.jsx)(N,{className:J.spacer}),_.length>1&&(0,y.jsx)(H,{className:J.selectLabel,id:tt,children:C}),_.length>1&&(0,y.jsx)(E,(0,r.Z)({variant:"standard"},!Q.variant&&{input:a||(a=(0,y.jsx)(p.ZP,{}))},{value:B,onChange:S,id:$,labelId:tt},Q,{classes:(0,r.Z)({},Q.classes,{root:(0,s.Z)(J.input,J.selectRoot,(Q.classes||{}).root),select:(0,s.Z)(J.select,(Q.classes||{}).select),icon:(0,s.Z)(J.selectIcon,(Q.classes||{}).icon)}),disabled:x,children:_.map(t=>(0,i.createElement)(Y,(0,r.Z)({},!(0,c.Z)(Y)&&{ownerState:d},{className:J.menuItem,key:t.label?t.label:t,value:t.value?t.value:t}),t.label?t.label:t))})),(0,y.jsx)(A,{className:J.displayedRows,children:M({from:0===b?0:k*B+1,to:-1===b?(k+1)*B:-1===B?b:Math.min(b,(k+1)*B),count:-1===b?-1:b,page:k})}),(0,y.jsx)(h,{className:J.actions,backIconButtonProps:v,count:b,nextIconButtonProps:P,onPageChange:j,page:k,rowsPerPage:B,showFirstButton:W,showLastButton:q,slotProps:X.actions,slots:K.actions,getItemAriaLabel:w,disabled:x})]})}))})},62108:function(t,e,n){n.d(e,{Z:function(){return f}});var a=n(32324),o=n(81500),r=n(35106),i=n(70316),s=n(65951),l=n(28057),c=n(34519),d=n(11379),u=n(9049);function p(t){return(0,u.ZP)("MuiToolbar",t)}(0,d.Z)("MuiToolbar",["root","gutters","regular","dense"]);var h=n(94655);let v=["className","component","disableGutters","variant"],m=t=>{let{classes:e,disableGutters:n,variant:a}=t;return(0,s.Z)({root:["root",!n&&"gutters",a]},p,e)},g=(0,c.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,!n.disableGutters&&e.gutters,e[n.variant]]}})(t=>{let{theme:e,ownerState:n}=t;return(0,o.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===n.variant&&{minHeight:48})},t=>{let{theme:e,ownerState:n}=t;return"regular"===n.variant&&e.mixins.toolbar});var f=r.forwardRef(function(t,e){let n=(0,l.i)({props:t,name:"MuiToolbar"}),{className:r,component:s="div",disableGutters:c=!1,variant:d="regular"}=n,u=(0,a.Z)(n,v),p=(0,o.Z)({},n,{component:s,disableGutters:c,variant:d}),f=m(p);return(0,h.jsx)(g,(0,o.Z)({as:s,className:(0,i.Z)(f.root,r),ref:e,ownerState:p},u))})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6831],{6516:function(e,n,t){t.d(n,{e:function(){return Z}});var s=t(94655),a=t(35106),l=t(99770),i=t(62508),r=t(5682),o=t(76678),c=t(30417),d=t(97436),u=t(29793),h=t(75726),x=t(62328),m=t(7178),p=t(81071),f=t(93017),j=t(7281),g=t(12063);function Z(e){var n;let{open:t,onClose:Z,serverNames:v,defaultServer:y}=e,[b,C]=(0,a.useState)(y||""),[S,k]=(0,a.useState)(""),w=(0,g.t)(),z=async()=>{if(b)try{await w.mutateAsync({serverName:b,description:S.trim()||void 0}),D()}catch(e){}},D=()=>{w.isPending||(C(y||""),k(""),w.reset(),Z())};return(0,s.jsxs)(l.Z,{open:t,onClose:D,maxWidth:"sm",fullWidth:!0,children:[(0,s.jsx)(i.Z,{children:"Create Config Snapshot"}),(0,s.jsx)(r.Z,{children:(0,s.jsxs)(j.Z,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[(0,s.jsxs)(u.Z,{fullWidth:!0,required:!0,children:[(0,s.jsx)(h.Z,{children:"Server"}),(0,s.jsx)(x.Z,{value:b,onChange:e=>C(e.target.value),label:"Server",disabled:w.isPending||!!y,children:v.map(e=>(0,s.jsx)(m.Z,{value:e,children:e},e))})]}),(0,s.jsx)(d.Z,{label:"Description (optional)",value:S,onChange:e=>k(e.target.value),placeholder:"e.g., Before modpack update",fullWidth:!0,disabled:w.isPending}),w.isError&&(0,s.jsx)(p.Z,{severity:"error",children:(null===(n=w.error)||void 0===n?void 0:n.message)||"Failed to create snapshot"}),w.isPending&&(0,s.jsx)(p.Z,{severity:"info",icon:(0,s.jsx)(f.Z,{size:20}),children:"Creating snapshot... This may take a moment."})]})}),(0,s.jsxs)(o.Z,{children:[(0,s.jsx)(c.Z,{onClick:D,disabled:w.isPending,children:"Cancel"}),(0,s.jsx)(c.Z,{onClick:z,variant:"contained",disabled:!b||w.isPending,children:w.isPending?"Creating...":"Create Snapshot"})]})]})}},84728:function(e,n,t){t.d(n,{YN:function(){return V}});var s=t(94655),a=t(35106),l=t(30417),i=t(99770),r=t(62508),o=t(5682),c=t(76678),d=t(7281),u=t(31317),h=t(81071),x=t(93017),m=t(79983),p=t(69123),f=t(44059),j=t(83855),g=t(71185),Z=t(97731),v=t(86071),y=t(72205),b=t(90158),C=t(49954),S=t(17820),k=t(73424),w=t(95511),z=t(73517),D=t(47254),A=t(43214);function B(e){let{changes:n,selectedFile:t,onSelectFile:l}=e,i=(0,a.useCallback)((e,t,s)=>{"ArrowUp"===e.key&&s>0?(e.preventDefault(),l(n[s-1].path)):"ArrowDown"===e.key&&s<n.length-1?(e.preventDefault(),l(n[s+1].path)):("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l(t))},[n,l]);return 0===n.length?(0,s.jsx)(d.Z,{sx:{p:2},children:(0,s.jsx)(u.Z,{variant:"body2",color:"text.secondary",children:"No changes"})}):(0,s.jsxs)(d.Z,{sx:{height:"100%",overflow:"auto",borderRight:1,borderColor:"divider"},role:"tree","aria-label":"Changed files",children:[(0,s.jsxs)(u.Z,{variant:"caption",sx:{display:"block",px:2,py:1,color:"text.secondary",fontWeight:"medium",letterSpacing:"0.08em",textTransform:"uppercase",borderBottom:1,borderColor:"divider",bgcolor:"background.paper"},children:["Changed Files (",n.length,")"]}),(0,s.jsx)(b.Z,{dense:!0,disablePadding:!0,role:"group",children:n.map((e,n)=>{let a=function(e){switch(e){case"added":return{icon:(0,s.jsx)(z.Z,{fontSize:"small"}),color:"success.main",label:"Added"};case"modified":return{icon:(0,s.jsx)(D.Z,{fontSize:"small"}),color:"warning.main",label:"Modified"};case"deleted":return{icon:(0,s.jsx)(A.Z,{fontSize:"small"}),color:"error.main",label:"Deleted"}}}(e.status),r=function(e){let n=e.split("/");return n[n.length-1]}(e.path),o=function(e){let n=e.split("/");return n.length<=1?"":n.slice(0,-1).join("/")}(e.path),c=t===e.path;return(0,s.jsx)(w.Z,{title:"".concat(a.label,": ").concat(e.path),placement:"right",children:(0,s.jsxs)(C.Z,{selected:c,onClick:()=>l(e.path),onKeyDown:t=>i(t,e.path,n),role:"treeitem","aria-selected":c,"aria-label":"".concat(e.path," - ").concat(a.label),sx:{py:.75,"&.Mui-selected":{bgcolor:"action.selected"}},children:[(0,s.jsx)(S.Z,{sx:{minWidth:32,color:a.color},children:a.icon}),(0,s.jsx)(k.Z,{primary:r,secondary:o||void 0,primaryTypographyProps:{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.8rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},secondaryTypographyProps:{variant:"caption",sx:{fontFamily:"monospace",fontSize:"0.7rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})]})},e.path)})})]})}var P=t(20876),F=t(25333);let I=(0,P.default)(()=>t.e(271).then(t.bind(t,40271)),{loadableGenerated:{webpack:()=>[null]},ssr:!1});function W(e){var n,t;let{change:a,viewMode:l,fileRef:i}=e,r="added"===a.status?"":null!==(n=a.oldContent)&&void 0!==n?n:"",o="deleted"===a.status?"":null!==(t=a.newContent)&&void 0!==t?t:"";return(0,s.jsxs)(d.Z,{ref:i,sx:{mb:3},"data-file-path":a.path,id:"diff-file-".concat(a.path.replace(/[^a-zA-Z0-9]/g,"-")),children:[(0,s.jsxs)(d.Z,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,bgcolor:"background.default",borderTop:1,borderBottom:1,borderColor:"divider",position:"sticky",top:0,zIndex:1},children:[function(e){switch(e){case"added":return(0,s.jsx)(z.Z,{fontSize:"small",sx:{color:"success.main"}});case"modified":return(0,s.jsx)(D.Z,{fontSize:"small",sx:{color:"warning.main"}});case"deleted":return(0,s.jsx)(A.Z,{fontSize:"small",sx:{color:"error.main"}})}}(a.status),(0,s.jsx)(u.Z,{variant:"body2",sx:{fontFamily:"monospace",fontWeight:"bold",flex:1},children:a.path}),(0,s.jsx)(F.Z,{label:function(e){switch(e){case"added":return"added";case"modified":return"modified";case"deleted":return"deleted"}}(a.status),size:"small",color:function(e){switch(e){case"added":return"success";case"modified":return"warning";case"deleted":return"error"}}(a.status),variant:"outlined"})]}),(0,s.jsx)(d.Z,{sx:{fontSize:"0.8rem",overflow:"auto"},children:(0,s.jsx)(I,{oldValue:r,newValue:o,splitView:"split"===l,useDarkTheme:!0,hideLineNumbers:!1,showDiffOnly:!0,styles:{variables:{dark:{diffViewerBackground:"#1a1a1a",addedBackground:"#1a3a1a",addedColor:"#4caf50",removedBackground:"#3a1a1a",removedColor:"#f44336",wordAddedBackground:"#2d5a2d",wordRemovedBackground:"#5a2d2d",emptyLineBackground:"#1a1a1a",gutterBackground:"#111",gutterColor:"#555",codeFoldBackground:"#111",codeFoldGutterBackground:"#111"}}}})})]})}function T(e){let{changes:n,selectedFile:t,viewMode:l}=e,i=(0,a.useRef)(new Map),r=(0,a.useRef)(null);return((0,a.useEffect)(()=>{if(t&&i.current.has(t)){let e=i.current.get(t);null==e||e.scrollIntoView({behavior:"smooth",block:"start"})}},[t]),0===n.length)?(0,s.jsx)(d.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",p:4},children:(0,s.jsx)(u.Z,{variant:"body1",color:"text.secondary",children:"No differences between these snapshots"})}):(0,s.jsx)(d.Z,{ref:r,sx:{height:"100%",overflow:"auto","& table":{width:"100%"}},children:n.map((e,t)=>(0,s.jsxs)(d.Z,{children:[(0,s.jsx)(W,{change:e,viewMode:l,fileRef:n=>{n?i.current.set(e.path,n):i.current.delete(e.path)}}),t<n.length-1&&(0,s.jsx)(p.Z,{})]},e.path))})}var E=t(89923),N=t(10297),R=t(98874),M=t(23345);function q(e){let{value:n,onChange:t}=e;return(0,s.jsxs)(N.Z,{value:n,exclusive:!0,onChange:(e,n)=>{null!==n&&t(n)},"aria-label":"Diff view mode",size:"small",children:[(0,s.jsx)(w.Z,{title:"Unified diff view",children:(0,s.jsx)(E.Z,{value:"unified","aria-label":"Unified view",children:(0,s.jsx)(R.Z,{fontSize:"small"})})}),(0,s.jsx)(w.Z,{title:"Side-by-side diff view",children:(0,s.jsx)(E.Z,{value:"split","aria-label":"Split view",children:(0,s.jsx)(M.Z,{fontSize:"small"})})})]})}var L=t(32366),U=t(45813),H=t(21111);function O(e){let{summary:n}=e,{added:t,modified:a,deleted:l}=n;return 0===t+a+l?(0,s.jsx)(d.Z,{sx:{display:"flex",alignItems:"center",gap:1,px:2,py:1,borderTop:1,borderColor:"divider",bgcolor:"background.paper"},children:(0,s.jsx)(u.Z,{variant:"body2",color:"text.secondary",children:"No differences found between snapshots"})}):(0,s.jsxs)(d.Z,{sx:{display:"flex",alignItems:"center",gap:1.5,px:2,py:1,borderTop:1,borderColor:"divider",bgcolor:"background.paper",flexWrap:"wrap"},role:"status","aria-label":"Summary: ".concat(t," added, ").concat(a," modified, ").concat(l," deleted"),children:[(0,s.jsx)(u.Z,{variant:"caption",color:"text.secondary",sx:{fontWeight:"medium"},children:"Summary:"}),a>0&&(0,s.jsx)(F.Z,{icon:(0,s.jsx)(U.Z,{sx:{fontSize:"0.875rem"}}),label:"".concat(a," modified"),size:"small",sx:{bgcolor:"warning.dark",color:"warning.contrastText","& .MuiChip-icon":{color:"warning.contrastText"}}}),t>0&&(0,s.jsx)(F.Z,{icon:(0,s.jsx)(L.Z,{sx:{fontSize:"0.875rem"}}),label:"".concat(t," added"),size:"small",sx:{bgcolor:"success.dark",color:"success.contrastText","& .MuiChip-icon":{color:"success.contrastText"}}}),l>0&&(0,s.jsx)(F.Z,{icon:(0,s.jsx)(H.Z,{sx:{fontSize:"0.875rem"}}),label:"".concat(l," deleted"),size:"small",sx:{bgcolor:"error.dark",color:"error.contrastText","& .MuiChip-icon":{color:"error.contrastText"}}})]})}function K(e){return new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function V(e){var n;let{open:t,snapshotA:b,snapshotB:C,onClose:S,onRestoreA:k}=e,w=(0,j.Z)(),z=(0,f.Z)(w.breakpoints.down("md")),[D,A]=(0,a.useState)(void 0),[P,F]=(0,a.useState)("unified"),{data:I,isLoading:W,isError:E,error:N}=(0,y.m)(b.id,C.id,{enabled:t});(0,a.useEffect)(()=>{t&&(A(void 0),F("unified"))},[t,z]),(0,a.useEffect)(()=>{(null==I?void 0:I.changes)&&I.changes.length>0&&!D&&A(I.changes[0].path)},[I,D]);let R=(0,a.useCallback)(e=>{"Escape"===e.key&&S()},[S]);(0,a.useEffect)(()=>{if(t)return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[t,R]);let M=(0,a.useCallback)(e=>{A(e)},[]),L=(0,a.useCallback)(()=>{null==k||k(b),S()},[k,b,S]);return(0,s.jsxs)(i.Z,{open:t,onClose:S,maxWidth:"xl",fullWidth:!0,fullScreen:z,"aria-labelledby":"config-diff-dialog-title",PaperProps:{sx:{height:z?"100%":"90vh",maxHeight:z?"100%":"90vh",display:"flex",flexDirection:"column"}},children:[(0,s.jsxs)(r.Z,{id:"config-diff-dialog-title",sx:{display:"flex",alignItems:"center",gap:1,pb:1,flexShrink:0},children:[(0,s.jsx)(v.Z,{color:"primary"}),(0,s.jsxs)(d.Z,{sx:{flex:1},children:[(0,s.jsx)(u.Z,{variant:"h6",component:"span",children:"Config Diff"}),(0,s.jsxs)(u.Z,{variant:"body2",color:"text.secondary",sx:{display:"block",mt:.25},children:["Snapshot A: ",K(b.createdAt),(0,s.jsx)(d.Z,{component:"span",sx:{mx:1},children:"vs"}),"Snapshot B: ",K(C.createdAt)]})]}),(0,s.jsx)(q,{value:P,onChange:F}),(0,s.jsx)(m.Z,{onClick:S,"aria-label":"Close diff dialog",size:"small",sx:{ml:1},children:(0,s.jsx)(g.Z,{})})]}),(0,s.jsx)(p.Z,{}),(0,s.jsxs)(o.Z,{sx:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column",p:0},children:[W&&(0,s.jsxs)(d.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,gap:2},children:[(0,s.jsx)(x.Z,{size:24}),(0,s.jsx)(u.Z,{variant:"body2",color:"text.secondary",children:"Loading diff..."})]}),E&&(0,s.jsx)(d.Z,{sx:{p:2},children:(0,s.jsxs)(h.Z,{severity:"error",children:["Failed to load diff: ",null!==(n=null==N?void 0:N.message)&&void 0!==n?n:"Unknown error"]})}),I&&(0,s.jsxs)(d.Z,{sx:{flex:1,display:"flex",flexDirection:{xs:"column",md:"row"},overflow:"hidden"},children:[(0,s.jsx)(d.Z,{sx:{width:{xs:"100%",md:220},flexShrink:0,height:{xs:"auto",md:"100%"},maxHeight:{xs:160,md:"none"},overflow:"auto"},children:(0,s.jsx)(B,{changes:I.changes,selectedFile:D,onSelectFile:M})}),(0,s.jsx)(p.Z,{orientation:z?"horizontal":"vertical"}),(0,s.jsx)(d.Z,{sx:{flex:1,overflow:"auto"},children:(0,s.jsx)(T,{changes:I.changes,selectedFile:D,viewMode:P})})]})]}),I&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.Z,{}),(0,s.jsx)(O,{summary:I.summary})]}),(0,s.jsx)(p.Z,{}),(0,s.jsxs)(c.Z,{sx:{px:2,py:1.5,flexShrink:0},children:[k&&(0,s.jsx)(l.Z,{onClick:L,variant:"outlined",color:"warning",startIcon:(0,s.jsx)(Z.Z,{}),disabled:W,children:"Restore to Snapshot A"}),(0,s.jsx)(d.Z,{sx:{flex:1}}),(0,s.jsx)(l.Z,{onClick:S,variant:"contained",children:"Close"})]})]})}},56831:function(e,n,t){t.d(n,{zO:function(){return P},Fb:function(){return et},JZ:function(){return W},Ff:function(){return G},Xj:function(){return h},zg:function(){return eZ},Dm:function(){return ed},gE:function(){return ey},ed:function(){return eh.e}});var s=t(94655),a=t(628),l=t(41565),i=t(31317),r=t(7281),o=t(25333),c=t(46207),d=t(43436),u=t(92666);function h(){let{data:e,isLoading:n,error:t}=(0,u.mj)();if(n)return(0,s.jsx)(a.Z,{children:(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(i.Z,{variant:"h6",gutterBottom:!0,children:"Backup Status"}),(0,s.jsx)(i.Z,{color:"text.secondary",children:"Loading..."})]})});if(t)return(0,s.jsx)(a.Z,{children:(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(i.Z,{variant:"h6",gutterBottom:!0,children:"Backup Status"}),(0,s.jsx)(i.Z,{color:"error",children:"Failed to load backup status"})]})});let{configured:h,lastBackup:x,repository:m}=e||{};return(0,s.jsx)(a.Z,{children:(0,s.jsxs)(l.Z,{children:[(0,s.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[(0,s.jsx)(i.Z,{variant:"h6",children:"Backup Status"}),(0,s.jsx)(o.Z,{icon:h?(0,s.jsx)(c.Z,{}):(0,s.jsx)(d.Z,{}),label:h?"Configured":"Not Configured",color:h?"success":"error",size:"small"})]}),h?(0,s.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",gap:1},children:[m&&(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(i.Z,{variant:"caption",color:"text.secondary",children:"Repository"}),(0,s.jsx)(i.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.875rem"},children:m})]}),x&&(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(i.Z,{variant:"caption",color:"text.secondary",children:"Last Backup"}),(0,s.jsx)(i.Z,{variant:"body2",children:function(e){let n=new Date,t=new Date(e),s=Math.floor((n.getTime()-t.getTime())/6e4),a=Math.floor(s/60);return s<1?"just now":s<60?"".concat(s," minutes ago"):a<24?"".concat(a," hours ago"):"".concat(Math.floor(a/24)," days ago")}(x)})]}),!x&&(0,s.jsx)(i.Z,{variant:"body2",color:"text.secondary",children:"No backups yet"})]}):(0,s.jsx)(i.Z,{variant:"body2",color:"text.secondary",children:"GitHub backup is not configured. Please configure BACKUP_REPO_URL in your environment."})]})})}var x=t(35106),m=t(21138),p=t(84811),f=t(47001),j=t(53281),g=t(11254),Z=t(70366),v=t(79983),y=t(97731),b=t(30417),C=t(99770),S=t(76678),k=t(5682),w=t(65087),z=t(62508),D=t(81071),A=t(93017);function B(e){var n;let{open:t,commit:a,onClose:l}=e,{mutate:o,isPending:c}=(0,u.s8)(),[d,h]=(0,x.useState)(""),[m,p]=(0,x.useState)(""),f=()=>{c||(h(""),p(""),l())};return(0,s.jsxs)(C.Z,{open:t,onClose:f,maxWidth:"sm",fullWidth:!0,children:[(0,s.jsx)(z.Z,{children:"Restore Backup"}),(0,s.jsxs)(k.Z,{children:[(0,s.jsx)(D.Z,{severity:"warning",sx:{mb:2},children:"This will restore all worlds from the selected backup. Current world data will be overwritten."}),d&&(0,s.jsx)(D.Z,{severity:"success",sx:{mb:2},children:d}),m&&(0,s.jsx)(D.Z,{severity:"error",sx:{mb:2},children:m}),(0,s.jsx)(w.Z,{sx:{mb:2},children:"Are you sure you want to restore from this backup?"}),(0,s.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",gap:1},children:[(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(i.Z,{variant:"caption",color:"text.secondary",children:"Commit Hash"}),(0,s.jsx)(i.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.875rem"},children:a.hash})]}),(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(i.Z,{variant:"caption",color:"text.secondary",children:"Date"}),(0,s.jsx)(i.Z,{variant:"body2",children:(n=a.date,new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(n)))})]}),(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(i.Z,{variant:"caption",color:"text.secondary",children:"Message"}),(0,s.jsx)(i.Z,{variant:"body2",children:a.message})]}),(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(i.Z,{variant:"caption",color:"text.secondary",children:"Author"}),(0,s.jsx)(i.Z,{variant:"body2",children:a.author})]})]})]}),(0,s.jsxs)(S.Z,{children:[(0,s.jsx)(b.Z,{onClick:f,disabled:c,children:"Cancel"}),(0,s.jsx)(b.Z,{onClick:()=>{h(""),p(""),o(a.hash,{onSuccess:()=>{h("Backup restored successfully from ".concat(a.hash.substring(0,7))),setTimeout(()=>{l()},2e3)},onError:e=>{p("Failed to restore backup: ".concat(e.message))}})},variant:"contained",color:"warning",disabled:c,startIcon:c?(0,s.jsx)(A.Z,{size:16}):(0,s.jsx)(y.Z,{}),children:c?"Restoring...":"Restore"})]})]})}function P(){let{data:e,isLoading:n,error:t}=(0,u.$t)(20),[r,c]=(0,x.useState)(null),d=e=>{c(e)};if(n)return(0,s.jsx)(a.Z,{children:(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(i.Z,{variant:"h6",gutterBottom:!0,children:"Backup History"}),(0,s.jsx)(i.Z,{color:"text.secondary",children:"Loading..."})]})});if(t)return(0,s.jsx)(a.Z,{children:(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(i.Z,{variant:"h6",gutterBottom:!0,children:"Backup History"}),(0,s.jsx)(i.Z,{color:"error",children:"Failed to load backup history"})]})});let h=(null==e?void 0:e.commits)||[];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Z,{children:(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(i.Z,{variant:"h6",gutterBottom:!0,children:"Backup History"}),0===h.length?(0,s.jsx)(i.Z,{color:"text.secondary",children:"No backup history available"}):(0,s.jsx)(j.Z,{children:(0,s.jsxs)(m.Z,{children:[(0,s.jsx)(g.Z,{children:(0,s.jsxs)(Z.Z,{children:[(0,s.jsx)(f.Z,{children:"Commit"}),(0,s.jsx)(f.Z,{children:"Date"}),(0,s.jsx)(f.Z,{children:"Message"}),(0,s.jsx)(f.Z,{children:"Author"}),(0,s.jsx)(f.Z,{align:"right",children:"Actions"})]})}),(0,s.jsx)(p.Z,{children:h.map(e=>{var n;return(0,s.jsxs)(Z.Z,{children:[(0,s.jsx)(f.Z,{children:(0,s.jsx)(o.Z,{label:e.hash.substring(0,7),size:"small",variant:"outlined",sx:{fontFamily:"monospace"}})}),(0,s.jsx)(f.Z,{children:(0,s.jsx)(i.Z,{variant:"body2",children:(n=e.date,new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(new Date(n)))})}),(0,s.jsx)(f.Z,{children:(0,s.jsx)(i.Z,{variant:"body2",children:e.message})}),(0,s.jsx)(f.Z,{children:(0,s.jsx)(i.Z,{variant:"body2",color:"text.secondary",children:e.author})}),(0,s.jsx)(f.Z,{align:"right",children:(0,s.jsx)(v.Z,{size:"small",color:"primary",onClick:()=>d(e),title:"Restore this backup",children:(0,s.jsx)(y.Z,{})})})]},e.hash)})})]})})]})}),r&&(0,s.jsx)(B,{open:!!r,commit:r,onClose:()=>{c(null)}})]})}var F=t(97436),I=t(34675);function W(e){let{disabled:n}=e,[t,a]=(0,x.useState)(!1),[l,i]=(0,x.useState)(""),[r,o]=(0,x.useState)(""),[c,d]=(0,x.useState)(""),{mutate:h,isPending:m}=(0,u.c5)(),p=()=>{m||(a(!1),i(""),o(""),d(""))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.Z,{variant:"contained",startIcon:(0,s.jsx)(I.Z,{}),onClick:()=>{a(!0),o(""),d(""),i("Backup ".concat(new Date().toISOString().split("T")[0]))},disabled:n||m,children:"Push Backup"}),(0,s.jsxs)(C.Z,{open:t,onClose:p,maxWidth:"sm",fullWidth:!0,children:[(0,s.jsx)(z.Z,{children:"Push Backup"}),(0,s.jsxs)(k.Z,{children:[r&&(0,s.jsx)(D.Z,{severity:"success",sx:{mb:2},children:r}),c&&(0,s.jsx)(D.Z,{severity:"error",sx:{mb:2},children:c}),(0,s.jsx)(F.Z,{autoFocus:!0,margin:"dense",label:"Commit Message",type:"text",fullWidth:!0,variant:"outlined",value:l,onChange:e=>i(e.target.value),disabled:m,helperText:"Optional message describing this backup"})]}),(0,s.jsxs)(S.Z,{children:[(0,s.jsx)(b.Z,{onClick:p,disabled:m,children:"Cancel"}),(0,s.jsx)(b.Z,{onClick:()=>{o(""),d(""),h({message:l||void 0},{onSuccess:e=>{o(e.commitHash?"Backup pushed successfully (".concat(e.commitHash.substring(0,7),")"):"Backup pushed successfully"),setTimeout(()=>{p()},2e3)},onError:e=>{d("Failed to push backup: ".concat(e.message))}})},variant:"contained",disabled:m,startIcon:m?(0,s.jsx)(A.Z,{size:16}):(0,s.jsx)(I.Z,{}),children:m?"Pushing...":"Push"})]})]})]})}var T=t(38393),E=t(70115),N=t(95511),R=t(69123),M=t(32366),q=t(45813),L=t(21111),U=t(54211),H=t(29793),O=t(75726),K=t(62328),V=t(7178);let $=[{label:"Every hour",value:"0 * * * *"},{label:"Every 6 hours",value:"0 */6 * * *"},{label:"Every 12 hours",value:"0 */12 * * *"},{label:"Daily at 3 AM",value:"0 3 * * *"},{label:"Weekly (Sunday 3 AM)",value:"0 3 * * 0"},{label:"Custom",value:"custom"}];function J(e){let{open:n,schedule:t,onClose:a}=e,l=(0,u.tT)(),c=(0,u.CA)(),d=!!t,[h,m]=(0,x.useState)(""),[p,f]=(0,x.useState)(""),[j,g]=(0,x.useState)(""),[Z,v]=(0,x.useState)(""),[y,w]=(0,x.useState)(""),[A,B]=(0,x.useState)("");(0,x.useEffect)(()=>{if(n){if(t){var e,s,a,l;m(t.name);let n=$.find(e=>e.value===t.cronExpression);n?(f(n.value),g("")):(f("custom"),g(t.cronExpression)),v(null!==(a=null===(e=t.retentionPolicy.maxCount)||void 0===e?void 0:e.toString())&&void 0!==a?a:""),w(null!==(l=null===(s=t.retentionPolicy.maxAgeDays)||void 0===s?void 0:s.toString())&&void 0!==l?l:"")}else m(""),f("0 3 * * *"),g(""),v("10"),w("30");B("")}},[n,t]);let P=()=>"custom"===p?j.trim():p,I=async()=>{B("");let e=P();if(!h.trim()){B("Name is required");return}if(!e){B("Cron expression is required");return}try{d&&t?await c.mutateAsync({id:t.id,data:{name:h.trim(),cron:e,...Z?{maxCount:parseInt(Z,10)}:{},...y?{maxAgeDays:parseInt(y,10)}:{}}}):await l.mutateAsync({name:h.trim(),cron:e,...Z?{maxCount:parseInt(Z,10)}:{},...y?{maxAgeDays:parseInt(y,10)}:{},enabled:!0}),a()}catch(e){B(e.message||"Failed to save schedule")}},W=l.isPending||c.isPending;return(0,s.jsxs)(C.Z,{open:n,onClose:a,maxWidth:"sm",fullWidth:!0,children:[(0,s.jsx)(z.Z,{children:d?"Edit Backup Schedule":"Create Backup Schedule"}),(0,s.jsx)(k.Z,{children:(0,s.jsxs)(E.Z,{spacing:2.5,sx:{mt:1},children:[A&&(0,s.jsx)(D.Z,{severity:"error",onClose:()=>B(""),children:A}),(0,s.jsx)(F.Z,{label:"Schedule Name",value:h,onChange:e=>m(e.target.value),fullWidth:!0,required:!0,placeholder:"e.g., Daily backup, Hourly snapshot",autoFocus:!0}),(0,s.jsxs)(H.Z,{fullWidth:!0,children:[(0,s.jsx)(O.Z,{children:"Schedule Frequency"}),(0,s.jsx)(K.Z,{value:p,onChange:e=>f(e.target.value),label:"Schedule Frequency",children:$.map(e=>(0,s.jsxs)(V.Z,{value:e.value,children:[e.label,"custom"!==e.value&&(0,s.jsx)(o.Z,{label:e.value,size:"small",variant:"outlined",sx:{ml:1,fontFamily:"monospace",fontSize:"0.75rem"}})]},e.value))})]}),"custom"===p&&(0,s.jsx)(F.Z,{label:"Cron Expression",value:j,onChange:e=>g(e.target.value),fullWidth:!0,required:!0,placeholder:"e.g., 0 */6 * * *",helperText:"Format: minute hour day-of-month month day-of-week",InputProps:{sx:{fontFamily:"monospace"}}}),(0,s.jsx)(i.Z,{variant:"subtitle2",color:"text.secondary",sx:{mt:1},children:"Retention Policy (optional)"}),(0,s.jsxs)(r.Z,{sx:{display:"flex",gap:2},children:[(0,s.jsx)(F.Z,{label:"Max Backup Count",type:"number",value:Z,onChange:e=>v(e.target.value),fullWidth:!0,placeholder:"e.g., 10",inputProps:{min:1},helperText:"Keep at most N backups"}),(0,s.jsx)(F.Z,{label:"Max Age (days)",type:"number",value:y,onChange:e=>w(e.target.value),fullWidth:!0,placeholder:"e.g., 30",inputProps:{min:1},helperText:"Delete backups older than N days"})]})]})}),(0,s.jsxs)(S.Z,{children:[(0,s.jsx)(b.Z,{onClick:a,disabled:W,children:"Cancel"}),(0,s.jsx)(b.Z,{onClick:I,variant:"contained",disabled:W,children:W?"Saving...":d?"Update":"Create"})]})]})}function Q(e){let n=new Date,t=new Date(e),s=Math.floor((n.getTime()-t.getTime())/6e4),a=Math.floor(s/60);return s<1?"just now":s<60?"".concat(s,"m ago"):a<24?"".concat(a,"h ago"):"".concat(Math.floor(a/24),"d ago")}function _(e){let{schedule:n,onEdit:t,onDelete:a,onToggle:l,toggleLoading:u}=e;return(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1.5,px:1,"&:hover":{bgcolor:"action.hover",borderRadius:1}},children:[(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",gap:2,flex:1,minWidth:0},children:[(0,s.jsx)(U.Z,{color:n.enabled?"primary":"disabled"}),(0,s.jsxs)(r.Z,{sx:{minWidth:0},children:[(0,s.jsx)(i.Z,{variant:"body1",fontWeight:"medium",noWrap:!0,children:n.name}),(0,s.jsxs)(i.Z,{variant:"caption",color:"text.secondary",noWrap:!0,children:[n.cronHumanReadable," (",n.cronExpression,")"]})]})]}),(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",gap:1.5,flexShrink:0},children:[n.lastRunStatus&&(0,s.jsx)(N.Z,{title:n.lastRunMessage?"".concat(n.lastRunAt?Q(n.lastRunAt):"",": ").concat(n.lastRunMessage):n.lastRunAt?Q(n.lastRunAt):"",children:(0,s.jsx)(o.Z,{icon:"success"===n.lastRunStatus?(0,s.jsx)(c.Z,{sx:{fontSize:16}}):(0,s.jsx)(d.Z,{sx:{fontSize:16}}),label:"success"===n.lastRunStatus?"OK":"Failed",size:"small",color:"success"===n.lastRunStatus?"success":"error",variant:"outlined"})}),(n.retentionPolicy.maxCount||n.retentionPolicy.maxAgeDays)&&(0,s.jsx)(N.Z,{title:[n.retentionPolicy.maxCount&&"Max ".concat(n.retentionPolicy.maxCount," backups"),n.retentionPolicy.maxAgeDays&&"Max ".concat(n.retentionPolicy.maxAgeDays," days")].filter(Boolean).join(", "),children:(0,s.jsx)(o.Z,{label:"Retention",size:"small",variant:"outlined",color:"info"})}),(0,s.jsx)(N.Z,{title:n.enabled?"Disable schedule":"Enable schedule",children:(0,s.jsx)(T.Z,{size:"small",checked:n.enabled,onChange:(e,t)=>l(n,t),disabled:u})}),(0,s.jsx)(N.Z,{title:"Edit schedule",children:(0,s.jsx)(v.Z,{size:"small",onClick:()=>t(n),children:(0,s.jsx)(q.Z,{fontSize:"small"})})}),(0,s.jsx)(N.Z,{title:"Delete schedule",children:(0,s.jsx)(v.Z,{size:"small",color:"error",onClick:()=>a(n),children:(0,s.jsx)(L.Z,{fontSize:"small"})})})]})]})}function G(){var e;let{data:n,isLoading:t,error:o}=(0,u.d)(),c=(0,u.c1)(),d=(0,u.JV)(),[h,m]=(0,x.useState)(!1),[p,f]=(0,x.useState)(null),[j,g]=(0,x.useState)(!1),[Z,v]=(0,x.useState)(null),y=e=>{f(e),m(!0)},w=e=>{v(e),g(!0)},A=async()=>{if(Z)try{await d.mutateAsync(Z.id)}catch(e){}g(!1),v(null)},B=(e,n)=>{c.mutate({id:e.id,enabled:n})};if(t)return(0,s.jsx)(a.Z,{children:(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(i.Z,{variant:"h6",gutterBottom:!0,children:"Backup Schedules"}),(0,s.jsx)(i.Z,{color:"text.secondary",children:"Loading..."})]})});if(o)return(0,s.jsx)(a.Z,{children:(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(i.Z,{variant:"h6",gutterBottom:!0,children:"Backup Schedules"}),(0,s.jsx)(D.Z,{severity:"error",children:"Failed to load backup schedules"})]})});let P=null!==(e=null==n?void 0:n.schedules)&&void 0!==e?e:[];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Z,{children:(0,s.jsxs)(l.Z,{children:[(0,s.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(i.Z,{variant:"h6",children:"Backup Schedules"}),(0,s.jsx)(i.Z,{variant:"caption",color:"text.secondary",children:"Automated cron-based backup scheduling"})]}),(0,s.jsx)(b.Z,{variant:"contained",size:"small",startIcon:(0,s.jsx)(M.Z,{}),onClick:()=>{f(null),m(!0)},children:"Add Schedule"})]}),0===P.length?(0,s.jsxs)(r.Z,{sx:{textAlign:"center",py:4},children:[(0,s.jsx)(U.Z,{sx:{fontSize:48,color:"text.disabled",mb:1}}),(0,s.jsx)(i.Z,{color:"text.secondary",children:"No backup schedules configured"}),(0,s.jsx)(i.Z,{variant:"caption",color:"text.secondary",children:"Create a schedule to automatically back up your worlds"})]}):(0,s.jsx)(E.Z,{divider:(0,s.jsx)(R.Z,{}),children:P.map(e=>(0,s.jsx)(_,{schedule:e,onEdit:y,onDelete:w,onToggle:B,toggleLoading:c.isPending},e.id))})]})}),(0,s.jsx)(J,{open:h,schedule:p,onClose:()=>{m(!1),f(null)}}),(0,s.jsxs)(C.Z,{open:j,onClose:()=>g(!1),children:[(0,s.jsx)(z.Z,{children:"Delete Backup Schedule"}),(0,s.jsx)(k.Z,{children:(0,s.jsxs)(i.Z,{children:['Are you sure you want to delete the schedule "',null==Z?void 0:Z.name,'"? This action cannot be undone.']})}),(0,s.jsxs)(S.Z,{children:[(0,s.jsx)(b.Z,{onClick:()=>g(!1),children:"Cancel"}),(0,s.jsx)(b.Z,{onClick:A,color:"error",variant:"contained",disabled:d.isPending,children:d.isPending?"Deleting...":"Delete"})]})]})]})}var Y=t(33402),X=t(60097),ee=t(91606),en=t(45420);function et(e){let{value:n,onChange:t}=e;return(0,s.jsx)(r.Z,{sx:{borderBottom:1,borderColor:"divider",mb:3},children:(0,s.jsxs)(Y.Z,{value:n,onChange:(e,n)=>t(n),"aria-label":"Backup management tabs",children:[(0,s.jsx)(X.Z,{value:"world-backups",label:"World Backups",icon:(0,s.jsx)(ee.Z,{}),iconPosition:"start",sx:{textTransform:"none",fontWeight:"medium"}}),(0,s.jsx)(X.Z,{value:"config-snapshots",label:"Config Snapshots",icon:(0,s.jsx)(en.Z,{}),iconPosition:"start",sx:{textTransform:"none",fontWeight:"medium"}})]})})}var es=t(73517),ea=t(87739),el=t(12063),ei=t(88978),er=t(27171),eo=t(80620),ec=t(86071);function ed(e){let{serverName:n,snapshots:t,totalCount:d,schedule:u,onViewHistory:h,onCreateSnapshot:x,onViewDiff:m}=e,p=t.length>0?t[0]:null,f=t.length>=2;return(0,s.jsx)(a.Z,{variant:"outlined",sx:{"&:hover":{borderColor:"primary.main"}},children:(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(r.Z,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between"},children:(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",gap:1.5,mb:1},children:[(0,s.jsx)(er.Z,{color:"primary"}),(0,s.jsx)(i.Z,{variant:"h6",component:"h3",fontWeight:"bold",children:n})]})}),(0,s.jsxs)(E.Z,{direction:"row",spacing:2,sx:{mb:2,flexWrap:"wrap",gap:1},children:[p?(0,s.jsx)(N.Z,{title:"Latest: ".concat(new Date(p.createdAt).toLocaleString()),children:(0,s.jsx)(o.Z,{icon:(0,s.jsx)(eo.Z,{sx:{fontSize:16}}),label:"Latest: ".concat(function(e){let n=new Date,t=new Date(e),s=Math.floor((n.getTime()-t.getTime())/6e4),a=Math.floor(s/60),l=Math.floor(a/24);return s<1?"just now":s<60?"".concat(s,"m ago"):a<24?"".concat(a,"h ago"):l<30?"".concat(l,"d ago"):t.toLocaleDateString()}(p.createdAt)),size:"small",variant:"outlined"})}):(0,s.jsx)(o.Z,{label:"No snapshots yet",size:"small",variant:"outlined",color:"default"}),p&&(0,s.jsx)(o.Z,{label:"".concat(p.files.length," files"),size:"small",variant:"outlined",color:"info"}),(0,s.jsx)(o.Z,{label:"".concat(d," snapshot").concat(1!==d?"s":""," total"),size:"small",variant:"outlined"}),u?(0,s.jsx)(N.Z,{title:"Schedule: ".concat(u.name," (").concat(u.cronExpression,")"),children:(0,s.jsx)(o.Z,{icon:u.enabled?(0,s.jsx)(c.Z,{sx:{fontSize:16}}):(0,s.jsx)(U.Z,{sx:{fontSize:16}}),label:u.enabled?"Schedule: Active":"Schedule: Paused",size:"small",variant:"outlined",color:u.enabled?"success":"default"})}):(0,s.jsx)(o.Z,{label:"No schedule",size:"small",variant:"outlined",color:"default"})]}),(0,s.jsxs)(E.Z,{direction:"row",spacing:1,children:[(0,s.jsx)(b.Z,{size:"small",variant:"outlined",startIcon:(0,s.jsx)(eo.Z,{}),onClick:()=>h(n),disabled:0===d,children:"View History"}),(0,s.jsx)(b.Z,{size:"small",variant:"outlined",startIcon:(0,s.jsx)(es.Z,{}),onClick:()=>x(n),children:"Create Snapshot"}),f&&(0,s.jsx)(b.Z,{size:"small",variant:"outlined",startIcon:(0,s.jsx)(ec.Z,{}),onClick:()=>m(n),children:"View Diff"})]})]})})}function eu(e){let{servers:n,snapshotsByServer:t,schedules:a,isLoading:l,error:o,onViewHistory:c,onCreateSnapshot:d,onViewDiff:u}=e,h=(0,x.useMemo)(()=>n.map(e=>{var n,s;let l=t.get(e.name),i=a.find(n=>n.serverName===e.name);return{serverName:e.name,snapshots:null!==(n=null==l?void 0:l.snapshots)&&void 0!==n?n:[],totalCount:null!==(s=null==l?void 0:l.total)&&void 0!==s?s:0,schedule:i}}),[n,t,a]);return l?(0,s.jsx)(r.Z,{sx:{display:"flex",justifyContent:"center",py:4},children:(0,s.jsx)(A.Z,{})}):o?(0,s.jsxs)(D.Z,{severity:"error",children:["Failed to load config snapshots: ",o.message]}):0===n.length?(0,s.jsxs)(r.Z,{sx:{textAlign:"center",py:6},children:[(0,s.jsx)(en.Z,{sx:{fontSize:48,color:"text.disabled",mb:1}}),(0,s.jsx)(i.Z,{color:"text.secondary",children:"No servers found"}),(0,s.jsx)(i.Z,{variant:"caption",color:"text.secondary",children:"Create a server to start taking config snapshots"})]}):(0,s.jsx)(E.Z,{spacing:2,children:h.map(e=>(0,s.jsx)(ed,{serverName:e.serverName,snapshots:e.snapshots,totalCount:e.totalCount,schedule:e.schedule,onViewHistory:c,onCreateSnapshot:d,onViewDiff:u},e.serverName))})}var eh=t(6516),ex=t(62142),em=t(71185);function ep(e){let{schedule:n,onEdit:t,onDelete:a,onToggle:l,toggleLoading:u}=e;return(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:1.5,px:1,"&:hover":{bgcolor:"action.hover",borderRadius:1}},children:[(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",gap:2,flex:1,minWidth:0},children:[(0,s.jsx)(U.Z,{color:n.enabled?"primary":"disabled"}),(0,s.jsxs)(r.Z,{sx:{minWidth:0},children:[(0,s.jsx)(i.Z,{variant:"body2",fontWeight:"medium",noWrap:!0,children:n.name}),(0,s.jsxs)(i.Z,{variant:"caption",color:"text.secondary",noWrap:!0,children:[n.serverName," | ",n.cronExpression," | Retain: ",n.retentionCount]})]})]}),(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",gap:1,flexShrink:0},children:[n.lastRunStatus&&(0,s.jsx)(N.Z,{title:n.lastRunAt?"Last run: ".concat(function(e){let n=new Date,t=new Date(e),s=Math.floor((n.getTime()-t.getTime())/6e4),a=Math.floor(s/60);return s<1?"just now":s<60?"".concat(s,"m ago"):a<24?"".concat(a,"h ago"):"".concat(Math.floor(a/24),"d ago")}(n.lastRunAt)," (").concat(n.lastRunStatus,")"):n.lastRunStatus,children:(0,s.jsx)(o.Z,{icon:"success"===n.lastRunStatus?(0,s.jsx)(c.Z,{sx:{fontSize:16}}):(0,s.jsx)(d.Z,{sx:{fontSize:16}}),label:"success"===n.lastRunStatus?"OK":"Failed",size:"small",color:"success"===n.lastRunStatus?"success":"error",variant:"outlined"})}),(0,s.jsx)(N.Z,{title:n.enabled?"Disable schedule":"Enable schedule",children:(0,s.jsx)(T.Z,{size:"small",checked:n.enabled,onChange:(e,t)=>l(n,t),disabled:u})}),(0,s.jsx)(N.Z,{title:"Edit schedule",children:(0,s.jsx)(v.Z,{size:"small",onClick:()=>t(n),children:(0,s.jsx)(q.Z,{fontSize:"small"})})}),(0,s.jsx)(N.Z,{title:"Delete schedule",children:(0,s.jsx)(v.Z,{size:"small",color:"error",onClick:()=>a(n),children:(0,s.jsx)(L.Z,{fontSize:"small"})})})]})]})}function ef(e){let{schedules:n,onEdit:t,onDelete:a,onToggle:l,toggleLoading:o}=e;return 0===n.length?(0,s.jsxs)(r.Z,{sx:{textAlign:"center",py:3},children:[(0,s.jsx)(U.Z,{sx:{fontSize:40,color:"text.disabled",mb:1}}),(0,s.jsx)(i.Z,{color:"text.secondary",variant:"body2",children:"No config snapshot schedules configured"})]}):(0,s.jsx)(E.Z,{divider:(0,s.jsx)(R.Z,{}),children:n.map(e=>(0,s.jsx)(ep,{schedule:e,onEdit:t,onDelete:a,onToggle:l,toggleLoading:o},e.id))})}let ej=[{label:"Every hour",value:"0 * * * *"},{label:"Every 6 hours",value:"0 */6 * * *"},{label:"Daily at midnight",value:"0 0 * * *"},{label:"Daily at 3 AM",value:"0 3 * * *"},{label:"Weekly (Sunday midnight)",value:"0 0 * * 0"},{label:"Custom",value:""}];function eg(e){var n;let{serverNames:t,editingSchedule:a,onSubmit:l,onUpdate:o,onCancel:c,isSubmitting:d,error:u}=e,h=!!a,[m,p]=(0,x.useState)((null==a?void 0:a.serverName)||""),[f,j]=(0,x.useState)((null==a?void 0:a.name)||""),[g,Z]=(0,x.useState)(""),[v,y]=(0,x.useState)((null==a?void 0:a.cronExpression)||"0 0 * * *"),[C,S]=(0,x.useState)(null!==(n=null==a?void 0:a.retentionCount)&&void 0!==n?n:10);(0,x.useEffect)(()=>{let e=ej.find(e=>e.value===v);Z(e?e.value:"")},[v]),(0,x.useEffect)(()=>{a?(p(a.serverName),j(a.name),y(a.cronExpression),S(a.retentionCount)):(p(""),j(""),y("0 0 * * *"),S(10))},[a]);let k=e=>{Z(e),e&&y(e)},w=(h||m)&&f.trim()&&v.trim();return(0,s.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,s.jsx)(i.Z,{variant:"subtitle2",color:"text.secondary",children:h?"Edit Schedule":"Create New Schedule"}),!h&&(0,s.jsxs)(H.Z,{fullWidth:!0,size:"small",required:!0,children:[(0,s.jsx)(O.Z,{children:"Server"}),(0,s.jsx)(K.Z,{value:m,onChange:e=>p(e.target.value),label:"Server",disabled:d,children:t.map(e=>(0,s.jsx)(V.Z,{value:e,children:e},e))})]}),(0,s.jsx)(F.Z,{label:"Schedule Name",value:f,onChange:e=>j(e.target.value),placeholder:"e.g., Daily config backup",size:"small",fullWidth:!0,required:!0,disabled:d}),(0,s.jsxs)(H.Z,{fullWidth:!0,size:"small",children:[(0,s.jsx)(O.Z,{children:"Cron Preset"}),(0,s.jsx)(K.Z,{value:g,onChange:e=>k(e.target.value),label:"Cron Preset",disabled:d,children:ej.map(e=>(0,s.jsx)(V.Z,{value:e.value,children:e.label},e.label))})]}),(0,s.jsx)(F.Z,{label:"Cron Expression",value:v,onChange:e=>y(e.target.value),placeholder:"0 0 * * *",size:"small",fullWidth:!0,required:!0,disabled:d,helperText:"Standard cron format: minute hour day month weekday"}),(0,s.jsx)(F.Z,{label:"Retention Count",type:"number",value:C,onChange:e=>S(Math.max(1,parseInt(e.target.value)||1)),size:"small",fullWidth:!0,disabled:d,helperText:"Maximum number of scheduled snapshots to keep per server",inputProps:{min:1,max:100}}),u&&(0,s.jsx)(D.Z,{severity:"error",sx:{py:0},children:u}),(0,s.jsxs)(r.Z,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[(0,s.jsx)(b.Z,{size:"small",onClick:c,disabled:d,children:"Cancel"}),(0,s.jsx)(b.Z,{size:"small",variant:"contained",onClick:()=>{h&&o?o({name:f.trim(),cronExpression:v,retentionCount:C}):l({serverName:m,name:f.trim(),cronExpression:v,retentionCount:C})},disabled:!w||d,children:d?"Saving...":h?"Update":"Create"})]})]})}function eZ(e){var n,t,a;let{open:l,onClose:o,serverNames:c,filterServerName:d}=e,{data:u,isLoading:h,error:m}=(0,ei.F$)(d),p=(0,ei.wh)(),f=(0,ei.Uw)(),j=(0,ei.DW)(),g=(0,ei.$C)(),[Z,y]=(0,x.useState)(!1),[w,B]=(0,x.useState)(null),[P,F]=(0,x.useState)(!1),[I,W]=(0,x.useState)(null),T=null!==(a=null==u?void 0:u.schedules)&&void 0!==a?a:[],E=async()=>{if(I)try{await g.mutateAsync(I.id)}catch(e){}F(!1),W(null)},N=async e=>{try{await p.mutateAsync({serverName:e.serverName,name:e.name,cronExpression:e.cronExpression,retentionCount:e.retentionCount}),y(!1)}catch(e){}},q=async e=>{if(w)try{await f.mutateAsync({id:w.id,data:e}),y(!1),B(null)}catch(e){}},L=(null===(n=p.error)||void 0===n?void 0:n.message)||(null===(t=f.error)||void 0===t?void 0:t.message)||null;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ex.ZP,{anchor:"right",open:l,onClose:o,PaperProps:{sx:{width:{xs:"100%",sm:480},p:3}},children:[(0,s.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[(0,s.jsx)(i.Z,{variant:"h6",fontWeight:"bold",children:"Config Snapshot Schedules"}),(0,s.jsx)(v.Z,{onClick:o,size:"small",children:(0,s.jsx)(em.Z,{})})]}),(0,s.jsx)(R.Z,{sx:{mb:2}}),!Z&&(0,s.jsx)(b.Z,{variant:"outlined",startIcon:(0,s.jsx)(M.Z,{}),onClick:()=>{B(null),y(!0)},fullWidth:!0,sx:{mb:2},children:"Add Schedule"}),Z&&(0,s.jsxs)(r.Z,{sx:{mb:2},children:[(0,s.jsx)(eg,{serverNames:c,editingSchedule:w,onSubmit:N,onUpdate:q,onCancel:()=>{y(!1),B(null),p.reset(),f.reset()},isSubmitting:p.isPending||f.isPending,error:L}),(0,s.jsx)(R.Z,{sx:{mt:2}})]}),h?(0,s.jsx)(r.Z,{sx:{display:"flex",justifyContent:"center",py:4},children:(0,s.jsx)(A.Z,{})}):m?(0,s.jsx)(D.Z,{severity:"error",children:"Failed to load schedules"}):(0,s.jsx)(ef,{schedules:T,onEdit:e=>{B(e),y(!0)},onDelete:e=>{W(e),F(!0)},onToggle:(e,n)=>{j.mutate({id:e.id,enabled:n})},toggleLoading:j.isPending})]}),(0,s.jsxs)(C.Z,{open:P,onClose:()=>F(!1),children:[(0,s.jsx)(z.Z,{children:"Delete Config Snapshot Schedule"}),(0,s.jsx)(k.Z,{children:(0,s.jsxs)(i.Z,{children:['Are you sure you want to delete the schedule "',null==I?void 0:I.name,'"? Existing snapshots created by this schedule will be preserved.']})}),(0,s.jsxs)(S.Z,{children:[(0,s.jsx)(b.Z,{onClick:()=>F(!1),children:"Cancel"}),(0,s.jsx)(b.Z,{onClick:E,color:"error",variant:"contained",disabled:g.isPending,children:g.isPending?"Deleting...":"Delete"})]})]})]})}var ev=t(84728);function ey(){var e,n;let{data:t,isLoading:a}=(0,u.x$)(),l=null!==(e=null==t?void 0:t.servers)&&void 0!==e?e:[],o=l.map(e=>e.name),{snapshotsByServer:c,isLoading:d,error:h}=function(e){var n;let t=e.map(e=>({name:e,query:(0,el.m)(e,5,0,{enabled:!!e})})),s=t.some(e=>e.query.isLoading),a=(null===(n=t.find(e=>e.query.error))||void 0===n?void 0:n.query.error)||null;return{snapshotsByServer:(0,x.useMemo)(()=>{let e=new Map;for(let n of t)n.query.data&&e.set(n.name,{snapshots:n.query.data.snapshots,total:n.query.data.total});return e},[t]),isLoading:s,error:a}}(o),{data:m}=(0,ei.F$)(),p=null!==(n=null==m?void 0:m.schedules)&&void 0!==n?n:[],[f,j]=(0,x.useState)(!1),[g,Z]=(0,x.useState)(void 0),[v,y]=(0,x.useState)(!1),[C,S]=(0,x.useState)(!1),[k,w]=(0,x.useState)(""),z=(0,x.useMemo)(()=>{if(!k)return{snapshotA:null,snapshotB:null};let e=c.get(k);return!e||e.snapshots.length<2?{snapshotA:null,snapshotB:null}:{snapshotA:e.snapshots[1],snapshotB:e.snapshots[0]}},[k,c]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"flex-end",gap:1,mb:2},children:[(0,s.jsx)(b.Z,{variant:"outlined",size:"small",startIcon:(0,s.jsx)(ea.Z,{}),onClick:()=>y(!0),children:"Manage Schedules"}),(0,s.jsx)(b.Z,{variant:"contained",size:"small",startIcon:(0,s.jsx)(es.Z,{}),onClick:()=>{Z(void 0),j(!0)},children:"Create Snapshot"})]}),(0,s.jsx)(i.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Config snapshots capture server configuration files (server.properties, config.env, etc.) for versioning, comparison, and restore operations."}),(0,s.jsx)(eu,{servers:l,snapshotsByServer:c,schedules:p,isLoading:a||d,error:h,onViewHistory:e=>{let n=c.get(e);n&&n.snapshots.length>0&&(w(e),S(!0))},onCreateSnapshot:e=>{Z(e),j(!0)},onViewDiff:e=>{w(e),S(!0)}}),(0,s.jsx)(eh.e,{open:f,onClose:()=>{j(!1),Z(void 0)},serverNames:o,defaultServer:g}),(0,s.jsx)(eZ,{open:v,onClose:()=>y(!1),serverNames:o}),C&&z.snapshotA&&z.snapshotB&&(0,s.jsx)(ev.YN,{open:C,onClose:()=>{S(!1),w("")},snapshotA:z.snapshotA,snapshotB:z.snapshotB})]})}},72205:function(e,n,t){t.d(n,{m:function(){return l}});var s=t(98324),a=t(42936);function l(e,n,t){return(0,s.a)({queryKey:["config-snapshots","diff",e,n],queryFn:()=>(0,a.SC)("/api/config-snapshots/".concat(encodeURIComponent(e),"/diff/").concat(encodeURIComponent(n))),enabled:(null==t?void 0:t.enabled)!==!1&&!!e&&!!n,staleTime:3e5})}},88978:function(e,n,t){t.d(n,{$C:function(){return u},DW:function(){return d},F$:function(){return r},Uw:function(){return c},wh:function(){return o}});var s=t(98324),a=t(58919),l=t(20367),i=t(42936);function r(e){let n=e?"?serverName=".concat(encodeURIComponent(e)):"";return(0,s.a)({queryKey:["config-snapshot-schedules",e||"all"],queryFn:()=>(0,i.SC)("/api/config-snapshot-schedules".concat(n)),refetchInterval:6e4})}function o(){let e=(0,a.NL)();return(0,l.D)({mutationFn:e=>(0,i.SC)("/api/config-snapshot-schedules",{method:"POST",body:JSON.stringify(e)}),onSuccess:()=>{e.invalidateQueries({queryKey:["config-snapshot-schedules"]})}})}function c(){let e=(0,a.NL)();return(0,l.D)({mutationFn:e=>{let{id:n,data:t}=e;return(0,i.SC)("/api/config-snapshot-schedules/".concat(encodeURIComponent(n)),{method:"PUT",body:JSON.stringify(t)})},onSuccess:()=>{e.invalidateQueries({queryKey:["config-snapshot-schedules"]})}})}function d(){let e=(0,a.NL)();return(0,l.D)({mutationFn:e=>{let{id:n,enabled:t}=e;return(0,i.SC)("/api/config-snapshot-schedules/".concat(encodeURIComponent(n),"/toggle"),{method:"PATCH",body:JSON.stringify({enabled:t})})},onSuccess:()=>{e.invalidateQueries({queryKey:["config-snapshot-schedules"]})}})}function u(){let e=(0,a.NL)();return(0,l.D)({mutationFn:e=>(0,i.SC)("/api/config-snapshot-schedules/".concat(encodeURIComponent(e)),{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["config-snapshot-schedules"]})}})}},12063:function(e,n,t){t.d(n,{m:function(){return r},t:function(){return o}});var s=t(98324),a=t(58919),l=t(20367),i=t(42936);function r(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0;return(0,s.a)({queryKey:["config-snapshots","list",e,n,t],queryFn:()=>(0,i.SC)("/api/servers/".concat(encodeURIComponent(e),"/config-snapshots?limit=").concat(n,"&offset=").concat(t)),enabled:(null==a?void 0:a.enabled)!==!1&&!!e,refetchInterval:6e4})}function o(){let e=(0,a.NL)();return(0,l.D)({mutationFn:e=>{let{serverName:n,description:t}=e;return(0,i.SC)("/api/servers/".concat(encodeURIComponent(n),"/config-snapshots"),{method:"POST",body:JSON.stringify({description:t})})},onSuccess:(n,t)=>{let{serverName:s}=t;e.invalidateQueries({queryKey:["config-snapshots","list",s]}),e.invalidateQueries({queryKey:["config-snapshots"]})}})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7438],{628:function(t,e,r){r.d(e,{Z:function(){return Z}});var n=r(81500),i=r(32324),o=r(35106),s=r(70316),a=r(65951),u=r(34519),c=r(28057),l=r(69899),d=r(11379),h=r(9049);function p(t){return(0,h.ZP)("MuiCard",t)}(0,d.Z)("MuiCard",["root"]);var m=r(94655);let f=["className","raised"],y=t=>{let{classes:e}=t;return(0,a.Z)({root:["root"]},p,e)},v=(0,u.ZP)(l.Z,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({overflow:"hidden"}));var Z=o.forwardRef(function(t,e){let r=(0,c.i)({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=r,u=(0,i.Z)(r,f),l=(0,n.Z)({},r,{raised:a}),d=y(l);return(0,m.jsx)(v,(0,n.Z)({className:(0,s.Z)(d.root,o),elevation:a?8:void 0,ref:e,ownerState:l},u))})},41565:function(t,e,r){r.d(e,{Z:function(){return v}});var n=r(81500),i=r(32324),o=r(35106),s=r(70316),a=r(65951),u=r(34519),c=r(28057),l=r(11379),d=r(9049);function h(t){return(0,d.ZP)("MuiCardContent",t)}(0,l.Z)("MuiCardContent",["root"]);var p=r(94655);let m=["className","component"],f=t=>{let{classes:e}=t;return(0,a.Z)({root:["root"]},h,e)},y=(0,u.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}}));var v=o.forwardRef(function(t,e){let r=(0,c.i)({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=r,u=(0,i.Z)(r,m),l=(0,n.Z)({},r,{component:a}),d=f(l);return(0,p.jsx)(y,(0,n.Z)({as:a,className:(0,s.Z)(d.root,o),ownerState:l,ref:e},u))})},12721:function(t,e,r){r.d(e,{t:function(){return o}});var n=r(11379),i=r(9049);function o(t){return(0,i.ZP)("MuiListItemButton",t)}let s=(0,n.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);e.Z=s},33326:function(t,e,r){r.d(e,{f:function(){return o}});var n=r(11379),i=r(9049);function o(t){return(0,i.ZP)("MuiListItemIcon",t)}let s=(0,n.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);e.Z=s},73424:function(t,e,r){var n=r(32324),i=r(81500),o=r(35106),s=r(70316),a=r(65951),u=r(31317),c=r(75084),l=r(28057),d=r(34519),h=r(64769),p=r(94655);let m=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],f=t=>{let{classes:e,inset:r,primary:n,secondary:i,dense:o}=t;return(0,a.Z)({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},h.L,e)},y=(0,d.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[{["& .".concat(h.Z.primary)]:e.primary},{["& .".concat(h.Z.secondary)]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})(t=>{let{ownerState:e}=t;return(0,i.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})}),v=o.forwardRef(function(t,e){let r=(0,l.i)({props:t,name:"MuiListItemText"}),{children:a,className:d,disableTypography:h=!1,inset:v=!1,primary:Z,primaryTypographyProps:b,secondary:g,secondaryTypographyProps:x}=r,C=(0,n.Z)(r,m),{dense:M}=o.useContext(c.Z),P=null!=Z?Z:a,w=g,R=(0,i.Z)({},r,{disableTypography:h,inset:v,primary:!!P,secondary:!!w,dense:M}),S=f(R);return null==P||P.type===u.Z||h||(P=(0,p.jsx)(u.Z,(0,i.Z)({variant:M?"body2":"body1",className:S.primary,component:null!=b&&b.variant?void 0:"span",display:"block"},b,{children:P}))),null==w||w.type===u.Z||h||(w=(0,p.jsx)(u.Z,(0,i.Z)({variant:"body2",className:S.secondary,color:"text.secondary",display:"block"},x,{children:w}))),(0,p.jsxs)(y,(0,i.Z)({className:(0,s.Z)(S.root,d),ownerState:R,ref:e},C,{children:[P,w]}))});e.Z=v},64769:function(t,e,r){r.d(e,{L:function(){return o}});var n=r(11379),i=r(9049);function o(t){return(0,i.ZP)("MuiListItemText",t)}let s=(0,n.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);e.Z=s},7178:function(t,e,r){r.d(e,{Z:function(){return S}});var n=r(32324),i=r(81500),o=r(35106),s=r(70316),a=r(65951),u=r(64577),c=r(34519),l=r(15651),d=r(28057),h=r(75084),p=r(29084),m=r(65425),f=r(38481),y=r(16945),v=r(33326),Z=r(64769),b=r(11379),g=r(9049);function x(t){return(0,g.ZP)("MuiMenuItem",t)}let C=(0,b.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var M=r(94655);let P=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],w=t=>{let{disabled:e,dense:r,divider:n,disableGutters:o,selected:s,classes:u}=t,c=(0,a.Z)({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",s&&"selected"]},x,u);return(0,i.Z)({},u,c)},R=(0,c.ZP)(p.Z,{shouldForwardProp:t=>(0,l.Z)(t)||"classes"===t,name:"MuiMenuItem",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]}})(t=>{let{theme:e,ownerState:r}=t;return(0,i.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((e.vars||e).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(C.selected)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&.".concat(C.focusVisible)]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.focusOpacity,"))"):(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},["&.".concat(C.selected,":hover")]:{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / calc(").concat(e.vars.palette.action.selectedOpacity," + ").concat(e.vars.palette.action.hoverOpacity,"))"):(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?"rgba(".concat(e.vars.palette.primary.mainChannel," / ").concat(e.vars.palette.action.selectedOpacity,")"):(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&.".concat(C.focusVisible)]:{backgroundColor:(e.vars||e).palette.action.focus},["&.".concat(C.disabled)]:{opacity:(e.vars||e).palette.action.disabledOpacity},["& + .".concat(y.Z.root)]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},["& + .".concat(y.Z.inset)]:{marginLeft:52},["& .".concat(Z.Z.root)]:{marginTop:0,marginBottom:0},["& .".concat(Z.Z.inset)]:{paddingLeft:36},["& .".concat(v.Z.root)]:{minWidth:36}},!r.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{["& .".concat(v.Z.root," svg")]:{fontSize:"1.25rem"}}))});var S=o.forwardRef(function(t,e){let r;let a=(0,d.i)({props:t,name:"MuiMenuItem"}),{autoFocus:u=!1,component:c="li",dense:l=!1,divider:p=!1,disableGutters:y=!1,focusVisibleClassName:v,role:Z="menuitem",tabIndex:b,className:g}=a,x=(0,n.Z)(a,P),C=o.useContext(h.Z),S=o.useMemo(()=>({dense:l||C.dense||!1,disableGutters:y}),[C.dense,l,y]),k=o.useRef(null);(0,m.Z)(()=>{u&&k.current&&k.current.focus()},[u]);let O=(0,i.Z)({},a,{dense:S.dense,divider:p,disableGutters:y}),I=w(a),j=(0,f.Z)(k,e);return a.disabled||(r=void 0!==b?b:-1),(0,M.jsx)(h.Z.Provider,{value:S,children:(0,M.jsx)(R,(0,i.Z)({ref:j,role:Z,tabIndex:r,component:c,focusVisibleClassName:(0,s.Z)(I.focusVisible,v),className:(0,s.Z)(I.root,g)},x,{ownerState:O,classes:I}))})})},70115:function(t,e,r){r.d(e,{Z:function(){return w}});var n=r(32324),i=r(81500),o=r(35106),s=r(70316),a=r(41499),u=r(9049),c=r(65951),l=r(48442),d=r(14189),h=r(28131),p=r(8557),m=r(43513),f=r(95731),y=r(94655);let v=["component","direction","spacing","divider","children","className","useFlexGap"],Z=(0,p.Z)(),b=(0,l.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function g(t){return(0,d.Z)({props:t,name:"MuiStack",defaultTheme:Z})}let x=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],C=({ownerState:t,theme:e})=>{let r=(0,i.Z)({display:"flex",flexDirection:"column"},(0,m.k9)({theme:e},(0,m.P$)({values:t.direction,breakpoints:e.breakpoints.values}),t=>({flexDirection:t})));if(t.spacing){let n=(0,f.hB)(e),i=Object.keys(e.breakpoints.values).reduce((e,r)=>(("object"==typeof t.spacing&&null!=t.spacing[r]||"object"==typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e),{}),o=(0,m.P$)({values:t.direction,base:i}),s=(0,m.P$)({values:t.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach((t,e,r)=>{if(!o[t]){let n=e>0?o[r[e-1]]:"column";o[t]=n}}),r=(0,a.Z)(r,(0,m.k9)({theme:e},s,(e,r)=>t.useFlexGap?{gap:(0,f.NA)(n,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${x(r?o[r]:t.direction)}`]:(0,f.NA)(n,e)}}))}return(0,m.dt)(e.breakpoints,r)};var M=r(34519),P=r(28057),w=function(t={}){let{createStyledComponent:e=b,useThemeProps:r=g,componentName:a="MuiStack"}=t,l=()=>(0,c.Z)({root:["root"]},t=>(0,u.ZP)(a,t),{}),d=e(C);return o.forwardRef(function(t,e){let a=r(t),u=(0,h.Z)(a),{component:c="div",direction:p="column",spacing:m=0,divider:f,children:Z,className:b,useFlexGap:g=!1}=u,x=(0,n.Z)(u,v),C=l();return(0,y.jsx)(d,(0,i.Z)({as:c,ownerState:{direction:p,spacing:m,useFlexGap:g},ref:e,className:(0,s.Z)(C.root,b)},x,{children:f?function(t,e){let r=o.Children.toArray(t).filter(Boolean);return r.reduce((t,n,i)=>(t.push(n),i<r.length-1&&t.push(o.cloneElement(e,{key:`separator-${i}`})),t),[])}(Z,f):Z}))})}({createStyledComponent:(0,M.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>(0,P.i)({props:t,name:"MuiStack"})})},1592:function(t,e,r){r.d(e,{Z:function(){return C}});var n=r(32324),i=r(81500),o=r(35106),s=r(70316),a=r(65951),u=r(38762),c=r(34519),l=r(15651),d=r(18280),h=r(85016),p=r(29084),m=r(11379),f=r(9049);function y(t){return(0,f.ZP)("PrivateSwitchBase",t)}(0,m.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var v=r(94655);let Z=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=t=>{let{classes:e,checked:r,disabled:n,edge:i}=t,o={root:["root",r&&"checked",n&&"disabled",i&&"edge".concat((0,u.Z)(i))],input:["input"]};return(0,a.Z)(o,y,e)},g=(0,c.ZP)(p.Z,{name:"MuiSwitchBase"})(t=>{let{ownerState:e}=t;return(0,i.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})}),x=(0,c.ZP)("input",{name:"MuiSwitchBase",shouldForwardProp:l.Z})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var C=o.forwardRef(function(t,e){let{autoFocus:r,checked:o,checkedIcon:a,className:u,defaultChecked:c,disabled:l,disableFocusRipple:p=!1,edge:m=!1,icon:f,id:y,inputProps:C,inputRef:M,name:P,onBlur:w,onChange:R,onFocus:S,readOnly:k,required:O=!1,tabIndex:I,type:j,value:L}=t,N=(0,n.Z)(t,Z),[F,B]=(0,d.Z)({controlled:o,default:!!c,name:"SwitchBase",state:"checked"}),E=(0,h.Z)(),T=l;E&&void 0===T&&(T=E.disabled);let A="checkbox"===j||"radio"===j,$=(0,i.Z)({},t,{checked:F,disabled:T,disableFocusRipple:p,edge:m}),_=b($);return(0,v.jsxs)(g,(0,i.Z)({component:"span",className:(0,s.Z)(_.root,u),centerRipple:!0,focusRipple:!p,disabled:T,tabIndex:null,role:void 0,onFocus:t=>{S&&S(t),E&&E.onFocus&&E.onFocus(t)},onBlur:t=>{w&&w(t),E&&E.onBlur&&E.onBlur(t)},ownerState:$,ref:e},N,{children:[(0,v.jsx)(x,(0,i.Z)({autoFocus:r,checked:o,defaultChecked:c,className:_.input,disabled:T,id:A?y:void 0,name:P,onChange:t=>{if(t.nativeEvent.defaultPrevented)return;let e=t.target.checked;B(e),R&&R(t,e)},readOnly:k,ref:M,required:O,ownerState:$,tabIndex:I,type:j},"checkbox"===j&&void 0===L?{}:{value:L},C)),F?a:f]}))})},76492:function(t,e,r){r.d(e,{Fq:function(){return o}});var n=r(22085),i=r(34272);function o(t,e){return t=function t(e){let r;if(e.type)return e;if("#"===e.charAt(0))return t(function(t){t=t.slice(1);let e=RegExp(`.{1,${t.length>=6?2:1}}`,"g"),r=t.match(e);return r&&1===r[0].length&&(r=r.map(t=>t+t)),r?`rgb${4===r.length?"a":""}(${r.map((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3).join(", ")})`:""}(e));let i=e.indexOf("("),o=e.substring(0,i);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,n.Z)(9,e));let s=e.substring(i+1,e.length-1);if("color"===o){if(r=(s=s.split(" ")).shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw Error((0,n.Z)(10,r))}else s=s.split(",");return{type:o,values:s=s.map(t=>parseFloat(t)),colorSpace:r}}(t),e=function(t,e=0,r=1){return(0,i.Z)(t,e,r)}(e),("rgb"===t.type||"hsl"===t.type)&&(t.type+="a"),"color"===t.type?t.values[3]=`/${e}`:t.values[3]=e,function(t){let{type:e,colorSpace:r}=t,{values:n}=t;return -1!==e.indexOf("rgb")?n=n.map((t,e)=>e<3?parseInt(t,10):t):-1!==e.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==e.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${e}(${n})`}(t)}},48442:function(t,e,r){r.d(e,{Z:function(){return Z}});var n=r(81500),i=r(32324),o=r(14526),s=r(41499),a=r(8557),u=r(72686);let c=["ownerState"],l=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}function p(t,e){return e&&t&&"object"==typeof t&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}let m=(0,a.Z)(),f=t=>t?t.charAt(0).toLowerCase()+t.slice(1):t;function y({defaultTheme:t,theme:e,themeId:r}){return 0===Object.keys(e).length?t:e[r]||e}function v(t,e,r){let{ownerState:s}=e,a=(0,i.Z)(e,c),u="function"==typeof t?t((0,n.Z)({ownerState:s},a)):t;if(Array.isArray(u))return u.flatMap(t=>v(t,(0,n.Z)({ownerState:s},a),r));if(u&&"object"==typeof u&&Array.isArray(u.variants)){let{variants:t=[]}=u,e=(0,i.Z)(u,l);return t.forEach(t=>{let i=!0;if("function"==typeof t.props?i=t.props((0,n.Z)({ownerState:s},a,s)):Object.keys(t.props).forEach(e=>{(null==s?void 0:s[e])!==t.props[e]&&a[e]!==t.props[e]&&(i=!1)}),i){Array.isArray(e)||(e=[e]);let i="function"==typeof t.style?t.style((0,n.Z)({ownerState:s},a,s)):t.style;e.push(r?p((0,o.internal_serializeStyles)(i),r):i)}}),e}return r?p((0,o.internal_serializeStyles)(u),r):u}var Z=function(t={}){let{themeId:e,defaultTheme:r=m,rootShouldForwardProp:a=h,slotShouldForwardProp:c=h}=t,l=t=>(0,u.Z)((0,n.Z)({},t,{theme:y((0,n.Z)({},t,{defaultTheme:r,themeId:e}))}));return l.__mui_systemSx=!0,(t,u={})=>{var p;let m;(0,o.internal_processStyles)(t,t=>t.filter(t=>!(null!=t&&t.__mui_systemSx)));let{name:Z,slot:b,skipVariantsResolver:g,skipSx:x,overridesResolver:C=(p=f(b))?(t,e)=>e[p]:null}=u,M=(0,i.Z)(u,d),P=Z&&Z.startsWith("Mui")||b?"components":"custom",w=void 0!==g?g:b&&"Root"!==b&&"root"!==b||!1,R=x||!1,S=h;"Root"===b||"root"===b?S=a:b?S=c:"string"==typeof t&&t.charCodeAt(0)>96&&(S=void 0);let k=(0,o.default)(t,(0,n.Z)({shouldForwardProp:S,label:m},M)),O=t=>"function"==typeof t&&t.__emotion_real!==t||(0,s.P)(t)?i=>{let o=y({theme:i.theme,defaultTheme:r,themeId:e});return v(t,(0,n.Z)({},i,{theme:o}),o.modularCssLayers?P:void 0)}:t,I=(i,...o)=>{let s=O(i),a=o?o.map(O):[];Z&&C&&a.push(t=>{let i=y((0,n.Z)({},t,{defaultTheme:r,themeId:e}));if(!i.components||!i.components[Z]||!i.components[Z].styleOverrides)return null;let o=i.components[Z].styleOverrides,s={};return Object.entries(o).forEach(([e,r])=>{s[e]=v(r,(0,n.Z)({},t,{theme:i}),i.modularCssLayers?"theme":void 0)}),C(t,s)}),Z&&!w&&a.push(t=>{var i;let o=y((0,n.Z)({},t,{defaultTheme:r,themeId:e}));return v({variants:null==o||null==(i=o.components)||null==(i=i[Z])?void 0:i.variants},(0,n.Z)({},t,{theme:o}),o.modularCssLayers?"theme":void 0)}),R||a.push(l);let u=a.length-o.length;if(Array.isArray(i)&&u>0){let t=Array(u).fill("");(s=[...i,...t]).raw=[...i.raw,...t]}let c=k(s,...a);return t.muiName&&(c.muiName=t.muiName),c};return k.withConfig&&(I.withConfig=k.withConfig),I}}()},13864:function(t,e,r){r.d(e,{Z:function(){return i}});var n=r(71483);function i(t){let{theme:e,name:r,props:i}=t;return e&&e.components&&e.components[r]&&e.components[r].defaultProps?(0,n.Z)(e.components[r].defaultProps,i):i}},14189:function(t,e,r){r.d(e,{Z:function(){return o}});var n=r(13864),i=r(32730);function o(t){let{props:e,name:r,defaultTheme:o,themeId:s}=t,a=(0,i.Z)(o);return s&&(a=a[s]||a),(0,n.Z)({theme:a,name:r,props:e})}},74228:function(t,e,r){var n=r(73310);r.o(n,"useParams")&&r.d(e,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(e,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(e,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(e,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useServerInsertedHTML")&&r.d(e,{useServerInsertedHTML:function(){return n.useServerInsertedHTML}})},98091:function(t,e,r){r.d(e,{R:function(){return a},m:function(){return s}});var n=r(11430),i=r(23620),o=r(97639),s=class extends i.F{#t;#e;#r;#n;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#r=t.mutationCache,this.#e=[],this.state=t.state||a(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#i({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#i({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});let n="pending"===this.state.status,i=!this.#n.canStart();try{if(n)e();else{this.#i({type:"pending",variables:t,isPaused:i}),this.#r.config.onMutate&&await this.#r.config.onMutate(t,this,r);let e=await this.options.onMutate?.(t,r);e!==this.state.context&&this.#i({type:"pending",context:e,variables:t,isPaused:i})}let o=await this.#n.start();return await this.#r.config.onSuccess?.(o,t,this.state.context,this,r),await this.options.onSuccess?.(o,t,this.state.context,r),await this.#r.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,t,this.state.context,r),this.#i({type:"success",data:o}),o}catch(e){try{await this.#r.config.onError?.(e,t,this.state.context,this,r)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,r)}catch(t){Promise.reject(t)}try{await this.#r.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,r)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,r)}catch(t){Promise.reject(t)}throw this.#i({type:"error",error:e}),e}finally{this.#r.runNext(this)}}#i(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),n.Vr.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#r.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},20367:function(t,e,r){r.d(e,{D:function(){return l}});var n=r(35106),i=r(98091),o=r(11430),s=r(12835),a=r(80375),u=class extends s.l{#t;#o=void 0;#s;#a;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#u()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.VS)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.Ym)(e.mutationKey)!==(0,a.Ym)(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#u(),this.#c(t)}getCurrentResult(){return this.#o}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#u(),this.#c()}mutate(t,e){return this.#a=e,this.#s?.removeObserver(this),this.#s=this.#t.getMutationCache().build(this.#t,this.options),this.#s.addObserver(this),this.#s.execute(t)}#u(){let t=this.#s?.state??(0,i.R)();this.#o={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#c(t){o.Vr.batch(()=>{if(this.#a&&this.hasListeners()){let e=this.#o.variables,r=this.#o.context,n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#a.onSuccess?.(t.data,e,r,n)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(t.data,null,e,r,n)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#a.onError?.(t.error,e,r,n)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(void 0,t.error,e,r,n)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#o)})})}},c=r(58919);function l(t,e){let r=(0,c.NL)(e),[i]=n.useState(()=>new u(r,t));n.useEffect(()=>{i.setOptions(t)},[i,t]);let s=n.useSyncExternalStore(n.useCallback(t=>i.subscribe(o.Vr.batchCalls(t)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=n.useCallback((t,e)=>{i.mutate(t,e).catch(a.ZT)},[i]);if(s.error&&(0,a.L3)(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4743],{3590:function(e,t,r){Promise.resolve().then(r.bind(r,98885))},98885:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return eh}});var n=r(94655),s=r(35106),i=r(74228),a=r(7281),o=r(69899),l=r(31317),c=r(25333),d=r(76492),u=r(80620),x=r(78439),h=r(56813),m=r(26892),p=r(84840),g=r(628),j=r(41565),f=r(10721),v=r(69178),Z=r(46207),y=r(45354),b=r(35847);function S(e){var t,r,s;let{stats:i,isLoading:o}=e;if(o)return(0,n.jsx)(p.ZP,{container:!0,spacing:2,children:[0,1,2,3].map(e=>(0,n.jsx)(p.ZP,{item:!0,xs:6,md:3,children:(0,n.jsx)(g.Z,{children:(0,n.jsxs)(j.Z,{children:[(0,n.jsx)(f.Z,{variant:"text",width:"60%"}),(0,n.jsx)(f.Z,{variant:"text",width:"40%",height:40}),(0,n.jsx)(f.Z,{variant:"text",width:"80%"})]})})},e))});let c=null!==(t=null==i?void 0:i.total)&&void 0!==t?t:0,d=c>0?((null!==(r=null==i?void 0:i.byStatus.success)&&void 0!==r?r:0)/c*100).toFixed(1):"0.0",u=null!==(s=null==i?void 0:i.byStatus.failure)&&void 0!==s?s:0,x=i?Object.keys(i.byActor).length:0,h=[{title:"Total Logs",value:c.toLocaleString(),icon:(0,n.jsx)(v.Z,{fontSize:"large"}),color:"#1bd96a",description:"All audit log entries"},{title:"Success Rate",value:"".concat(d,"%"),icon:(0,n.jsx)(Z.Z,{fontSize:"large"}),color:"#22c55e",description:"Successful operations"},{title:"Failures",value:u,icon:(0,n.jsx)(y.Z,{fontSize:"large"}),color:"#ef4444",description:"Failed operations"},{title:"Active Users",value:x,icon:(0,n.jsx)(b.Z,{fontSize:"large"}),color:"#3b82f6",description:"Unique actors"}];return(0,n.jsx)(p.ZP,{container:!0,spacing:2,children:h.map(e=>(0,n.jsx)(p.ZP,{item:!0,xs:6,md:3,children:(0,n.jsx)(g.Z,{sx:{height:"100%",position:"relative",overflow:"hidden","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,height:"4px",background:e.color}},children:(0,n.jsxs)(j.Z,{children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",sx:{fontWeight:500},children:e.title}),(0,n.jsx)(a.Z,{sx:{color:e.color,opacity:.8},children:e.icon})]}),(0,n.jsx)(l.Z,{variant:"h3",component:"div",sx:{fontWeight:700,color:"text.primary",mb:1},children:e.value}),(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",children:e.description})]})})},e.title))})}var C=r(97436),w=r(62328),T=r(7178),k=r(29793),z=r(75726),N=r(30417),R=r(87716),A=r(79983),E=r(89923),I=r(10297),L=r(50880),F=r(54617),D=r(42431),P=r(81960),W=r(84284),M=r(82925);function O(e){return"server"===e?M.Xn:"player"===e?M.KK:M.xg}function U(e){let t,{filters:r,onFiltersChange:i,onExport:o}=e,[d,u]=(0,s.useState)(!0),x=(t=0,r.action&&t++,r.actor&&t++,r.targetType&&t++,r.targetName&&t++,r.status&&t++,r.from&&t++,r.to&&t++,t),h=O(r.targetType),m=(e,t)=>{let n={...r};""===t||void 0===t?delete n[e]:n[e]=t,"targetType"===e&&n.action&&!O(t).includes(n.action)&&delete n.action,n.offset=0,i(n)};return(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:d?2:0},children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,n.jsxs)(A.Z,{onClick:()=>u(!d),size:"small","aria-label":d?"Collapse filters":"Expand filters",children:[(0,n.jsx)(L.Z,{}),d?(0,n.jsx)(W.Z,{sx:{fontSize:14}}):(0,n.jsx)(P.Z,{sx:{fontSize:14}})]}),(0,n.jsx)(l.Z,{variant:"subtitle2",color:"text.secondary",children:"Filters"}),x>0&&(0,n.jsx)(c.Z,{label:x,size:"small",color:"primary",sx:{height:20,fontSize:"0.7rem"}})]}),(0,n.jsxs)(a.Z,{sx:{display:"flex",gap:1},children:[x>0&&(0,n.jsx)(N.Z,{size:"small",startIcon:(0,n.jsx)(F.Z,{}),onClick:()=>{i({limit:r.limit,sort:r.sort})},color:"inherit",children:"Clear All"}),o&&(0,n.jsx)(N.Z,{size:"small",variant:"outlined",onClick:o,children:"Export"})]})]}),(0,n.jsx)(R.Z,{in:d,children:(0,n.jsxs)(a.Z,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:2,flexWrap:"wrap"},children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",gap:1,alignItems:"center"},children:[(0,n.jsx)(C.Z,{type:"date",label:"From",size:"small",value:r.from?r.from.split("T")[0]:"",onChange:e=>{let t=e.target.value;m("from",t?"".concat(t,"T00:00:00Z"):void 0)},InputLabelProps:{shrink:!0},sx:{minWidth:150}}),(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",children:"~"}),(0,n.jsx)(C.Z,{type:"date",label:"To",size:"small",value:r.to?r.to.split("T")[0]:"",onChange:e=>{let t=e.target.value;m("to",t?"".concat(t,"T23:59:59Z"):void 0)},InputLabelProps:{shrink:!0},sx:{minWidth:150}})]}),(0,n.jsxs)(k.Z,{size:"small",sx:{minWidth:160},children:[(0,n.jsx)(z.Z,{children:"Action"}),(0,n.jsxs)(w.Z,{value:r.action||"",label:"Action",onChange:e=>m("action",e.target.value||void 0),children:[(0,n.jsx)(T.Z,{value:"",children:"All Actions"}),h.map(e=>(0,n.jsx)(T.Z,{value:e,children:M.n3[e]||e},e))]})]}),(0,n.jsx)(a.Z,{children:(0,n.jsxs)(I.Z,{value:r.targetType||"",exclusive:!0,onChange:(e,t)=>m("targetType",t||void 0),size:"small",children:[(0,n.jsx)(E.Z,{value:"","aria-label":"All targets",children:"All"}),(0,n.jsx)(E.Z,{value:"server","aria-label":"Server targets",children:"Server"}),(0,n.jsx)(E.Z,{value:"player","aria-label":"Player targets",children:"Player"})]})}),(0,n.jsx)(a.Z,{children:(0,n.jsxs)(I.Z,{value:r.status||"",exclusive:!0,onChange:(e,t)=>m("status",t||void 0),size:"small",children:[(0,n.jsx)(E.Z,{value:"","aria-label":"All statuses",children:"All"}),(0,n.jsx)(E.Z,{value:"success","aria-label":"Success only",children:"Success"}),(0,n.jsx)(E.Z,{value:"failure","aria-label":"Failure only",children:"Failure"})]})}),(0,n.jsx)(C.Z,{label:"Target Name",placeholder:"Search...",size:"small",value:r.targetName||"",onChange:e=>m("targetName",e.target.value||void 0),InputProps:{startAdornment:(0,n.jsx)(D.Z,{sx:{color:"text.secondary",mr:.5,fontSize:18}})},sx:{minWidth:160}}),(0,n.jsx)(C.Z,{label:"Actor",placeholder:"e.g., api:admin",size:"small",value:r.actor||"",onChange:e=>m("actor",e.target.value||void 0),sx:{minWidth:140}})]})})]})}var q=r(83765),K=r(62142),_=r(69123),B=r(81071),V=r(21138),X=r(84811),J=r(47001),H=r(70366),G=r(33402),Q=r(60097),Y=r(90158),$=r(58347),ee=r(73424),et=r(93017),er=r(71185),en=r(84509);function es(e){let{logs:t}=e;return 0===t.length?(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",sx:{py:2,textAlign:"center"},children:"No related logs found"}):(0,n.jsx)(Y.Z,{dense:!0,sx:{py:0},children:t.map(e=>(0,n.jsx)($.ZP,{sx:{px:0,py:1,"&:not(:last-child)":{borderBottom:"1px solid",borderColor:"divider"}},children:(0,n.jsx)(ee.Z,{primary:(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,n.jsx)(h.I,{action:e.action,size:"small"}),e.targetName&&(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",children:e.targetName})]}),secondary:function(e){let t=new Date,r=new Date(e),n=Math.floor((t.getTime()-r.getTime())/6e4),s=Math.floor(n/60);return n<60?"".concat(n,"m ago"):s<24?"".concat(s,"h ago"):"".concat(Math.floor(s/24),"d ago")}(e.timestamp)})},e.id))})}function ei(e){var t,r,i,o,c;let{log:d,open:u,onClose:x}=e,[p,g]=(0,s.useState)(0),{data:j,isLoading:f}=(0,en.VM)(null!==(t=null==d?void 0:d.id)&&void 0!==t?t:null,{enabled:u&&!!d});return(0,n.jsxs)(K.ZP,{anchor:"right",open:u,onClose:x,sx:{"& .MuiDrawer-paper":{width:{xs:"100%",sm:420},maxWidth:"100%"}},children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",p:2,borderBottom:"1px solid",borderColor:"divider"},children:[(0,n.jsx)(l.Z,{variant:"h6",component:"h2",children:"Audit Log Detail"}),(0,n.jsx)(A.Z,{onClick:x,"aria-label":"Close detail drawer",autoFocus:!0,children:(0,n.jsx)(er.Z,{})})]}),(0,n.jsx)(a.Z,{sx:{p:2,overflow:"auto",flex:1},children:d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"ID"}),(0,n.jsx)(l.Z,{variant:"body2",sx:{fontSize:"0.8rem",wordBreak:"break-all"},children:d.id})]}),(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Timestamp"}),(0,n.jsx)(l.Z,{variant:"body2",children:function(e){let t=new Date(e);return new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}).format(t)}(d.timestamp)})]}),(0,n.jsxs)(a.Z,{sx:{display:"flex",gap:3,mb:3},children:[(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Action"}),(0,n.jsx)(h.I,{action:d.action,size:"medium"})]}),(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Status"}),(0,n.jsx)(m.c,{status:d.status,size:"medium"})]})]}),(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Actor"}),(0,n.jsx)(l.Z,{variant:"body2",children:d.actor})]}),(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Target"}),(0,n.jsxs)(l.Z,{variant:"body2",children:[d.targetType,"/",d.targetName]})]}),"failure"===d.status&&d.errorMessage&&(0,n.jsx)(B.Z,{severity:"error",sx:{mb:3},children:d.errorMessage}),d.details&&Object.keys(d.details).length>0&&(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(_.Z,{sx:{mb:2}}),(0,n.jsx)(l.Z,{variant:"subtitle2",sx:{mb:1},children:"Details"}),(0,n.jsx)(V.Z,{size:"small",children:(0,n.jsx)(X.Z,{children:Object.entries(d.details).map(e=>{let[t,r]=e;return(0,n.jsxs)(H.Z,{children:[(0,n.jsx)(J.Z,{sx:{fontWeight:600,color:"text.secondary",border:"none",py:.5,pl:0,width:"40%"},children:t}),(0,n.jsx)(J.Z,{sx:{border:"none",py:.5},children:String(r)})]},t)})})})]}),(0,n.jsx)(_.Z,{sx:{mb:2}}),(0,n.jsx)(l.Z,{variant:"subtitle2",sx:{mb:1},children:"Related Logs"}),f?(0,n.jsx)(a.Z,{sx:{display:"flex",justifyContent:"center",py:3},children:(0,n.jsx)(et.Z,{size:24})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(G.Z,{value:p,onChange:(e,t)=>g(t),sx:{mb:1},children:[(0,n.jsx)(Q.Z,{label:"Same Target (".concat(null!==(r=null==j?void 0:j.relatedLogs.sameTarget.length)&&void 0!==r?r:0,")"),sx:{textTransform:"none",fontSize:"0.8rem"}}),(0,n.jsx)(Q.Z,{label:"Same Actor (".concat(null!==(i=null==j?void 0:j.relatedLogs.sameActor.length)&&void 0!==i?i:0,")"),sx:{textTransform:"none",fontSize:"0.8rem"}})]}),0===p&&(0,n.jsx)(es,{logs:null!==(o=null==j?void 0:j.relatedLogs.sameTarget)&&void 0!==o?o:[]}),1===p&&(0,n.jsx)(es,{logs:null!==(c=null==j?void 0:j.relatedLogs.sameActor)&&void 0!==c?c:[]})]})]}):(0,n.jsx)(l.Z,{color:"text.secondary",children:"No log selected"})})]})}var ea=r(99770),eo=r(62508),el=r(5682),ec=r(76678),ed=r(15761);function eu(e){let{open:t,onClose:r,filters:i,totalCount:o}=e,[c,d]=(0,s.useState)("csv"),[u,x]=(0,s.useState)(!1),[h,m]=(0,s.useState)(null),p=function(e){let t=[];return e.action&&t.push("Action: ".concat(e.action)),e.actor&&t.push("Actor: ".concat(e.actor)),e.targetType&&t.push("Type: ".concat(e.targetType)),e.targetName&&t.push("Target: ".concat(e.targetName)),e.status&&t.push("Status: ".concat(e.status)),e.from&&t.push("From: ".concat(e.from.split("T")[0])),e.to&&t.push("To: ".concat(e.to.split("T")[0])),t}(i),g=async()=>{x(!0),m(null);try{let e=function(e,t){let r=new URLSearchParams;return r.set("format",t),e.action&&r.set("action",e.action),e.actor&&r.set("actor",e.actor),e.targetType&&r.set("targetType",e.targetType),e.targetName&&r.set("targetName",e.targetName),e.status&&r.set("status",e.status),e.from&&r.set("from",e.from),e.to&&r.set("to",e.to),"/api/audit-logs/export?".concat(r.toString())}(i,c),t=await fetch(e);if(!t.ok){let e=await t.json().catch(()=>({message:"Export failed"}));throw Error(e.message||"Export failed")}let n=await t.blob(),s=window.URL.createObjectURL(n),a=document.createElement("a");a.href=s;let o=t.headers.get("Content-Disposition"),l=null==o?void 0:o.match(/filename="?([^"]+)"?/);a.download=(null==l?void 0:l[1])||"audit-logs.".concat(c),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(s),r()}catch(e){m(e instanceof Error?e.message:"Export failed")}finally{x(!1)}};return(0,n.jsxs)(ea.Z,{open:t,onClose:r,maxWidth:"sm",fullWidth:!0,children:[(0,n.jsx)(eo.Z,{children:"Export Audit Logs"}),(0,n.jsxs)(el.Z,{children:[(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"subtitle2",sx:{mb:1},children:"Format"}),(0,n.jsxs)(I.Z,{value:c,exclusive:!0,onChange:(e,t)=>t&&d(t),size:"small",children:[(0,n.jsx)(E.Z,{value:"csv",children:"CSV"}),(0,n.jsx)(E.Z,{value:"json",children:"JSON"})]})]}),(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"subtitle2",sx:{mb:1},children:"Applied Filters"}),p.length>0?(0,n.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column",gap:.5},children:p.map(e=>(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",children:e},e))}):(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",children:"No filters applied (all logs)"})]}),(0,n.jsxs)(a.Z,{sx:{mb:2},children:[(0,n.jsx)(l.Z,{variant:"subtitle2",sx:{mb:.5},children:"Estimated Rows"}),(0,n.jsxs)(l.Z,{variant:"body2",color:"text.secondary",children:[Math.min(o,5e3).toLocaleString()," rows"]})]}),o>5e3&&(0,n.jsxs)(B.Z,{severity:"warning",sx:{mb:2},children:["Export is limited to ",5e3.toLocaleString()," rows. Total matching logs: ",o.toLocaleString(),". Consider narrowing your filters for a complete export."]}),h&&(0,n.jsx)(B.Z,{severity:"error",sx:{mb:2},children:h})]}),(0,n.jsxs)(ec.Z,{children:[(0,n.jsx)(N.Z,{onClick:r,disabled:u,children:"Cancel"}),(0,n.jsx)(N.Z,{variant:"contained",startIcon:u?(0,n.jsx)(et.Z,{size:16,color:"inherit"}):(0,n.jsx)(ed.Z,{}),onClick:g,disabled:u,children:u?"Exporting...":"Export ".concat(c.toUpperCase())})]})]})}var ex=r(93757);function eh(){var e,t,r;let h=(0,i.useRouter)(),m=(0,i.useSearchParams)(),[p,g]=(0,s.useState)(()=>(function(e){let t={},r=e.get("action"),n=e.get("actor"),s=e.get("targetType"),i=e.get("targetName"),a=e.get("status"),o=e.get("from"),l=e.get("to"),c=e.get("limit"),d=e.get("offset"),u=e.get("sort");return r&&(t.action=r),n&&(t.actor=n),s&&(t.targetType=s),i&&(t.targetName=i),a&&(t.status=a),o&&(t.from=o),l&&(t.to=l),c&&(t.limit=parseInt(c,10)),d&&(t.offset=parseInt(d,10)),("timestamp:asc"===u||"timestamp:desc"===u)&&(t.sort=u),t})(m)),[j,f]=(0,s.useState)(null),[v,Z]=(0,s.useState)(!1),[y,b]=(0,s.useState)(!1),[C,w]=(0,s.useState)(0),T=(0,s.useRef)(new Set),{data:k,isLoading:z,error:N,refetch:R}=(0,en.hT)(p),{data:A,isLoading:E}=(0,en.DM)(),{isConnected:I}=(0,ex.D)({url:"/api/audit-logs/stream",enabled:!0,onMessage:(0,s.useCallback)(e=>{if("audit-log"===e.type){let t=e.data;if("id"in t&&"string"==typeof t.id){if(T.current.has(t.id))return;if(T.current.add(t.id),T.current.size>1e3){let e=Array.from(T.current);T.current=new Set(e.slice(e.length-500))}}w(e=>e+1)}},[]),reconnectInterval:3e3,maxReconnectAttempts:1/0});(0,s.useEffect)(()=>{let e=function(e){let t=new URLSearchParams;e.action&&t.set("action",e.action),e.actor&&t.set("actor",e.actor),e.targetType&&t.set("targetType",e.targetType),e.targetName&&t.set("targetName",e.targetName),e.status&&t.set("status",e.status),e.from&&t.set("from",e.from),e.to&&t.set("to",e.to),e.limit&&50!==e.limit&&t.set("limit",String(e.limit)),e.offset&&e.offset>0&&t.set("offset",String(e.offset)),e.sort&&"timestamp:desc"!==e.sort&&t.set("sort",e.sort);let r=t.toString();return r?"?".concat(r):""}(p);e!==(m.toString()?"?".concat(m.toString()):"")&&h.replace("/audit-logs".concat(e),{scroll:!1})},[p,h,m]);let L=(0,s.useCallback)(e=>{g(e),w(0)},[]),F=(0,s.useCallback)(e=>{f(e),Z(!0)},[]),D=(0,s.useCallback)(()=>{w(0),R()},[R]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z,{elevation:0,sx:{mb:4,p:3,background:e=>"linear-gradient(135deg, ".concat((0,d.Fq)(e.palette.warning.main,.1)," 0%, ").concat((0,d.Fq)(e.palette.error.main,.1)," 100%)"),borderRadius:2,border:e=>"1px solid ".concat((0,d.Fq)(e.palette.warning.main,.2))},children:(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:2},children:[(0,n.jsx)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:2,bgcolor:"warning.main",color:"warning.contrastText"},children:(0,n.jsx)(u.Z,{sx:{fontSize:32}})}),(0,n.jsxs)(a.Z,{sx:{flex:1},children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[(0,n.jsx)(l.Z,{variant:"h4",component:"h1",fontWeight:"bold",children:"Audit Log"}),(0,n.jsx)(c.Z,{icon:(0,n.jsx)(x.Z,{sx:{fontSize:10,color:I?"success.main":"text.disabled",animation:I?"pulse 2s infinite":"none","@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}}}}),label:I?"Live":"Offline",size:"small",variant:"outlined",sx:{fontSize:"0.7rem"}})]}),(0,n.jsx)(l.Z,{variant:"body1",color:"text.secondary",children:"Monitor all management activities across your servers"})]})]})}),(0,n.jsx)(a.Z,{sx:{mb:3},children:(0,n.jsx)(S,{stats:A,isLoading:E})}),C>0&&(0,n.jsx)(a.Z,{sx:{mb:2,p:1.5,textAlign:"center",bgcolor:"primary.main",color:"primary.contrastText",borderRadius:1,cursor:"pointer","&:hover":{opacity:.9}},onClick:D,role:"button","aria-label":"".concat(C," new logs, click to refresh"),children:(0,n.jsxs)(l.Z,{variant:"body2",fontWeight:600,children:[C," new ",1===C?"log":"logs"," available - Click to refresh"]})}),(0,n.jsx)(U,{filters:p,onFiltersChange:L,onExport:()=>b(!0)}),(0,n.jsx)(q.x,{logs:null!==(e=null==k?void 0:k.logs)&&void 0!==e?e:[],total:null!==(t=null==k?void 0:k.total)&&void 0!==t?t:0,isLoading:z,error:N,filters:p,onFiltersChange:L,onRowClick:F,onRetry:()=>R()}),(0,n.jsx)(ei,{log:j,open:v,onClose:()=>{Z(!1),f(null)}}),(0,n.jsx)(eu,{open:y,onClose:()=>b(!1),filters:p,totalCount:null!==(r=null==k?void 0:k.total)&&void 0!==r?r:0})]})}},56813:function(e,t,r){"use strict";r.d(t,{I:function(){return a}});var n=r(94655),s=r(25333),i=r(82925);function a(e){let{action:t,size:r="small"}=e,a=i.Lu[t]||"default",o=i.n3[t]||t;return(0,n.jsx)(s.Z,{label:o,color:a,size:r,variant:"filled",sx:{fontWeight:600,fontSize:"small"===r?"0.7rem":"0.8rem"}})}},26892:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(94655),s=r(25333),i=r(46207),a=r(43436);function o(e){let{status:t,size:r="small"}=e;return(0,n.jsx)(s.Z,{icon:"success"===t?(0,n.jsx)(i.Z,{}):(0,n.jsx)(a.Z,{}),label:"success"===t?"OK":"Error",color:"success"===t?"success":"error",size:r,variant:"outlined",sx:{fontWeight:500,fontSize:"small"===r?"0.7rem":"0.8rem"}})}},83765:function(e,t,r){"use strict";r.d(t,{x:function(){return A}});var n=r(94655),s=r(35106),i=r(7281),a=r(21138),o=r(84811),l=r(47001),c=r(53281),d=r(11254),u=r(70366),x=r(6406),h=r(69899),m=r(31317),p=r(95511),g=r(10721),j=r(81071),f=r(30417),v=r(25333),Z=r(87716),y=r(79983),b=r(89161),S=r(60236),C=r(27171),w=r(30114),T=r(69178),k=r(46725),z=r(56813),N=r(26892);function R(e){var t,r;let{log:c,onClick:d,hideTargetColumn:x}=e,[h,g]=(0,s.useState)("failure"===c.status),f=c.details&&Object.keys(c.details).length>0,T="failure"===c.status&&c.errorMessage,R=f||T,A=(t=c.targetType,r=c.targetName,"server"===t?"/servers/".concat(encodeURIComponent(r)):"player"===t?"/players":null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(u.Z,{hover:!0,sx:{cursor:"pointer","&:last-child td, &:last-child th":{border:0}},onClick:()=>null==d?void 0:d(c),tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),null==d||d(c))},role:"button","aria-label":"".concat(c.action," by ").concat(c.actor," on ").concat(c.targetName),children:[(0,n.jsx)(l.Z,{padding:"checkbox",sx:{width:48},children:R&&(0,n.jsx)(y.Z,{size:"small",onClick:e=>{e.stopPropagation(),g(!h)},"aria-label":h?"Collapse details":"Expand details",children:h?(0,n.jsx)(S.Z,{}):(0,n.jsx)(b.Z,{})})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(p.Z,{title:function(e){let t=new Date(e);return new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}).format(t)}(c.timestamp),arrow:!0,children:(0,n.jsx)(m.Z,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"nowrap"},children:function(e){let t=new Date,r=new Date(e),n=Math.floor((t.getTime()-r.getTime())/1e3),s=Math.floor(n/60),i=Math.floor(s/60),a=Math.floor(i/24);return n<60?"just now":s<60?"".concat(s,"m ago"):i<24?"".concat(i,"h ago"):a<7?"".concat(a,"d ago"):new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}).format(r)}(c.timestamp)})})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(z.I,{action:c.action})}),(0,n.jsx)(l.Z,{children:c.actor.startsWith("cli:")?(0,n.jsx)(v.Z,{label:c.actor.replace("cli:",""),size:"small",variant:"outlined",sx:{fontSize:"0.75rem"}}):(0,n.jsx)(m.Z,{variant:"body2",children:c.actor.replace("api:","")})}),!x&&(0,n.jsx)(l.Z,{children:(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},children:[function(e){switch(e){case"server":return(0,n.jsx)(C.Z,{sx:{fontSize:16,mr:.5,color:"text.secondary"}});case"player":return(0,n.jsx)(w.Z,{sx:{fontSize:16,mr:.5,color:"text.secondary"}});default:return null}}(c.targetType),A?(0,n.jsx)(k.default,{href:A,style:{textDecoration:"none"},onClick:e=>e.stopPropagation(),children:(0,n.jsx)(m.Z,{variant:"body2",sx:{color:"primary.main","&:hover":{textDecoration:"underline"}},children:c.targetName})}):(0,n.jsx)(m.Z,{variant:"body2",children:c.targetName})]})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(N.c,{status:c.status})})]}),R&&(0,n.jsx)(u.Z,{children:(0,n.jsx)(l.Z,{sx:{py:0},colSpan:x?5:6,children:(0,n.jsx)(Z.Z,{in:h,timeout:"auto",unmountOnExit:!0,children:(0,n.jsxs)(i.Z,{sx:{py:2,px:2},children:[T&&(0,n.jsx)(j.Z,{severity:"error",sx:{mb:2},children:c.errorMessage}),f&&(0,n.jsxs)(i.Z,{children:[(0,n.jsx)(m.Z,{variant:"caption",color:"text.secondary",sx:{mb:1,display:"block"},children:"Details"}),(0,n.jsx)(a.Z,{size:"small",sx:{width:"auto"},children:(0,n.jsx)(o.Z,{children:Object.entries(c.details).map(e=>{let[t,r]=e;return(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(l.Z,{sx:{fontWeight:600,color:"text.secondary",border:"none",py:.5,pl:0},children:t}),(0,n.jsx)(l.Z,{sx:{border:"none",py:.5},children:String(r)})]},t)})})})]})]})})})})]})}function A(e){let{logs:t,total:r,isLoading:s,error:i,filters:p,onFiltersChange:v,onRowClick:Z,onRetry:y,hideTargetColumn:b,rowsPerPageOptions:S=[25,50,100]}=e,C=Math.floor((p.offset||0)/(p.limit||50)),w=p.limit||50;return s?(0,n.jsx)(h.Z,{children:(0,n.jsx)(c.Z,{children:(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(d.Z,{children:(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(l.Z,{padding:"checkbox"}),(0,n.jsx)(l.Z,{children:"Timestamp"}),(0,n.jsx)(l.Z,{children:"Action"}),(0,n.jsx)(l.Z,{children:"Actor"}),!b&&(0,n.jsx)(l.Z,{children:"Target"}),(0,n.jsx)(l.Z,{children:"Status"})]})}),(0,n.jsx)(o.Z,{children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(l.Z,{padding:"checkbox"}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(g.Z,{variant:"text",width:80})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(g.Z,{variant:"rounded",width:70,height:24})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(g.Z,{variant:"text",width:60})}),!b&&(0,n.jsx)(l.Z,{children:(0,n.jsx)(g.Z,{variant:"text",width:100})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(g.Z,{variant:"rounded",width:50,height:24})})]},t))})]})})}):i?(0,n.jsx)(j.Z,{severity:"error",action:y&&(0,n.jsx)(f.Z,{color:"inherit",size:"small",onClick:y,children:"Retry"}),children:i.message||"Failed to load audit logs"}):0===t.length?(0,n.jsxs)(h.Z,{sx:{p:6,textAlign:"center"},children:[(0,n.jsx)(T.Z,{sx:{fontSize:64,color:"text.disabled",mb:2}}),(0,n.jsx)(m.Z,{variant:"h6",color:"text.secondary",gutterBottom:!0,children:"No audit logs found"}),(0,n.jsx)(m.Z,{variant:"body2",color:"text.disabled",sx:{mb:2},children:"Try adjusting your filters or check back later."}),(0,n.jsx)(f.Z,{variant:"outlined",size:"small",onClick:()=>v({limit:p.limit,sort:p.sort}),children:"Reset Filters"})]}):(0,n.jsxs)(h.Z,{children:[(0,n.jsx)(c.Z,{sx:{overflowX:"auto"},children:(0,n.jsxs)(a.Z,{size:"small",children:[(0,n.jsx)(d.Z,{children:(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(l.Z,{padding:"checkbox",sx:{width:48}}),(0,n.jsx)(l.Z,{sx:{fontWeight:600,whiteSpace:"nowrap"},children:"Timestamp"}),(0,n.jsx)(l.Z,{sx:{fontWeight:600},children:"Action"}),(0,n.jsx)(l.Z,{sx:{fontWeight:600},children:"Actor"}),!b&&(0,n.jsx)(l.Z,{sx:{fontWeight:600},children:"Target"}),(0,n.jsx)(l.Z,{sx:{fontWeight:600},children:"Status"})]})}),(0,n.jsx)(o.Z,{children:t.map(e=>(0,n.jsx)(R,{log:e,onClick:Z,hideTargetColumn:b},e.id))})]})}),(0,n.jsx)(x.Z,{component:"div",count:r,page:C,onPageChange:(e,t)=>{v({...p,offset:t*w})},rowsPerPage:w,onRowsPerPageChange:e=>{let t=parseInt(e.target.value,10);v({...p,limit:t,offset:0})},rowsPerPageOptions:S,"aria-label":"Audit log pagination"})]})}},42936:function(e,t,r){"use strict";async function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={...t.headers};t.body&&(r["Content-Type"]="application/json");let n=await fetch(e,{...t,headers:r});if(!n.ok){let e=await n.json().catch(()=>({error:"UnknownError",message:n.statusText})),t=Error(e.message);throw t.statusCode=n.status,t.code=e.error,t}return n.json()}r.d(t,{SC:function(){return n}})},84509:function(e,t,r){"use strict";r.d(t,{DM:function(){return a},HZ:function(){return l},VM:function(){return o},hT:function(){return i},oL:function(){return c}});var n=r(98324),s=r(42936);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=function(e){let t=new URLSearchParams;e.action&&t.set("action",e.action),e.actor&&t.set("actor",e.actor),e.targetType&&t.set("targetType",e.targetType),e.targetName&&t.set("targetName",e.targetName),e.status&&t.set("status",e.status),e.from&&t.set("from",e.from),e.to&&t.set("to",e.to),void 0!==e.limit&&t.set("limit",String(e.limit)),void 0!==e.offset&&t.set("offset",String(e.offset)),e.sort&&t.set("sort",e.sort);let r=t.toString();return r?"?".concat(r):""}(e);return(0,n.a)({queryKey:["audit-logs",e],queryFn:()=>(0,s.SC)("/api/audit-logs".concat(r)),enabled:(null==t?void 0:t.enabled)!==!1})}function a(e){return(0,n.a)({queryKey:["audit-logs","stats"],queryFn:()=>(0,s.SC)("/api/audit-logs/stats"),enabled:(null==e?void 0:e.enabled)!==!1,refetchInterval:3e4})}function o(e,t){return(0,n.a)({queryKey:["audit-logs",e],queryFn:()=>(0,s.SC)("/api/audit-logs/".concat(encodeURIComponent(e))),enabled:(null==t?void 0:t.enabled)!==!1&&!!e})}function l(e,t){var r;return i({targetType:"server",targetName:e,limit:null!==(r=null==t?void 0:t.limit)&&void 0!==r?r:20,...null==t?void 0:t.extraParams},{enabled:(null==t?void 0:t.enabled)!==!1&&!!e})}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return i({limit:e,sort:"timestamp:desc"})}},93757:function(e,t,r){"use strict";r.d(t,{D:function(){return i}});var n=r(35106);class s{connect(e){this.options=e,this.shouldReconnect=!0,this.establishConnection()}establishConnection(){this.options&&(this.updateState("connecting"),this.eventSource&&this.eventSource.close(),this.eventSource=new EventSource(this.options.url,{withCredentials:this.options.withCredentials||!1}),this.eventSource.onopen=()=>{this.updateState("connected"),this.retryCount=0,this.lastError=null},this.eventSource.onmessage=e=>{if(!e.data.startsWith(":"))try{var t,r;let n=JSON.parse(e.data);null===(r=this.options)||void 0===r||null===(t=r.onMessage)||void 0===t||t.call(r,n)}catch(e){console.warn("Failed to parse SSE message:",e)}},this.eventSource.onerror=()=>{var e,t;let r={message:"SSE connection error",code:"CONNECTION_ERROR",retryCount:this.retryCount,timestamp:new Date};this.lastError=r,this.updateState("error"),null===(t=this.options)||void 0===t||null===(e=t.onError)||void 0===e||e.call(t,r),this.shouldReconnect&&this.scheduleReconnect()})}scheduleReconnect(){var e,t;if(!this.options)return;let r=null!==(e=this.options.maxReconnectAttempts)&&void 0!==e?e:1/0;if(this.retryCount>=r)return;this.reconnectTimer&&clearTimeout(this.reconnectTimer);let n=null!==(t=this.options.reconnectInterval)&&void 0!==t?t:3e3;this.reconnectTimer=setTimeout(()=>{this.retryCount++,this.establishConnection()},n)}disconnect(){this.shouldReconnect=!1,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.updateState("disconnected")}getState(){return this.state}isConnected(){return"connected"===this.state}getLastError(){return this.lastError}getRetryCount(){return this.retryCount}reconnect(){this.retryCount++,this.shouldReconnect=!0,this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.establishConnection()}updateState(e){var t,r;this.state=e,null===(r=this.options)||void 0===r||null===(t=r.onStateChange)||void 0===t||t.call(r,e)}constructor(){this.eventSource=null,this.state="disconnected",this.retryCount=0,this.lastError=null,this.reconnectTimer=null,this.options=null,this.shouldReconnect=!0}}function i(e){let{url:t,onMessage:r,onError:i,reconnectInterval:a=3e3,maxReconnectAttempts:o=1/0,enabled:l=!0,withCredentials:c=!1}=e,[d,u]=(0,n.useState)(null),[x,h]=(0,n.useState)("disconnected"),[m,p]=(0,n.useState)(null),[g,j]=(0,n.useState)(0),f=(0,n.useRef)(null),v=(0,n.useCallback)(e=>{u(e),null==r||r(e)},[r]),Z=(0,n.useCallback)(e=>{h(e),"connected"===e&&j(0)},[]),y=(0,n.useCallback)(e=>{p(e),"number"==typeof e.retryCount&&j(e.retryCount),null==i||i(e)},[i]),b=(0,n.useCallback)(()=>{f.current&&(f.current.reconnect(),j(f.current.getRetryCount()))},[]),S=(0,n.useCallback)(()=>{f.current&&f.current.disconnect()},[]);return(0,n.useEffect)(()=>{if(!l){f.current&&(f.current.disconnect(),f.current=null);return}return f.current||(f.current=new s),f.current.connect({url:t,onMessage:v,onStateChange:Z,onError:y,reconnectInterval:a,maxReconnectAttempts:o,withCredentials:c}),()=>{f.current&&(f.current.disconnect(),f.current=null)}},[t,l,a,o,c,v,Z,y]),{data:d,isConnected:"connected"===x,state:x,error:m,retryCount:g,reconnect:b,disconnect:S}}},82925:function(e,t,r){"use strict";r.d(t,{KK:function(){return o},Lu:function(){return n},Xn:function(){return a},n3:function(){return s},xg:function(){return i}});let n={"server.create":"success","server.delete":"error","server.start":"info","server.stop":"warning","server.restart":"secondary","player.whitelist.add":"success","player.whitelist.remove":"warning","player.ban":"error","player.unban":"success","player.op":"info","player.deop":"warning","player.kick":"error","audit.purge":"default"},s={"server.create":"Create","server.delete":"Delete","server.start":"Start","server.stop":"Stop","server.restart":"Restart","player.whitelist.add":"Whitelist Add","player.whitelist.remove":"Whitelist Remove","player.ban":"Ban","player.unban":"Unban","player.op":"Op","player.deop":"Deop","player.kick":"Kick","audit.purge":"Purge"},i=["server.create","server.delete","server.start","server.stop","server.restart","player.whitelist.add","player.whitelist.remove","player.ban","player.unban","player.op","player.deop","player.kick","audit.purge"],a=["server.create","server.delete","server.start","server.stop","server.restart"],o=["player.whitelist.add","player.whitelist.remove","player.ban","player.unban","player.op","player.deop","player.kick"]}},function(e){e.O(0,[6812,9760,5004,7296,7436,1071,540,9986,2538,5511,3938,55,2844,4920,8347,7632,4302,6648,310,3669,2757,1744],function(){return e(e.s=3590)}),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4743],{3590:function(e,t,r){Promise.resolve().then(r.bind(r,98885))},98885:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return eh}});var n=r(94655),s=r(35106),i=r(74228),a=r(7281),o=r(69899),l=r(31317),c=r(25333),d=r(76492),u=r(80620),x=r(78439),h=r(56813),m=r(26892),p=r(84840),g=r(628),j=r(41565),f=r(10721),v=r(69178),Z=r(46207),y=r(45354),b=r(35847);function S(e){var t,r,s;let{stats:i,isLoading:o}=e;if(o)return(0,n.jsx)(p.ZP,{container:!0,spacing:2,children:[0,1,2,3].map(e=>(0,n.jsx)(p.ZP,{item:!0,xs:6,md:3,children:(0,n.jsx)(g.Z,{children:(0,n.jsxs)(j.Z,{children:[(0,n.jsx)(f.Z,{variant:"text",width:"60%"}),(0,n.jsx)(f.Z,{variant:"text",width:"40%",height:40}),(0,n.jsx)(f.Z,{variant:"text",width:"80%"})]})})},e))});let c=null!==(t=null==i?void 0:i.total)&&void 0!==t?t:0,d=c>0?((null!==(r=null==i?void 0:i.byStatus.success)&&void 0!==r?r:0)/c*100).toFixed(1):"0.0",u=null!==(s=null==i?void 0:i.byStatus.failure)&&void 0!==s?s:0,x=i?Object.keys(i.byActor).length:0,h=[{title:"Total Logs",value:c.toLocaleString(),icon:(0,n.jsx)(v.Z,{fontSize:"large"}),color:"#1bd96a",description:"All audit log entries"},{title:"Success Rate",value:"".concat(d,"%"),icon:(0,n.jsx)(Z.Z,{fontSize:"large"}),color:"#22c55e",description:"Successful operations"},{title:"Failures",value:u,icon:(0,n.jsx)(y.Z,{fontSize:"large"}),color:"#ef4444",description:"Failed operations"},{title:"Active Users",value:x,icon:(0,n.jsx)(b.Z,{fontSize:"large"}),color:"#3b82f6",description:"Unique actors"}];return(0,n.jsx)(p.ZP,{container:!0,spacing:2,children:h.map(e=>(0,n.jsx)(p.ZP,{item:!0,xs:6,md:3,children:(0,n.jsx)(g.Z,{sx:{height:"100%",position:"relative",overflow:"hidden","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,height:"4px",background:e.color}},children:(0,n.jsxs)(j.Z,{children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",sx:{fontWeight:500},children:e.title}),(0,n.jsx)(a.Z,{sx:{color:e.color,opacity:.8},children:e.icon})]}),(0,n.jsx)(l.Z,{variant:"h3",component:"div",sx:{fontWeight:700,color:"text.primary",mb:1},children:e.value}),(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",children:e.description})]})})},e.title))})}var C=r(97436),w=r(62328),T=r(7178),k=r(29793),z=r(75726),N=r(30417),R=r(87716),A=r(79983),E=r(89923),I=r(10297),L=r(50880),F=r(54617),D=r(42431),P=r(81960),W=r(84284),M=r(82925);function O(e){return"server"===e?M.Xn:"player"===e?M.KK:M.xg}function U(e){let t,{filters:r,onFiltersChange:i,onExport:o}=e,[d,u]=(0,s.useState)(!0),x=(t=0,r.action&&t++,r.actor&&t++,r.targetType&&t++,r.targetName&&t++,r.status&&t++,r.from&&t++,r.to&&t++,t),h=O(r.targetType),m=(e,t)=>{let n={...r};""===t||void 0===t?delete n[e]:n[e]=t,"targetType"===e&&n.action&&!O(t).includes(n.action)&&delete n.action,n.offset=0,i(n)};return(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:d?2:0},children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,n.jsxs)(A.Z,{onClick:()=>u(!d),size:"small","aria-label":d?"Collapse filters":"Expand filters",children:[(0,n.jsx)(L.Z,{}),d?(0,n.jsx)(W.Z,{sx:{fontSize:14}}):(0,n.jsx)(P.Z,{sx:{fontSize:14}})]}),(0,n.jsx)(l.Z,{variant:"subtitle2",color:"text.secondary",children:"Filters"}),x>0&&(0,n.jsx)(c.Z,{label:x,size:"small",color:"primary",sx:{height:20,fontSize:"0.7rem"}})]}),(0,n.jsxs)(a.Z,{sx:{display:"flex",gap:1},children:[x>0&&(0,n.jsx)(N.Z,{size:"small",startIcon:(0,n.jsx)(F.Z,{}),onClick:()=>{i({limit:r.limit,sort:r.sort})},color:"inherit",children:"Clear All"}),o&&(0,n.jsx)(N.Z,{size:"small",variant:"outlined",onClick:o,children:"Export"})]})]}),(0,n.jsx)(R.Z,{in:d,children:(0,n.jsxs)(a.Z,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:2,flexWrap:"wrap"},children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",gap:1,alignItems:"center"},children:[(0,n.jsx)(C.Z,{type:"date",label:"From",size:"small",value:r.from?r.from.split("T")[0]:"",onChange:e=>{let t=e.target.value;m("from",t?"".concat(t,"T00:00:00Z"):void 0)},InputLabelProps:{shrink:!0},sx:{minWidth:150}}),(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",children:"~"}),(0,n.jsx)(C.Z,{type:"date",label:"To",size:"small",value:r.to?r.to.split("T")[0]:"",onChange:e=>{let t=e.target.value;m("to",t?"".concat(t,"T23:59:59Z"):void 0)},InputLabelProps:{shrink:!0},sx:{minWidth:150}})]}),(0,n.jsxs)(k.Z,{size:"small",sx:{minWidth:160},children:[(0,n.jsx)(z.Z,{children:"Action"}),(0,n.jsxs)(w.Z,{value:r.action||"",label:"Action",onChange:e=>m("action",e.target.value||void 0),children:[(0,n.jsx)(T.Z,{value:"",children:"All Actions"}),h.map(e=>(0,n.jsx)(T.Z,{value:e,children:M.n3[e]||e},e))]})]}),(0,n.jsx)(a.Z,{children:(0,n.jsxs)(I.Z,{value:r.targetType||"",exclusive:!0,onChange:(e,t)=>m("targetType",t||void 0),size:"small",children:[(0,n.jsx)(E.Z,{value:"","aria-label":"All targets",children:"All"}),(0,n.jsx)(E.Z,{value:"server","aria-label":"Server targets",children:"Server"}),(0,n.jsx)(E.Z,{value:"player","aria-label":"Player targets",children:"Player"})]})}),(0,n.jsx)(a.Z,{children:(0,n.jsxs)(I.Z,{value:r.status||"",exclusive:!0,onChange:(e,t)=>m("status",t||void 0),size:"small",children:[(0,n.jsx)(E.Z,{value:"","aria-label":"All statuses",children:"All"}),(0,n.jsx)(E.Z,{value:"success","aria-label":"Success only",children:"Success"}),(0,n.jsx)(E.Z,{value:"failure","aria-label":"Failure only",children:"Failure"})]})}),(0,n.jsx)(C.Z,{label:"Target Name",placeholder:"Search...",size:"small",value:r.targetName||"",onChange:e=>m("targetName",e.target.value||void 0),InputProps:{startAdornment:(0,n.jsx)(D.Z,{sx:{color:"text.secondary",mr:.5,fontSize:18}})},sx:{minWidth:160}}),(0,n.jsx)(C.Z,{label:"Actor",placeholder:"e.g., api:admin",size:"small",value:r.actor||"",onChange:e=>m("actor",e.target.value||void 0),sx:{minWidth:140}})]})})]})}var q=r(83765),K=r(62142),_=r(69123),B=r(81071),V=r(21138),X=r(84811),J=r(47001),H=r(70366),G=r(33402),Q=r(60097),Y=r(90158),$=r(58347),ee=r(73424),et=r(93017),er=r(71185),en=r(84509);function es(e){let{logs:t}=e;return 0===t.length?(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",sx:{py:2,textAlign:"center"},children:"No related logs found"}):(0,n.jsx)(Y.Z,{dense:!0,sx:{py:0},children:t.map(e=>(0,n.jsx)($.ZP,{sx:{px:0,py:1,"&:not(:last-child)":{borderBottom:"1px solid",borderColor:"divider"}},children:(0,n.jsx)(ee.Z,{primary:(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,n.jsx)(h.I,{action:e.action,size:"small"}),e.targetName&&(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",children:e.targetName})]}),secondary:function(e){let t=new Date,r=new Date(e),n=Math.floor((t.getTime()-r.getTime())/6e4),s=Math.floor(n/60);return n<60?"".concat(n,"m ago"):s<24?"".concat(s,"h ago"):"".concat(Math.floor(s/24),"d ago")}(e.timestamp)})},e.id))})}function ei(e){var t,r,i,o,c;let{log:d,open:u,onClose:x}=e,[p,g]=(0,s.useState)(0),{data:j,isLoading:f}=(0,en.VM)(null!==(t=null==d?void 0:d.id)&&void 0!==t?t:null,{enabled:u&&!!d});return(0,n.jsxs)(K.ZP,{anchor:"right",open:u,onClose:x,sx:{"& .MuiDrawer-paper":{width:{xs:"100%",sm:420},maxWidth:"100%"}},children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",p:2,borderBottom:"1px solid",borderColor:"divider"},children:[(0,n.jsx)(l.Z,{variant:"h6",component:"h2",children:"Audit Log Detail"}),(0,n.jsx)(A.Z,{onClick:x,"aria-label":"Close detail drawer",autoFocus:!0,children:(0,n.jsx)(er.Z,{})})]}),(0,n.jsx)(a.Z,{sx:{p:2,overflow:"auto",flex:1},children:d?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"ID"}),(0,n.jsx)(l.Z,{variant:"body2",sx:{fontSize:"0.8rem",wordBreak:"break-all"},children:d.id})]}),(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Timestamp"}),(0,n.jsx)(l.Z,{variant:"body2",children:function(e){let t=new Date(e);return new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}).format(t)}(d.timestamp)})]}),(0,n.jsxs)(a.Z,{sx:{display:"flex",gap:3,mb:3},children:[(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Action"}),(0,n.jsx)(h.I,{action:d.action,size:"medium"})]}),(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Status"}),(0,n.jsx)(m.c,{status:d.status,size:"medium"})]})]}),(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Actor"}),(0,n.jsx)(l.Z,{variant:"body2",children:d.actor})]}),(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:"Target"}),(0,n.jsxs)(l.Z,{variant:"body2",children:[d.targetType,"/",d.targetName]})]}),"failure"===d.status&&d.errorMessage&&(0,n.jsx)(B.Z,{severity:"error",sx:{mb:3},children:d.errorMessage}),d.details&&Object.keys(d.details).length>0&&(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(_.Z,{sx:{mb:2}}),(0,n.jsx)(l.Z,{variant:"subtitle2",sx:{mb:1},children:"Details"}),(0,n.jsx)(V.Z,{size:"small",children:(0,n.jsx)(X.Z,{children:Object.entries(d.details).map(e=>{let[t,r]=e;return(0,n.jsxs)(H.Z,{children:[(0,n.jsx)(J.Z,{sx:{fontWeight:600,color:"text.secondary",border:"none",py:.5,pl:0,width:"40%"},children:t}),(0,n.jsx)(J.Z,{sx:{border:"none",py:.5},children:String(r)})]},t)})})})]}),(0,n.jsx)(_.Z,{sx:{mb:2}}),(0,n.jsx)(l.Z,{variant:"subtitle2",sx:{mb:1},children:"Related Logs"}),f?(0,n.jsx)(a.Z,{sx:{display:"flex",justifyContent:"center",py:3},children:(0,n.jsx)(et.Z,{size:24})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(G.Z,{value:p,onChange:(e,t)=>g(t),sx:{mb:1},children:[(0,n.jsx)(Q.Z,{label:"Same Target (".concat(null!==(r=null==j?void 0:j.relatedLogs.sameTarget.length)&&void 0!==r?r:0,")"),sx:{textTransform:"none",fontSize:"0.8rem"}}),(0,n.jsx)(Q.Z,{label:"Same Actor (".concat(null!==(i=null==j?void 0:j.relatedLogs.sameActor.length)&&void 0!==i?i:0,")"),sx:{textTransform:"none",fontSize:"0.8rem"}})]}),0===p&&(0,n.jsx)(es,{logs:null!==(o=null==j?void 0:j.relatedLogs.sameTarget)&&void 0!==o?o:[]}),1===p&&(0,n.jsx)(es,{logs:null!==(c=null==j?void 0:j.relatedLogs.sameActor)&&void 0!==c?c:[]})]})]}):(0,n.jsx)(l.Z,{color:"text.secondary",children:"No log selected"})})]})}var ea=r(99770),eo=r(62508),el=r(5682),ec=r(76678),ed=r(15761);function eu(e){let{open:t,onClose:r,filters:i,totalCount:o}=e,[c,d]=(0,s.useState)("csv"),[u,x]=(0,s.useState)(!1),[h,m]=(0,s.useState)(null),p=function(e){let t=[];return e.action&&t.push("Action: ".concat(e.action)),e.actor&&t.push("Actor: ".concat(e.actor)),e.targetType&&t.push("Type: ".concat(e.targetType)),e.targetName&&t.push("Target: ".concat(e.targetName)),e.status&&t.push("Status: ".concat(e.status)),e.from&&t.push("From: ".concat(e.from.split("T")[0])),e.to&&t.push("To: ".concat(e.to.split("T")[0])),t}(i),g=async()=>{x(!0),m(null);try{let e=function(e,t){let r=new URLSearchParams;return r.set("format",t),e.action&&r.set("action",e.action),e.actor&&r.set("actor",e.actor),e.targetType&&r.set("targetType",e.targetType),e.targetName&&r.set("targetName",e.targetName),e.status&&r.set("status",e.status),e.from&&r.set("from",e.from),e.to&&r.set("to",e.to),"/api/audit-logs/export?".concat(r.toString())}(i,c),t=await fetch(e);if(!t.ok){let e=await t.json().catch(()=>({message:"Export failed"}));throw Error(e.message||"Export failed")}let n=await t.blob(),s=window.URL.createObjectURL(n),a=document.createElement("a");a.href=s;let o=t.headers.get("Content-Disposition"),l=null==o?void 0:o.match(/filename="?([^"]+)"?/);a.download=(null==l?void 0:l[1])||"audit-logs.".concat(c),document.body.appendChild(a),a.click(),document.body.removeChild(a),window.URL.revokeObjectURL(s),r()}catch(e){m(e instanceof Error?e.message:"Export failed")}finally{x(!1)}};return(0,n.jsxs)(ea.Z,{open:t,onClose:r,maxWidth:"sm",fullWidth:!0,children:[(0,n.jsx)(eo.Z,{children:"Export Audit Logs"}),(0,n.jsxs)(el.Z,{children:[(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"subtitle2",sx:{mb:1},children:"Format"}),(0,n.jsxs)(I.Z,{value:c,exclusive:!0,onChange:(e,t)=>t&&d(t),size:"small",children:[(0,n.jsx)(E.Z,{value:"csv",children:"CSV"}),(0,n.jsx)(E.Z,{value:"json",children:"JSON"})]})]}),(0,n.jsxs)(a.Z,{sx:{mb:3},children:[(0,n.jsx)(l.Z,{variant:"subtitle2",sx:{mb:1},children:"Applied Filters"}),p.length>0?(0,n.jsx)(a.Z,{sx:{display:"flex",flexDirection:"column",gap:.5},children:p.map(e=>(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",children:e},e))}):(0,n.jsx)(l.Z,{variant:"body2",color:"text.secondary",children:"No filters applied (all logs)"})]}),(0,n.jsxs)(a.Z,{sx:{mb:2},children:[(0,n.jsx)(l.Z,{variant:"subtitle2",sx:{mb:.5},children:"Estimated Rows"}),(0,n.jsxs)(l.Z,{variant:"body2",color:"text.secondary",children:[Math.min(o,5e3).toLocaleString()," rows"]})]}),o>5e3&&(0,n.jsxs)(B.Z,{severity:"warning",sx:{mb:2},children:["Export is limited to ",5e3.toLocaleString()," rows. Total matching logs: ",o.toLocaleString(),". Consider narrowing your filters for a complete export."]}),h&&(0,n.jsx)(B.Z,{severity:"error",sx:{mb:2},children:h})]}),(0,n.jsxs)(ec.Z,{children:[(0,n.jsx)(N.Z,{onClick:r,disabled:u,children:"Cancel"}),(0,n.jsx)(N.Z,{variant:"contained",startIcon:u?(0,n.jsx)(et.Z,{size:16,color:"inherit"}):(0,n.jsx)(ed.Z,{}),onClick:g,disabled:u,children:u?"Exporting...":"Export ".concat(c.toUpperCase())})]})]})}var ex=r(93757);function eh(){var e,t,r;let h=(0,i.useRouter)(),m=(0,i.useSearchParams)(),[p,g]=(0,s.useState)(()=>(function(e){let t={},r=e.get("action"),n=e.get("actor"),s=e.get("targetType"),i=e.get("targetName"),a=e.get("status"),o=e.get("from"),l=e.get("to"),c=e.get("limit"),d=e.get("offset"),u=e.get("sort");return r&&(t.action=r),n&&(t.actor=n),s&&(t.targetType=s),i&&(t.targetName=i),a&&(t.status=a),o&&(t.from=o),l&&(t.to=l),c&&(t.limit=parseInt(c,10)),d&&(t.offset=parseInt(d,10)),("timestamp:asc"===u||"timestamp:desc"===u)&&(t.sort=u),t})(m)),[j,f]=(0,s.useState)(null),[v,Z]=(0,s.useState)(!1),[y,b]=(0,s.useState)(!1),[C,w]=(0,s.useState)(0),T=(0,s.useRef)(new Set),{data:k,isLoading:z,error:N,refetch:R}=(0,en.hT)(p),{data:A,isLoading:E}=(0,en.DM)(),{isConnected:I}=(0,ex.D)({url:"/api/audit-logs/stream",enabled:!0,onMessage:(0,s.useCallback)(e=>{if("audit-log"===e.type){let t=e.data;if("id"in t&&"string"==typeof t.id){if(T.current.has(t.id))return;if(T.current.add(t.id),T.current.size>1e3){let e=Array.from(T.current);T.current=new Set(e.slice(e.length-500))}}w(e=>e+1)}},[]),reconnectInterval:3e3,maxReconnectAttempts:1/0});(0,s.useEffect)(()=>{let e=function(e){let t=new URLSearchParams;e.action&&t.set("action",e.action),e.actor&&t.set("actor",e.actor),e.targetType&&t.set("targetType",e.targetType),e.targetName&&t.set("targetName",e.targetName),e.status&&t.set("status",e.status),e.from&&t.set("from",e.from),e.to&&t.set("to",e.to),e.limit&&50!==e.limit&&t.set("limit",String(e.limit)),e.offset&&e.offset>0&&t.set("offset",String(e.offset)),e.sort&&"timestamp:desc"!==e.sort&&t.set("sort",e.sort);let r=t.toString();return r?"?".concat(r):""}(p);e!==(m.toString()?"?".concat(m.toString()):"")&&h.replace("/audit-logs".concat(e),{scroll:!1})},[p,h,m]);let L=(0,s.useCallback)(e=>{g(e),w(0)},[]),F=(0,s.useCallback)(e=>{f(e),Z(!0)},[]),D=(0,s.useCallback)(()=>{w(0),R()},[R]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Z,{elevation:0,sx:{mb:4,p:3,background:e=>"linear-gradient(135deg, ".concat((0,d.Fq)(e.palette.warning.main,.1)," 0%, ").concat((0,d.Fq)(e.palette.error.main,.1)," 100%)"),borderRadius:2,border:e=>"1px solid ".concat((0,d.Fq)(e.palette.warning.main,.2))},children:(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:2},children:[(0,n.jsx)(a.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:2,bgcolor:"warning.main",color:"warning.contrastText"},children:(0,n.jsx)(u.Z,{sx:{fontSize:32}})}),(0,n.jsxs)(a.Z,{sx:{flex:1},children:[(0,n.jsxs)(a.Z,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[(0,n.jsx)(l.Z,{variant:"h4",component:"h1",fontWeight:"bold",children:"Audit Log"}),(0,n.jsx)(c.Z,{icon:(0,n.jsx)(x.Z,{sx:{fontSize:10,color:I?"success.main":"text.disabled",animation:I?"pulse 2s infinite":"none","@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}}}}),label:I?"Live":"Offline",size:"small",variant:"outlined",sx:{fontSize:"0.7rem"}})]}),(0,n.jsx)(l.Z,{variant:"body1",color:"text.secondary",children:"Monitor all management activities across your servers"})]})]})}),(0,n.jsx)(a.Z,{sx:{mb:3},children:(0,n.jsx)(S,{stats:A,isLoading:E})}),C>0&&(0,n.jsx)(a.Z,{sx:{mb:2,p:1.5,textAlign:"center",bgcolor:"primary.main",color:"primary.contrastText",borderRadius:1,cursor:"pointer","&:hover":{opacity:.9}},onClick:D,role:"button","aria-label":"".concat(C," new logs, click to refresh"),children:(0,n.jsxs)(l.Z,{variant:"body2",fontWeight:600,children:[C," new ",1===C?"log":"logs"," available - Click to refresh"]})}),(0,n.jsx)(U,{filters:p,onFiltersChange:L,onExport:()=>b(!0)}),(0,n.jsx)(q.x,{logs:null!==(e=null==k?void 0:k.logs)&&void 0!==e?e:[],total:null!==(t=null==k?void 0:k.total)&&void 0!==t?t:0,isLoading:z,error:N,filters:p,onFiltersChange:L,onRowClick:F,onRetry:()=>R()}),(0,n.jsx)(ei,{log:j,open:v,onClose:()=>{Z(!1),f(null)}}),(0,n.jsx)(eu,{open:y,onClose:()=>b(!1),filters:p,totalCount:null!==(r=null==k?void 0:k.total)&&void 0!==r?r:0})]})}},56813:function(e,t,r){"use strict";r.d(t,{I:function(){return a}});var n=r(94655),s=r(25333),i=r(82925);function a(e){let{action:t,size:r="small"}=e,a=i.Lu[t]||"default",o=i.n3[t]||t;return(0,n.jsx)(s.Z,{label:o,color:a,size:r,variant:"filled",sx:{fontWeight:600,fontSize:"small"===r?"0.7rem":"0.8rem"}})}},26892:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(94655),s=r(25333),i=r(46207),a=r(43436);function o(e){let{status:t,size:r="small"}=e;return(0,n.jsx)(s.Z,{icon:"success"===t?(0,n.jsx)(i.Z,{}):(0,n.jsx)(a.Z,{}),label:"success"===t?"OK":"Error",color:"success"===t?"success":"error",size:r,variant:"outlined",sx:{fontWeight:500,fontSize:"small"===r?"0.7rem":"0.8rem"}})}},83765:function(e,t,r){"use strict";r.d(t,{x:function(){return A}});var n=r(94655),s=r(35106),i=r(7281),a=r(21138),o=r(84811),l=r(47001),c=r(53281),d=r(11254),u=r(70366),x=r(6406),h=r(69899),m=r(31317),p=r(95511),g=r(10721),j=r(81071),f=r(30417),v=r(25333),Z=r(87716),y=r(79983),b=r(89161),S=r(60236),C=r(27171),w=r(30114),T=r(69178),k=r(46725),z=r(56813),N=r(26892);function R(e){var t,r;let{log:c,onClick:d,hideTargetColumn:x}=e,[h,g]=(0,s.useState)("failure"===c.status),f=c.details&&Object.keys(c.details).length>0,T="failure"===c.status&&c.errorMessage,R=f||T,A=(t=c.targetType,r=c.targetName,"server"===t?"/servers/".concat(encodeURIComponent(r)):"player"===t?"/players":null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(u.Z,{hover:!0,sx:{cursor:"pointer","&:last-child td, &:last-child th":{border:0}},onClick:()=>null==d?void 0:d(c),tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),null==d||d(c))},role:"button","aria-label":"".concat(c.action," by ").concat(c.actor," on ").concat(c.targetName),children:[(0,n.jsx)(l.Z,{padding:"checkbox",sx:{width:48},children:R&&(0,n.jsx)(y.Z,{size:"small",onClick:e=>{e.stopPropagation(),g(!h)},"aria-label":h?"Collapse details":"Expand details",children:h?(0,n.jsx)(S.Z,{}):(0,n.jsx)(b.Z,{})})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(p.Z,{title:function(e){let t=new Date(e);return new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}).format(t)}(c.timestamp),arrow:!0,children:(0,n.jsx)(m.Z,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"nowrap"},children:function(e){let t=new Date,r=new Date(e),n=Math.floor((t.getTime()-r.getTime())/1e3),s=Math.floor(n/60),i=Math.floor(s/60),a=Math.floor(i/24);return n<60?"just now":s<60?"".concat(s,"m ago"):i<24?"".concat(i,"h ago"):a<7?"".concat(a,"d ago"):new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}).format(r)}(c.timestamp)})})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(z.I,{action:c.action})}),(0,n.jsx)(l.Z,{children:c.actor.startsWith("cli:")?(0,n.jsx)(v.Z,{label:c.actor.replace("cli:",""),size:"small",variant:"outlined",sx:{fontSize:"0.75rem"}}):(0,n.jsx)(m.Z,{variant:"body2",children:c.actor.replace("api:","")})}),!x&&(0,n.jsx)(l.Z,{children:(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},children:[function(e){switch(e){case"server":return(0,n.jsx)(C.Z,{sx:{fontSize:16,mr:.5,color:"text.secondary"}});case"player":return(0,n.jsx)(w.Z,{sx:{fontSize:16,mr:.5,color:"text.secondary"}});default:return null}}(c.targetType),A?(0,n.jsx)(k.default,{href:A,style:{textDecoration:"none"},onClick:e=>e.stopPropagation(),children:(0,n.jsx)(m.Z,{variant:"body2",sx:{color:"primary.main","&:hover":{textDecoration:"underline"}},children:c.targetName})}):(0,n.jsx)(m.Z,{variant:"body2",children:c.targetName})]})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(N.c,{status:c.status})})]}),R&&(0,n.jsx)(u.Z,{children:(0,n.jsx)(l.Z,{sx:{py:0},colSpan:x?5:6,children:(0,n.jsx)(Z.Z,{in:h,timeout:"auto",unmountOnExit:!0,children:(0,n.jsxs)(i.Z,{sx:{py:2,px:2},children:[T&&(0,n.jsx)(j.Z,{severity:"error",sx:{mb:2},children:c.errorMessage}),f&&(0,n.jsxs)(i.Z,{children:[(0,n.jsx)(m.Z,{variant:"caption",color:"text.secondary",sx:{mb:1,display:"block"},children:"Details"}),(0,n.jsx)(a.Z,{size:"small",sx:{width:"auto"},children:(0,n.jsx)(o.Z,{children:Object.entries(c.details).map(e=>{let[t,r]=e;return(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(l.Z,{sx:{fontWeight:600,color:"text.secondary",border:"none",py:.5,pl:0},children:t}),(0,n.jsx)(l.Z,{sx:{border:"none",py:.5},children:String(r)})]},t)})})})]})]})})})})]})}function A(e){let{logs:t,total:r,isLoading:s,error:i,filters:p,onFiltersChange:v,onRowClick:Z,onRetry:y,hideTargetColumn:b,rowsPerPageOptions:S=[25,50,100]}=e,C=Math.floor((p.offset||0)/(p.limit||50)),w=p.limit||50;return s?(0,n.jsx)(h.Z,{children:(0,n.jsx)(c.Z,{children:(0,n.jsxs)(a.Z,{children:[(0,n.jsx)(d.Z,{children:(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(l.Z,{padding:"checkbox"}),(0,n.jsx)(l.Z,{children:"Timestamp"}),(0,n.jsx)(l.Z,{children:"Action"}),(0,n.jsx)(l.Z,{children:"Actor"}),!b&&(0,n.jsx)(l.Z,{children:"Target"}),(0,n.jsx)(l.Z,{children:"Status"})]})}),(0,n.jsx)(o.Z,{children:[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(l.Z,{padding:"checkbox"}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(g.Z,{variant:"text",width:80})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(g.Z,{variant:"rounded",width:70,height:24})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(g.Z,{variant:"text",width:60})}),!b&&(0,n.jsx)(l.Z,{children:(0,n.jsx)(g.Z,{variant:"text",width:100})}),(0,n.jsx)(l.Z,{children:(0,n.jsx)(g.Z,{variant:"rounded",width:50,height:24})})]},t))})]})})}):i?(0,n.jsx)(j.Z,{severity:"error",action:y&&(0,n.jsx)(f.Z,{color:"inherit",size:"small",onClick:y,children:"Retry"}),children:i.message||"Failed to load audit logs"}):0===t.length?(0,n.jsxs)(h.Z,{sx:{p:6,textAlign:"center"},children:[(0,n.jsx)(T.Z,{sx:{fontSize:64,color:"text.disabled",mb:2}}),(0,n.jsx)(m.Z,{variant:"h6",color:"text.secondary",gutterBottom:!0,children:"No audit logs found"}),(0,n.jsx)(m.Z,{variant:"body2",color:"text.disabled",sx:{mb:2},children:"Try adjusting your filters or check back later."}),(0,n.jsx)(f.Z,{variant:"outlined",size:"small",onClick:()=>v({limit:p.limit,sort:p.sort}),children:"Reset Filters"})]}):(0,n.jsxs)(h.Z,{children:[(0,n.jsx)(c.Z,{sx:{overflowX:"auto"},children:(0,n.jsxs)(a.Z,{size:"small",children:[(0,n.jsx)(d.Z,{children:(0,n.jsxs)(u.Z,{children:[(0,n.jsx)(l.Z,{padding:"checkbox",sx:{width:48}}),(0,n.jsx)(l.Z,{sx:{fontWeight:600,whiteSpace:"nowrap"},children:"Timestamp"}),(0,n.jsx)(l.Z,{sx:{fontWeight:600},children:"Action"}),(0,n.jsx)(l.Z,{sx:{fontWeight:600},children:"Actor"}),!b&&(0,n.jsx)(l.Z,{sx:{fontWeight:600},children:"Target"}),(0,n.jsx)(l.Z,{sx:{fontWeight:600},children:"Status"})]})}),(0,n.jsx)(o.Z,{children:t.map(e=>(0,n.jsx)(R,{log:e,onClick:Z,hideTargetColumn:b},e.id))})]})}),(0,n.jsx)(x.Z,{component:"div",count:r,page:C,onPageChange:(e,t)=>{v({...p,offset:t*w})},rowsPerPage:w,onRowsPerPageChange:e=>{let t=parseInt(e.target.value,10);v({...p,limit:t,offset:0})},rowsPerPageOptions:S,"aria-label":"Audit log pagination"})]})}},42936:function(e,t,r){"use strict";async function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={...t.headers};t.body&&(r["Content-Type"]="application/json");let n=await fetch(e,{...t,headers:r});if(!n.ok){let e=await n.json().catch(()=>({error:"UnknownError",message:n.statusText})),t=Error(e.message);throw t.statusCode=n.status,t.code=e.error,t}return n.json()}r.d(t,{SC:function(){return n}})},84509:function(e,t,r){"use strict";r.d(t,{DM:function(){return a},HZ:function(){return l},VM:function(){return o},hT:function(){return i},oL:function(){return c}});var n=r(98324),s=r(42936);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=function(e){let t=new URLSearchParams;e.action&&t.set("action",e.action),e.actor&&t.set("actor",e.actor),e.targetType&&t.set("targetType",e.targetType),e.targetName&&t.set("targetName",e.targetName),e.status&&t.set("status",e.status),e.from&&t.set("from",e.from),e.to&&t.set("to",e.to),void 0!==e.limit&&t.set("limit",String(e.limit)),void 0!==e.offset&&t.set("offset",String(e.offset)),e.sort&&t.set("sort",e.sort);let r=t.toString();return r?"?".concat(r):""}(e);return(0,n.a)({queryKey:["audit-logs",e],queryFn:()=>(0,s.SC)("/api/audit-logs".concat(r)),enabled:(null==t?void 0:t.enabled)!==!1})}function a(e){return(0,n.a)({queryKey:["audit-logs","stats"],queryFn:()=>(0,s.SC)("/api/audit-logs/stats"),enabled:(null==e?void 0:e.enabled)!==!1,refetchInterval:3e4})}function o(e,t){return(0,n.a)({queryKey:["audit-logs",e],queryFn:()=>(0,s.SC)("/api/audit-logs/".concat(encodeURIComponent(e))),enabled:(null==t?void 0:t.enabled)!==!1&&!!e})}function l(e,t){var r;return i({targetType:"server",targetName:e,limit:null!==(r=null==t?void 0:t.limit)&&void 0!==r?r:20,...null==t?void 0:t.extraParams},{enabled:(null==t?void 0:t.enabled)!==!1&&!!e})}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return i({limit:e,sort:"timestamp:desc"})}},93757:function(e,t,r){"use strict";r.d(t,{D:function(){return i}});var n=r(35106);class s{connect(e){this.options=e,this.shouldReconnect=!0,this.establishConnection()}establishConnection(){this.options&&(this.updateState("connecting"),this.eventSource&&this.eventSource.close(),this.eventSource=new EventSource(this.options.url,{withCredentials:this.options.withCredentials||!1}),this.eventSource.onopen=()=>{this.updateState("connected"),this.retryCount=0,this.lastError=null},this.eventSource.onmessage=e=>{if(!e.data.startsWith(":"))try{var t,r;let n=JSON.parse(e.data);null===(r=this.options)||void 0===r||null===(t=r.onMessage)||void 0===t||t.call(r,n)}catch(e){console.warn("Failed to parse SSE message:",e)}},this.eventSource.onerror=()=>{var e,t;let r={message:"SSE connection error",code:"CONNECTION_ERROR",retryCount:this.retryCount,timestamp:new Date};this.lastError=r,this.updateState("error"),null===(t=this.options)||void 0===t||null===(e=t.onError)||void 0===e||e.call(t,r),this.shouldReconnect&&this.scheduleReconnect()})}scheduleReconnect(){var e,t;if(!this.options)return;let r=null!==(e=this.options.maxReconnectAttempts)&&void 0!==e?e:1/0;if(this.retryCount>=r)return;this.reconnectTimer&&clearTimeout(this.reconnectTimer);let n=null!==(t=this.options.reconnectInterval)&&void 0!==t?t:3e3;this.reconnectTimer=setTimeout(()=>{this.retryCount++,this.establishConnection()},n)}disconnect(){this.shouldReconnect=!1,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.updateState("disconnected")}getState(){return this.state}isConnected(){return"connected"===this.state}getLastError(){return this.lastError}getRetryCount(){return this.retryCount}reconnect(){this.retryCount++,this.shouldReconnect=!0,this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.establishConnection()}updateState(e){var t,r;this.state=e,null===(r=this.options)||void 0===r||null===(t=r.onStateChange)||void 0===t||t.call(r,e)}constructor(){this.eventSource=null,this.state="disconnected",this.retryCount=0,this.lastError=null,this.reconnectTimer=null,this.options=null,this.shouldReconnect=!0}}function i(e){let{url:t,onMessage:r,onError:i,reconnectInterval:a=3e3,maxReconnectAttempts:o=1/0,enabled:l=!0,withCredentials:c=!1}=e,[d,u]=(0,n.useState)(null),[x,h]=(0,n.useState)("disconnected"),[m,p]=(0,n.useState)(null),[g,j]=(0,n.useState)(0),f=(0,n.useRef)(null),v=(0,n.useCallback)(e=>{u(e),null==r||r(e)},[r]),Z=(0,n.useCallback)(e=>{h(e),"connected"===e&&j(0)},[]),y=(0,n.useCallback)(e=>{p(e),"number"==typeof e.retryCount&&j(e.retryCount),null==i||i(e)},[i]),b=(0,n.useCallback)(()=>{f.current&&(f.current.reconnect(),j(f.current.getRetryCount()))},[]),S=(0,n.useCallback)(()=>{f.current&&f.current.disconnect()},[]);return(0,n.useEffect)(()=>{if(!l){f.current&&(f.current.disconnect(),f.current=null);return}return f.current||(f.current=new s),f.current.connect({url:t,onMessage:v,onStateChange:Z,onError:y,reconnectInterval:a,maxReconnectAttempts:o,withCredentials:c}),()=>{f.current&&(f.current.disconnect(),f.current=null)}},[t,l,a,o,c,v,Z,y]),{data:d,isConnected:"connected"===x,state:x,error:m,retryCount:g,reconnect:b,disconnect:S}}},82925:function(e,t,r){"use strict";r.d(t,{KK:function(){return o},Lu:function(){return n},Xn:function(){return a},n3:function(){return s},xg:function(){return i}});let n={"server.create":"success","server.delete":"error","server.start":"info","server.stop":"warning","server.restart":"secondary","player.whitelist.add":"success","player.whitelist.remove":"warning","player.ban":"error","player.unban":"success","player.op":"info","player.deop":"warning","player.kick":"error","audit.purge":"default"},s={"server.create":"Create","server.delete":"Delete","server.start":"Start","server.stop":"Stop","server.restart":"Restart","player.whitelist.add":"Whitelist Add","player.whitelist.remove":"Whitelist Remove","player.ban":"Ban","player.unban":"Unban","player.op":"Op","player.deop":"Deop","player.kick":"Kick","audit.purge":"Purge"},i=["server.create","server.delete","server.start","server.stop","server.restart","player.whitelist.add","player.whitelist.remove","player.ban","player.unban","player.op","player.deop","player.kick","audit.purge"],a=["server.create","server.delete","server.start","server.stop","server.restart"],o=["player.whitelist.add","player.whitelist.remove","player.ban","player.unban","player.op","player.deop","player.kick"]}},function(e){e.O(0,[6812,9760,5004,7296,7436,1071,540,9986,2538,5511,3938,55,2844,4920,8347,4302,4848,5892,3669,2757,1744],function(){return e(e.s=3590)}),_N_E=e.O()}]);